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 1646929 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_upnp

Reply #725
Hi. I use foobar2000 very long time and really enjoy it. Recently I decide to try to stream my music collection to my Sony Bravia KDL W5500 using your plugin and have no luck. You can find logs here. Thanx.

foo_upnp

Reply #726
Hi. I use foobar2000 very long time and really enjoy it. Recently I decide to try to stream my music collection to my Sony Bravia KDL W5500 using your plugin and have no luck. You can find logs here. Thanx.


Can you be a bit more specific about the what the problem is, and repost a log with INFO level ?

foo_upnp

Reply #727
Hi. I use foobar2000 very long time and really enjoy it. Recently I decide to try to stream my music collection to my Sony Bravia KDL W5500 using your plugin and have no luck. You can find logs here. Thanx.


Can you be a bit more specific about the what the problem is, and repost a log with INFO level ?


The problem is TV cannot see foobar2000 - it doesn't appear in Music sources. Logs
Code: [Select]
foo_upnp: 241.547: NPT_File::Load(240)/2256: INFO: Opening D:\bin\foobar2000\foo_upnp_ml_tree.xml
foo_upnp: 241.547: NPT_File::Load(250)/2256: INFO: Opened D:\bin\foobar2000\foo_upnp_ml_tree.xml
foo_upnp: 241.547: standard_media_tree_root_node_t::load_ml_filters(482)/2256: INFO: loaded Media Library filters from D:\bin\foobar2000\foo_upnp_ml_tree.xml
foo_upnp: 241.547: LoadBrowseTreeTask::DoRun(84)/3028: INFO: loaded 0 nodes in 0.000s
foo_upnp: 241.547: PLT_UPnP::AddDevice(343)/2256: INFO: Starting Device...
foo_upnp: 241.547: PLT_HttpServer::Start(109)/2256: INFO: HttpServer listening on 0.0.0.0:56923
foo_upnp: 242.94: LoadBrowseTreeTask::DoRun(84)/2680: INFO: loaded 1 nodes in 0.547s
foo_upnp: 242.703: FbMediaServer::ProcessHttpRequest(255)/1584: INFO: received LAN request: http://192.168.1.20:56923/DeviceDescription.xml (User-Agent: UPnP/1.0)
foo_upnp: 242.703: FbMediaServer::ProcessGetDescription(320)/1584: INFO: ProcessGetDescription: user-agent: UPnP/1.0
foo_upnp: 243.312: FbMediaServer::ProcessHttpRequest(255)/3496: INFO: received LAN request: http://192.168.1.20:56923/ContentDirectory/efdb4543-2456-abc0-fb49-39072b7dd95a/control.xml (User-Agent: UPnP/1.0 DLNADOC/1.50)
foo_upnp: 243.312: FbMediaServer::OnAction(197)/3496: INFO: received action 'GetSortCapabilities', args = {  }
foo_upnp: 243.312: FbMediaServer::OnAction(214)/3496: INFO: action 'GetSortCapabilities' response: args = { SortCaps= }
foo_upnp: 243.516: FbMediaServer::ProcessHttpRequest(255)/1652: INFO: received LAN request: http://192.168.1.20:56923/ConnectionManager/efdb4543-2456-abc0-fb49-39072b7dd95a/control.xml (User-Agent: UPnP/1.0 DLNADOC/1.50)
foo_upnp: 243.516: FbMediaServer::OnAction(197)/1652: INFO: received action 'GetProtocolInfo', args = {  }
foo_upnp: 243.516: FbMediaServer::OnAction(214)/1652: INFO: action 'GetProtocolInfo' response: args = { Source=http-get:*:*:*, Sink= }
foo_upnp: 243.562: FbMediaServer::ProcessHttpRequest(255)/1824: INFO: received LAN request: http://192.168.1.20:56923/DeviceDescription.xml (User-Agent: UPnP/1.0)
foo_upnp: 243.562: FbMediaServer::ProcessGetDescription(320)/1824: INFO: ProcessGetDescription: user-agent: UPnP/1.0
foo_upnp: 244.109: FbMediaServer::ProcessHttpRequest(255)/1232: INFO: received LAN request: http://192.168.1.20:56923/ContentDirectory/efdb4543-2456-abc0-fb49-39072b7dd95a/control.xml (User-Agent: UPnP/1.0 DLNADOC/1.50)
foo_upnp: 244.109: FbMediaServer::OnAction(197)/1232: INFO: received action 'GetSortCapabilities', args = {  }
foo_upnp: 244.109: FbMediaServer::OnAction(214)/1232: INFO: action 'GetSortCapabilities' response: args = { SortCaps= }
foo_upnp: 244.312: FbMediaServer::ProcessHttpRequest(255)/3292: INFO: received LAN request: http://192.168.1.20:56923/ConnectionManager/efdb4543-2456-abc0-fb49-39072b7dd95a/control.xml (User-Agent: UPnP/1.0 DLNADOC/1.50)
foo_upnp: 244.312: FbMediaServer::OnAction(197)/3292: INFO: received action 'GetProtocolInfo', args = {  }
foo_upnp: 244.312: FbMediaServer::OnAction(214)/3292: INFO: action 'GetProtocolInfo' response: args = { Source=http-get:*:*:*, Sink= }


