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

foo_upnp

Reply #675
I've been able to accomplish my goal by putting all of my music into the "UPnP Controller Playback Queue", setting it to shuffle, and playing the "Playback Stream Capture" on the PS3. The only issue is the PS3 doesn't reflect the artist/title/album of the song currently playing. I don't know if this is a limitation of the PS3, UPnP, or the plugin.


It is the limitation due to the nature of the Playback Stream Capture: the PS3 is playing a continuous PCM stream. from it's point of view it is a single file. That's why metadata cannot be updated.

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...


Thanks for that. I have not been able to find settings that will enable my WD HD TV Live to play both MP3 and FLAC in native form. In fact, I get one or the other to play, just skips over whichever is not going to play. The tip that ReplayGain enabled affects the stream might apply here.


In the default profile (provided you do not have created a custom profile for your WD Live), in the PCM decode section, you should set it to "always" and in the list of extension exceptions, have mp3 and flac listed (so they do not get decoded to PCM). By default, flac is not in the list of exceptions for this profile because most renderers are not able to play flac (and thus it must be decoded to PCM).


foo_upnp

Reply #676
I am getting a NPT_CHECK failed error that I believe is preventing the uPnP server from starting. Log below:

Code: [Select]
0.0: foo_upnp::on_init(114): INFO: foo_upnp: version 0.99.21
1.984: path_registry::populate(57): INFO: created 32800 path registry entries in 1.953s
1.984: NPT_File::Load(240): INFO: Opening C:\Documents and Settings\===='s\Application Data\foobar2000\foo_upnp_ml_tree.xml
1.984: NPT_File::Load(250): INFO: Opened C:\Documents and Settings\===='s\Application Data\foobar2000\foo_upnp_ml_tree.xml
1.984: standard_media_tree_root_node_t::load_ml_filters(468): INFO: loaded Media Library filters from C:\Documents and Settings\===='s\Application Data\foobar2000\foo_upnp_ml_tree.xml
2.547: NPT_Win32Thread::Start(482): FINER: creating thread
2.547: NPT_Win32Thread::Start(482): FINER: creating thread
2.547: PLT_UPnP::Start(211): INFO: Starting UPnP...
2.547: NPT_Win32Thread::EntryPoint(449): FINER: thread in =======================
2.547: PLT_UPnP::Start(228): SEVERE: NPT_CHECK failed, result=-20409 (NPT_ERROR_BIND_FAILED) [(socket->Bind(NPT_SocketAddress(NPT_IpAddress::Any, m_Port)))]
2.562: NPT_Win32Thread::EntryPoint(449): FINER: thread in =======================
6.984: LoadBrowseTreeTask::DoRun(83): INFO: loaded 3 nodes in 2.422s
7.515: LoadBrowseTreeTask::DoRun(83): INFO: loaded 3 nodes in 2.937s


foo_upnp

Reply #677
Thanks for that. I have not been able to find settings that will enable my WD HD TV Live to play both MP3 and FLAC in native form. In fact, I get one or the other to play, just skips over whichever is not going to play. The tip that ReplayGain enabled affects the stream might apply here.


In the default profile (provided you do not have created a custom profile for your WD Live), in the PCM decode section, you should set it to "always" and in the list of extension exceptions, have mp3 and flac listed (so they do not get decoded to PCM). By default, flac is not in the list of exceptions for this profile because most renderers are not able to play flac (and thus it must be decoded to PCM).




With those settings, all is working well.

foo_upnp

Reply #678
I am getting a NPT_CHECK failed error that I believe is preventing the uPnP server from starting:


Indeed. It shoudn't fail. Do you have any non standard network configuration (virtual network cards, vpn interfaces, ...) ? What is the output of command ipconfig /all ?

foo_upnp

Reply #679
How to use it? I just tried http://ip:port/ It does not work

I have foobar with this plugin on my HTPC. I want to make 2 functions.

