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

foo_upnp

Reply #975
Is there a way to make the media library tree non-case sensitive? At the moment, it's like: http://screencast.com/t/MzU0N2QzMGM (check the last 2 entries)


Not really. I suggest you fix case in your tags instead. or as a workaround you can use $lower() on %artist% in the tree definition found in foo_upnp_ml_tree.xml, but this is not probably what you want...


I do not know if my question has already been answered, but I could not find this specific setup, if it has just point me to the correct link.

How can I setup 3 different streaming profiles using just PlugPlayer?

1. PlugPlayer using local network (WIFI) > PlugPlayer Media Renderer
2. PlugPlayer using internet access > PlugPlayer Media Renderer
3. PlugPlayer using local network (WIFI) > Foobar2k Media Renderer

How can I differentiate these three profiles using:
use profile when: User-Agent (can I alter User-Agent with something else that would do the job?)
contain:...


This is a complicated issue not totally addressed by profiles.

You can make the distinction between 1 and 2 using the single PlugPlayer profile. For 2. assuming you want to transcode all lossless files to mp3:
in the PlugPlayer profile, in the  "Transcoding to mp3" section
- set transcode to never
- tick  "lossless" and "and internet connection" check boxes.
- leave the "except extension" field blank (or add some exceptions).


It's unfortunately not possible to make the distinction between 1. and 3., because when PP makes the browse request (returning streaming URLs), there's no way for the plugin to know it is for playing to the PP media renderer or for the fb2k renderer. Usually other Media Server that do not have profiles just expose a list of streaming URLs (with different audio formats) and let the Control Point choose one to play on the renderer based on what the renderer claim to support. More often than not, Control Points will make a poor decision (for example streaming the first supported format instead of the format with the highest quality, or just the first streaming URL).
Streaming profiles do not work in the case of a Control Point playing to different renderers. It can work if you  find common settings between all your renderers but it is less than ideal (you make the profile for the lowest common denominator).
I've been thinking of replacing them with something better  but if I ever do it, it will be a lot of work. Basically you'd have a virtual Media Server for each renderer you want to manage. Each virtual server's conf would contain what is actually in a streaming profile + more stuff (custom browse tree, ...).






foo_upnp

Reply #976
This is a complicated issue not totally addressed by profiles.

You can make the distinction between 1 and 2 using the single PlugPlayer profile. For 2. assuming you want to transcode all lossless files to mp3:
in the PlugPlayer profile, in the  "Transcoding to mp3" section
- set transcode to never
- tick  "lossless" and "and internet connection" check boxes.
- leave the "except extension" field blank (or add some exceptions).


Thanks a lot for your answer, I followed your instructions and basically created a PP profile that would address scenarios 2 and 3, leaving me with some format incompatibilities in scenario 1, which is not so critical to me.

Quote
It's unfortunately not possible to make the distinction between 1. and 3., because when PP makes the browse request (returning streaming URLs), there's no way for the plugin to know it is for playing to the PP media renderer or for the fb2k renderer. Usually other Media Server that do not have profiles just expose a list of streaming URLs (with different audio formats) and let the Control Point choose one to play on the renderer based on what the renderer claim to support. More often than not, Control Points will make a poor decision (for example streaming the first supported format instead of the format with the highest quality, or just the first streaming URL).
Streaming profiles do not work in the case of a Control Point playing to different renderers. It can work if you  find common settings between all your renderers but it is less than ideal (you make the profile for the lowest common denominator).
I've been thinking of replacing them with something better  but if I ever do it, it will be a lot of work. Basically you'd have a virtual Media Server for each renderer you want to manage. Each virtual server's conf would contain what is actually in a streaming profile + more stuff (custom browse tree, ...).


It sounds a bit like a workaround but would it be difficult to pass some kind of profile string from PP (or any other CP) each time it connects to the server? It needs to be supported from the CP, which makes it more of a PP feature.
Athlon64 Overclocking Calculator

