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 1636872 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_upnp

Reply #575
Bubbleguuum.  Thank you for the plugin!  Thanks especially for adding folder view support.  That is working great so far.

One side note and it's probably not the plugin but the PS3.  I read all of the posts and found a few referring to an audio cutting out issue every 10 seconds or so when playing through the PS3.  However, I didn't see any conclusion to this.  I am using the PS3 with wifi playing either flac or mp3 does the same thing.  Maybe it's wifi just sucks.  I don't know whether anyone else has tried it.  If I play flac through upnp from a control point through wifi to my mini-itx PC. it works perfectly.  I am using teh default device profile for the PS3.

Thank you,

You saved me a lot of work as I was in the middle of writing a rendere plugin for Foobar2000 and gave it up as your's came out.

Darren

foo_upnp

Reply #576
Hi!

I have noticed that [foo_upnp] is not scanning the library "recursively enough". I mean, it should go deeper in the directory path when scanning, even when the 1st subdirectories doesn't contain playable files.

Example: I have my music burnt on DVD discs, in the following directory hierarchy:
D:\41 - Vangelis - Spiral (1977)\Vangelis - Spiral (1977) [FLAC]
D:\42 - Vangelis - Albedo 0.39 (1975)\Vangelis - Albedo 0.39 (1975) [FLAC]
D:\43 - Weather Report - Live In Tokyo (1972)\Weather Report - Live in Tokyo (1972) [FLAC]

"D:\" is the optical drive.
Now if I select the D:\ to the Media Library, it won't be scanning the files, because the files are in the 2nd level in the subdirectory. My 1st level subdirecorties ("41 - Vangelis - Spiral (1977)" don't contain playable files, foobar should go one more level deeper, to go in "Vangelis - Spiral (1977) [FLAC]".

If I want to play the content of "Vangelis - Spiral (1977) [FLAC]" using the UPNP plugin with a network player, I need to select "D:\41 - Vangelis - Spiral (1977)" in the Media Library.
But that's not good, I want to select only "D:\" so I'll see my other albums as well, not only one album!

Is there a setting which controls how many levels the Media Library is going down when scanning the library?

(Using Foobar 1.0 with UPNP 0.99.19.1, Windows XP SP3.)
Thanks!

merged from this thread: http://www.hydrogenaudio.org/forums/index....showtopic=78144

foo_upnp

Reply #577
@Wadsbrau: check that your PS3 is setup to use 48Khz, this is important. Also you may want to change your wifi channel id.

New version up!  (first post to download)

0.99.20

- server: fix (regression): when transcoding to mp3, there was up to 1min of silence between tracks (not related to the Philips NP2x000 2min issue between tracks, still unsolved)
- server: fix: streaming audio CD would get drop out of audio if ripping security (in Drive Settings) was not set to disabled. Now decode audio without using ripping settings.
- server: fix: seeking audio CD is now instantaneous
- controller: fix: when a track was paused and either using Next/Prev button or double clicking in Controller Playlist, current track was unpaused instead of doing the relevant action (play the new track).
- controller: new: Shuffle button (only implemented for Linn DS Playlist source for now).
- controller: new: controller accept dragged tracks, and dragged  files from Explorer. Standard drag plays items immediately, shift-drag adds items to the Playback Queue playlist.
- controller: fix: Linn DS Playlist Source would not get listed if the Playlist Source had been renamed in Konfig
- controller: fix: Linn DS Playlist Source: sometimes playing track time was not updated anymore
- controller: chg: selecting a renderer with playback capability brings the "UPnP Controller Playback Queue" Playlist to front
- controller: added controller commands in Playback main menu, in UPnP Controller submenu. Controller commands (play, pause, ...) can be assigned to keyboard shortcuts, including seek back/ahead and volume up/down.
- browser: fix: rare crash

foo_upnp

Reply #578
Thanks for this. =)

Is it somehow possible to let a WMP user connect via internet without vpn?

foo_upnp

Reply #579
Thanks for this. =)

Is it somehow possible to let a WMP user connect via internet without vpn?


Not possible . UPnP was designed for LAN use, and Internet access is a quick hack only accessible from fb2k or PlugPlayer...

foo_upnp

Reply #580
Hi!

I have noticed that [foo_upnp] is not scanning the library "recursively enough". I mean, it should go deeper in the directory path when scanning, even when the 1st subdirectories doesn't contain playable files.