#1 Using my laptop(under the same internal network) to stream the music (on my HTPC) to my laptop and control playback.

#2 Using my iphone/pda/laptop to control the music playback on my HTPC (not stream it to play at my laptop)

I went through the document. It should have those functions. Anyone help me? Thanks

foo_upnp

Reply #680
I am getting a NPT_CHECK failed error that I believe is preventing the uPnP server from starting:


Indeed. It shoudn't fail. Do you have any non standard network configuration (virtual network cards, vpn interfaces, ...) ? What is the output of command ipconfig /all ?


Yes, I have VirtualBox (3.1.6) installed.

Code: [Select]
>ipconfig /all
Windows IP Configuration
        Host Name . . . . . . . . . . . . :
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Broadcast
        IP Routing Enabled. . . . . . . . : Yes
        WINS Proxy Enabled. . . . . . . . : Yes
Ethernet adapter Local Area Connection:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connection
        Physical Address. . . . . . . . . : -----------
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.1.100
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.1.1
        DNS Servers . . . . . . . . . . . : 208.67.222.222
                                            208.67.220.220
Ethernet adapter VirtualBox Host-Only Network:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
        Physical Address. . . . . . . . . : ----------------
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.56.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

foo_upnp

Reply #681
Yes, I have VirtualBox (3.1.6) installed.


Could you try to disable the VirtualBox interface so it doesn't get listed by ipconfig, and tell me if it fixes the problem ?
If it doesn't, I'll send you a test plugin to have more info on the bind error.

foo_upnp

Reply #682
Hello bubbleguuum,

I'm sorry if this has been asked already ...
Recently I purchased a PS3 system and now I really love to use foo_upnp to access my lossless music collection.
So far I have discovered only two issues:

1.

My whole collection is tagged with genre and style tags.
These Tags usually have multiple values.

Genre : Electronic; Rock
Style : Alternative Rock; Industrial

Now I have set a custom SubTree = Style:
<spec type="object.container.genre.musicGenre">%style%</spec>

But for my example this won't create 2 seperate branches.
Instead it is shown like this: Alternative Rock, Industrial ...
resulting in a very long list of styles.

For the genre tag with multiple values everything seems to work fine automatically.

2.

When listening to compilations (%album artist% = Various) my PlayStation 3 doesn't show the actual %artist%
for the track currently playing.

Is there anything I can do?

foo_upnp

Reply #683
Could you try to disable the VirtualBox interface so it doesn't get listed by ipconfig, and tell me if it fixes the problem ?
If it doesn't, I'll send you a test plugin to have more info on the bind error.

I disabled the interface and I even uninstalled Virtualbox altogether but it is still giving me the same error. This is a Windows XP SP3 32b system by the way.

foo_upnp

Reply #684
Hello bubbleguuum,
1.

My whole collection is tagged with genre and style tags.
These Tags usually have multiple values.

Genre : Electronic; Rock
Style : Alternative Rock; Industrial

Now I have set a custom SubTree = Style:
<spec type="object.container.genre.musicGenre">%style%</spec>

But for my example this won't create 2 seperate branches.
Instead it is shown like this: Alternative Rock, Industrial ...
resulting in a very long list of styles.

For the genre tag with multiple values everything seems to work fine automatically.

2.

When listening to compilations (%album artist% = Various) my PlayStation 3 doesn't show the actual %artist%
for the track currently playing.



1. Splitting of genre is handled automatically as you noticed. Next version will handle the %<...>% notation so you'll be able to split by style using %<style>% (see a few post above, this was discussed).

2. The PS3 seems to use Album Artist over Artist when both are present. You can easily add the artist to the track title that get sent to the PS3: In the Server advanced settings conf, set "Format track titles using" to:

Code: [Select]
$if([$meta(album artist)],%artist% - )%title%


This will prepend %artist% to the title only when album artist is defined.

foo_upnp

Reply #685
Hello there

Thanks for developing this plugin.