foo_upnp

Reply #977
For some reason streaming doesn't work when plugin transcodes to 320 with cbr checkbox ticked. This also happens with 128, 160, 192 & 256 kbps bitrate no matter if cbr checkbox is ticked or not. And I couldn't make it work any vbr setting.

foo_upnp

Reply #978
Does this plugin support tagging thru streaming?

foo_upnp

Reply #979
Hi I run Plugplayer on an iPad using a PC with foobar and asio. Every file (flac,wv,ape) is converted to PCM and Files from 24/96 to 24/192 are downsized to 24/48. how can I avoid this during playback?
Thanks for your help
Gianluca

foo_upnp

Reply #980
Hi bubbleguuum,

is there any way to customize the colors and fonts of the "columns ui - upnp browser panel"?
If not i would be very thankful if you would implement such a feature cause I'm browsing
on my htpc and would like to see what I'm about to stream :-).

foo_upnp

Reply #981
Hello all,

First thanks for this plugin !  I managed to use foobar2k on my laptop, and playing mp3 via upnp controller on my Popcorn Hour 110 unit

I didn't achieve though to play Flac files ..  I read the whole topic and i saw a lot of people speak about flac, and managed to play flac files but not sure if they are using the plugin the way i want to..

So just to make sure :

-> my flac and mp3 files are stored on my NAS
-> Foobar2k is installed on my laptop
-> I want to use the "Upnp controller, play on PCH-110" feature to play the flacs file direclty on my Popcorn, with TV off, so managing all the playback from the laptop and just send music to the PCH.

With mp3 files, i have no issue at all, it works great. But with flac, nothing happen when i try, upnp controller just sits there, doing nothing, my PCH stay quiet

I tried a lot of different options in the Upnp preferences tab, but didn't succeed.. 

Did someone managed to do that already ?

foo_upnp

Reply #982
Hi I run Plugplayer on an iPad using a PC with foobar and asio. Every file (flac,wv,ape) is converted to PCM and Files from 24/96 to 24/192 are downsized to 24/48. how can I avoid this during playback?


Alerady answered privately but the solution was to copy the foobar2000 profile settings to the PlugPlayer profile. The stock PlugPlayer streaming profile is for playing audio on the iOS device, limited to 48kHz max.



Hi bubbleguuum,

is there any way to customize the colors and fonts of the "columns ui - upnp browser panel"?
If not i would be very thankful if you would implement such a feature cause I'm browsing
on my htpc and would like to see what I'm about to stream :-).


Colors are not configurable for the CUI panel. However the DUI panel honours global configured colors (and fonts).



With mp3 files, i have no issue at all, it works great. But with flac, nothing happen when i try, upnp controller just sits there, doing nothing, my PCH stay quiet


Since your files are from the NAS, the server part of the plugin (streaming profiles) is not used at all.
I suggest you record a log as explained in the first post of this topic and post it here. It will allow to check if there is not a problem
with the streaming URL (returned by your NAS), or another potential issue with the Controller.


foo_upnp

Reply #983
For some reason streaming doesn't work when plugin transcodes to 320 with cbr checkbox ticked. This also happens with 128, 160, 192 & 256 kbps bitrate no matter if cbr checkbox is ticked or not. And I couldn't make it work any vbr setting.


More info is required: streaming to which device and using which Control Point (foobar2000, the device itself, ...).

foo_upnp

Reply #984
Hi bubblegum,

I copied my upnp log file on paste bin : http://pastebin.org/254728

I tried to launch a mp3, then 3 time the same flac.

Thanks in advance for your help !

EDIT : new URL with finest log and only one flac tried : http://pastebin.org/254924

foo_upnp

Reply #985
Hi bubblegum,

I copied my upnp log file on paste bin : http://pastebin.org/254728

I tried to launch a mp3, then 3 time the same flac.

Thanks in advance for your help !

EDIT : new URL with finest log and only one flac tried : http://pastebin.org/254924


