Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_upnp (Read 1627780 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_upnp

Reply #375
Panel Stack Splitter


how are you positioning your panel? i find some panels won't show the context menu if using $movepanel_c  - instead use the panel list to set this stuff.


Well, I was using $movepanel_c, but on your suggestion I took that out and still no dice. I've tried it with different themes, in different containers, and still no luck. Is there possibly some kind of dependency or version incompatibility that I'm overlooking?

foo_upnp

Reply #376
Well, I was using $movepanel_c, but on your suggestion I took that out and still no dice. I've tried it with different themes, in different containers, and still no luck. Is there possibly some kind of dependency or version incompatibility that I'm overlooking?


It works for me with CUI 0.3.7.8, Panel Stack Splitter 0.3.8(alpha) with this simple disposition in CUI

Code: [Select]
Panel Stack Splitter
          UPnP Browser


Maybe you have a Panel Stack Splitter option enabled that conflicts with panels menus ?

Anyway in a future version, the "connect to remote server" functionality will also be exposed in the main menu.

foo_upnp

Reply #377
Great plugin - with fb2k's great codec support this should mean, for example, that I should be able to listen to all the various game formats from foo_gep, etc., on my 360.  I say should, as opposed to can, because I'm finding that a lot of formats (mainly ones with subsongs) aren't working properly.  On another instance of fb2k, I get 404 errors (Unable to open item for playback (File Not Found (404)):
"upnp://aHR0cDovLzE5Mi4xNjguMC4xOTc6NTY5MjMvY29udGVudC8wYTE1MGYyMmQwYTc4NmMyODdmYzY3YzAwYzY3NDdjYS5taW5pMnNm") trying to actually play a lot of them from the server and they similarly don't work from my 360, presumably for the same reason.

My sources are mostly the archives from vgm.hcs64.com.  NSF's are somewhat hit-or-miss, SPC's and VGM's don't work at all, etc., etc.  Is this a known limitation / problem that I missed or have I stumbled across a new bug?  FWIW, I left the songs in their archives as-downloaded, but they do in fact show up in and play fine when browsing the local song library and they obviously are selectable for playing via UPnP; just the actual playing doesn't work...


Ok I tried and it mostly works using 0.99.13 (older versions may have problems if files have bitspersample < 16).

unpack:// items (ie 7z archives managed by foo_unpack_7z) must be streamed as PCM (or transcoded to mp3). It cannot be streamed as is but this is what the foobar2000
streaming profile will try to do by default (this is why you get a 404 error) unless you modify it. In the foobar2000 profile, you can add file extensions in the Decode to PCM section (real extensions, not the 7z extension), so these files are streamed as PCM (WAV). In the next version of the plugin, unpack:// items will be always streamed as PCM so it will be unecessary to add exception extensions.
Note that there shouldn't be any problem playing files as is, if you extract them first of the 7z and put them in a playlist.

On the X360, unpack:// items should work out of the box as stream is forced to LPCM anyway for this profile for anything that is not mp3,aac,wma. I'm surprised it didn't. You may want to remove the plugin's configuration file (foo_upnp.xml) to regenerate the default profiles. It is located either in your foobar directory or in c:\Documents And Settings\<you login>\Application Data\foobar2000.
Can you point me to an archive that didn't work on your 360? It tried successfully with Addams Family Values (1995)(Ocean).7z (contains SPC).

I could also play a NSF successfully, namely Family Mahjong (1987)(-)(Namco).nsf. Also automatically forced to PCM, as all formats that have a subsong.

foo_upnp

Reply #378
Just wanted to thank bubbleguum for the implementation of CDDA support. Works quite well.
Thank you!

foo_upnp

Reply #379
It works for me with CUI 0.3.7.8, Panel Stack Splitter 0.3.8(alpha) with this simple disposition in CUI

Code: [Select]
Panel Stack Splitter
           UPnP Browser


Maybe you have a Panel Stack Splitter option enabled that conflicts with panels menus ?

Anyway in a future version, the "connect to remote server" functionality will also be exposed in the main menu.

Well, I updated my CUI and Panel Stack Splitter to the same or newer versions that you have and still have the same issue. For testing I used the exact same PSS->UPnP setup with nothing else. I tried changing the base container type from PSS to Tab Stack which was a problem because after doing that I couldn't get any context menu to come up. I have the titlebar disabled by default and there was no way to load the properties page (because CTRL+P doesn't work on the UPnP panels either). Anyway I'll just await the next version which allows you to add remote servers in the Tools menu