There's indeed the bug you describe when a directory of the ML is the root of a drive such as d:\. This will be fixed in the next version, thanks for reporting.

foo_upnp

Reply #581
Hi,
first of all thanks for the great plugin, I like it a lot :)
However, would it be possible to make the IP address or hostname the UPnP server uses for its media content URLs configurable? I intend to run it on my home server which has multiple network interfaces, and not all of them are accessible to my LAN computers.

For example, the media content URL as generated by the UPnP server might be something like http://192.168.2.3:56923/content/..., but since I use different network addressing for my LAN (e.g. 10.0.0.0/24), it is not accessible from my regular LAN computers.

Thanks,
pdf.

foo_upnp

Reply #582
There's indeed the bug you describe when a directory of the ML is the root of a drive such as d:\. This will be fixed in the next version, thanks for reporting.

Thanks a lot for your work indeed! Nice work! :respect:

foo_upnp

Reply #583
About the problem streaming to PS3:

I got the same problem, with the music cutting (buffering???) every 5-10 seconds. I have tried both 44.1Khz and 48Khz, and none of them seems to do the trick, although 48Khz makes to music play a little longer before cutting.
I'm 100% sure that's it's not a problem with my wificonnection, since i stream HD-movies with 5.1 surround without any problems, using PS3 Media Server. The strange thing is that streaming music alone, through PS3 Media Server, makes the same problem.

Is it possible that foo_upnp does not use the right profile when connected to the PS3, and therefore does not work optimal?

BTW i use the latest beta.


foo_upnp

Reply #585
@rosted: When I mean set the PS3 to 48Khz, it is a setting on the PS3 itself not the plugin: see http://manuals.playstation.net/document/en...tfrequency.html

When the PS3 is not set to 48Khz, it is known to possible cause drop out of audio every few seconds.


sorry i didn't make myself clear. I have set the PS3 to 48Khz, and the problem still occurs (though it's better than when set to 44.1)

foo_upnp

Reply #586
Hi

since this is my first post here, let me start with a praise for the plug-in. It is a great work and I appreciate it a lot.
I use foobar with the Upnp plug-in to control my HTPC connected to a hi-fi. The controller is a Ipod touch with Plug Player
There are some glitches in the renderer (i assume). Plug Player stops playing the list after some songs. The status on Plug-player is "play" and the status on foobar is "stop" when that happens. The event is not random, it happens always after some songs in the play list.  The same does not happen when I use the Windows 7 WMP Renderer. I use in both cases foobar as a server. WMP is not really a good choice, since it has no option for a bit-perfect replay and I have a lot of 96kHz material.

Occasionally the option "stop after next track" gets checked in foobar somehow, it took me a while to figure that out. I can not find a pattern when is that happening.

Let me know if I can help locating the fault, providing some logs.

foo_upnp

Reply #587
Hi

I am using only the UPNP-Browser (0.99.20) to play my musik from a qnap NAS where a Twonkymedia server ist running.
It is realy a great plugin, thank you very much for this.

For my usage I am missing only two more cosmetic issues or I can't find the place to configure this.

1.) I would like to change the colors of the background and the font of the UPNP-Browser.
Is this possible?

2.) If I close and restart foobar2000 the UPNP-Browser forgot his last treeview status. I mean the last tree item, the last song which was played before foobar2000 was closed.
If I restart foobar the UPNP-Browser is starting again with the root node and I have to go through my complete media tree.
This is a little bit annoying.
Is it possible to change or configure this behaviour?

foo_upnp

Reply #588
@Wadsbrau: check that your PS3 is setup to use 48Khz, this is important. Also you may want to change your wifi channel id.


I did this and both of the things you mentioned, together, did work.  Thank you.  I do have one question if you don't mind.  Is it necessary to upsample the audio (my native Flac 44.1khz)?  Generally with my hifi system, I try to keep the data stream bit-perfect without upsampling.  Maybe the PS3 doesnt work that way.

Thanks again

Darren

foo_upnp

Reply #589
Hi
I use foobar with the Upnp plug-in to control my HTPC connected to a hi-fi. The controller is a Ipod touch with Plug Player
There are some glitches in the renderer (i assume). Plug Player stops playing the list after some songs.

I'll try to reproduce it with my itouch. I assume you're using PP 2.5.0 ?