TV can handle mp3 and LPCM for sure. I have tried HMS and it works, but not provide what I want.
Hope this information will help.

foo_upnp

Reply #728
Buggleguuum one question: Do you know whether Roku Soundbridges will behave like a Linn DS device as a renderer?

Thank you in advance and thanks for this awesome plugin.

B.

foo_upnp

Reply #729
Buggleguuum one question: Do you know whether Roku Soundbridges will behave like a Linn DS device as a renderer?

Thank you in advance and thanks for this awesome plugin.

B.



No the Roku is a regular UPnpAV device: no on device playlist support nor gapless playback like on the Linn DS.
Speaking of the Roku to answer your first question, it is not the ideal device for control with the UPnP Controller. At least the Roku SoundBridge M1000 has a few known problems in its
implementation, especially it doesn't notify reliably the end of a track and the controller cannot play the next track because of this. Not sure about other Roku models though.

foo_upnp

Reply #730
Thank you Bubbleguum for your quick answer. Which device apart from the Linn DS which are a bit too costly would you recommend for your plugin?

foo_upnp

Reply #731
Could Soundbridge owners chime in and tell about their experience please?


Hi,
I am using this plugin with my Roku M1000 very successfully. As has been mentioned already, it does not do a perfect job trying to use the controller function, but as a server streaming to the device and using the device control functions it works great and I would recommend it highly. The downside of course is that The Roku audio players have all been discontinued and are now unsupported so there won't be any firmware fixes any longer. For me, browsing works, playlists work, streaming works, and streaming profiles work. I don't know "technically" about gapless playback but my library is mostly flac images and I can say that track changes are "perfect" to my ears. Dark Side of the Moon does perfect track changes and is "gapless" to my ears.

If you can find one at a good price it works well with this plugin with the above exception and sounds great. And I am still hoping there may yet be some work arounds that might make the controller work too. For me, that is a nice to have but not essential.

If you want to know anything more I'd be happy to give you more info. But I am overall very happy with this setup and love this plugin.

foo_upnp

Reply #732
Thank you Bubbleguum for your quick answer. Which device apart from the Linn DS which are a bit too costly would you recommend for your plugin?



Can't really recommend you a particular device as the only hardware I have is a Linn DS. At this point, I expect that most current devices will work well with the server, when browsing and playing from their interface. It can a bit a more tricky with externally controllable renderers. There's so much different implementations by vendors (often incomplete or buggy), that you cannot be sure it'll work until you test it.

EDIT: it is important to note that even if a hardware is not an externally controllable renderer or if it is buggy used with the UpnP Controller, there's an alternate way to remote control it by using the Playback Stream Capture functionnality (in that case the device plays a single infinite stream of what foobar2000 is currenlty playing, as if it was a networked soundcard).

foo_upnp

Reply #733
EDIT: it is important to note that even if a hardware is not an externally controllable renderer or if it is buggy used with the UpnP Controller, there's an alternate way to remote control it by using the Playback Stream Capture functionnality (in that case the device plays a single infinite stream of what foobar2000 is currenlty playing, as if it was a networked soundcard).


So THAT'S how that works! WOOHOO! I had never quite figured out what that was for. This works fine on my Roku too.

foo_upnp

Reply #734
EDIT: it is important to note that even if a hardware is not an externally controllable renderer or if it is buggy used with the UpnP Controller, there's an alternate way to remote control it by using the Playback Stream Capture functionnality (in that case the device plays a single infinite stream of what foobar2000 is currenlty playing, as if it was a networked soundcard).


So THAT'S how that works! WOOHOO! I had never quite figured out what that was for. This works fine on my Roku too.



I am looking for a controllable render. How do I enable this Playback Stream Capture functionality?


Twonky claims that they can control a Roku Soundbridge with their server. Is the controller part of the server or part of your plugin?

foo_upnp

Reply #735
Quote
- server: fix: handle %<...>% notation in foo_upnp_media_tree.xml. Useful for %<genre>% (was hardcoded previously), %<style>%, ...

This doesn't work quite like I expect it.
For example, the genre "Folk, World, & Country" (which is generated by the discogs plugin, so I assume bubbleguuum is familiar with it) shows up as 3 separate Genres on my PS3.

Since "Funk / Soul" and "Stage & Screen" show up correctly, I assume it has something to do with the commas.

