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 1639449 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_upnp

Reply #476
OK,

So browsing by filesystem folders tree is my #1 feature request,
as my audio library is perfectly organized on the filesystem, but a lot less clean in terms of metadata tags...

Once this is done, foobar2000 + foo_upnp combo will be just perfect.

cheers

foo_upnp

Reply #477
Hi Bubleguuum,

I've made a Foobar Theme which I would like to share as it  could be handfull for novell users. It's a full GUI with on the left file folders (can be switched by Filter) & on the right UPnP and ofcourse the other stuff like metadata, find song & album art display.

How can I upload files on this forum to share this with the UPnp community? I didn't find a file upload button but maybe I missed it.

How is the "Play next song" development going (Cidero alike control)?
I'm desperatley waiting for this new functionality.

BR.

foo_upnp

Reply #478
v0.99.16  released. 0.99.14 is still available in case of possible regressions with some hardware. Thanks TheLink for testing .

Code: [Select]
0.99.16 

- chg: merge with Platinum UPnP SDK 0.5.4, should fix a few crashes and improve stability
- fix: obscure repeated crash in http request code (thanks Yirkha)
- new: in Server's advanced preferences, ability to enable log to file and to set log level. Log file is called foo_upnp.log and overwritten on each foobar2000 launch.
- fix (regression): if there was no previous config file, returned item titles defaulted to the http URL or where just empty
- add: browser: added "Directories" node, shows albums by last directory path component. Need to manually delete foo_upnp_ml_tree.xml for this new node to show up.
- new: browser: can configure action on search: send to active playlist, add to active playlist, send to UPnP Browser Search Playlist
- new: browser: display number of items in a browsed tree node
- new: browser: drag'n drop support of a node containing tracks to a playlist or whatever where tracks are accepted
- fix: browser: in some fail cases, browse and search threads could be left running indefinitely
- add: server: now returns a date if %date% is in the yyyy-mm and yyyy-mm-dd formats (before only yyyy was handled). needed for correct album grouping in WMP
- chg: server: WMP should now know about Album Artist in returned items, needed for correct album grouping.
- chg: server: if connecting client is not foobar2000 and track has %discnumber%, append %discnumber% to album name. Needed for correct album grouping on WMP
- fix: server: items with a real subsong of 0 where improperly detected (the original whole file was streamed instead of the subsong)
- fix: controller: fix bug on event subscription renewal in Platinum. On the second renewal (happening 1h after first subscription), controller would not get any event from the renderer
- fix: controller: UPnP Controller context menu on selected items could sometimes never be shown
- chg: controller now try to identify the renderer to which content is pushed to, and use the appropriate streaming profile. The Default profile is used if no matching could be made.
- fix: controller: "Client decode HTTP streams directly" setting not taken into account when sending a local item to a renderer using the controller. Now the setting  in the Default profile is used in that case.
- chg: controller: don't issue 2 consecutive Seek() or SetVolume() when using the respective sliders
- chg: server: now return items sorted using the default "sort incoming by" order: "%album artist%|$if($not($meta(album artist)),%date%)|%album%|%discnumber%|%tracknumber%|%title%". this should correcltly group track by album on the XBOX360 among others.
- fix: server: return %publisher% (dc:publisher) for all UPnP clients. For foobar2000 clients (ie foo_upnp) return specific additional info in DIDL: %discnumber%, %style%, %composer%, %conductor%,  %totaltracks%, %totaldiscs%, %compilation%, %vinyltrack%, %rating%.
- new: server: now returns mms:// items (previously they were skipped). Those items uses the "Client decode HTTP streams directly" setting.
- fix: server: when streaming a non-seekable location as PCM (for example relaying a netradio), seeking on the client will return a seek error to prevent bad things.
- fix: server: on foobar exit, a previous long seek operation could hang the app for a loooooooooooong while
- chg: server: the PCM decoder (also used for mp3 transcoding) was failing at some http streams and giving "file not found" errors. Now better with getting technical infos should imply less fail.
- chg: server: reduced buffer size of the PCM decoder for faster play (in the client) of http streams decoded by the server
- new: server: option in streaming profile to apply RG only to files that would be transcoded to mp3 or decoded to PCM according to the rules.
- fix: server: set rate and channels parameters in audio/L16 mime-type when streaming LPCM