Thanks for trying to help.

foo_upnp

Reply #380
Ok I tried and it mostly works using 0.99.13 (older versions may have problems if files have bitspersample < 16).

unpack:// items (ie 7z archives managed by foo_unpack_7z) must be streamed as PCM (or transcoded to mp3). It cannot be streamed as is but this is what the foobar2000
streaming profile will try to do by default (this is why you get a 404 error) unless you modify it. In the foobar2000 profile, you can add file extensions in the Decode to PCM section (real extensions, not the 7z extension), so these files are streamed as PCM (WAV). In the next version of the plugin, unpack:// items will be always streamed as PCM so it will be unecessary to add exception extensions.
Note that there shouldn't be any problem playing files as is, if you extract them first of the 7z and put them in a playlist.

On the X360, unpack:// items should work out of the box as stream is forced to LPCM anyway for this profile for anything that is not mp3,aac,wma. I'm surprised it didn't. You may want to remove the plugin's configuration file (foo_upnp.xml) to regenerate the default profiles. It is located either in your foobar directory or in c:\Documents And Settings\<you login>\Application Data\foobar2000.
Can you point me to an archive that didn't work on your 360? It tried successfully with Addams Family Values (1995)(Ocean).7z (contains SPC).

I could also play a NSF successfully, namely Family Mahjong (1987)(-)(Namco).nsf. Also automatically forced to PCM, as all formats that have a subsong.
I took your advice with deleting the foo_upnp.xml from my foobar2000 profile directory and sure enough, it seems to be mostly well-behaved now, possibly perfectly on the 360 (I haven't done truly exhaustive testing yet but thus far everything has played fine).  I had only started using foo_upnp with 0.99.12 and based on your changelog I didn't think 12->13 should have made a difference as far as possibly having a stale configuration getting in the way but whatever.

There's still problems with the foobar2000 profile but you already explained what and why, that it should be fixed in the next version, and a couple possible work-arounds I could do for the time-being if I'm impatient (either unpack the archives or add .spc, etc., as filetypes that must be transcoded).  Thanks!

-

Now, I do have a question about browsing on the 360.  Since a lot of games have multiple artists, with the default browsing they get broken up into multiple albums.  I can't figure out for the life of me how to fix this - I first tried removing %album artist% from the Albums subtree in foo_upnp_ml_tree.xml but that only fixed this when browsing on my PC, so I thought perhaps you were basing the browsing on the media library's 'by album' formatting instead, but pulling album artist out of its first level of browsing didn't help either.  What am I missing, or is this hard-coded right now?


foo_upnp

Reply #382
Can anyone tell me how to enable UPnP Controller UI Element?
Thank you very much! 

--
I've got it!
It's perfect!

foo_upnp

Reply #383
Hi,
  I'm trying to alter the tree file so as to display things sorted by a custom tag, but the syntax is eluding me.
So far I've got this

   <SubTree label="Scene">
      <spec>%SCENE%</spec>
      <spec type="object.container.album.musicAlbum">%SCENE%</spec>
   </SubTree>

which produces a list that goes
scene tag --- scene tag [album artist] --- tracks

and will only display all tracks under a scene tag once all the album artists have been explored.
What I'm aiming for the list to sort as
scene tag --- tracks

to display all tracks from the scene tag, but I can't work the syntax out, or find anything about it on the web.

Thanks

EDIT:-  Make that, it's a little unpredictable as to how it works. Right now it is displaying things
scene tag --- scene tag --- tracks  most odd...

foo_upnp

Reply #384
Each <spec></spec> is a new folder level. Perhaps you just want some thing simple like

Code: [Select]
    <SubTree label="Scene">
        <spec>%SCENE%</spec>
    </SubTree>


I think it showing the tracks twice might be a bug, sounds like that same thing as this.

foo_upnp

Reply #385
to display all tracks from the scene tag, but I can't work the syntax out, or find anything about it on the web.


I you want to have a node holding a flat list of all tracks that have the SCENE tag, use:

Code: [Select]
<SubTree label="Scene" query="scene PRESENT"/>

 

foo_upnp

Reply #386
Hi Bubblegum,

thanks for the excellent plug in. Since we recently discovered foobar with this UPNP functionality we finally were able to master our music collection in a much easier and flexible way.

I have a couple of remarks / issues I wanted to share when testing it within our environment.
I have the following media renderers: Philips NP2900, Teac WAP-4500, Samsung ue46b7020.

1) When playing songs from the UPNP queue, playback stops after one song has been played. I've found out when selecting the WAP-4500 as second device in the list, the philips NP2900 pops up as first device in the list, after playing one song your software switches to the philips np2900 (maybe because it's the first in the list and it steals away attention on your device manager) and afterwards it doesn't continue playing the second song on the WAP-4500. If I power off all devices except the WAP-4500 (it's then the one and only device in the list of media renderers) everything goes well and all songs are played perfectly one after the other.