-Gak Toid

foo_upnp

Reply #736
I am looking for a controllable render. How do I enable this Playback Stream Capture functionality?

Twonky claims that they can control a Roku Soundbridge with their server. Is the controller part of the server or part of your plugin?


On the Roku you must browse to the Playback Stream Capture and then select it. It just plays whatever foobar is already playing as an infinite stream. So you can set up a playlist on foobar and start playing it and the Roku would just capture what is being played.

foo_upnp

Reply #737
When I try to stream certain songs the stream stops at the end of that song instead of continuing to the next song in the play list. The PS3 provides the extremely helpful: A network error occurred (80710723)

Here's what shows up in the UPnP log from the time I start playing the song until after the song has stopped.

Any ideas?


No idea and the log do not indicate any error. And I've long stopped trying to make sense of Sony undocumented error codes...


Log: http://pastebin.com/9FyHWHFs

I assume the 'opened' message at 601 was when I select the song to play.
I wasn't using the controller at 904 when it attempted to open the song again. It's like it keeps trying to open the same song instead of the next one. Or perhaps it didn't finish playing the song and is trying to open it again to finish?

-Gak Toid

 

foo_upnp

Reply #738
I am looking for a controllable render. How do I enable this Playback Stream Capture functionality?

Twonky claims that they can control a Roku Soundbridge with their server. Is the controller part of the server or part of your plugin?


On the Roku you must browse to the Playback Stream Capture and then select it. It just plays whatever foobar is already playing as an infinite stream. So you can set up a playlist on foobar and start playing it and the Roku would just capture what is being played.



What playlist would I select on Foobar then? The controller or the browser playlist?

foo_upnp

Reply #739
What playlist would I select on Foobar then? The controller or the browser playlist?


You would select any playlist you like and play something in foobar as you would normally on your PC. Then on the Roku you would browse to "Capture Playback Stream" and select it. This stream is just the stream of what you are already playing on foobar being repeated over the network. So you can do anything locally in foobar and it is repeated over the network to the remote client.

So, you are not controlling the device via upnp, you are just using the normal foobar controls and the device is capturing the output stream.

foo_upnp

Reply #740
What playlist would I select on Foobar then? The controller or the browser playlist?


You would select any playlist you like and play something in foobar as you would normally on your PC. Then on the Roku you would browse to "Capture Playback Stream" and select it. This stream is just the stream of what you are already playing on foobar being repeated over the network. So you can do anything locally in foobar and it is repeated over the network to the remote client.

So, you are not controlling the device via upnp, you are just using the normal foobar controls and the device is capturing the output stream.



Thank you mpuckett, this is awesome. And which component would be responsible for this streaming capture? The foobar plugin on the client or the server? I am just trying to understand the technical side of it.


foo_upnp

Reply #741
Thank you mpuckett, this is awesome. And which component would be responsible for this streaming capture? The foobar plugin on the client or the server? I am just trying to understand the technical side of it.


The server part of the plugin is responsible of the capture. There's an API in the SDK that allow to capture audio before it is sent to the sound card.

Quote
Then on the Roku you would browse to "Capture Playback Stream" and select it


For devices that are externally controllable (ie that appear in the UPnP Controller - this is the case of the Roku), you can trigger this from foobar2000 itself instead to have to do it from the device's UI: provided that you have the UPnP Controller in your layout and a renderer selected, in foobar main menu just select Playback->UPnP Controller->Play foobar2000 Playback Stream Capture

foo_upnp

Reply #742
For devices that are externally controllable (ie that appear in the UPnP Controller - this is the case of the Roku), you can trigger this from foobar2000 itself instead to have to do it from the device's UI: provided that you have the UPnP Controller in your layout and a renderer selected, in foobar main menu just select Playback->UPnP Controller->Play foobar2000 Playback Stream Capture


Yep. Just tried that and it works too. In fact, while playing the stream the volume control, play, pause and stop controller functions all work.

foo_upnp

Reply #743
Hi, I've just registered at HA to ask for help with several problems that were raised before but nobody seems to complain about them these days.
1) I am trying to stream music between the fb2k instances on two computers (Vista and XP) networked using Ethernet or WiFi. The network works fine, with real-time speeds (while copying shared files) of >10 MB/s (Eth) and approx. 1 MB/s (WiFi, this is slow, I know, a poor Netgear access point may be the reason).
The problem is that it's impossible to obtain a smooth transfer without clicks and pauses using anything wider than a 192/256 kbps mp3 stream (using WiFi/Eth). I simply cannot transfer an intact lossless FLAC stream or a high-bitrate mp3. What is interesting is that while streaming an untranscoded mp3 of  ~128 kbps I get a broken stream, when I set the server to transcode it to 192 kbps, the stream passes flawlessly. Is the uPnP protocol limited to some percentage of the bandwidth or is it the plugin's fault?