foo_upnp

Reply #479
0.99.16.1 released, to fix 2 crashes introduced in 0.99.16:

Code: [Select]
- fix: crash at plugin init in some rare cases
- fix: controller: crash when adding a renderer with no AVT service (the fake Xbox 360 renderer for example)



foo_upnp

Reply #480
hi bubbleguuum..
i have problems with version 16 and 16.1 with my ps3.
with version 14 everything was perfect.. I made also a "clean" install of that component (means: i deleted: foo_upnp.xml) ..

i can choose the playlists or the library but i can't see any songs..

thanks for that creat component
ruben

foo_upnp

Reply #481
hi bubbleguuum..
i have problems with version 16 and 16.1 with my ps3.
with version 14 everything was perfect.. I made also a "clean" install of that component (means: i deleted: foo_upnp.xml) ..

i can choose the playlists or the library but i can't see any songs..

thanks for that creat component
ruben



Very strange as it works here on my PS3...

Can you enable "log to file" in the Server advanced prefs and set log level to "ALL". Then restart fb so it takes effect, browse on your PS3 to some location
not showing items and send me the log file (foo_upnp.log) at bubbleguuum@ree.fr.

foo_upnp

Reply #482
I have the same problem of not seeing any titles (but Genre or Album structure are there) when browsing from the Kiss 1600.
I'm sending you foo_upnp.log in case you want to look at it, too.

foo_upnp

Reply #483
thank you very much for the nwe version! great, that now %discnumber% and %compilation% works! great!

foo_upnp

Reply #484
its a little bit curious.. now it works.. i rebooted my notebook and everything is fine ..

thanks!

foo_upnp

Reply #485
I set up the server to try out the "directories" listing and found a problem.  Although I am not sure if this is a bug or I am forgetting something. 

I have a folder called "Music"  that contains subfolders that are the names of the artists.  the artist subs contain the albums for that artist i.e.:

-Music
-- Beck
--- Mutations
    ...

However, after deleting the foo_upnp_ml_tree.xml file, I am getting a list of the album titles instead of the simple directory structure. i.e.

-Music
-- Mutations
    ...

Am I missing something? Or is this a bug to report?

Also, as a request, most UPnP servers that use folder structure to list the folders call the node "Folders".  if you could change that, I would appreciate it.

Thank you for your time

Darren

foo_upnp

Reply #486
@Wadsbrau
It's not the real full filesystem structure. It just group your ML by %directoryname%, the last (directory) path component of your files.

This is temporary until I implement proper filesystem navigation contrained to the ML (not in the immediate future though).

foo_upnp

Reply #487
Oh, sorry.  This "directories" node is useless then.  Hopefully in the near future you can add that feature.  Windows media player 12 has a "folder" list.  As well as almost all of the other UPnP server software. I was hopeful to use your server.  Well, there is still Twonky (which has issues) or FUPPES (also many issues).  However, I am grateful for the renderer part of the plugin.  I use it nearly every day utilizing a remote UPnP controller. 

I'll keep my fingers crossed.

Thanks,

Darren

foo_upnp

Reply #488
First of all, this plugin is awesome!

I have an HP MediaSmart Windows Home Server that my music files are stored on. Previously to get my files to play in WMP, I had to add the network location to my libraries, install all the right directshow filters, and then use the WMPTagSupportExtender to get the metadata into the library (for FLAC/APE files). This always sucked on 64bit machines because not every format had a 64bit directshow filter, and the WMPTagSupportExtender never was compiled for 64bit. With this plugin, I can run foobar2000 on the Home Server and I don't have to worry about any of that because the files are streamed and all the metadata and album art comes with it. The only thing I need now is to get this working with Windows Media Center.

