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

foo_upnp

Reply #300
Currently using v0.99.9 of the plugin and 0.9.5.2, using wireless connection (DLink-524) and Windows XP and a PS3.
And i used all versions of foo_upnp. Same problem on all. Don't believe it's a wireless thing because i transcode movies with Tversity with no lag or skips.

foo_upnp

Reply #301
I still aint got a clue how this thing works, I have tried to stream to another machine on the local network to windows media player but nothing shows up what am I doing wrong. All the firewall and router stuff is done even set the thing up to play on WMP but i get nothing. A tutorial on how this is suppose to work would be nice.



foo_upnp

Reply #304
..., I have tried to stream to another machine on the local network to windows media player but nothing shows up what am I doing wrong. ...
Was it WMP11 or higher?


Yeah it was WMP11 also tried with another instance of foobar on the same machine.


Can you be more specific ?
You launched the server and the client instance of foobar2000 on the same PC ? this can't work as on the *same* PC client and server don't see each other (it's actually not a bug).

Now assuming you were running 2 foobar instances on separate PC: on the client machine did you add the Browser UI element to your setup ? did the foobar server appeared in the tree then ?

Now for WMP as a client, You should see a "foobar2000 Media Server [your user name]" appear somewhere in the library (not sure were as I tested with WMP12 but TehLink can confirm if works with WMP11).

Subsidiary question: what software do you use as a firewall ?

I'll write a much needed documentation for this plugin at some point.

foo_upnp

Reply #305
My main goal was to get it to work on my 360 as that is in another room the other apps were just problem solving.

As for firewall just the bog standard XP firewall and a router using DD-WRT which has ports forwarded.

 

foo_upnp

Reply #306
My main goal was to get it to work on my 360 as that is in another room the other apps were just problem solving.

As for firewall just the bog standard XP firewall and a router using DD-WRT which has ports forwarded.


You could try sharing some music with WMP and look if you can access that from your 360. The Upnp servers appear in the Music section of the 360 (don't remember the exact naming).

foo_upnp

Reply #307
My main goal was to get it to work on my 360 as that is in another room the other apps were just problem solving.

As for firewall just the bog standard XP firewall and a router using DD-WRT which has ports forwarded.


You could try sharing some music with WMP and look if you can access that from your 360. The Upnp servers appear in the Music section of the 360 (don't remember the exact naming).


Yeah that was the problem it was not showing up yet for some reason Vuse was so I doubt it's a firewall issue probably a component I am missing, speaking of which what is Browse UI and where do I get it?

foo_upnp

Reply #308
Some issues with the PS3:
1. When using LPCM, i get skips every 20-30 seconds.
2. When using "Stream files in their native format-Unchecked",the music plays well in Mp3 Format, but take long time to start or changing track (almost 30 seconds).

I'm also having the same issues, only I'm getting skips every 5-10 seconds. I've got both my laptop and PS3 connected via ethernet to my 100mbps router so it can't be a bandwidth issue... Currently using v0.99.9 of the plugin and 0.9.6.9 beta 1 of fb2k.

Another additional issue is that if I have the Apply Replaygain option checked, it skips even when "Apply to all formats" is unchecked. I suppose it has to do with the fact that it forces it to PCM format regardless. Is there any workaround to this?


I just got a PS3 today, and no problem after some initial testing involving mp3 streamed as is, and flac as lpcm. 100mbps wired connection to a Linksys switch.
I'll try later via wlan to see if there are any problems.
ReplayGain force PCM as you guessed. No workaround until I can make transcode to mp3 work on the PS3.




foo_upnp

Reply #310
I just got a PS3 today, and no problem after some initial testing involving mp3 streamed as is, and flac as lpcm. 100mbps wired connection to a Linksys switch.
I'll try later via wlan to see if there are any problems.
ReplayGain force PCM as you guessed. No workaround until I can make transcode to mp3 work on the PS3.

Thanks for the quick reply. I'm not sure what my issue is then... Everything appears to be set up as it should and it's still skipping.

I've been messing around with another media server app made just for the PS3 and it's working flawlessly. The app can be found here for those who are curious. I think it's able to convert FLAC files to LPCM if I'm understanding the options correctly. It even displays the embedded album art in my flac images, though it's not detecting the embedded cue sheets unfortunately. Anyway, it's an open source program, perhaps you could contact the developer and ask how he's able to implement some of the things? Just a suggestion. 

foo_upnp

Reply #311
As already asked in this post #58 (Question wasn't answered yet)
Would it be possible to generate the tree as the directory structe is?
Maybe in a future version?

foo_upnp

Reply #312
As already asked in this post #58 (Question wasn't answered yet)
Would it be possible to generate the tree as the directory structe is?
Maybe in a future version?


I'd like to see this feature too

foo_upnp

Reply #313
I can't get foobar to work as a media server. I use WMP12 and Win7 x64, foobar 0.9.6.7, foo_upnp 0.99.8. I have applied "Windows Media Server" preset and didn't change the port number: 56923.

WMP12 actually recognizes foobar as a media server, but it doesn't see any files on it, reporting that "no files have been found on this remote library":

Code: [Select]
foo_upnp: FbMediaServer::ProcessHttpRequest: received request URL=/ContentDirectory/428ff545-776c-4399-a03e-001617726579/control.xml from a LAN client
foo_upnp: FbMediaServer::OnAction: received action 'GetSortCapabilities', args = {  }
foo_upnp: FbMediaServer::OnAction: action 'GetSortCapabilities' response: args = { SortCaps= }
foo_upnp: FbMediaServer::ProcessHttpRequest: received request URL=/ContentDirectory/428ff545-776c-4399-a03e-001617726579/control.xml from a LAN client
foo_upnp: FbMediaServer::OnAction: received action 'Search', args = { ContainerID=0, SearchCriteria=upnp:class derivedfrom "object.container.playlistContainer" and @refID exists false, Filter=dc:title,microsoft:folderPath, StartingIndex=0, RequestedCount=200, SortCriteria= }
foo_upnp: FbMediaServer::OnAction: action 'Search' response: args = { ContainerID=0, SearchCriteria=upnp:class derivedfrom "object.container.playlistContainer" and @refID exists false, Filter=dc:title,microsoft:folderPath, StartingIndex=0, RequestedCount=200, SortCriteria=, NumberReturned=0, TotalMatches=0, UpdateID=0 }
foo_upnp: FbMediaServer::ProcessHttpRequest: received request URL=/ContentDirectory/428ff545-776c-4399-a03e-001617726579/control.xml from a LAN client
foo_upnp: FbMediaServer::OnAction: received action 'GetSortCapabilities', args = {  }
foo_upnp: FbMediaServer::OnAction: action 'GetSortCapabilities' response: args = { SortCaps= }
foo_upnp: FbMediaServer::ProcessHttpRequest: received request URL=/ContentDirectory/428ff545-776c-4399-a03e-001617726579/control.xml from a LAN client
foo_upnp: FbMediaServer::OnAction: received action 'Search', args = { ContainerID=0, SearchCriteria=upnp:class derivedfrom "object.item.audioItem" and @refID exists false, Filter=*, StartingIndex=0, RequestedCount=200, SortCriteria= }
foo_upnp: FbMediaServer::OnAction: action 'Search' response: args = { ContainerID=0, SearchCriteria=upnp:class derivedfrom "object.item.audioItem" and @refID exists false, Filter=*, StartingIndex=0, RequestedCount=200, SortCriteria=, NumberReturned=0, TotalMatches=0, UpdateID=0 }


Foobar's media library is obviously not empty.

foo_upnp

Reply #314
I can't get foobar to work as a media server. I use WMP12 and Win7 x64, foobar 0.9.6.7, foo_upnp 0.99.8. I have applied "Windows Media Server" preset and didn't change the port number: 56923.
WMP12 actually recognizes foobar as a media server, but it doesn't see any files on it, reporting that "no files have been found on this remote library":


0.99.8 was broken with WMP. Get 0.99.9 it should fix the problem.

foo_upnp

Reply #315
As already asked in this post #58 (Question wasn't answered yet)
Would it be possible to generate the tree as the directory structe is?
Maybe in a future version?



No immediate plans to implement it but it is in the todo list

foo_upnp

Reply #316
I can't get foobar to work as a media server. I use WMP12 and Win7 x64, foobar 0.9.6.7, foo_upnp 0.99.8. I have applied "Windows Media Server" preset and didn't change the port number: 56923.
WMP12 actually recognizes foobar as a media server, but it doesn't see any files on it, reporting that "no files have been found on this remote library":

0.99.8 was broken with WMP. Get 0.99.9 it should fix the problem.

That worked, thanks! I've downloaded 0.99.8 from the foobar's official website, so maybe you should update it there as well.

foo_upnp

Reply #317
I've downloaded 0.99.8 from the foobar's official website, so maybe you should update it there as well.

bubbleguuum mentioned that it was "highly beta" for now...
In theory, there is no difference between theory and practice. In practice there is.

foo_upnp

Reply #318
I've downloaded 0.99.8 from the foobar's official website, so maybe you should update it there as well.

bubbleguuum mentioned that it was "highly beta" for now...


I updated the component site to point to 0.99.9 as it seems to be working OK so far.


This morning I tested PS3 streaming with a wifi connection.  I had intermittent  "dlna protocol error 2104" (that were innexistent with a wired connection) and after googling around
I noticed a lot of people have all kinds of problem with wifi on the PS3 with a lot of speculation (sometimes funny) on what the problems are and often no solution, as those
nasty error codes are not documented.

Anyway I managed to get rid of that error by changing the wifi channel number of my connection. I'm in a busy area with lots of wifis and many of them used the same
channel id than me. That seems to work ok for know but you never know, wifi is black magic ! To find an unused channel id I used NetStumbler to list all the wifis

Another thing worth trying out in case of wifi problems it to set your wifi router mode to "G only" instead of "mixed B/G" or on newer routers, "N".  The PS3 is a "G" device.

Also, it looks like P2P programs can be nasty for wifi routers, opening many connections and potentially slowing it down.

foo_upnp

Reply #319
New version (first post to download) with quite some changes in how streaming configurations are handled, so still BETA.

0.99.10
---------

- chg: all configuration settings are now stored in an XML file in the user's foobar app data directory (c:\Documents And Settings\<user name>\Application Data\foobar2000\foo_upnp.xml).
It is created on first launch with default settings. If foo_upnp.xml has been edited externally and there's a parse error on load, the file is renamed as foo_upnp.xml.bak and a default
file is created. The foobar console should display a detailed message why it failed loading.

- new: it is now possible to stream to several clients (WMP, foobar, PS3, iPhone, etc) using separate streaming configuration for each, called profiles. User can edit/rename/add/remove
profiles in a totally revamped config page. When a client connects, the server will pick up a matching profile if any, or use the Default profile (this one can't be removed).
A client is matched to a profile by one or more substrings of its User-Agent http header.
By default there's a few profiles for standard clients that replace the "Presets" of the previous versions. Now it is like if all old presets were all active at the same time.

- chg: server: removed "Presets" as they are not needed anymore with streaming profiles
- new: server: in a profile, ability to set if 5.1 audio should be converted to stereo or not
- chg: server: removed "Allow Seek" and "DLNA" options. They are always enabled.
- fix: server: album art finally working on PS3 for art that is either jpeg or png
- new: server: it is now possible to populate a generated subtree with a subset of the media library using <SubTree query="<search query>">>. For example you could create
a node with only music from 1995 to 2000.
- new: server: added "Compilations" node in the tree (uses the feature above)
- chg: server: stream unsupported XBOX360 formats to lpcm instead of mp3 transcoding in previous version
- new: server: option to use %album artist% instead of %artists% in returned artist names
- fix: server: do not transcode MusePack to mp3 when transcoding configured to lossless only
- fix: server: potentially fixed a crash
- new: renderer: possible to change the renderer network name
- new: ability to set how verbose debug traces in the console are, by editing foo_upnp.xml.
Look for the "level" attribute of the "console_log" tag in conf. "level" values range from 0 (total SPAM) to 7 (only important messages). The default is 4.

------------

If you make working profiles for some exotic hardware that I have not access to, you can post them here in a codebox or drop me a PM so I can include it in future versions. Just open foo_upnp.xml and copy the relevant <profile> section.

foo_upnp

Reply #320
Awesome, I was wondering if was possible to have different settings for different devices , and being able to choose the nodes is cool. The icon foobar for the server seems a bit ugly though, there's white pixels around the edges.
Playback on the PS3 seems alot better since the last time I tried it, there's still some skipping though, and the length and album art don't appear when playing a track (but they do in the tree ).

Also, is it possible to restrict access to the server using IPs/MACs? I guess I could use my firewall for this but it would be good not to have to.

It would be nice if the nodes were a profile settings too, so different devices could have different nodes, and editable in f2k. The way it's done atm doesn't allow a different number for nodes for example:
Code: [Select]
artist
    album1
        ...
    album2
        disc1
            ...
        disc2
            ...

so the compilations example would be something like:
Code: [Select]
LABEL Compilations
QUERY compilation PRESENT
TREE  [%album artist% - ]%album%|%title%

although that might mess with the object.container stuff (what is that?).




foo_upnp

Reply #321
bubbleguuum

I use foobar without user profile folder and app data directory (c:\Documents And Settings\<user name>\Application Data\foobar2000\) not exist.

When I try version 0.99.10 of foo_upnp.dll and foobar crash on exit. Tnen I manualy create app data directory and now foobar not crash on exit, but create foo_upnp.xml and foo_upnp_ml_tree.xm in this app data directory. But in my case app data directory must be c:\program files\foobar2000.

Please correct this error.

foo_upnp

Reply #322
bubbleguuum

I use foobar without user profile folder and app data directory (c:\Documents And Settings\<user name>\Application Data\foobar2000\) not exist.

When I try version 0.99.10 of foo_upnp.dll and foobar crash on exit. Tnen I manualy create app data directory and now foobar not crash on exit, but create foo_upnp.xml and foo_upnp_ml_tree.xm in this app data directory. But in my case app data directory must be c:\program files\foobar2000.

Please correct this error.



I overlooked that. Fixed in 0.99.11 (first post). Also I modified the PS3 profile to always stream as LPCM, as other formats especially mp3 have a significant delay before playing
due to all kind of nasty request the PS3 does before playing the file.

foo_upnp

Reply #323
The icon foobar for the server seems a bit ugly though, there's white pixels around the edges.
The white frame is added by the PS3 so complain to Sony

Quote
Playback on the PS3 seems alot better since the last time I tried it, there's still some skipping though, and the length and album art don't appear when playing a track (but they do in the tree ).

I don't think the PS3 display a track length for PCM items (when playing the track). I could be wrong though (any counter example with another media server ?).

Quote
It would be nice if the nodes were a profile settings too, so different devices could have different nodes, and editable in f2k. The way it's done atm doesn't allow a different number for nodes

A tree per profile could be useful, maybe for a future version.
You can put any number of sub-node in a <SubTree>. These are the <spec> tag. for example what is specified as %artist%|%album%|%title% in the Album List component is specified like this
in the plugin's tree:

Code: [Select]
<SubTree label="Artists">
<spec type="object.container.person.musicArtist">%artist%</spec>
<spec type="object.container.album.musicAlbum">%album%</spec>
</SubTree>

You don't specify how tracks are formatted as this doesn't apply to upnp browsing.

Quote
although that might mess with the object.container stuff (what is that?).

It's just an indication of the type of containers for the remote upnp client. Most of the time it can probably be omitted. valid values are:

object.container  <= the default if omitted
object.container.album.musicAlbum
object.container.person.musicArtist
object.container.genre.musicGenre

foo_upnp

Reply #324
About the icon, I didn't mean the border around the image; the image itself has white pixels around the four corners http://tinypic.com/r/25arsd0/3.

ps3mediaserver correctly displays the length for PCM audio, but there's no thumbnail during playback so that might be a PS3 thing.

My main concern with the xml method is the fixed number of nodes, for example there's no way of having tracks in albums with multiple discs in their own 'Disc X' folder as shown above.

Any idea why
Code: [Select]
<SubTree label="Default">
    <spec type="object.container.person.musicArtist">$if($or($stricmp(%genre%,Game),$stricmp(%genre%,Movie),$stricmp(%genre%,Television)),Original Soundtrack,%album artist%)</spec>
    <spec type="object.container.album.musicAlbum">['['%date%']' ]%album%</spec>
</SubTree>

displays items as
Code: [Select]
artist
    album1
        track1
    album2
        track2
    track1
    track2

while
Code: [Select]
<SubTree label="Default">
    <spec>$if($or($stricmp(%genre%,Game),$stricmp(%genre%,Movie),$stricmp(%genre%,Television)),Original Soundtrack,%album artist%)</spec>
    <spec type="object.container.album.musicAlbum">['['%date%']' ]%album%</spec>
</SubTree>

doesn't have the additional tracks in the artist folder?