2) When I try to take control over the music host fb2k instance using fb2k on the second computer the only thing I can do is to stop its playing, nothing else works. Shouldn't the interaction between two identical programs be the one with less problems?

I am using the latest version of both foobar and the uPnP plugin.

Thanks in advance for help

foo_upnp

Reply #744
I seem to have a problem that I can't figure out.  I have searched this forum and its just not making sense.
Its mostly the use of this component.
On my 360, it can't ever seem to find the foobar server.  I've tried even disabling Windows Media Player's server but it still has yet to find foobars.
When I tried to see if my laptop on a different connection can find it, it seems it refuses to connect to my computer.
Even trying on an external connection, I can't seem to make it connect.

I did try port forwarding as well to see if that would help, but nothing seems to be connecting and it kind of bothers me since even checking around the forums, people don't seem to have this issue as much or its just something small that was forgotten to be done.

Any assistance on this would be highly appreciative.  Thanks in advance.

foo_upnp

Reply #745
Hi, I've just registered at HA to ask for help with several problems that were raised before but nobody seems to complain about them these days.
1) I am trying to stream music between the fb2k instances on two computers (Vista and XP) networked using Ethernet or WiFi. The network works fine, with real-time speeds (while copying shared files) of >10 MB/s (Eth) and approx. 1 MB/s (WiFi, this is slow, I know, a poor Netgear access point may be the reason).
The problem is that it's impossible to obtain a smooth transfer without clicks and pauses using anything wider than a 192/256 kbps mp3 stream (using WiFi/Eth). I simply cannot transfer an intact lossless FLAC stream or a high-bitrate mp3. What is interesting is that while streaming an untranscoded mp3 of  ~128 kbps I get a broken stream, when I set the server to transcode it to 192 kbps, the stream passes flawlessly. Is the uPnP protocol limited to some percentage of the bandwidth or is it the plugin's fault?

2) When I try to take control over the music host fb2k instance using fb2k on the second computer the only thing I can do is to stop its playing, nothing else works. Shouldn't the interaction between two identical programs be the one with less problems?

I am using the latest version of both foobar and the uPnP plugin.

Thanks in advance for help


Hmmm. I don't seen to have this problem. I am able to stream flacs decoded to wavs to a Roku device at 10 Mb/s without any problem at all from a win7 system running in a virtual box VM under Linux. I'm also able to upnp stream from fb2k to wmp on the same system without any hiccups at all. No clicks, no pauses, no problems.

foo_upnp

Reply #746
An update: I've also tried playing FLAC files from the host using standard Windows file sharing. No problem at all. So there is a problem with the uPnP connection between two foobar2000 instances. Can anyone verify it under similar conditions?

foo_upnp

Reply #747
An update: I've also tried playing FLAC files from the host using standard Windows file sharing. No problem at all. So there is a problem with the uPnP connection between two foobar2000 instances. Can anyone verify it under similar conditions?


I could reproduce the problem at home, using a wifi connection. Some audio drops with FLAC, frequent drops with PCM streaming, no problem with mp3.
So there's definitely an issue with the plugin, network and bandwidth related, streaming to fb2000 as the client . There's no problem using 2 fb instances on the same PC (my usual test case).
I also have no problem with a wired PS3 and my iTouch, so I'll have to investigate more.

foo_upnp

Reply #748
For devices that are externally controllable (ie that appear in the UPnP Controller - this is the case of the Roku), you can trigger this from foobar2000 itself instead to have to do it from the device's UI: provided that you have the UPnP Controller in your layout and a renderer selected, in foobar main menu just select Playback->UPnP Controller->Play foobar2000 Playback Stream Capture


Hi bubbleguuum,

Is there any prerequisite to activate this option? I have foobar 1.0.2.1 and todays UPNP version, but I don`t see this option with my philips WAC7500. I have the playback stop after each song bug on it, and I would be happy to try this option.

foo_upnp

Reply #749
For devices that are externally controllable (ie that appear in the UPnP Controller - this is the case of the Roku), you can trigger this from foobar2000 itself instead to have to do it from the device's UI: provided that you have the UPnP Controller in your layout and a renderer selected, in foobar main menu just select Playback->UPnP Controller->Play foobar2000 Playback Stream Capture


Hi bubbleguuum,

Is there any prerequisite to activate this option? I have foobar 1.0.2.1 and todays UPNP version, but I don`t see this option with my philips WAC7500. I have the playback stop after each song bug on it, and I would be happy to try this option.


If your WAC7500 is listed and selected  in the UPnP controller (which must be running of course), you'll find the command in foobar's Playback menu as described above.
It could be interesting if you generated a log (INFO level) showing the song advance bug (did you trigger playback from the WAC7500 itself or the UPnp Controller?).