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

foo_upnp

Reply #875
perhaps, anyone can help.....

is it possible to remote foobar2000 with one pc in my network (like in the picuture). i dont want
stream music
i will remote PC2 with PC1.....

Hi,

yes, this is possible with this component. Set up PC2 with foobar and this component, so an upnp server and renderer is available on the LAN.

Now you can use f.i. eezUPNP on PC1 to control the playback of foobar on PC2.

Joe

 

foo_upnp

Reply #876
i will test this, thx.


is it not possible to control PC2 with a installed Foobar on PC1 ?

regards

foo_upnp

Reply #877
My last hope was to set "Format track titles using:" to "[%list_index% - ]%artist% - %title%" but unfortunately %list_index% is not resolved to a value (just an "?").
If this is not yet possibel, it would be nice if this feature would be included in one of the next releases.


%list_index% only works in column title formatting expressions, that's why it does not work.
Instead I'll add an option that if enabled will prefix each track name with its position (the equivalent of %list_index%), to prevent some clients
to mess the server sort order.

foo_upnp

Reply #878
is it not possible to control PC2 with a installed Foobar on PC1 ?

As far as i know, this is not possible. But you can also use a remote desktop client on PC1, in that case you can see and control the desktop of PC2 on PC1 as if you are sitting right before PC2. You can use the windows built in remote desktop or use another software like vnc for that.

If you need further details, write me a message as i think further discussion of that here is off topic for this thread.

%list_index% only works in column title formatting expressions, that's why it does not work.
Instead I'll add an option that if enabled will prefix each track name with its position (the equivalent of %list_index%), to prevent some clients
to mess the server sort order.

Thanks for the info, i must have missed the point, that %list_index% won't work in the doku.

Anyway if you add this prefix option, i would be really happy as it also solves my problem. The position needs to have leading zeros, otherwise the sorting of the device will mess with it again.

I am looking forward to the release with that feature enabled.

Thank you for your fast reply.

Joe

foo_upnp

Reply #879
0.99.28 released  (first post to download, or autoupdate with fb 1.1)

- server: in browse tree, under an artist node, put all tracks of that artist in a "[All Tracks]" subnode to avoid some browsing clients to mix single tracks and albums (PlugPlayer and others)
- server: applemobiledevice:// items from foo_dop's "iPod View" playlist can now be streamed (either as PCM or transcoded to mp3)
- server: Playback Stream Capture streams silence when foobar2000 playback is stopped or paused. More compatible with some renderers that expects the stream to always send data (otherwise they close the connection).
- server: %comment% is now returned in items
- server: the "format track titles using" setting now recognize %list_index% and %list_total%. This can be used to prevent the browsing client to reorder tracks (most of the time alphabetically), for example by using %list_index% - %title%
- server: for files streamed as PCM that are detected as HDCD, will force bitdepth to 24 if the renderer supports it (requires foobar2000 >= 1.1 and foo_hdcd >= 1.5)
- controller: Linn DS Playlist source:  next/previous track wouldn't work when shuffle is enabled and current track was the first or last track in the playlist

foo_upnp

Reply #880
is it not possible to control PC2 with a installed Foobar on PC1 ?

As far as i know, this is not possible. [..]

@noxx
Actually i was wrong. foo_upnp comes with everything you need for your setup. It exposes an upnp media server and renderer on PC2. And on PC1 you can use foobar with foo_upnp as upnp browser to access your media library of PC2 and then use the upnp controller to control the playback of foobar on PC2.

So, no need for third party software at all. Have fun, i tested this setup today on my machines. Just working as aspected.

@bubbleguuum
Thanks again for this fast release, solving all my problems.   

foo_upnp

Reply #881
is it not possible to control PC2 with a installed Foobar on PC1 ?

As far as i know, this is not possible. [..]

@noxx
Actually i was wrong. foo_upnp comes with everything you need for your setup. It exposes an upnp media server and renderer on PC2. And on PC1 you can use foobar with foo_upnp as upnp browser to access your media library of PC2 and then use the upnp controller to control the playback of foobar on PC2.





Hi, thx. can you make a screenshot (pc1 and 2) with you setting?

thx

foo_upnp

Reply #882
Is it possible to select a default controller?

I am using Majik DS and everytime I need to select the controller before I can play. I would prefer to have default one selected.

foo_upnp

Reply #883
- server: the "format track titles using" setting now recognize %list_index% and %list_total%. This can be used to prevent the browsing client to reorder tracks (most of the time alphabetically), for example by using %list_index% - %title%

Very good, thank you! 
I've been waiting so hard for this! My eGreat R1 mediaplayer was executing the playlists in alphabetically order before (or all No. 01 first).

foo_upnp

