Author Topic: UPnP/ DLNA device support  (Read 302017 times)

francisw19

  • Guest
Firstly, this is a great plug-in.  I'm really happy to see this!

But, I'm feeling like a bit of a noob at the moment.  I've installed MusicBee on both my desktop PC and my Home Theater PC with the uPnP plug-in.  I got the Windows firewall prompt (which I allowed) the next time I started MB so it would seem the plug-in is trying to communicate over the network.  But, I cannot see anything in the MusicBee GUI to browse DLNA devices.  I know this is kind of a dumb question, but can anyone point me in the right direction?

Thanks in advance! :)

hiccup

  • Sr. Member
  • ****
  • Posts: 7781
But, I cannot see anything in the MusicBee GUI to browse DLNA devices.  I know this is kind of a dumb question, but can anyone point me in the right direction?
Welcome to the forum francisw19.

Depending on what you mean by browsing:

If you mean browsing for the devices themselves, you should find them under Preferences > Player > sound device
(or in the context menu > 'output to')

If you mean browsing for music content present on those other devices, that is not possible at this moment.
This plugin makes MusicBee a UPnP server. Not a UPnP client.

francisw19

  • Guest
But, I cannot see anything in the MusicBee GUI to browse DLNA devices.  I know this is kind of a dumb question, but can anyone point me in the right direction?
Welcome to the forum francisw19.

Depending on what you mean by browsing:

If you mean browsing for the devices themselves, you should find them under Preferences > Player > sound device
(or in the context menu > 'output to')

If you mean browsing for music content present on those other devices, that is not possible at this moment.
This plugin makes MusicBee a UPnP server. Not a UPnP client.

Ah, I see...I was indeed looking for something to browse music content on the other devices.

No problem, though.  I really just want to play my music collection from my main desktop to my HTPC and this plug-in will help me do that still.

Thanks for the reply, hiccup.  Much appreciated! :)

TeutonJon78

  • Jr. Member
  • **
  • Posts: 86
I'm seeing some new behavior with this plugin today (or I'm just hitting it for the first time).

I'm running 2.5.5721 and 1.0.0.0 of the uPNP plugin. If my TV is off, it seems to work fine and i can send music to receiver just fine. However, if the TV is on, CPU usage climbs to max and memory just keeps getting slowly eaten up, even if not playing anything. I attached procmon to MusicBee and it seems that it's sending out/receiving a constant stream of data with the TV (LG UB8500). If I disable the plugin, usage returns back to normal.

Anyone else seeing that with traffic from a smart TV?

Edit: debugging step 1 -- with TV off and plugin enabled, no CPU rise
Last Edit: September 06, 2015, 08:54:56 AM by TeutonJon78

CloudHead

  • Guest

I'm running 2.5.5721 and 1.0.0.0 of the uPNP plugin. If my TV is off, it seems to work fine and i can send music to receiver just fine. However, if the TV is on, CPU usage climbs to max and memory just keeps getting slowly eaten up, even if not playing anything. I attached procmon to MusicBee and it seems that it's sending out/receiving a constant stream of data with the TV (LG UB8500). If I disable the plugin, usage returns back to normal.

Anyone else seeing that with traffic from a smart TV?

Edit: debugging step 1 -- with TV off and plugin enabled, no CPU rise

Hi.

I've run into the same type of behavior with the UPNP plugin.
It's playing great but after a while (seem random) MusicBee starts eating the CPU and RAM.
I'm streaming to a Freebox (french ISP TV box), but it seem to behave the same on other stream target as well.

How can I help debuging this ? I'd be delighted to help providing whatever is needed.

Anyway, thanks for this great software that I've been happilly using for years.

Edit:
MusicBee v2.5.5728.33586 (Win6.1), 14 Sep 2015 21:06:

System.OutOfMemoryException: Une exception de type 'System.OutOfMemoryException' a été levée.
   à System.Threading.ThreadPoolWorkQueue.EnsureCurrentThreadHasQueue()
   à System.Threading.ThreadPoolWorkQueue.Dispatch()
Last Edit: September 14, 2015, 08:12:45 PM by CloudHead

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10691
Am I overlooking the wiki page for this plugin?  Just want to check before I make one...
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 9301
Am I overlooking the wiki page for this plugin?  Just want to check before I make one...
A search on the Wiki for "dlna" brings up nothing.  So it would appear you have some work in front of you.   ;)
Download the latest MusicBee v3.5 or 3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10691
A search on the Wiki for "dlna" brings up nothing.  So it would appear you have some work in front of you.   ;)

Just a little work: http://musicbee.wikia.com/wiki/UPnP-DLNA_Plugin
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 9301
A search on the Wiki for "dlna" brings up nothing.  So it would appear you have some work in front of you.   ;)

Just a little work: http://musicbee.wikia.com/wiki/UPnP-DLNA_Plugin
Nicely done.  And quickly, too.
Download the latest MusicBee v3.5 or 3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