1.) I would like to change the colors of the background and the font of the UPNP-Browser.
Is this possible?
2.) If I close and restart foobar2000 the UPNP-Browser forgot his last treeview status. I mean the last tree item, the last song which was played before foobar2000 was closed.
If I restart foobar the UPNP-Browser is starting again with the root node and I have to go through my complete media tree.

1. The DUI version uses DUI color and fonts settings. The CUI Panel version do not use CUI settings (not implemented). Which version do you use ?
2. Your last UPnP browsed items should be saved in the playlist they were sent and should be playable. The state of the tree is not restored and this is not something I want to add. The Album List component doesn't restore it either...

I did this and both of the things you mentioned, together, did work.  Thank you.  I do have one question if you don't mind.  Is it necessary to upsample the audio (my native Flac 44.1khz)?  Generally with my hifi system, I try to keep the data stream bit-perfect without upsampling.  Maybe the PS3 doesnt work that way.

It's a bit...complicated.  The foo_upnp PS3 profile specify that streamed audio should be 44.1 or 48Khz (because of PS3 limitations), so any file not 44.1 or 48Khz will be resampled by the plugin to the nearest samplerate. Now, your PS3 is configured to output 48Khz so I believe it will resample 44.1 content to 48Khz (wild guess). You could modify the foo_upnp PS3 profile to only allow 48Khz: in that case the plugin will always do the resampling. The PS3 is not the best device to play bit-perfect: it is artificially limited to 44.1 and 48Khz for upnp served content while it has much higher audio specs...

foo_upnp

Reply #590
I did this and both of the things you mentioned, together, did work.  Thank you.  I do have one question if you don't mind.  Is it necessary to upsample the audio (my native Flac 44.1khz)?  Generally with my hifi system, I try to keep the data stream bit-perfect without upsampling.  Maybe the PS3 doesnt work that way.

It's a bit...complicated.  The foo_upnp PS3 profile specify that streamed audio should be 44.1 or 48Khz (because of PS3 limitations), so any file not 44.1 or 48Khz will be resampled by the plugin to the nearest samplerate. Now, your PS3 is configured to output 48Khz so I believe it will resample 44.1 content to 48Khz (wild guess). You could modify the foo_upnp PS3 profile to only allow 48Khz: in that case the plugin will always do the resampling. The PS3 is not the best device to play bit-perfect: it is artificially limited to 44.1 and 48Khz for upnp served content while it has much higher audio specs...


What settings in the profile would I set if I don't want any upsampling?  So I can set the PS3 to 44.1 and have it work?  LPCM or WAV?

Thanks

Darren

foo_upnp

Reply #591

Hi
I use foobar with the Upnp plug-in to control my HTPC connected to a hi-fi. The controller is a Ipod touch with Plug Player
There are some glitches in the renderer (i assume). Plug Player stops playing the list after some songs.

I'll try to reproduce it with my itouch. I assume you're using PP 2.5.0 ?



Yes, I use the 1.0 version of foobar and also PP 2.50. I have noticed that there is an announcement on the PP forum that "PP 3.0 is coming and Beta testers are needed" however I'm not one of them. I have recently bought the itouch so I have no experience with previous version(s) of the PP. foo_upnp 99.20 and 99.19.1 behave the same in regards to this error.

foo_upnp

Reply #592
bubbleguuum, thanks for your quick response.

Quote
1. The DUI version uses DUI color and fonts settings. The CUI Panel version do not use CUI settings (not implemented). Which version do you use ?


I use Columns UI (I like the feature "Display artwork in groups"), perhaps it is implemented sometime.

Quote
The state of the tree is not restored and this is not something I want to add. The Album List component doesn't restore it either...


Personally I feel this feature is much more comfortable.
The Album List component doesn't restore it either. That is true, but the Album List does not have so many nodes like the UPNP Browser.
On the average I have to expand 5 nodes, before I can play a song.


foo_upnp

Reply #593
Now i have tried both 44.1 and 48. And tried changing to a static channel on my router. It still do not work without lagging which is odd since i can stream 720p surroundsound movies without any problems..

foo_upnp

Reply #594
@rosted

I seem to have a similar problem here. I can stream HD videos with PS3MediaServer to my PS3 via WLAN without any stuttering or drop outs. But with foo_upnp streaming LPCM there are like 10 seconds music, then 3 seconds pause, then it plays again etc. Changing the sample rate in foo_upnp config and/or PS3 output settings doesn't make any difference. Streaming to WMP on my laptop works fine though. So bandwidth clearly can't be the problem here - but then what is it? 

 