2) When selecting the current UPNP playlist on your UPNP server to be played on a media renderer all plays well but when I clear your playlist and load a new couple of songs it doesn't refresh. So once the media renderer loads in the playlist the first loaded current playlist stays there, no matter whether your make a new list of songs or not, untill everything is powered of. It seems only the first time you connect to your plugin server the current playlist is loaded correctly. Changes afterwards are not loaded when doing a refresh.

3) When playing songs the artist name is not displayed correctly in the Foobar window of UPNP (it always says artist unknown). Only the track title shows up correctly. However on the media renderer devices everything shows up correctly.

Hopefully you can have a look at my remarks and find a solution for it.

I've installed al latest versions of software and plugin so that should be OK. Don't hesitate to contact me if you have questions or want me to test a number of things to solve this minor problems.

BR

foo_upnp

Reply #387
1) When playing songs from the UPNP queue, playback stops after one song has been played. I've found out when selecting the WAP-4500 as second device in the list, the philips NP2900 pops up as first device in the list, after playing one song your software switches to the philips np2900 (maybe because it's the first in the list and it steals away attention on your device manager) and afterwards it doesn't continue playing the second song on the WAP-4500. If I power off all devices except the WAP-4500 (it's then the one and only device in the list of media renderers) everything goes well and all songs are played perfectly one after the other.


If I understand you correctly, in the UPnP Controller renderer combo box initially you had:

1. the np29000
2. the WAP-4500

You then select the WAP-4500, play a track on it via the UPnP Controller Queue and when it reached the end of track the np29000 was selected (in the combo box), instead of playing next track on the WAP-4500

The only thing I can think of happen is that the WAP-4500 disappeared from the list at end of track (which would indeed make the UPnP controller switch to the previous renderer in list.
There' no reason for a device to disappear suddenly except if it is powered off or if it crashes.

2) When selecting the current UPNP playlist on your UPNP server to be played on a media renderer all plays well but when I clear your playlist and load a new couple of songs it doesn't refresh. So once the media renderer loads in the playlist the first loaded current playlist stays there, no matter whether your make a new list of songs or not, untill everything is powered of. It seems only the first time you connect to your plugin server the current playlist is loaded correctly. Changes afterwards are not loaded when doing a refresh.


I'm not sure I understand what you mean. Can you describe step by step exactly what you did ? I assume the playlist you're talking about is the "UPnP Controller Playing Queue" playlist ?

3) When playing songs the artist name is not displayed correctly in the Foobar window of UPNP (it always says artist unknown). Only the track title shows up correctly. However on the media renderer devices everything shows up correctly.

That means for some reason the renderer sent back the artist name incorrectly to the UPnP Controller.

All of these problems are very difficult to troubleshoot without having the actual hardware.

foo_upnp

Reply #388
[blockquote]
1) When playing songs from the UPNP queue, playback stops after one song has been played. I've found out when selecting the WAP-4500 as second device in the list, the philips NP2900 pops up as first device in the list, after playing one song your software switches to the philips np2900 (maybe because it's the first in the list and it steals away attention on your device manager) and afterwards it doesn't continue playing the second song on the WAP-4500. If I power off all devices except the WAP-4500 (it's then the one and only device in the list of media renderers) everything goes well and all songs are played perfectly one after the other.


If I understand you correctly, in the UPnP Controller renderer combo box initially you had:

1. the np29000
2. the WAP-4500

You then select the WAP-4500, play a track on it via the UPnP Controller Queue and when it reached the end of track the np29000 was selected (in the combo box), instead of playing next track on the WAP-4500

