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

foo_upnp

Reply #1175
The error appears when I try to play a few songs - two of which "Dead in Ditches" and "Circles" are 96kbps/22kHz/2 channels. Wheras the files "Everywhere I GO (Live)" and "Dove and Grenade" are 320kbps/44kHz/2 channels.


There's an error creating a resampler to resample 22050Hz to 44100Hz: "cannot create resampler 22050=>44100".
This shouldn't happen and I cannot reproduce it.
You may want to install the SoX resampler plugin to see if it fixes the problem: http://www.hydrogenaudio.org/forums/index....mp;#entry601510



foo_upnp

Reply #1176
The error appears when I try to play a few songs - two of which "Dead in Ditches" and "Circles" are 96kbps/22kHz/2 channels. Wheras the files "Everywhere I GO (Live)" and "Dove and Grenade" are 320kbps/44kHz/2 channels.




I noticed that in your component list you do not have foo_dsp_std which is part of standard install. Hence the missing dsp resampler.

foo_upnp

Reply #1177
That would explain it. When I installed foobar, I installed it without any additional components. Fresh install with the sampler intact makes it work flawlessly.

Great work. Don't think I'll even change media players again and now I can uninstall Orb. Cheers bubbleguuum.

foo_upnp

Reply #1178
I tried to retrieve my playlist which contains 34347 songs but only 5000 were retrieved. Is there some firewall settings I need to adjust?

Code: [Select]
[12:41:54] foo_upnp: 30.040: FbMediaServer::OnAction(254)/864: INFO: received action 'Browse', args = { ObjectID=0/0/0, BrowseFlag=BrowseDirectChildren, Filter=*, StartingIndex=4900, RequestedCount=50, SortCriteria= }
[12:41:54] foo_upnp: 30.040: PLT_MediaServer::OnBrowse(380)/864: INFO: Received BrowseDirectChildren from 1.2.3.4.5 for id = 0/0/0 with filter = *, start = 4900, count = 50
[12:41:54] foo_upnp: 30.041: upnp_server_conf::get_profile(726)/864: INFO: using default profile (User-Agent:Platinum/0.5.4.0, DLNADOC/1.50 / foobar2000)
[12:41:54] foo_upnp: 30.058: FbMediaServer::OnAction(271)/864: INFO: action 'Browse' response: args = { ObjectID=0/0/0, BrowseFlag=BrowseDirectChildren, Filter=*, StartingIndex=4900, RequestedCount=50, SortCriteria=, NumberReturned=50, TotalMatches=34347, UpdateID=0 }
[12:41:54] foo_upnp: 30.082: FbMediaServer::ProcessHttpRequest(317)/5340: INFO: received WAN request: http://1.2.3.4.5:56923/ContentDirectory/bade1451-dba8-955a-f882-451c97920316/control.xml (User-Agent: Platinum/0.5.4.0, DLNADOC/1.50 / foobar2000)
[12:41:54] foo_upnp: 30.082: FbMediaServer::OnAction(254)/5340: INFO: received action 'Browse', args = { ObjectID=0/0/0, BrowseFlag=BrowseDirectChildren, Filter=*, StartingIndex=4950, RequestedCount=50, SortCriteria= }
[12:41:54] foo_upnp: 30.082: PLT_MediaServer::OnBrowse(380)/5340: INFO: Received BrowseDirectChildren from 1.2.3.4.5 for id = 0/0/0 with filter = *, start = 4950, count = 50
[12:41:54] foo_upnp: 30.083: upnp_server_conf::get_profile(726)/5340: INFO: using default profile (User-Agent:Platinum/0.5.4.0, DLNADOC/1.50 / foobar2000)
[12:41:54] foo_upnp: 30.098: FbMediaServer::OnAction(271)/5340: INFO: action 'Browse' response: args = { ObjectID=0/0/0, BrowseFlag=BrowseDirectChildren, Filter=*, StartingIndex=4950, RequestedCount=50, SortCriteria=, NumberReturned=50, TotalMatches=34347, UpdateID=0 }
[12:41:55] foo_upnp: 31.118: PLT_HttpTcpConnector::Connect(86)/3404: FATAL: NPT_CHECK failed, result=-20402 (NPT_ERROR_CONNECTION_REFUSED) [(m_Socket->Connect(socket_address, connection_timeout))]