Does anyone know if Windows Media Center can be configured to browse a UPNP server? I know that WMC is kind of a glorified front-end to WMP, and uses the same media library, filters and codecs. Since WMP has the UPNP client, it seems like there should be a way for WMC to use it as well, however in the WMC UI the only options are to add specific network/local folders to the library for indexing. This puts me back on the dependency for WMPTagSupportExtender.

One more question, is it possible to include the Composer metadata tag? All my files are showing Unknown when viewing by composer (I have the correct tags set in my files).

foo_upnp

Reply #489
I would also like to thank the developer.  I used foobar2000 with a digital out soundcard for a long time but recently have been using FUPPES to stream music to several SMCWAA-G network players that I modifed for digital output.  FUPPES is a bitch to configure, but is very fast and low CPU overhead.  I tried Tversity and it was very slow and high overhead.

With foo_upnp I had to figure out how to list individual songs rather than albums.    My SMCWAA-G boxes can operate in Shuffle mode.  I had lists like All Songs, Songs by Artist or Songs by Genre. 

I looked at the foo_upnp_ml_tree.xml file and it appeared that you had to select albums as the "lowest common denominator" if you will.  But you can use the <item></item> method to get individual tracks.

<MediaLibraryTree>
   <SubTree label="Genres">
      <spec type="object.container.genre.musicGenre">%genre%</spec>
      <item>%title%</item>
   </SubTree>
   
   <SubTree label="All Songs">
      <item>%title%</item>
   </SubTree>
   
   <SubTree label="By Artist">
      <spec type="object.container.person.musicArtist">%artist%</spec>
      <item>%title%</item>
   </SubTree>
   
   <SubTree label="Albums">
      <spec type="object.container.album.musicAlbum">%album%[ '['%album artist%']']</spec>
   </SubTree>
   
</MediaLibraryTree>

If you select Genres, you get a list of Genre folders.  Within each folder there is a list of all matching songs.

If you select All Songs, you get a list of All Songs.  So Shuffle mode is like a jukebox which plays your entire Library.

If you select By Artist, you get a list of Artist folders.  Within each folder there is a list of all matching songs.

Perhaps this will be of interest.

foo_upnp

Reply #490
Does anyone know if Windows Media Center can be configured to browse a UPNP server? I know that WMC is kind of a glorified front-end to WMP, and uses the same media library, filters and codecs. Since WMP has the UPNP client, it seems like there should be a way for WMC to use it as well, however in the WMC UI the only options are to add specific network/local folders to the library for indexing. This puts me back on the dependency for WMPTagSupportExtender.


Im not too sure about WMC but the plugin offers good support with WMP, especially the latest version (you'll have to thank TehLink for that).
If WMC works like WMP for upnp, it should work.

Quote
One more question, is it possible to include the Composer metadata tag? All my files are showing Unknown when viewing by composer (I have the correct tags set in my files).


It's possible to add that info so WMP can see it. I'll add it for next version

foo_upnp

Reply #491
I looked at the foo_upnp_ml_tree.xml file and it appeared that you had to select albums as the "lowest common denominator" if you will.  But you can use the <item></item> method to get individual tracks.


I'm not sure to understand what you were trying to achieve, but <item> tags are not parsed at all by the plugin.

foo_upnp

Reply #492
@adamtoth
WMC does not allow you to index your media server but one can still browse it by clicking on "Music Library" and then "shared", last entry on the right. "foobar2000 Media Server" should appear in the list (this is on win 7 pro,  wmc v6.1).

@bubbleguuum
First bravo for this cool plugin. The last update .99.16.1 works great. 2 issues remain though:
* This is really personnal taste, but I don't like the new handling of albums in wmp. Even if an album is composed of two discs, this is still _one_ album. The choice of appending the disc number to the title leads to duplicates, not to say this is counter intuitive. Indeed when I click 'album listing', I expect to see an album list and not a disc one.
To solve the sorting problem, I'd rather make the track number the concatenation of the disc number + track number ie. 103, third track of the first disc or 201, first track of the second. Maybe you can make this an option? (ok i'm picky here i admit)