The only thing I can think of happen is that the WAP-4500 disappeared from the list at end of track (which would indeed make the UPnP controller switch to the previous renderer in list.
There' no reason for a device to disappear suddenly except if it is powered off or if it crashes.

[indent][/blockquote]Bubblegum I found out this behaviour might be caused specifically by the NP2900. In standby mode the NP2900 seems to keep the stream active in the background and polls the server about each minute to fast resume when you power it on again so the NP2900 immediately continues playing the song it was playing before when you put it in standby mode. This doesn't happen if you completely power off the NP2900. Philips calls this the fast resume feature and the funny thing is I haven't found any option to disable it for standby mode. It's the same when streaming music from the internet (internet radio). For one reason or the other Philips believes that when you power on the device from standby it should immediately continues to play music from where it was put in standby before. Probably when you use the device as a clock radio it needs to be that way to make sure it plays music when it awakes you in the morning. Maybe because of this feature the NP2900 steals away attention from your device manager? Probably it's the same for the NP2500 (same firmware) and maybe also the NP1200 (not sure as it has a different firmware compared to the NP2900). This behavious dissappears when you realy power off the NP2900 as the WAP-4500 then  plays normally song after song. I'm not sure if you could block such hijacks and if it makes sense what I'm trying to explain? I do not know whether you could power off a media renderer remotely by sending some command codes to it but having the option to click a software button to do this would certainly be a nice option to have on your plug in. Probably it could also be an option in the settings panel or an option in the UPnP control panel which can be clicked to first disable all media renderers except the one which was selected to play music. Just an idea?

[blockquote]
2) When selecting the current UPNP playlist on your UPNP server to be played on a media renderer all plays well but when I clear your playlist and load a new couple of songs it doesn't refresh. So once the media renderer loads in the playlist the first loaded current playlist stays there, no matter whether your make a new list of songs or not, untill everything is powered of. It seems only the first time you connect to your plugin server the current playlist is loaded correctly. Changes afterwards are not loaded when doing a refresh.


I'm not sure I understand what you mean. Can you describe step by step exactly what you did ? I assume the playlist you're talking about is the "UPnP Controller Playing Queue" playlist ?

[indent][/blockquote]Bubblegum I'm talking indeed about the "UPnp Controller Playing Queue" playlist. The first time you power on Foobar and select the UPnp controller playlist from the media renderer everything shows up normally. If you clear the UPnP controller playlist on the computer and load new songs into it, in fact build a new UPnp controller playlist with new selected songs, the media renderer keeps the first UPnP controller playlist still in his memory and doesn't load in the second new build UPnP controller playlist until you quit Foobar and start Foobar again. So in fact to make the media renderer load new build or changed UPnp controller playlists you need to quit Foobar and start it again in between new playlists. I hope this makes it a bit clear for you to understand what I mean. This behaviour is not media renderer specific as it happens on all the different devices I have.

[blockquote]
3) When playing songs the artist name is not displayed correctly in the Foobar window of UPNP (it always says artist unknown). Only the track title shows up correctly. However on the media renderer devices everything shows up correctly.

That means for some reason the renderer sent back the artist name incorrectly to the UPnP Controller.

[indent][/blockquote]Bubblegum, you are 100% right. It is the media renderer which is causing the unknow artist display within the Foobar UPnP window. The WAP-4500 doesn't seem to return the artist correctly although on its own display it shows up normally. Unfortunately not in the Foobar UPnP control displayed window. With the NP2900 all displays correctly so I'll send a note to Teac for their next WAP-4500 firmware release (current firmware = v1.2.3.4).

[blockquote]All of these problems are very difficult to troubleshoot without having the actual hardware.

[indent][/blockquote]Bubblegum I fully understand your remark and do also appreciate very much the effort you put in developping this plug in. I believe you have delivered a fine peace of software far much better than most of the big boys deliver out of the box. So if can help in debugging a number of things I would be more than happy to test future evolutions.  Let me know and keep up the good work.


foo_upnp

Reply #389
[blockquote]
1) When playing songs from the UPNP queue, playback stops after one song has been played. I've found out when selecting the WAP-4500 as second device in the list, the philips NP2900 pops up as first device in the list, after playing one song your software switches to the philips np2900 (maybe because it's the first in the list and it steals away attention on your device manager) and afterwards it doesn't continue playing the second song on the WAP-4500. If I power off all devices except the WAP-4500 (it's then the one and only device in the list of media renderers) everything goes well and all songs are played perfectly one after the other.