I thought you were using a NAS as an UPnP server but it looks like you use it just for file sharing. So indeed the Server part of foo_upn is used.
The PCH answer an HTTP error when told the FLAC url. After some research it looks like it might expect mime-type audio/flac instead of audio/x-flac sent by the server.
Or maybe that it can only play ogg-flac.
You can still play your FLAC decoded as WAV or LPCM. Mofidy the Default streaming profile to convert FLAC as WAV or LPCM (In the Decode to PCM section, in the list of exception extensions, you may have to remove "flac" if you use the "always" rule, or to add the flac extension if you you use the "never" rule).



foo_upnp

Reply #986
Hmm still nothing :/ I tried both decoding flac as WAV or LPCM (putting always and removed flac from the exception list, transcoding mp3 on never and unchecked lossless and internet connection boxes).

In the log, it seems to try to convert to wav, it's weird that it's not working... http://pastebin.org/255839

The PCH can read flac with no issue if i read directlty from it, I don't understand why it's not working.

foo_upnp

Reply #987
Hmm still nothing :/ I tried both decoding flac as WAV or LPCM (putting always and removed flac from the exception list, transcoding mp3 on never and unchecked lossless and internet connection boxes).

In the log, it seems to try to convert to wav, it's weird that it's not working... http://pastebin.org/255839

The PCH can read flac with no issue if i read directlty from it, I don't understand why it's not working.



Strange indeed. Still the same HTTP error (Internal error) as if the PCH was in a broken state. What happen if you try to play a MP3 after failing to play a FLAC ? do the mp3 play ?  Does it help to reboot the PCH ?

EDIT: check that you installed the latest firmware available on your PCH (if any).

foo_upnp

Reply #988
It does not hang the PCH, I can read mp3 file afterwhile with no issues.

I found this on another forum :

"I haven't used twonky, but my guess is that you'll have to configure it to lie to the PCH a little bit to get the PCH to play flac files over UPnP, because the problems seem to lie in the PCH implementation of UPnP as this problem is common across multiple servers.

Try following the tips above, namely (1) identify the flac files as having a mime type that the PCH recognizes, such as audio/x-ogg, and (2) make them visible to the PCH with an extension it supports for UPnP, such as .ogg ."