EDIT: Additional details:
Windows 7 Ultimate x64
UDP Timeout - 600s
TCP Timeout - 86400s
Windows firewall OFF
Not using foobar's Media Library feature - just playlists
Streaming profile left on default
Playlists contains many different filetypes (mostly MP3s)
LAME not installed.

2nd EDIT:
I tried on the playlist at work which has 5810 songs and it was able to eventually load. I should also mention that I'm only trying to connect to the PC that I'm currently on for testing and configuring but through my public IP.

foo_upnp

Reply #1179
I tried to retrieve my playlist which contains 34347 songs but only 5000 were retrieved. Is there some firewall settings I need to adjust?


No sure what the problem is, but I suspect the http server may run out of connections.
I don't think it is a good idea to retrieve such a large playlist. Over the internet it is going to take forever especially as content is sent
uncompressed. What is your use case for such a large playlist ?



foo_upnp

Reply #1180
I have two playlist: everything and new. If there's something in the "new" playlist, I listen to that till I've heard everything at least once then I move them all into the "everything" playlist. If nothing is in the "new" playlist, I just listen to the "everything" playlist (on shuffle by albums). I don't maintain any other separate playlists nor use the Media Library within foobar2000. Anything I do or do not feel like listening, I manually skip/jump to but otherwise I just let foobar2000 do its thing.

I tried to access my playlist at home while at work and it wouldn't even begin to retrieve the larger playlist but on a smaller playlist it was able to retrieve it just fine. Retrieving the "home" playlist while at home at least got me a part of the playlist.

Is there anything else I can do to allow me to use a large playlist and still have playback control (next track, random, etc)?

If you are taking feature requests, I'd like something like an alternate mode where if the playback is:
- Default - retrieve one album a time sequentially
- Random - retrieve one random track at a time
- Shuffle (albums) - retrieve one album at a time according to foobar's internal list of tracks
- ...etc

Personally, I just want access to my "home" playlist and have playback control.

Also if it wasn't obvious, this component is already saving me the trouble of transferring content to work periodically. Thanks!

EDIT: Another alternative that I can think of is to build a compressed playlist that can be cached. Perhaps even capability for the remote destination to invoke a manual rebuild of the playlist. I'd imagine neither of my suggestions as being trivial to do though so it may be just wishful thinking on my part.

foo_upnp

Reply #1181
I've noticed that this plugin streams flac when it's in single file per track format. But in all tracks in single file+ cue then it streams it in wav. Why is that?


foo_upnp