Reply #884
Hi,

Awesome component but I'm having problems when trying to stream FLAC to PlugPlayer on my iPhone. MP3 files work fine but PlugPlayer reports an error 9 whenever I try to stream FLAC. The foo_upnp.log reports an NPT_HTTP_PROTOCOL_MAX_LINE_LENGTH error.

Here's a link to the full log excerpt.
Here's a link to a screenshot of my preferences.

Any ideas what I'm missing?

Thanks in advance.

foo_upnp

Reply #885
Is it possible to select a default controller?

I am using Majik DS and everytime I need to select the controller before I can play. I would prefer to have default one selected.


You mean having a selected renderer on startup ? Not possible yet, this is a feature I've been considering.


Awesome component but I'm having problems when trying to stream FLAC to PlugPlayer on my iPhone. MP3 files work fine but PlugPlayer reports an error 9 whenever I try to stream FLAC. The foo_upnp.log reports an NPT_HTTP_PROTOCOL_MAX_LINE_LENGTH error.

Here's a link to the full log excerpt.
Here's a link to a screenshot of my preferences.


Your configuration is not correct: you're transcoding all files to mp3 (except mp3).
In the mp3 section you must change it to read: transode always except mp3,flac
After changing the profile clear the PP playlist and add the file you want to play again: streaming URL are not identical when a streaming profile changes.
From the log I see that you stream from the Internet using 3G or wifi: are you sure you have the necessary bandwidth to stream flac ?

Finally, there's something strange in your log that I try to understand: can you confirm that file://M:\Electronic\IDM\.tape. - Paintings (2005)\05 - Franky Rendered.flac is the file you wanted to play ?

If the above do not work repost a log (but with INFO level only), including browsing files on the iPhone


foo_upnp

Reply #886
Thanks bubbleguuum, I'm afraid I missed one vital piece of information in my last post. I'm actually trying to transcode FLAC to MP3 so that I can stream over 3G to my iPhone. I can stream MP3s without any issue but FLAC files don't work and PP returns an error 9 so I assume it's a problem transcoding?

I'm sorry about that, I'm not sure how I missed it.

And yes, that's the correct file name.

I just tried changing the transcode option to never except for FLAC but got the same result.

Here's the log file at INFO level when browsing and trying to play from PP.

foo_upnp

Reply #887
Thanks bubbleguuum, I'm afraid I missed one vital piece of information in my last post. I'm actually trying to transcode FLAC to MP3 so that I can stream over 3G to my iPhone. I can stream MP3s without any issue but FLAC files don't work and PP returns an error 9 so I assume it's a problem transcoding?

I'm sorry about that, I'm not sure how I missed it.

And yes, that's the correct file name.

I just tried changing the transcode option to never except for FLAC but got the same result.

Here's the log file at INFO level when browsing and trying to play from PP.



I seems that the default profile is used when browsing:
upnp_server_conf::get_profile(707)/2868: INFO: using default profile (User-Agent:PlugPlayer iPhone/10.3.1, UPnP/1.0, Portable SDK for UPnP devices/1.6.6)

Can you look into Server/Basic settings if you do not have "Always use the default streaming profile..." setting checked, and uncheck it. That would explain this.
But there's another problem:  in the log with your current settings, the streaming path part of the URL (/content/39776051f22088cd7864186835716fce.mp3) should be /content/39776051f22088cd7864186835716fce.mp3?profile_id=0&convert=mp3 , so transcoding the FLAC referenced by the hash code filename can take place (prodile id = 0 is the default profile).

It's like if PP (or some firewall or filter) removed the query part of the URL (?profile_id=0&convert=mp3). I tried to reproduce it here but it works as expected.

Let me know if it works once you are certain to use the PP profile (in Browsing). If you don't see a streaming URL of the form /content/39776051f22088cd7864186835716fce.mp3?profile_id=2&convert=mp3 it won't transcode the flac to mp3 (profile_id = 2 is PlugPlayer profile)

If that still do not work (ie you do not get the query part of the URL), I'll make a test version to make sure I send the correct URL.

foo_upnp

Reply #888
I did have the "Always use the default streaming profile..." option enabled. I have now disabled this and can see in the log file that the plugplayer profile is being used. However, the stream URL is still missing ?profile_id=0&convert=mp3.

Looking at the log file I noticed a strange thing that I'm not sure is relevant,  the user-agent starts off as "PlugPlayer" but then changes to "RecivaRadio". 

Code: [Select]
107.857: upnp_server_conf::get_profile(701)/4080: INFO: using profile 'PlugPlayer', matching header (User-Agent:PlugPlayer iPhone/10.3.1, UPnP/1.0, Portable SDK for UPnP devices/1.6.6)