foo_upnp

Reply #595
Hi,

It seems .m3u files refuse to play on xbox 360.

In fact it causes foobar2000 to lock up as well.

.pls files play fine thankfully, but real pain to convert by hand.

Anyone got an app to do it for me?

Would be nice if .m3u support could be fixed? That is convert on the fly to .pls style.

Here is what I see in console, when I enable debug, does not really help:

Code: [Select]
foo_upnp: 21.882: NPT_Win32Thread::Start(482): FINER: creating thread
foo_upnp: 21.883: PLT_HttpListenTask<class PLT_HttpServerListener>::DoRun(155): FINE: current http task count = 2
foo_upnp: 21.883: NPT_Win32Thread::EntryPoint(449): FINER: thread in =======================
foo_upnp: 21.892: NPT_HttpRequest::Parse(592): FINEST: http request: POST /ContentDirectory/0b5673b7-2498-d1f1-e465-a13b7eb85fd9/control.xml HTTP/1.1
foo_upnp: 21.892: NPT_HttpHeaders::Parse(185): FINEST: header - User-Agent: Xbox/2.0.8955.0 UPnP/1.0 Xbox/2.0.8955.0
foo_upnp: 21.892: NPT_HttpHeaders::Parse(185): FINEST: header - Connection: Keep-alive
foo_upnp: 21.892: NPT_HttpHeaders::Parse(185): FINEST: header - Host: 192.168.1.105
foo_upnp: 21.892: NPT_HttpHeaders::Parse(185): FINEST: header - SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Search"
foo_upnp: 21.892: NPT_HttpHeaders::Parse(185): FINEST: header - CONTENT-TYPE: text/xml; charset="utf-8"
foo_upnp: 21.892: NPT_HttpHeaders::Parse(215): FINEST: header Content-Length: 675
foo_upnp: 21.892: PLT_HttpServer::ProcessHttpRequest(142): FINE: Received POST Request from 192.168.1.122 for /ContentDirectory/0b5673b7-2498-d1f1-e465-a13b7eb85fd9/control.xml
foo_upnp: 21.893: PLT_HttpHelper::ToLog(402): FINER:
POST /ContentDirectory/0b5673b7-2498-d1f1-e465-a13b7eb85fd9/control.xml HTTP/1.1
User-Agent: Xbox/2.0.8955.0 UPnP/1.0 Xbox/2.0.8955.0
Connection: Keep-alive
Host: 192.168.1.105
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Search"
CONTENT-TYPE: text/xml; charset="utf-8"
Content-Length: 675
foo_upnp: 21.893: FbMediaServer::ProcessHttpRequest(250): INFO: received LAN request: http://192.168.1.105/ContentDirectory/0b5673b7-2498-d1f1-e465-a13b7eb85fd9/control.xml (User-Agent: Xbox/2.0.8955.0 UPnP/1.0 Xbox/2.0.8955.0)
foo_upnp: 21.893: PLT_DeviceHost::ProcessHttpRequest(376): FINER: PLT_DeviceHost Received Request:
foo_upnp: 21.893: PLT_HttpHelper::ToLog(402): FINER:
POST /ContentDirectory/0b5673b7-2498-d1f1-e465-a13b7eb85fd9/control.xml HTTP/1.1
User-Agent: Xbox/2.0.8955.0 UPnP/1.0 Xbox/2.0.8955.0
Connection: Keep-alive
Host: 192.168.1.105
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Search"
CONTENT-TYPE: text/xml; charset="utf-8"
Content-Length: 675
foo_upnp: 21.893: PLT_DeviceHost::ProcessHttpPostRequest(555): FINE: Received Search action from 192.168.1.122
foo_upnp: 21.893: FbMediaServer::OnAction(196): INFO: received action 'Search', args = { ContainerID=0/2/12, SearchCriteria=(upnp:class derivedfrom "object.item.audioItem"), Filter=dc:title,res,res@protection,res@duration,res@sampleFrequency,res@bitsPerSample,res@bitrate,res@nrAu
dioChannels,upnp:artist,upnp:artist@role,upnp:genre,upnp:album, StartingIndex=0, RequestedCount=1000, SortCriteria= }
foo_upnp: 21.893: PLT_MediaServer::OnSearch(462): INFO: Received Search from 192.168.1.122 for id = 0/2/12 with search = (upnp:class derivedfrom "object.item.audioItem"), start = 0, count = 1000
foo_upnp: 21.893: upnp_server_conf::get_profile(548): INFO: using profile 'Xbox 360' (User-Agent:Xbox/2.0.8955.0 UPnP/1.0 Xbox/2.0.8955.0)