Reply #1183
I'm testing a temporary workaround which involves using foo_httpcontrol and "playback stream capture". I have playback control and I have access to the entire playlist. I just need to figure out how to run external commands with foo_run so that it doesn't open a browser so I can control playback with the keyboard. Then I need to figure out how to pass the currently playing track information (artist, title, album, etc) so those will be visible (again so I don't have to go to the browser).

I'm still reading through the threads but any advice for making the playback smoother? Some songs I get occasional pauses which I'm assuming is dependent on the encoding/bitrate/etc? All settings are on default (wav, samplerate=44100, bit depth=16).

foo_upnp

Reply #1184
hey,

first of all, i love this component. thank you for the time and energy you've invested in this.

however, i'm experiencing a weird behaviour (of which i am not even sure that it is your component's fault). i've used some  alphabetical letters as keyboard shortcuts without any modifiers (ctrl/alt/shift). i've implemented the upnp_browser as a panel in the DUI. when i type something in the searchbox, the keys invoke the behaviour specified in the keyboard shortcuts list in the foobar preferences instead of inserting the respective letter in the search box. when i do the same in the search box of foo_facets for example, the letters are inserted and the special behaviour is not invoked (that's how it should be). do you know what the problem could be?

thanks in advance!

foo_upnp

Reply #1185
I am successfully streaming/transcoding 16-bit/44.1 kHz FLAC's (stereo and 5.1 ch) to an OPPO-93 using Foobar+UPnP plugin.
Does the UPnP plugin officially support 24-bit/96 kHz FLAC transcoding to LPCM? I am only hearing white noise (static) when playing these. The same 96/24 files play fine on OPPO-93 when transcoded using PS3mediaserver installed on the same computer. Unfortunately, PS3mediaserver has its own drawbacks that prevent me from using it. I configured the Foobar UPnP settings as described in this post: http://www.avsforum.com/avs-vb/showpost.ph...;postcount=1613

Is there a workaround for streaming/transcoding 24-bit/96kHz FLAC files using Foobar?

foo_upnp

Reply #1186
Hi Bubbleguum,

I was just doings some regression tests with foo_upnp with a new version of Whitebear that I am working on. And unfortunately I found that foo now no longer plays PCM files served by my Whitebear UpNp server. I get the following error:

[blockquote]
Quote
Unable to open item for playback (Unsupported file format):
http://192.168.1.100:31416/tid_6286/src_al...pid_4/music.pcm
[/blockquote]

I wonder if you can provide some information about what is going wrong. The files are served as 44100Hz LPCM 16bit 2 channel, big-endian; and they all still play fine fine on other UPnP renderers like WMP, Asset, JR Media Center.

Following is a capture of the HTTP transaction in question:

[blockquote]
Quote
GET /tid_6284/src_alc/tgt_pcm/pid_4/music.pcm HTTP/1.1
Host: 192.168.1.100:31416
Connection: close
User-Agent: foobar2000/1.1.2
Accept: */*
Icy-MetaData:1

HTTP/1.1 200 OK
Connection: close
Content-Type: text/html
Content-Length: 64416516
Date: Fri, 06 May 2011 13:14:45 GMT
Content-Type: audio/L16;rate=44100;channels=2
contentFeatures.dlna.org: DLNA.ORG_PN=LPCM
TransferMode.DLNA.ORG: Streaming
x-audiocast-bitrate: 1411
Accept-Ranges: bytes
Server: Whitebear/2.1 UPnP/1.0 Delphi-UPnP-Components/1.7
[/blockquote]

foo_upnp

Reply #1187
HTTP/1.1 200 OK
Connection: close
Content-Type: text/html
Content-Length: 64416516
Date: Fri, 06 May 2011 13:14:45 GMT
Content-Type: audio/L16;rate=44100;channels=2
contentFeatures.dlna.org: DLNA.ORG_PN=LPCM
TransferMode.DLNA.ORG: Streaming
x-audiocast-bitrate: 1411
Accept-Ranges: bytes
Server: Whitebear/2.1 UPnP/1.0 Delphi-UPnP-Components/1.7


Hi Andrew,

There's 2 Content-Type  headers in the reply above. Maybe that is the problem ?

foo_upnp

Reply #1188
I am successfully streaming/transcoding 16-bit/44.1 kHz FLAC's (stereo and 5.1 ch) to an OPPO-93 using Foobar+UPnP plugin.
Does the UPnP plugin officially support 24-bit/96 kHz FLAC transcoding to LPCM? I am only hearing white noise (static) when playing these. The same 96/24 files play fine on OPPO-93 when transcoded using PS3mediaserver installed on the same computer. Unfortunately, PS3mediaserver has its own drawbacks that prevent me from using it. I configured the Foobar UPnP settings as described in this post: http://www.avsforum.com/avs-vb/showpost.ph...;postcount=1613

Is there a workaround for streaming/transcoding 24-bit/96kHz FLAC files using Foobar?


If the OPPO does not support WAV streaming , there isn't.

LPCM 24 bit never worked with neither the OPPO-93 nor 95, and I had a good try at it some time ago.
And if you find someone who claim otherwise, there's 99% chance he is just streaming LPCM 16 bits, which works.


foo_upnp

Reply #1189
however, i'm experiencing a weird behaviour (of which i am not even sure that it is your component's fault). i've used some  alphabetical letters as keyboard shortcuts without any modifiers (ctrl/alt/shift). i've implemented the upnp_browser as a panel in the DUI. when i type something in the searchbox, the keys invoke the behaviour specified in the keyboard shortcuts list in the foobar preferences instead of inserting the respective letter in the search box. when i do the same in the search box of foo_facets for example, the letters are inserted and the special behaviour is not invoked (that's how it should be). do you know what the problem could be?


I do no observe this on Win7. Though, if the shortcut is made global, you cannot type its letter anymore.
Maybe it has something to do with this warning ? :
"Mapping a keyboard shorcut without modifiers may interfere with app functionality, peventing certain characters to be typed"

foo_upnp

Reply #1190
hello

i'm using foobar2000 at home as a upnp server and playing my audio remotely using foobar2000 with the plugin.

my question is does this plugin support gapless playback? i've looked back several pages and could not find a clear answer.

many thanks for a great plugin!

foo_upnp

Reply #1191
i'm using foobar2000 at home as a upnp server and playing my audio remotely using foobar2000 with the plugin.
my question is does this plugin support gapless playback? i've looked back several pages and could not find a clear answer.


If you're initiating playback from the client by using the UPnP Browser and playing from here then yes it'll be gapless because foobar2000
http decoder supports gapless.


If you want to initiate gapless remote playback using the UPnP Controller (on the server) then you must stream to your Renderer using Playback Stream Capture. This will stream whatever foobar2000 is playing to your renderer as a continuous stream (and thus gapless).

foo_upnp

Reply #1192
Would you mind posting the changes made from version 0.99.29 (the version I have) and 0.99.32 (the current version)? Curiously, the changelog linked to in the OP stops precisely at the version I already have!

 

foo_upnp

Reply #1193
i'm using foobar2000 at home as a upnp server and playing my audio remotely using foobar2000 with the plugin.
my question is does this plugin support gapless playback? i've looked back several pages and could not find a clear answer.


If you're initiating playback from the client by using the UPnP Browser and playing from here then yes it'll be gapless because foobar2000
http decoder supports gapless.


If you want to initiate gapless remote playback using the UPnP Controller (on the server) then you must stream to your Renderer using Playback Stream Capture. This will stream whatever foobar2000 is playing to your renderer as a continuous stream (and thus gapless).

i used the UPnP browser to do so. I have most of my albums saved as a .wv file with an embedded cuesheet for each album. When playing music, I get a 320kbps mp3 and when the song changes, it's not gapless.

out of curiosity, does this plugin use UPnP to port forward port 56923?

foo_upnp

Reply #1194
Would you mind posting the changes made from version 0.99.29 (the version I have) and 0.99.32 (the current version)? Curiously, the changelog linked to in the OP stops precisely at the version I already have!


I updated the linked changelog in the first post.

foo_upnp

Reply #1195
i used the UPnP browser to do so. I have most of my albums saved as a .wv file with an embedded cuesheet for each album. When playing music, I get a 320kbps mp3 and when the song changes, it's not gapless.


It should as it is foobar2000 doing the decoding but I will check. I assume your .wv play gaplessly if you play them directly on the server ?


Quote
out of curiosity, does this plugin use UPnP to port forward port 56923?


No it doesn't but it would be nice. This is an item buried deep in a todo list though .

foo_upnp

Reply #1196
There's 2 Content-Type  headers in the reply above. Maybe that is the problem ?

Good catch!!

But, unfortunately, after correcting it, I still got the same error. New HTTP capture is attached...

Quote
GET /tid_6281/src_alc/tgt_pcm/pid_4/music.pcm HTTP/1.1
Host: 192.168.1.100:31416
Connection: close
User-Agent: foobar2000/1.1.2
Accept: */*
Icy-MetaData:1

192.168.1.37:52600 Sent : HTTP/1.1 200 OK
Connection: close
Content-Type: audio/L16; rate=44100; channels=2
Content-Length: 40807140
Date: Sat, 07 May 2011 13:13:39 GMT
contentFeatures.dlna.org: DLNA.ORG_PN=LPCM
TransferMode.DLNA.ORG: Streaming
x-audiocast-bitrate: 1411
Accept-Ranges: bytes
Server: Whitebear/2.1 UPnP/1.0 Delphi-UPnP-Components/1.7


foo_upnp

Reply #1197
But, unfortunately, after correcting it, I still got the same error. New HTTP capture is attached...

192.168.1.37:52600 Sent : HTTP/1.1 200 OK
Connection: close
Content-Type: audio/L16; rate=44100; channels=2
Content-Length: 40807140
Date: Sat, 07 May 2011 13:13:39 GMT
contentFeatures.dlna.org: DLNA.ORG_PN=LPCM
TransferMode.DLNA.ORG: Streaming
x-audiocast-bitrate: 1411
Accept-Ranges: bytes
Server: Whitebear/2.1 UPnP/1.0 Delphi-UPnP-Components/1.7


Here's the response from foo_upnp receiving a L16 request from foobar2000 (which works):

Quote
HTTP/1.1 200 OK
Server: Platinum/0.5.4.0
Accept-Ranges: bytes
transferMode.dlna.org: Streaming
Connection: close
Content-Type: audio/L16;rate=44100;channels=2


Possibly it either doesn't like the extra spaces in the Content-Type header or doesn't support a Content-Length for audio/L16 (which from the POV
of foobar2000 are infinite non-seekable streams, that's the main difference with WAV)