If I understand you correctly, in the UPnP Controller renderer combo box initially you had:

1. the np29000
2. the WAP-4500

You then select the WAP-4500, play a track on it via the UPnP Controller Queue and when it reached the end of track the np29000 was selected (in the combo box), instead of playing next track on the WAP-4500

The only thing I can think of happen is that the WAP-4500 disappeared from the list at end of track (which would indeed make the UPnP controller switch to the previous renderer in list.
There' no reason for a device to disappear suddenly except if it is powered off or if it crashes.

[indent][/blockquote]Bubblegum I found out this behaviour might be caused specifically by the NP2900. In standby mode the NP2900 seems to keep the stream active in the background and polls the server about each minute to fast resume when you power it on again so the NP2900 immediately continues playing the song it was playing before when you put it in standby mode. This doesn't happen if you completely power off the NP2900. Philips calls this the fast resume feature and the funny thing is I haven't found any option to disable it for standby mode. It's the same when streaming music from the internet (internet radio). For one reason or the other Philips believes that when you power on the device from standby it should immediately continues to play music from where it was put in standby before. Probably when you use the device as a clock radio it needs to be that way to make sure it plays music when it awakes you in the morning. Maybe because of this feature the NP2900 steals away attention from your device manager? Probably it's the same for the NP2500 (same firmware) and maybe also the NP1200 (not sure as it has a different firmware compared to the NP2900). This behavious dissappears when you realy power off the NP2900 as the WAP-4500 then  plays normally song after song. I'm not sure if you could block such hijacks and if it makes sense what I'm trying to explain? I do not know whether you could power off a media renderer remotely by sending some command codes to it but having the option to click a software button to do this would certainly be a nice option to have on your plug in. Probably it could also be an option in the settings panel or an option in the UPnP control panel which can be clicked to first disable all media renderers except the one which was selected to play music. Just an idea?

[blockquote]
2) When selecting the current UPNP playlist on your UPNP server to be played on a media renderer all plays well but when I clear your playlist and load a new couple of songs it doesn't refresh. So once the media renderer loads in the playlist the first loaded current playlist stays there, no matter whether your make a new list of songs or not, untill everything is powered of. It seems only the first time you connect to your plugin server the current playlist is loaded correctly. Changes afterwards are not loaded when doing a refresh.


I'm not sure I understand what you mean. Can you describe step by step exactly what you did ? I assume the playlist you're talking about is the "UPnP Controller Playing Queue" playlist ?

[indent][/blockquote]Bubblegum I'm talking indeed about the "UPnp Controller Playing Queue" playlist. The first time you power on Foobar and select the UPnp controller playlist from the media renderer everything shows up normally. If you clear the UPnP controller playlist on the computer and load new songs into it, in fact build a new UPnp controller playlist with new selected songs, the media renderer keeps the first UPnP controller playlist still in his memory and doesn't load in the second new build UPnP controller playlist until you quit Foobar and start Foobar again. So in fact to make the media renderer load new build or changed UPnp controller playlists you need to quit Foobar and start it again in between new playlists. I hope this makes it a bit clear for you to understand what I mean. This behaviour is not media renderer specific as it happens on all the different devices I have.

[blockquote]
3) When playing songs the artist name is not displayed correctly in the Foobar window of UPNP (it always says artist unknown). Only the track title shows up correctly. However on the media renderer devices everything shows up correctly.

That means for some reason the renderer sent back the artist name incorrectly to the UPnP Controller.

[indent][/blockquote]Bubblegum, you are 100% right. It is the media renderer which is causing the unknow artist display within the Foobar UPnP window. The WAP-4500 doesn't seem to return the artist correctly although on its own display it shows up normally. Unfortunately not in the Foobar UPnP control displayed window. With the NP2900 all displays correctly so I'll send a note to Teac for their next WAP-4500 firmware release (current firmware = v1.2.3.4).

[blockquote]All of these problems are very difficult to troubleshoot without having the actual hardware.

[indent][/blockquote]Bubblegum I fully understand your remark and do also appreciate very much the effort you put in developping this plug in. I believe you have delivered a fine peace of software far much better than most of the big boys deliver out of the box. So if I can help in debugging a number of things I would be more than happy to test future evolutions.  Let me know and keep up the good work.