* I may have missed something but I can't make foo_upnp work with audio players based on the Coherence library. This library is often used by media players on Linux. I can browse the hierarchy exposed by foo_upnp_ml_tree.xml but I never see the leaves (the media files), it stops at the parent folder even if it shows the number of files in the directory when I click on it.
The Coherence library comes with a debugging tool, Upnp Inspector. Below, a screenshot of it that exhibits the problem :



On the following link, one can see how it should look like: http://coherence.beebits.net/wiki/Totem

HTTP query from Totem, the default media player on Ubuntu, when I click on the last folder of the hierarchy :

Code: [Select]
POST /ContentDirectory/f853349f-80cf-bc9b-55b6-e4db60ac35d6/control.xml HTTP/1.0
Host: 192.168.1.105
User-Agent: Twisted PageGetter
Content-Length: 450
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
content-type: text/xml;charset="utf-8"
connection: close
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
      <s:Body>
            <ns0:Browse xmlns:ns0="urn:schemas-upnp-org:service:ContentDirectory:1">
                  <ObjectID>0/1/0/1</ObjectID>
                  <BrowseFlag>BrowseDirectChildren</BrowseFlag>
                  <Filter>*</Filter>
                  <RequestedCount>0</RequestedCount>
                  <StartingIndex>0</StartingIndex>
                  <SortCriteria />
            </ns0:Browse>
      </s:Body>
</s:Envelope>

The response from foo_upnp:

Code: [Select]
HTTP/1.1 200 OK
Server: Platinum/0.5.4.0
Content-Type: text/xml; charset="utf-8"
Ext:
Connection: close
Content-Length: 625
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
      <s:Body>
            <u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
                  <Result>&lt;DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;&lt;/DIDL-Lite&gt;</Result>
                  <NumberReturned>0</NumberReturned>
                  <TotalMatches>21</TotalMatches>
                  <UpdateID>0</UpdateID>
            </u:BrowseResponse>
      </s:Body>
</s:Envelope>


I guess this is more a bug between the Platinium and Coherence library but maybe someone has an idea.

foo_upnp

Reply #493
@adamtoth
WMC does not allow you to index your media server but one can still browse it by clicking on "Music Library" and then "shared", last entry on the right. "foobar2000 Media Server" should appear in the list (this is on win 7 pro,  wmc v6.1).


Thanks Goombas! I never even noticed that Shared link before, it's so hidden. Media Center seems to take a much longer time pulling in all the album art then just WMP by itself. I have a pretty large library and ehshell.exe gets over 2 GB of memory usage. It also doesn't seem to cache the art well for the next time I open WMC. Oh well, this is much better than before, and now seeking works on FLAC! Can't wait for the composer tag to be included, thanks again.



foo_upnp

Reply #494
* This is really personnal taste, but I don't like the new handling of albums in wmp. Even if an album is composed of two discs, this is still _one_ album. The choice of appending the disc number to the title leads to duplicates, not to say this is counter intuitive. Indeed when I click 'album listing', I expect to see an album list and not a disc one.
To solve the sorting problem, I'd rather make the track number the concatenation of the disc number + track number ie. 103, third track of the first disc or 201, first track of the second. Maybe you can make this an option? (ok i'm picky here i admit)


I understand what you mean, I'll add the option

Quote
I guess this is more a bug between the Platinium and Coherence library but maybe someone has an idea.


This was a bug in my code when browsing is called with RequestedCount=0, something not recommended since it asks for all items of a container
. Thanks for reporting, fixed in upcoming version.