Code: [Select]
109.903: upnp_server_conf::get_profile(701)/2860: INFO: using profile 'New Profile', matching header (User-Agent:RecivaRadio/1.0.0)


I duplicated the PlugPlayer profile and set User-Agent contains RecivaRadio to see what would happen. It uses both profiles but both still use a URL that is missing  ?profile_id=0&convert=mp3 .

New log file.

Thanks

Edit: I've just transcoded and streamed successfully to a remote instance of Foobar (using the same profile settings) so I think this issue is due to something weird that PlugPlayer is doing.

foo_upnp

Reply #889
I finally got it working. Removing, reinstalling and reconfiguring the Plugplayer app has done the trick.

Thanks for your assistance bubbleguuum and thanks for an awesome component.  Is there any way that I can send a small donation to you?

foo_upnp

Reply #890
@bubbleguuum
0.99.28 released  (first post to download, or autoupdate with fb 1.1)

- server: Playback Stream Capture streams silence when foobar2000 playback is stopped or paused. More compatible with some renderers that expects the stream to always send data (otherwise they close the connection).

Hi,
i now have an issue with the Playback Stream Capture in this release. If i am using "lpcm" as codec nothing is received on my media player device and after a while foobar will crash if i do not stop playback.
However it is working fine with Codec set to "wav" or "mp3".

Joe

@noxx
Hi, thx. can you make a screenshot (pc1 and 2) with you setting?

sorry no time, to make screenshots for now... but it shouldn't be neccessary..

On PC2 (the one connected to Hifi and tv and with all mp3 files):
Just install foobar with foo_upnp and set up your media library.
Make sure that under Preferences Tools>Upnp>Server>Basic Settings both the Media Server and Media renderer are reported as running.
Thats it for PC2.

On PC1 (the one you want to use for control):
Install foobar with foo_upnp.
Open the UPNP-Browser (View>UPNP Browser) and browse the media server on pc2.
Open the UPNP-Controller (View>UPNP Controller) and select the media renderer on pc2 from the dropdownbox.
Select the files you want to play from the upnp browser/"upnp browser selection" playlist and add them to the "Upnp controller playback queue" playlist.
Now just hit play on the UPNP Controller interface and the playback of the selected files should start on pc2.

When everything is working, you can start and customize the foobar layouts so everything is looking nice and is easy to use. See the foobar documentation for details on that.

Joe

foo_upnp

Reply #891
@bubbleguuum
0.99.28 released  (first post to download, or autoupdate with fb 1.1)

- server: Playback Stream Capture streams silence when foobar2000 playback is stopped or paused. More compatible with some renderers that expects the stream to always send data (otherwise they close the connection).

Hi,
i now have an issue with the Playback Stream Capture in this release. If i am using "lpcm" as codec nothing is received on my media player device and after a while foobar will crash if i do not stop playback.
However it is working fine with Codec set to "wav" or "mp3".

Joe

@noxx
Hi, thx. can you make a screenshot (pc1 and 2) with you setting?

sorry no time, to make screenshots for now... but it shouldn't be neccessary..

On PC2 (the one connected to Hifi and tv and with all mp3 files):
Just install foobar with foo_upnp and set up your media library.
Make sure that under Preferences Tools>Upnp>Server>Basic Settings both the Media Server and Media renderer are reported as running.
Thats it for PC2.

On PC1 (the one you want to use for control):
Install foobar with foo_upnp.
Open the UPNP-Browser (View>UPNP Browser) and browse the media server on pc2.
Open the UPNP-Controller (View>UPNP Controller) and select the media renderer on pc2 from the dropdownbox.
Select the files you want to play from the upnp browser/"upnp browser selection" playlist and add them to the "Upnp controller playback queue" playlist.
Now just hit play on the UPNP Controller interface and the playback of the selected files should start on pc2.

When everything is working, you can start and customize the foobar layouts so everything is looking nice and is easy to use. See the foobar documentation for details on that.

Joe



hi, thx for you answer....

but i can find my PC2 (Named HTPC) on the dropdownbox

here a screen from pc1

[a href="http://img23.imageshack.us/i/unbenanntnz.png/" target="_blank"]

foo_upnp

Reply #892
Is it possible to select a default controller?

I am using Majik DS and everytime I need to select the controller before I can play. I would prefer to have default one selected.


You mean having a selected renderer on startup ? Not possible yet, this is a feature I've been considering.



You are right I mean selected renderer. This would really help me on daily usage. Every time I launch foobar I need to select the renderer first. Off course I always forget to do so I have to select the music twice

foo_upnp

Reply #893
0.99.28 released  (first post to download, or autoupdate with fb 1.1)