foo_upnp

Reply #390
Bubblegum,

I was thinking on how to reproduce the problem I've found out with the NP-2900 & the WAP-4500.
Maybe the following thing is happening (I can not test it for the moment as the house is asleep now).

My wife starts foobar and the UPnp control panel is pointing to the NP2900 but she didn't notice (the order in which devices are displayed and selected in your panel as first, second or third seems to change from time to time). She makes a playlist in your UPnP control queue playlist and hits the button to play music.
Probably the NP2900 starts to play but she doesn't hear anything as it is placed in another room. Then without stopping the NP2900, probably she then discovered she first didn't select the WAP-4500 which was probably listed as second or third device and therefore initially not visible on your control panel, she selects the WAP-4500 and hits the play button again.
The WAP-4500 starts to play but stops after playing 1 song (probably the NP2900 takes over again when it changes songs ?).

Then afterwards the NP2900, even if it has finished the playlist, keeps steeling away control of the playlist because of its "Fast resume option" until a stop or multiple stops are send to it or till you power it off completely (Standby on the NP2900 keeps the stream alive in the background - See following URL on the Philips forum http://www.streamiumcafe.com/vBulletin/sho...ad.php?t=20612).

Does this makes sense?

If yes would it be an option when you select another device than the one which is already playing for the UPnp control queued playlist to ask a question to stop the first selected device or by means of setting an option in the config that your plug in should send some commands to stop other device(s ?) making use of the current playlist when at the same time selecting another media renderer to start playing music from your control point?

I'll try to test this out somewhere this week if the wife allows me to spend time on it. Not always easy to keep the WAF positive with all these electronic gadgets in the house.

If you could make your plug in WAF proove for this that would be fantastic together with fixing the second point on the changed or new playlist loading from the media renderer itself (see previous post).

PS: I tried to attach the foobar config (zipped) file but don't know how this works on this forum.

foo_upnp

Reply #391
Observations: fantastic component, thank you!  I installed the latest foobar2k, loaded your component, adjusted my firewall settings, and was streaming successfully to a hardware renderer (Philips NP1100/37) on my LAN within minutes. I had been using foobar 0.8 for years and had never seen any compelling reason to upgrade to ver 0.9+, but this component offered sufficient impetus!

General feature request:
    Permit navigation of media library via directory structure.

Quirky self-serving feature request (driven by limitations of my hardware renderer):
    The Philips NP1100 has awful metadata display options during playback.  By default, only the track title is displayed.  With the push of a button on the remote, it is possible (but only on a track by track basis) to trigger a scrolling display that shows TITLE / ALBUM / ARTIST (in that order).  This is inconvenient -- not only because one needs to find and manually press a button on the remote for each track, but also because the scrolling speed on the unit's display is so dreadfully slow that waiting to see the album and artist data (which is what I really want in most cases) is a maddening exercise.  So here's my question: without actually altering the content of my files' tags, can I customize the nature/format of the "TITLE" data sent out by the server during playback to trick my Philips NP1100 into showing default "now playing" info that suits my preferences: (e.g. "%ARTIST% - %title% (%album%)".  A request framed by very local concerns, I know.... but may be relevant for users of other renderers?

Cheers





foo_upnp

Reply #392
L&G's,

I've been trying to reproduce and isolate my problem on the WAP-4500 sometimes playing 1 or max 2 songs and then stopping playback using the uPnp control plug in from bubbleguum. I assumed it was due to the Philips NP2900 fast resume feature, as explained in above topics, but I'm afraid that's only part of the story. I discovered even with the NP2900 completely switched off I also have this issue on the WAP-4500. My WAP-4500 is connected after 2 switches (Netgear GS108T managed switch with multimedia QOS + Netgear G108 unmanaged swith - 8 port each) and I do not know whether this could cause a problem but when the WAP-4500 stops playing the uPnP control panel displays the message 'Play error: Actions failed (501)'.
Has anyone else encountered this type of uPnP control plug-in error and if Yes what does it mean?

To be sure I've enlarged all Foobar buffers for network and playback to the maximum value to see whether this could help but so far the issue is still there. Are there any other parameters / buffers in Foobar I could try to change to improve network connection / playback or control on a media renderer?

Thanks in advance for some good advice.

foo_upnp

Reply #393
Hey there,

Having a wee bit of a problem using this with Simplify Media.

I get error when attempting to play files over UPnP

Opening track for playback: "upnp://aHR0cDovLzE5Mi4xNjguMTkuMzg6NTc3MTkvUGxheS80MTI2MzYzNzI5LzY5MTcubXAz"
Could not read info (Reported file length changed) from: "upnp://aHR0cDovLzE5Mi4xNjguMTkuMzg6NTc3MTkvUGxheS80MTI2MzYzNzI5LzY5MTcubXAz"

Any ideas, if you need more info; fire away.

foo_upnp

Reply #394
General feature request:
    Permit navigation of media library via directory structure.


This has been requested many times and is somewhat in the todo list but not sure when I'll implement it

Quote
So here's my question: without actually altering the content of my files' tags, can I customize the nature/format of the "TITLE" data sent out by the server during playback to trick my Philips NP1100 into showing default "now playing" info that suits my preferences: (e.g. "%ARTIST% - %title% (%album%)".

I understand what you mean and this is something I though about being configurable early on, but forgot about it. I'll see what I can do

when the WAP-4500 stops playing the uPnP control panel displays the message 'Play error: Actions failed (501)'.
Has anyone else encountered this type of uPnP control plug-in error and if Yes what does it mean?

For some unknown reason, after a few tracks, the http server of the WAP-4500 returns error code 501 (meaning it could not complete the action) when instructed to play the next song.
Without the hardware to try a few different things, it is almost impossible to guess what went wrong. Can you check you're not trying to play a file in a format it cannot handle ?
Note that for a Control Point, advancing in playlist is a pain in the ass to do reliably over a wide range of devices, because how it should be done is not really specified, and lots of device haves their own quirks (and sometimes bugs). You could try to see if advancing in playlist works better with Cidero (or another control point). If that's the case then I might do something wrong.

Opening track for playback: "upnp://aHR0cDovLzE5Mi4xNjguMTkuMzg6NTc3MTkvUGxheS80MTI2MzYzNzI5LzY5MTcubXAz"
Could not read info (Reported file length changed) from: "upnp://aHR0cDovLzE5Mi4xNjguMTkuMzg6NTc3MTkvUGxheS80MTI2MzYzNzI5LzY5MTcubXAz"


This is the foobar HTTP decoder complaining about the stream (whose decoded URL is http://192.168.19.38:57719/Play/4126363729/6917.mp3, I assume it is a URL from the Simplify Media Server ?).
A search for this error on this forum recommends to disable "allow seeking over http" in the advanced options.

foo_upnp

Reply #395
[blockquote][/indent]
when the WAP-4500 stops playing the uPnP control panel displays the message 'Play error: Actions failed (501)'.
Has anyone else encountered this type of uPnP control plug-in error and if Yes what does it mean?

For some unknown reason, after a few tracks, the http server of the WAP-4500 returns error code 501 (meaning it could not complete the action) when instructed to play the next song.
Without the hardware to try a few different things, it is almost impossible to guess what went wrong. Can you check you're not trying to play a file in a format it cannot handle ?
Note that for a Control Point, advancing in playlist is a pain in the ass to do reliably over a wide range of devices, because how it should be done is not really specified, and lots of device haves their own quirks (and sometimes bugs). You could try to see if advancing in playlist works better with Cidero (or another control point). If that's the case then I might do something wrong.

[indent][/blockquote]Bubblegum thanks for the Cidero suggestion. I've tried it and Yes the same problem is happening. The WAP-4500 also stops playing after 2 to 3 songs when using Cidero. So maybe something with the firmware implementation of uPnP direct control by Teac. Strange enough I also have this problem sometimes on my NP2900 but without the error 501 message. So maybe 2 different issues here and it's driving me crazy as the Foobar soft together with your uPnP plug-in is such a wonderfull thing to use. It's an intermitting problem and hard to reproduce so I will do a fresh install on another computer to see whether it's not computer related. There is a workaround by uploading songs into a media renderer from the Foobar server uPnP playlist. When I do that everything keeps playing but I would of course prefer direct control from the uPnP panel. Anyway I will log a ticket towards Teac to see if they can come up with something.

PS: When after receiving the error 501 on the WAP-4500 I start the next song in the playlist and everything plays again normally for 1 to 2 songs before the same error occurs on the WAP-4500. Would it be possible for your plugin to send again the song play command, maybe preceeded by a stop /reset command, when you detect error 501. The error always occurs when the next song is loaded in the playlist and wants to start playing. Maybe it's a way of getting around the problem and keep things going?

Secondly I always need to quit Foobar and restart it again to make my media renderers to load new playlists created in the uPnP queued playlist after I have loaded a first one. Maybe if you can have a look into that it would already increase useability. Note that not loading a uPnP server queued playlist the second time, after playing the first one, is happening on both my WAP-4500 as the NP2900.

Thanks already for the good support.

foo_upnp

Reply #396
BTW bubbleguuum, I don't believe you answered my question / observation about browsing from my 360 (you probably missed seeing it since it was in my reply about deleting an apparently-stale config fixing my playing issues), so here it is again  :

I do have a question about browsing on the 360. Since a lot of games have multiple artists, with the default browsing they get broken up into multiple albums. I can't figure out for the life of me how to fix this - I first tried removing %album artist% from the Albums subtree in foo_upnp_ml_tree.xml but that only fixed this when browsing on my PC, so I thought perhaps you were basing the browsing on the media library's 'by album' formatting instead, but pulling album artist out of its first level of browsing didn't help either. What am I missing, or is this hard-coded right now?

foo_upnp

Reply #397
PS: When after receiving the error 501 on the WAP-4500 I start the next song in the playlist and everything plays again normally for 1 to 2 songs before the same error occurs on the WAP-4500. Would it be possible for your plugin to send again the song play command, maybe preceeded by a stop /reset command, when you detect error 501. The error always occurs when the next song is loaded in the playlist and wants to start playing. Maybe it's a way of getting around the problem and keep things going?

Reissuing a Play to the device after the first one failed might work if we're lucky. I'll add it to the next version.

Secondly I always need to quit Foobar and restart it again to make my media renderers to load new playlists created in the uPnP queued playlist after I have loaded a first one. Maybe if you can have a look into that it would already increase useability. Note that not loading a uPnP server queued playlist the second time, after playing the first one, is happening on both my WAP-4500 as the NP2900.

I don't understand what you mean. What are you trying to achieve ?


I do have a question about browsing on the 360. Since a lot of games have multiple artists, with the default browsing they get broken up into multiple albums. I can't figure out for the life of me how to fix this - I first tried removing %album artist% from the Albums subtree in foo_upnp_ml_tree.xml but that only fixed this when browsing on my PC, so I thought perhaps you were basing the browsing on the media library's 'by album' formatting instead, but pulling album artist out of its first level of browsing didn't help either. What am I missing, or is this hard-coded right now?


Indeed, the X360 tree is hardcoded and not editable. The Album subtree is populated with %album%[ '['%album artist%']'].  I can see it being a problem if you don't have tag "ALBUM ARTIST" set on your VA albums files, as %album artist% would then evaluate to %artist%, and that could split a same album under several nodes.
As it is not editable, in the next version I'll just remove %album artist% from the definition above. You can also set ALBUM ARTIST on your files, that should work.

foo_upnp

Reply #398
new version available with minor enhancements / fixes (first post to download):

0.99.14
---------
- server: play unpack:// items as PCM
- server: XBOX360 Album subtree don't use %album artist% anymore in album names to split albums
- server: returned track titles are now configurable with a titleformat script in the server's advanced preferences. Useful for hardware renderers that are not very configurable in the way they present track info
- controller: if Play() fails on a renderer, retry 1sec later (attempt to make buggy renderers work)
- browser: "Add Remote foobar2000 UPnP Server" command now available in the View menu, if the UPnP Browser component is instanciated

foo_upnp

Reply #399
Indeed, the X360 tree is hardcoded and not editable. The Album subtree is populated with %album%[ '['%album artist%']']. ...
As it is not editable, in the next version I'll just remove %album artist% from the definition above.

If it works like in the rest of foobar2000, how about %album%[ '['$meta(album artist)']']? In that case it would only evaluate if ALBUM ARTIST was filled, if not, I admit, it would hardly do anything good.

Quote
You can also set ALBUM ARTIST on your files, that should work.

That would be the proper way for VA albums
In theory, there is no difference between theory and practice. In practice there is.