foo_upnp

Reply #495
I'm not sure to understand what you were trying to achieve, but <item> tags are not parsed at all by the plugin.

Hello:

Here's an example.

Using your default xml file.    If I open a folder for a specific Genre, I get a list of Albums which match that Genre.  I can open one of those Albums and play it from start to finish, correct?

But I wanted to open the Genre folder and see a list of all the Titles which matched that Genre, so my network player could "Shuffle" them automatically.

So I tried the <item></item> syntax that is similar to the FUPPES xml file and it works with foo_upnp.  I know it works because I have been listening to it for the past day.

Not sure why it works, of course.  I just assumed this was a standard part of upnp compatibility.

Once again, thanks for the plugin.

 

foo_upnp

Reply #496
You can remove <item></item>, it will have the same effect.

writing:

<spec type="object.container.genre.musicGenre">%genre%</spec>

just splits your collection by genre, each node containing the items of a genre.

adding more <spec> clauses further split generated nodes into sub-nodes, for example to split all tracks of a genre by albums (this is what
the default Genres node does) you would add: <spec type="object.container.genre.musicAlbum">%album%</spec>

You can also restrict the splitting of a node to a subset of the Media Library. Suppose you want to display by genre, only your tracks in compilations:

<SubTree label="Compilations tracks by genres" query="compilation PRESENT">
<spec type="object.container.genre.musicGenre">%genre%</spec>
</SubTree>

Moderation: Removed useless full quote of the preceding post.

foo_upnp

Reply #497
You can remove <item></item>, it will have the same effect.


Thanks for the other tips.  I stumbled into the right answer by removing the second level of <spec></spec>.

Perhaps you can answer another question?

My SMC media renderer has a 3 line display.  When I play mp3 files with ID3V2 tags, the Artist, Album and Title are displayed statically on each line.  Also some streaming radio stations display multiple lines.

I would like this type of multi-line display for any file being played.

When I play a flac file with only flac tags ( I used tag.exe to strip out all the ID3V1 tags ) the SMC only displays one line.  Your foo_upnp allows me to display [%artist%] - [%title%] on one line, which is an improvement.

Do you have any ideas?



foo_upnp

Reply #498
At first thanks for this plugin! I'm having the problem of a ~45 seconds delay between the playing of two songs. For server and client (browser panel) I'm using foobar 0.9.6.9 with the latest foo_upnp 0.99.16.1. I tried different sizes of the media library, tried to connect from work and everything works fine except the waiting time between the songs. Well, I assume thats not supposed to be, right? I'm running out of ideas and I didn't find anything helpful on the boards...

Before I had another (rather old) instance of foobar installed and for testing this plugin I installed another one with the latest versions of foobar, columns ui and foo_upnp. I didn't try uninstalling the old foobar yet, because I don't think that could be the reason, but who knows...

Any suggestions?

foo_upnp

Reply #499
Is there some guide or help file for this somewhere?  Because it just flat out doesn't work for me.  I could have the plugin thing uninstalled and I wouldn't be able to tell for all it matters because nothing is happening here.  I'm wanting to play my music off my ps3.  I've got ps3 media server running for movies (though I don't use it), it detects that fine, I didn't have to mess with any ports or anything.  For this I've tried messing with all kinds of ports and nothing is happening.  None of the PCs can seem to detect it either.  I didn't see where anyone else was having any problem with this so I don't know what to do.  UPnP browser just shows PS3 Media Server, don't know if it is supposed to also show itself as well or what.  I feel like there's a giant ON button somewhere I'm missing or something. 

I want to use this because I have my pc hooked up to my tv and reciever but for some reason with my music, surround sound only comes out as stereo no matter what.  I thought sending it as lcpm to the ps3 instead might fix that.  I got my movies to finally work with surround sound by messing with some spdif shit but that doesn't seem to have worked here.  Not really up on all the terminology and shit as you might be able to tell.