If you save this as a .pls it will play fine:

Code: [Select]
[playlist]
numberofentries=20
File1=http://scfire-ntc-aa05.stream.aol.com:80/stream/1040
Title1=.977 The 80s Channel
Length1=-1
File2=http://scfire-mtc-aa04.stream.aol.com:80/stream/1074
Title2=.977 The Hitz Channel
Length2=-1
File3=http://novastreamradio.org:9100
Title3=NovaStream
Length3=-1
File4=http://sc11.1.fm:8658
Title4=1.FM - 70s
Length4=-1
File5=http://sc8.1.fm:6950
Title5=1.FM - Back To The 80s
Length5=-1
File6=http://sc12.1.fm:7036
Title6=1.FM - 90s
Length6=-1
File7=http://64.62.252.130:8070
Title7=1.FM - Channel X
Length7=-1
File8=http://sc17.1.fm:7802
Title8=1.FM - Country Hits
Length8=-1
File9=http://sc12.1.fm:7048
Title9=1.FM - Country
Length9=-1
File10=http://sc12.1.fm:7058
Title10=1.FM - High Voltage
Length10=-1
File11=http://sc8.1.fm:7016
Title11=1.FM - Top 40
Length11=-1
File12=http://sc12.1.fm:7024
Title12=1.FM - X
Length12=-1
File13=http://80.86.106.35:9000/
Title13=Magic FM
Length13=-1
File14=http://scfire-ntc-aa03.stream.aol.com:80/stream/1076
Title14=SKY.FM - 70s Hits
Length14=-1
File15=http://scfire-dtc-aa02.stream.aol.com:80/stream/1013
Title15=SKY.FM - Best of the 80s
Length15=-1
File16=http://scfire-mtc-aa03.stream.aol.com:80/stream/1014
Title16=SKY.FM - Top Hits Music
Length16=-1
File17=http://88.191.69.42:8002/
Title17=SKY.FM - Alternative Rock
Length17=-1
File18=http://94.232.114.240:6734
Title18=SKY.FM - Classic Rock
Length18=-1
File19=http://scfire-ntc-aa03.stream.aol.com:80/stream/1019
Title19=SKY.FM - Hit Country
Length19=-1
File20=http://72.26.204.18:6606
Title20=SKY.FM - Smooth Jazz
Length20=-1
Version=2

So if .m3u files could be converted to the .pls style above on the fly that would be sweet.

It's Extended PLS (PLSv2) by the way. See: http://forums.winamp.com/showthread.php?threadid=65772

Enjoy the .pls, took me a good 45 minutes to figure it all out.

The first one does not display correctly on xbox 360 dashboard, but good enough and plays fine.

Thanks,

Will
God Bless U.S.A


foo_upnp

Reply #597
@rosted, @xapz and everyone having PS3 problems:

today I tried streaming from my PS3 and had problems described: very frequent drop out of audio. After a PS3 reboot
I would only get plenty of "DLNA Protocol Error 2104", giving "No items found" when browsing. After this initial WTF, it turned
out that my Wireless Linksys router was slowing down wifi traffic to a crawl. Since only my PS3 use wifi, I didn't notice.
Everything went fine after a router reboot, no drop out of audio of any sort.
If you still experience problems, you may want to configure your wifi router to use "G Only" (and not B/G Mixed mode). Also lesson learned from this, is that DLNA error 2104
probably occurs when for some reason, bandwidth is ultra low. Ahhhh Sony and their f.... undocumented error codes!

foo_upnp

Reply #598
Quote
1. The DUI version uses DUI color and fonts settings. The CUI Panel version do not use CUI settings (not implemented). Which version do you use ?

I use Columns UI (I like the feature "Display artwork in groups"), perhaps it is implemented sometime.


Added to the todo list.

foo_upnp

Reply #599
Hi,

It seems .m3u files refuse to play on xbox 360.

In fact it causes foobar2000 to lock up as well.


Can you describe exactly how you use .m3u with the plugin and the sequence that cause lock up ?