- server: Playback Stream Capture streams silence when foobar2000 playback is stopped or paused. More compatible with some renderers that expects the stream to always send data (otherwise they close the connection).


Many thanks for this.  I just tried it on the Popcorn Hour and it works perfectly.

Regards,

Phil

foo_upnp

Reply #894
There seems to be a problem with Playback Stream Capture when using the "convert stereo to 4 channels" DSP (which I left it on by accident).
Code: [Select]
foo_upnp: 1522.426: FbMediaWavInputStream::process_chunk(278)/4692: SEVERE: cannot find dsp to convert from 4 channels to stereo


I guess it's pretty obvious why it isn't working, but is this the best way to stream what's currently playing? Would it be possible to get to the stream before the foobar2000 DSPs and use the DSP presets from the profile?

foo_upnp

Reply #895
There seems to be a problem with Playback Stream Capture when using the "convert stereo to 4 channels" DSP (which I left it on by accident).
Code: [Select]
foo_upnp: 1522.426: FbMediaWavInputStream::process_chunk(278)/4692: SEVERE: cannot find dsp to convert from 4 channels to stereo


I guess it's pretty obvious why it isn't working, but is this the best way to stream what's currently playing? Would it be possible to get to the stream before the foobar2000 DSPs and use the DSP presets from the profile?


It is not possible with the current PSC API : ReplayGain + DSP settings from the core are always applied.

PSC for now only streams as stereo (2 channels), this is not configurable. It only knows how to convert 5.1 and mono to stereo.
As you noticed, RG settings + DSP chain from the profile are not applied when streaming PSC.
I lack a generic and configurable channel converter DSP that would be able to change channel count from X to Y (whatever X and Y are).
That would allow to either:
- make the PSC target channel count configurable
- allow to always convert to stereo

As a stopgap measure I could make applying the profile's DSP on PSC an option so you could use a DSP converting from 4 to 2 channels, but such DSP would also apply to non PSC content.

In your case, do you want PSC to always stream with 4 channels or to convert everything to stereo ?

foo_upnp

Reply #896
To be honest it's not a problem, I don't usually have it set to 4 channels. I was just wondering if it used the core settings by design or some limitation.

foo_upnp

Reply #897
@bubbleguuum: After some more fiddling with this fantastic plugin here are my questions and comments:
1) This is slightly off topic but... Does anybody know how to prevent Eset Smart Security 4.0 from blocking UPnP traffic? For now I have just disabled its filtering.
2) Do I need to have windows UPnP service or some other windows service running in order to make use of this component? What should I add into the built-in Windows XP firewall if I want to get this working. Is it Foobar 2000 or UPnP service or something else?
I am asking these because I cant get it running on one of my machines. 2 of three runs fine anyway.
3) It would really be nice if you can make the browser more keyboard accessible. Now I understand left click is the only way on how to expand a remote branch. When tallking about treeviews left arrow key usualy colapses and right arrow expands a node. I am not sure you can override it somehow. The things I was tallking about previously would be nice too because I have to emulate the mouse a lot and it's getting too inconvenient for me.
4) I am not sure but I think I have got a crash related to foo_upnp. I had a Foobar window opened with 1 remote Foobar listed in the UPnP browser and some errors in the console because second client was not displayed. Then I did a restart of Foobar and on startup I have got this crash.

Thanks


I have the same problem

http://www.wilderssecurity.com/showthread.php?p=1723039

I am hoping to give them a call tonight to resolve it

foo_upnp

Reply #898
OK, so I have create a custom firewall rule that allows foobar2000.exe through ESET Smart Security's firewall, however I can't help but think there is an issue with foo_upnp, with the firewall set to "Interactive mode" (where it will prompt me to allow or deny any network traffic), opening foobar for the first time and going into the UPnP Browser, nothing happens! I have to add the IP address of my server manually to kick off the connection.

I have raised this with ESET and they tell me that with the firewall set to "Automatic" and UPnP allowed (which it is), everything should work fine.

Does anyone else use foobar2000, foo_upnp and ESET Smart Security?

Thanks.

foo_upnp

Reply #899
OK, so I have create a custom firewall rule that allows foobar2000.exe through ESET Smart Security's firewall, however I can't help but think there is an issue with foo_upnp, with the firewall set to "Interactive mode" (where it will prompt me to allow or deny any network traffic), opening foobar for the first time and going into the UPnP Browser, nothing happens! I have to add the IP address of my server manually to kick off the connection.

I have raised this with ESET and they tell me that with the firewall set to "Automatic" and UPnP allowed (which it is), everything should work fine.

Does anyone else use foobar2000, foo_upnp and ESET Smart Security?

Thanks.


One other thing, I can see the foobar2000 media server under networks, so UPnP is working (for the OS (Windows 7))