I'm having difficulty using it with my WDTV live ... one person seems to have it working, but I can't ...  WMP 11 serves up my 44.1k 16 bit .wav file fine, and WDTVLIVE plays it, but using foobar 2000 upnp .21 (I have foobar_record installed otherwise standard foobar ...) the files in a playlist are served up (i.e. seen by WDTVLIVE) with 0.00.00 length, and thus are unplayable ...

Also, using the control point in foobar 2000 has not been a success for me ...It sees the WDTV live OK, but nothing will play ... it is also a bit fritzy ... several goes a testablishing a connection, and then nothing playing off the controller list ... Hmm ... evidently, win7 playto works with the wdtv live according to forums over there ...

I can tell you what settings I have used, if you want, and I am happy to help out in any way possible .... WDTV live does have play to functionality, and it is a great player, supporting flac natively, accoridnig to the specs ... I have a few classical flacs and a bit of jazz, but I haven't tried out the wdtv yet .... I tell you what though, the dacs on this thing are great ...clear, lovely pre-amps .. I don't bother with the digital out ... I digress...

Thanks again Mr Bubbleguum. 


foo_upnp

Reply #686
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...


I've uploaded a log with everything turned on to Google Docs (requires google account). If you can't access that, let me know and I'll find someplace else to store it.

Approximate order of operations:
* start foobar
* approx 111 start PS3
* approx 251 browse to song
* approx 337 start song
* approx 550 song stops playing

The only hint I have is that the song is 3:40 and it only played for 3:33 before stopping.
Pressing 'next' (R1 button) didn't have any effect, I have to stop playback and restart. I didn't see anything appear in the console window when I pressed 'next'. Perhaps this is a PS3 issue.

The mp3 in question is a valid mp3 according to mp3val. Not sure if that's worth anything.

Thanks for your help.

-Gak Toid

foo_upnp

Reply #687
Hello,

a great plugin, but currently I have the problem that if my Twonky Server is down foobar hangs while exiting of foobar.
I have to wait a very long time or I have to kill the foobar process with taskmanager.

If I delete the foo_upnp.dll than exit foobar works fast without any problems.

I use Win 7 Pro and the newest versions of foobar and foo_upnp.dll.

Any ideas???

foo_upnp

Reply #688
New version with quite a lot of changes. Let me know if you find any regressions.
See first post for download link.

Code: [Select]
0.99.23
---------

This version reset the configuration file to defaults

- if the XML configuration file cannot be loaded on launch, display an error in a popup
- implemented proper abortability in most worker threads. Should address a few potential but rare deadlocks (mostly on stopping the server), and possible long time to stop some threads
- reorganized preferences pages
- server: fix: rare possible crash if exiting foobar2000 while the server was indexing the Media Library
- server: fix: app freeze (deadlock) if restart server while Playback Stream Capture is playing
- server: fix: handle %<...>% notation in foo_upnp_media_tree.xml. Useful for %<genre>% (was hardcoded previously), %<style>%, ...
- server: chg: removed hardcoded limitation to 48Khz max for LPCM. Now higer samplerates are allowed but this is not strictly compliant with the DLNA LPCM profile.
- server: new: when serving a file, always display info in the console (samplerate, bitdepth, codec, etc...). Useful for debugging profiles.
- server: chg: removed dithering option in streaming profiles. Dithering is always off, like foobar2000 default.
- server: new: configurable replaygain settings and DSP chain per streaming profile. A file transcoded as MP3 is applied DSP / RG (if active). Otherwise file is streamed as PCM with DSP / RG applied. DSP / RG changes are applied immediately to the playing stream (if streamed file is already playing as PCM or MP3 transcode). Resampler DSPs and DSPs modifying channel count should not be used, as the plugin already apply them as needed.
- server: new: a streaming profile can now play DTS encapsulated in a container (FLAC, WAV) using foo_input_dts as a DSP, and HDCD using foo_dsp_hdcd (played as 24 bit if max bitdepth allows).
- server: new: configurable Playback Stream Capture codec/samplerate/bitdeph per streaming profile. PSC can now also be streamed as mp3.
- server: fix: Playback Stream Capture was not working with some renderers (at least the Oppo BDP-83)
- server: new: ability to enable or disable "Playlist",  "Media Library", "Playback Stream Capture"  nodes
- server: fix: different streaming profiles were used at browse time and streaming time when using a Control Point (for playing audio to a different device than the CP): at browse time the CP profile was used while when streaming the Renderer profile was used. Now the CP profile is always used.
- server: fix: Linn DS can now play mp3 transcodes generated by the server
- server: new: the Default streaming profile can now easily be used for all the content streamed by the server.
- server: fix: WMP12 "Play To" would give an error when trying  to play an item from foo_upnp Server to any renderer (used to work, regression from an unknown version).
- controller: chg: Linn DS Playlist and Radio sources: Clicking the PL button forces a refresh of the playlist content.
- controller: fix: Linn DS Radio Source: now display radio stream metadata in UPnP Controller status bar for non-preset radio streams
- controller: new: Linn DS: added standby button
- controller: chg: display track technical info in status bar (codec/bitrate/samplerate).
- browser: chg: View->Add remote foobar2000 server do not require a password anymore to allow connecting to a remote internet Jamcast server (requires Jamacast 1.1 or greater)
- renderer: fix: list audio/L16 (aka LPCM) as supported format (needed for WMP12 to accept to push it)