gyary

  • Guest

There are quite a few configuration options that can be set via the Configure button in the plugins panel which should be straight-forward - ask if you are not sure of something.


Hi Steve,

I had the UPnP running till yesterday and suddenly I lost the connection to my device. I have updated the latest files to MusicBee folder, however I do not see my device on the list. Also I have lost the configurations in the plugins panel. Can you please help me with the configuration numbers/parameters?

My UPnP device is Pioneer VSX-823-K

Regards,

3lbriga

  • Newbie
  • *
  • Posts: 1
Hi Steve,

I've installed your plugin on latest MB 2.5 and for some reason when trying to stream MB to my Denon amp, the amp displays "Server error".
With WMP "play to" works perfect on the same computer. I've tried various options combination in the plugin config menu, no luck (restart MB also / reboot computer also).

Thanks anyone for helping :-)

Here is the log when playing to amp:

8; 1 Initialise - 23/10/2015 01:10:15
156; 2 GetNetworkAddresses - 192.168.1.30,dns=True,name=Wi-Fi,speed=78000000
157; 3 GetNetworkAddresses - 127.0.0.1,dns=False,name=Loopback Pseudo-Interface 1,speed=1073741824
158; 4 GetNetworkAddresses - http://192.168.1.30:49382
616; 5 ProcessMessage 192.168.1.45 - device 'uuid:5f9ec1b3-ff59-19bb-8530-0005cd3af0a0:Denon AVR-X2000',valid=True
10415; 6 Profile - Generic Device, useragent=AV SURROUND RECEIVER|
10417; 7 Profile - Generic Device, useragent=AV SURROUND RECEIVER|
10629; 8 Activate - Denon AVR-X2000:http-get:*:audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM,http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM,http-get:*:audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM,http-get:*:audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM,http-get:*:audio/mpeg:DLNA.ORG_PN=MP3,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMABASE,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMAFULL,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO,http-get:*:audio/3gpp:DLNA.ORG_PN=AAC_ISO,http-wavetunes:*:audio/x-ms-wma:*,http-get:*:audio/wav:*,http-get:*:audio/x-wav:*,http-get:*:audio/flac:*,http-get:*:audio/x-flac:*,http-get:*:audio/x-m4a:*,http-get:*:audio/x-mp4:*,http-get:*:image/jpeg:*
24374; 9 Play - D:\_Music\SouNdtracKs-\Casino\Casino - Soundtrack CD1\01 - Georges Delerue - Contempt - Theme de Camille.mp3 (http://192.168.1.30:49382/files/638B145D945B9D44p.mpeg)
26227; 10 StateTimer - Loading,old=Stopped
31618; 11 Play - D:\_Music\SouNdtracKs-\Casino\Casino - Soundtrack CD1\01 - Georges Delerue - Contempt - Theme de Camille.mp3 (http://192.168.1.30:49382/files/638B145D945B9D44p.mpeg)
132158; 12 StateTimer - Stopped,old=Loading
132562; 13 Play - D:\_Music\JaZz-\Paco de Lucia\1972 - El duende flamenco de Paco de Lucía\04-Farruca De Lucia.mp3 (http://192.168.1.30:49382/files/EB6A5DE334F69B8Fp.mpeg)
133504; 14 StateTimer - Loading,old=Stopped

Ralf

  • Newbie
  • *
  • Posts: 19
Hi Steven,
thx also from me for this great peace of code :-)

I tried to use the UPnP-plugin with my Freecom Musicpal but after playin' for around a minute or so it just stops playin'. I looked into the log myself but it didn't tell me anything, so maybe you'll have a look?
Code
2; 1 Initialise - 09.11.2015 14:22:50
22; 2 GetNetworkAddresses - 192.168.251.30,dns=True,name=Ethernet,speed=1000000000
23; 3 GetNetworkAddresses - 192.168.56.1,dns=True,name=VirtualBox Host-Only Network,speed=1000000000
23; 4 GetNetworkAddresses - 127.0.0.1,dns=False,name=Loopback Pseudo-Interface 1,speed=1073741824
24; 5 GetNetworkAddresses - http://192.168.251.30:49382
15699; 6 Profile - Generic Device, useragent=pvConnect DLNADOC/1.50
16282; 7 ProcessMessage 192.168.251.23 - device 'uuid:56076f6e-6b79-4d65-641e-0001db096372:MusicPal',valid=True
16287; 8 Profile - Generic Device, useragent=Freecom MusicPal|Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0, TwonkyMedia UPnP SDK/1.1
16289; 9 Profile - Generic Device, useragent=Freecom MusicPal|Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0, TwonkyMedia UPnP SDK/1.1
16349; 10 Activate - MusicPal:http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=11DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/mp3:DLNA.ORG_PN=MP3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/x-mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/x-wav:DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/wave:DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/wav:DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/x-m4a:DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ADTS;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/x-aac:DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMABASE;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=8D100000000000000000000000000000
19845; 11 Play - stream (http://192.168.251.30:49382/encode/continuousstream-2147483644.L16)
19954; 12 Profile - Generic Device, useragent=pvConnect DLNADOC/1.50
19955; 13 Profile - Generic Device, useragent=pvConnect DLNADOC/1.50
19956; 14 GetEncodedFile[1] 192.168.251.30 - HEAD  to 192.168.251.23; mime=audio/L16;rate=44100;channels=2,rate=44100,channels=2
19971; 15 Profile - Generic Device, useragent=pvConnect DLNADOC/1.50
19972; 16 Profile - Generic Device, useragent=pvConnect DLNADOC/1.50
19973; 17 GetEncodedFile[2] 192.168.251.30 - GET  to 192.168.251.23; mime=audio/L16;rate=44100;channels=2,rate=44100,channels=2
20164; 18 StateTimer - Loading,old=Stopped
21168; 19 StateTimer - Playing,old=Loading
80713; 20 NetworkChange_NetworkAddressChanged -
80742; 21 GetNetworkAddresses - 192.168.251.30,dns=True,name=Ethernet,speed=1000000000
80743; 22 GetNetworkAddresses - 192.168.56.1,dns=True,name=VirtualBox Host-Only Network,speed=1000000000
80744; 23 GetNetworkAddresses - 127.0.0.1,dns=False,name=Loopback Pseudo-Interface 1,speed=1073741824
80745; 24 GetNetworkAddresses - http://192.168.251.30:49382
81691; 25 GetEncodedFile[2] - exit=10054, playtime=61715
81743; 26 SyncNewPlayState - Stopped,mb=Playing
81774; 27 NetworkChange_NetworkAddressChanged -
81790; 28 GetNetworkAddresses - 192.168.251.30,dns=True,name=Ethernet,speed=1000000000
81791; 29 GetNetworkAddresses - 192.168.56.1,dns=True,name=VirtualBox Host-Only Network,speed=1000000000
81792; 30 GetNetworkAddresses - 127.0.0.1,dns=False,name=Loopback Pseudo-Interface 1,speed=1073741824
81793; 31 GetNetworkAddresses - http://192.168.251.30:49382
82964; 32 SsdpServer:SendNotifyMessage - Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
host=192.168.251.30,nt=upnp:rootdevice,usn=11687931-39e7-47fc-b72b-10cbc9921d12,isalive=True
83016; 33 SsdpServer:SendNotifyMessage - Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
host=192.168.251.30,nt=11687931-39e7-47fc-b72b-10cbc9921d12,usn=11687931-39e7-47fc-b72b-10cbc9921d12,isalive=True
83068; 34 SsdpServer:SendNotifyMessage - Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
host=192.168.251.30,nt=urn:schemas-upnp-org:device:MediaServer:1,usn=11687931-39e7-47fc-b72b-10cbc9921d12,isalive=True

Update 17.11.2015
Don't know what changed, but it's working now after removing the Musicpal temporarily due to renovation. In case anybody else is having these symptoms please be sure to pull the plug of your receiver and wait 5 minutes :-)
Last Edit: November 17, 2015, 07:55:26 AM by Ralf

hiccup

  • Sr. Member
  • ****
  • Posts: 7781
Is there anybody here, who succeeded in using this plugin to play to a foobar2000 installation on another Windows PC in the network?

I haven't. When using foobar2000 as the player (as upnp server) on my main PC it plays nicely to the other PC running foobar2000 (as upnp client).
But with MusicBee as the player/server I can't get it to play to the other PC running the same foobar2000 as upnp client.

MusicBee's upnp plugin has a foobar2000 preset, so I assume it should be possible, but I would like to know if somebody actually succeeded, so I can try to prevent wasting to much time on this.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34312
it should definitely work with foobar as i tested that arrangement a lot when building the plugin.
Does it work if both are on the same machine?
I wont have time to be able to help further though

hiccup

  • Sr. Member
  • ****
  • Posts: 7781
Does it work if both are on the same machine?
I wont have time to be able to help further though

I am not clear how you mean that.
Do you mean by 'if' and 'both' that I should try running both MusicBee (server) and foobar (client) on one and the same machine first? (thus not over a network?)

I completely understand that you are currently not available for (much) help on this, also considering how much time and effort I know this plugin already cost you. (and me too, trying and failing to get my Squeezeboxes working :-(

I just wanted some confirmation that somebody got this working with foobar indeed.
If so, I know it might be worthwhile for me to put in more effort.
For example, I noticed there are several foobar upnp plugins. I might currently be using a different one than one that somebody who might have succeeded in this is using.

If you yourself had this working well over your network, that gives me some courage and assurance to invest more effort in it.