This tip is supposed to work, but I don't know how to identify flac as audio/x-ogg. Is it something I can configure in your plugin or it's somewhere else I need to do that ? (I'm not a pro lol)

foo_upnp

Reply #989
I have the latest version (1.1) of foobar and the official ALAC component. I am unable to stream my ALAC albums to my xbox360. FLACs are working without issue.

foo_upnp

Reply #990
Nevermind. Just had to remove M4A from the "Decoding to PCM" exceptions.

foo_upnp

Reply #991
Another exception here 

59.701: NPT_HttpRequest::Parse(616)/5108: FINE: NPT_CHECK failed, result=-1 (FAILURE) [(stream.ReadLine(line, NPT_HTTP_PROTOCOL_MAX_LINE_LENGTH))]
59.701: PLT_HttpServerSocketTask::Read(216)/5108: WARNING: NPT_CHECK failed, result=-1 (FAILURE) [(res)]

with the latest version of the plugin. Any chance to debug it and find what's wrong?

Cheers.

foo_upnp

Reply #992
I also can't transcode my FLACs to mp3, using plugplayer (latest version) on iPhone 4.

I've tried 4 different play methods:

1. Play FLAC file over local wifi - works
2. Play FLAC file over 3G - doesn't work (probably due to bandwidth) and don't care (actually, kind of works with major buffering issues, so definitely bandwidth)
3. Play transcoded FLAC over local wifi - doesn't work
4. Play transcoded FLAC over 3G - doesn't work

As far as transcoding profiles, I've tried VBR 0 and 2, and CBR 192 and 160.  I'm using the playplayer streaming profile.

I've uploaded my log file here:

http://pastebin.com/CaRv7y20

foo_upnp

Reply #993
Hello, I am a supporter of foo_upnp server because it is the only one that allows me to make the correction directly from the server via the DRC DSP convolver.
So I offer my congratulations to bubbleguuum.
I write because I wanted information about the upnp server profiles.
I want to know what it means User-agent field.
I thought he was referring to the type of player. however I noticed that if I use Plugplayer as control the server takes plugplayer settings and makes a transcoding WAV to MP3. For this I am forced to activate the defoult profile.
I think this is a problem for anyone using Plugplayer as a control for foobar and do not know this  transcoding setting.
Could you clarify to me what  daes profiles means and user-agent field
Don't you think it is a mistake that the server takes the control point profile?

Thanks

Raffaele

foo_upnp

Reply #994
It does not hang the PCH, I can read mp3 file afterwhile with no issues.

I found this on another forum :

"I haven't used twonky, but my guess is that you'll have to configure it to lie to the PCH a little bit to get the PCH to play flac files over UPnP, because the problems seem to lie in the PCH implementation of UPnP as this problem is common across multiple servers.

Try following the tips above, namely (1) identify the flac files as having a mime type that the PCH recognizes, such as audio/x-ogg, and (2) make them visible to the PCH with an extension it supports for UPnP, such as .ogg ."

This tip is supposed to work, but I don't know how to identify flac as audio/x-ogg. Is it something I can configure in your plugin or it's somewhere else I need to do that ? (I'm not a pro lol)


No clues on how doing this ?

foo_upnp

Reply #995
Hi!
I have a problem with playing WAV/LPCM on my Sony BDV-E970W.

When I try to play a file from USB, or DVD - everything is OK, and file format, recognized by Sony is "WAV".
But when I add the same file to foobar playlist, I can't play it on Sony.
If I choose in "Decoding to PCM" or in "Playback Stream Capture" wav format, playlist is empty.
And when I choose lpcm format, I see track, recognized as "LPCM" by Sony, but Sony fails with the message that file is corrupted or unsupported.

I suppose that it may be becuase Sony supports mime-type audio/l16, but doesn't support audio/wav.
And I couldn't find in plugin configuration mime-types setup.

foo_upnp

Reply #996
I tried to playback wav files via DLNA and I found, that everything plays OK
if DLNA name is "MP3" even for uncompressed files, while mime-type doesn't matter.

Can you please add possibility to specify DLNA.ORG_PN which will help to fix this problem.
Thank you in advance.

foo_upnp

Reply #997
I think this is a problem for anyone using Plugplayer as a control for foobar and do not know this  transcoding setting.

This is a problem indeed.
The User-Agent is the http User-Agent field used by the browsing device. They are displayed in the log with INFO level.
A profile is matched for a browsing device if the the string specified for User-Agent is a substring of the User-Agent of the browsing device


Quote
Don't you think it is a mistake that the server takes the control point profile?


In a sense it is, but it's either that or no profile at all (or a single profile). It works well when the browsing device is also the playing device (PS3, x360, iPhone, ...).
If you want to use a Control Point that is not the playing device you probably have to force the use the default profile and configure it for the lowest common denominator of all your renderers. Or you could run multiple instance of foobar2000 each with its own server and pick the right one with PlugPlayer.

see that post for more details on this issue

The solution to that issue would be to replace profile with virtual servers (one per profile)  but I'll probably won't do it. Too much work.



 

foo_upnp

Reply #999
I tried to playback wav files via DLNA and I found, that everything plays OK
if DLNA name is "MP3" even for uncompressed files, while mime-type doesn't matter.

Can you please add possibility to specify DLNA.ORG_PN which will help to fix this problem.
Thank you in advance.



I do not understand the exact problem and what you did. WAV is not a DLNA type (while LPCM is).
That doesn't mean the TV is not able to play it though.
Usually on DLNA device it is better to use LPCM as its support is mandatory.