foo_upnp

Reply #689
Hi,
thanks for adding the %<...>% notation. However, the values seem to be split by spaces as well, so that items tagged with "Modern Classical", for example, end up listed seperately as "Modern" and "Classical".

foo_upnp

Reply #690
Hi,
thanks for adding the %<...>% notation. However, the values seem to be split by spaces as well, so that items tagged with "Modern Classical", for example, end up listed seperately as "Modern" and "Classical".


thanks for reporting. There will be a small bugfix release soon as I just noticed that when streaming as PCM with any DSP enabled, some renderers will stop after the first track or take a very longtime to continue to next track.

foo_upnp

Reply #691
Thanks for a great plugin!

foo_upnp

Reply #692
Yes, +1 kudos for a great add on!

I have just downloaded and installed it and have been figuring out how to get it to work with my Roku M1000 box and flac library. I am having a problem with the Roku attempting to play a playlist. It can download the content of the playlist properly but it can't play a track or get the song info from a playlist entry. The same tracks play just fine when selecting them through the media library instead of a playlist.

So basically, everything works perfectly for me except playlists. Am I missing a configuration entry somewhere, or has anyone else seen this behavior with a Roku player?

 

foo_upnp

Reply #693
Hey bubbleguuum, I posted a while back saying that when I used this to stream music to my PS3 that it would keep skipping. I thought that my problem was that my laptop was too outdated. Anyway I recently got a new laptop and it's still doing it... With this new laptop, I'm using Win7 x64, fb2k v1.0.2.1 and v0.99.23 of your plugin. I have both my laptop and my PS3 connected to my router via ethernet. Even if I set the playback output to 48 KHz on my PS3 it still stutters a bit.

When I stream music to it using Win7's native media server capabilities, it plays smoothly. I looked at the file information it even displays the files as MP3 (rather than LPCM) and the correct bitrate, but unfortunately it doesn't display the tags since Windows still doesn't support ID3v2.4. I don't know what it is about my setup that's causing it to skip/stutter when I stream stuff to my PS3. Here's a log file that I captured when I tried to play one song:

http://pastebin.com/yDjTURjG

I left it to play the song for about a minute and I set the log level to ALL. I really hope you take the time to look into this. Your plugin is great since I use it to stream my music to another fb2k client over the internet. If in the event that you don't find anything wrong, I guess the only thing I can rule out is my router.

foo_upnp

Reply #694
Bugfix version 0.99.23.1 released (first post to download):

0.99.23.1

- server: fixed %<...>% notation splitting tokens containing space
- server: fixed WAV/LPCM streaming never finishing tracks if DSP chain enabled


I have just downloaded and installed it and have been figuring out how to get it to work with my Roku M1000 box and flac library. I am having a problem with the Roku attempting to play a playlist. It can download the content of the playlist properly but it can't play a track or get the song info from a playlist entry. The same tracks play just fine when selecting them through the media library instead of a playlist.


Not sure what is wrong with Roku and playlists as there's not much difference with the ML. See first post to record a log (INFO level) and send it to me. So if I understand correctly, you can list individual songs of a playlist but can't play them, right ?


Hey bubbleguuum, I posted a while back saying that when I used this to stream music to my PS3 that it would keep skipping. I thought that my problem was that my laptop was too outdated. Anyway I recently got a new laptop and it's still doing it... With this new laptop, I'm using Win7 x64, fb2k v1.0.2.1 and v0.99.23 of your plugin. I have both my laptop and my PS3 connected to my router via ethernet. Even if I set the playback output to 48 KHz on my PS3 it still stutters a bit.

When I stream music to it using Win7's native media server capabilities, it plays smoothly. I looked at the file information it even displays the files as MP3 (rather than LPCM) and the correct bitrate, but unfortunately it doesn't display the tags since Windows still doesn't support ID3v2.4. I don't know what it is about my setup that's causing it to skip/stutter when I stream stuff to my PS3. Here's a log file that I captured when I tried to play one song:

http://pastebin.com/yDjTURjG

I left it to play the song for about a minute and I set the log level to ALL. I really hope you take the time to look into this. Your plugin is great since I use it to stream my music to another fb2k client over the internet. If in the event that you don't find anything wrong, I guess the only thing I can rule out is my router.


From experience it is difficult to troubleshoot PS3 problems especially when wifi is involved. I have no problems with my PS3 using a wired connection. Could you record another log with INFO level, letting the track play for 2-3mins and if possible timing stutter when it happens so I can try to map it to the log ?
The plugin can also stream as mp3 to the PS3 (instead of LPCM): edit the PS3 profile to read "decode always to lpcm except mp3". MP3 is not enabled by default on the PS3 because the PS3 does a few seeks in the mp3 before playing it and it causes 1-3secs delays between files. It is still an interesting test for you to do to compare with WMP streaming as mp3.

foo_upnp

Reply #695
Not sure what is wrong with Roku and playlists as there's not much difference with the ML. See first post to record a log (INFO level) and send it to me. So if I understand correctly, you can list individual songs of a playlist but can't play them, right ?


Yes, that is correct. The playlist comes down to the Roku correctly but when I select any entry and try to show song info I get the error "Failed to load song info" or play it I get the error "Unable to play song". I have logged the playlist browse, the get song info and the play actions. How do I send the debug files to you?


foo_upnp

Reply #697
Yes, that is correct. The playlist comes down to the Roku correctly but when I select any entry and try to show song info I get the error "Failed to load song info" or play it I get the error "Unable to play song". I have logged the playlist browse, the get song info and the play actions. How do I send the debug files to you?

I have a Roku Soundbridge, and I used to have the same problem until version 0.99.23. My library is all mp3.

foo_upnp

Reply #698
I have a Roku Soundbridge, and I used to have the same problem until version 0.99.23. My library is all mp3.


WAHOO! Just downloaded 0.99.23.1 and playlists are now working on my Roku too!! Thanks for the pointer.

Outstanding!

foo_upnp

Reply #699
Ok, now that it is working perfectly I can't help but making a couple of new feature requests. First, is it possible to maintain playlist statistics for tracks played by connected devices? I guess this makes a dependency on the playlist statistics component which may be hard to resolve, but playlist statistics are quite useful, especially in autoplaylists. Next, can the list of connected clients be made available maybe with the timestamp of their connection also?

Once again, thanks for this awesome component.