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

zigzag10

  • Jr. Member
  • **
  • Posts: 58
Brilliant plugin - many thanks Steven for developing it.  I use it solely to steam content to a raspberry Pi/DAC running Moode Audio and have had absolutely no issues with it.

Incidentally, I'm using its Generic Profile and by changing the upper range of the output sample range to ‘192,000’ and the maximum bit depth to ‘24’ I’ve made it capable of streaming HD Res Flacs, so I'm well happy!  As far as I can tell, the default setting for the plugin converts such tracks to a 16-bit PCM stream.

Ralf

  • Newbie
  • *
  • Posts: 16
Just noticed that I get album images on my Auna Connect 150 when connecting directly to my Synology NAS, but not when streaming from MB (neither MB > Connect150 nor Connect150 from MB Library).

Anybody got an idea what to do about it?

Alberto73

  • Newbie
  • *
  • Posts: 1
Hi!
The plugin is working very well with my Xiaoai speakers, but everytime I try to switch "output to" my PC, Musicbee crashes. I think the log doesn't help, as the crash is not registered:

19; 1 Initialise - 08/12/2019 12:16:36
129; 2 GetNetworkAddresses - 192.168.0.136,dns=True,name=Wi-Fi,speed=325000000
136; 3 GetNetworkAddresses - 127.0.0.1,dns=False,name=Loopback Pseudo-Interface 1,speed=1073741824
142; 4 GetNetworkAddresses - http://192.168.0.136:49382
434; 5 ProcessMessage 192.168.0.185 - device 'uuid:18d3d1f1-c14c-42fd-8697-d38ca1c62500:小爱音箱-8660',valid=True
501; 6 ProcessMessage 192.168.0.161 - device 'uuid:a06177af-3364-41d6-af0f-a9e15cb25838:小爱音箱-1039',valid=True
786; 7 ProcessMessage 192.168.0.135 - device 'uuid:b3d62cdc-3703-4d5c-b33a-90b769381777:小爱音箱-1154',valid=True
1171; 8 ProcessMessage 192.168.0.163 - device 'uuid:495f1835-2f5f-45f8-b3ce-6f8a1d7dad54:小爱音箱-5342',valid=True

I've changed the preferences to all the options possible but it doesn't fix the problem. The only way to switch without crashing is to disable the plugin first, but it's annoying...

Hope it can be fixed!

Alberto.

zehuti

  • Newbie
  • *
  • Posts: 14
Found another "bug". Cover picture not getting send to upnp player if picture is in same folder with one big flac file and cue for that flac file, and playing from cue. Embedding picture in that big flac - same. But works if you just play that big flac without cue.


update:

works with other one big flac and cue

i guess its something with that one flac cue folder
Last Edit: December 09, 2019, 05:31:56 PM by zehuti

zigzag10

  • Jr. Member
  • **
  • Posts: 58
I use the UPnP plugin and have noticed that when I’ve selected output to my UPnP device (a raspberry Pi/DAC running Moode Audio), I’m unable to fast-forward or rewind some FLACs that have been encoded with MBs built-in FLAC converter, as developed by Xiph.org.
  
A quick google indicates the issue has crept up on several other audio players as well, leading me to conclude that it could be caused by a bug with the converter itself. Maybe I'm wrong to think that but if the tracks I’m having an issue with are instead encoded with dBpoweramp’s Music Converter, which if I get it right comprises a modified version of Xiph’s FLAC codec, or with the MediaHuman Audio Converter, which uses ffmpeg, fast-forward and rewind works just as it should.
 
Ok, so I can get around this issue by using a different converter, but I would much rather use MB for all encoding.  Please, could anyone advise if this issue could be overcome by modifying MBs FLAC encoding parameter, or whether it’s somehow possible to get ffmpeg to carry out the FLAC conversion process within MB instead?
  
Any pointers or suggestions will be really appreciated.
Last Edit: December 20, 2019, 06:11:04 PM by zigzag10

TheGiwi

  • Newbie
  • *
  • Posts: 3
Hi everyone,

Great Plugin! However, at the moment, I'm running into either one of two issues:

- loud white noise in the middle of playback
- playback just stops all together

Attached is my log file just after a white noise incident.

Any suggestions what I could do?

Many thanks!

Quote

1; 1 Initialise - 3/01/2020 4:14:27 PM
53; 2 GetNetworkAddresses - 192.168.178.27,dns=True,name=Ethernet,speed=100000000
60; 3 GetNetworkAddresses - 127.0.0.1,dns=False,name=Loopback Pseudo-Interface 1,speed=1073741824
71; 4 GetNetworkAddresses - http://192.168.178.27:49382
323; 5 ProcessMessage 192.168.178.27 - device 'uuid:a15bb4d9-adaf-0e4a-0000-00000c8ad537:Bosecast (DLNA)',valid=True
336; 6 Profile - BubbleUPnP, useragent=|Windows10/10.0 UPnP/1.0 BubbleUPnPServer/0.9-update37
343; 7 Profile - BubbleUPnP, useragent=|Windows10/10.0 UPnP/1.0 BubbleUPnPServer/0.9-update37
355; 8 Profile - Generic Device, useragent=AVM UPnP/1.0 Client 1.0
361; 9 Activate - Bosecast (DLNA):http-get:*:audio/L16:*,http-get:*:audio/L16;channels=1;rate=11025:*,http-get:*:audio/L16;channels=1;rate=22050:*,http-get:*:audio/L16;channels=1;rate=44100:*,http-get:*:audio/L16;channels=1;rate=48000:*,http-get:*:audio/L16;channels=1;rate=88200:*,http-get:*:audio/L16;channels=1;rate=96000:*,http-get:*:audio/L16;channels=1;rate=176400:*,http-get:*:audio/L16;channels=1;rate=192000:*,http-get:*:audio/L16;channels=2;rate=11025:*,http-get:*:audio/L16;channels=2;rate=22050:*,http-get:*:audio/L16;channels=2;rate=44100:*,http-get:*:audio/L16;channels=2;rate=48000:*,http-get:*:audio/L16;channels=2;rate=88200:*,http-get:*:audio/L16;channels=2;rate=96000:*,http-get:*:audio/L16;channels=2;rate=176400:*,http-get:*:audio/L16;channels=2;rate=192000:*,http-get:*:audio/L24:*,http-get:*:audio/L24;channels=1;rate=11025:*,http-get:*:audio/L24;channels=1;rate=22050:*,http-get:*:audio/L24;channels=1;rate=44100:*,http-get:*:audio/L24;channels=1;rate=48000:*,http-get:*:audio/L24;channels=1;rate=88200:*,http-get:*:audio/L24;channels=1;rate=96000:*,http-get:*:audio/L24;channels=1;rate=176400:*,http-get:*:audio/L24;channels=1;rate=192000:*,http-get:*:audio/L24;channels=2;rate=11025:*,http-get:*:audio/L24;channels=2;rate=22050:*,http-get:*:audio/L24;channels=2;rate=44100:*,http-get:*:audio/L24;channels=2;rate=48000:*,http-get:*:audio/L24;channels=2;rate=88200:*,http-get:*:audio/L24;channels=2;rate=96000:*,http-get:*:audio/L24;channels=2;rate=176400:*,http-get:*:audio/L24;channels=2;rate=192000:*,http-get:*:video/mp4:*,http-get:*:audio/x-flac:*,http-get:*:application/flac:*,http-get:*:audio/flac:*,http-get:*:application/x-flac:*,http-get:*:audio/wav:*,http-get:*:application/x-wave:*,http-get:*:audio/wave:*,http-get:*:application/wave:*,http-get:*:application/wav:*,http-get:*:application/x-wav:*,http-get:*:audio/x-wave:*,http-get:*:audio/x-wav:*,http-get:*:audio/mp3:*,http-get:*:application/mp3:*,http-get:*:application/x-mp3:*,http-get:*:audio/mpg:*,http-get:*:audio/mpeg3:*,http-get:*:application/mpeg:*,http-get:*:audio/x-mp3:*,http-get:*:audio/x-mpegaudio:*,http-get:*:audio/mpeg:*,http-get:*:audio/x-mpeg3:*,http-get:*:audio/x-mpg:*,http-get:*:audio/x-mpeg:*,http-get:*:application/mpeg3:*,http-get:*:audio/mp1:*,http-get:*:application/mp1:*,http-get:*:audio/aacp:*,http-get:*:audio/aac:*,http-get:*:audio/3gpp:*,http-get:*:audio/3gpp2:*,http-get:*:audio/x-aac:*,http-get:*:audio/m4a:*,http-get:*:audio/mp4:*,http-get:*:application/x-m4b:*,http-get:*:application/x-m4a:*,http-get:*:application/x-m4p:*,http-get:*:application/x-mp4:*,http-get:*:audio/mpeg4:*,http-get:*:audio/x-m4b:*,http-get:*:audio/x-m4a:*,http-get:*:audio/x-m4p:*,http-get:*:audio/x-mp4:*,http-get:*:application/mpeg4:*,http-get:*:audio/m4a:*,http-get:*:audio/mp4:*,http-get:*:application/x-m4b:*,http-get:*:application/x-m4a:*,http-get:*:application/x-m4p:*,http-get:*:application/x-mp4:*,http-get:*:audio/mpeg4:*,http-get:*:audio/x-m4b:*,http-get:*:audio/x-m4a:*,http-get:*:audio/x-m4p:*,http-get:*:audio/x-mp4:*,http-get:*:application/mpeg4:*,http-get:*:audio/x-ogg:*,http-get:*:application/x-ogg:*,http-get:*:audio/vorbis:*,http-get:*:application/ogg:*,http-get:*:audio/ogg:*,http-get:*:audio/x-ogg:*,http-get:*:application/x-ogg:*,http-get:*:audio/vorbis:*,http-get:*:application/ogg:*,http-get:*:audio/ogg:*,http-get:*:audio/x-scpls:*,http-get:*:audio/x-ms-wma:*,http-get:*:application/x-ms-wma:*,http-get:*:application/wma:*,http-get:*:audio/wma:*,http-get:*:audio/dff:*,http-get:*:audio/x-dff:*,http-get:*:audio/x-dsf:*,http-get:*:audio/dsf:*,http-get:*:audio/opus:*,http-get:*:application/aiff:*,http-get:*:audio/aiff:*,http-get:*:application/x-aif:*,http-get:*:application/aif:*,http-get:*:application/x-aiff:*,http-get:*:audio/x-aifc:*,http-get:*:audio/x-aiff:*,http-get:*:audio/aif:*,http-get:*:audio/aifc:*,http-get:*:audio/x-aif:*,http-get:*:application/ape:*,http-get:*:application/x-ape:*,http-get:*:audio/monkeys-audio:*,http-get:*:audio/x-monkeys-audio:*,http-get:*:audio/ape:*,http-get:*:application/monkeysaudio:*,http-get:*:audio/x-monkeysaudio:*,http-get:*:application/monkeys-audio:*,http-get:*:audio/x-ape:*,http-get:*:application/x-monkeys-audio:*,http-get:*:application/x-monkeysaudio:*,http-get:*:audio/monkeysaudio:*,http-get:*:application/ape:*,http-get:*:application/x-ape:*,http-get:*:audio/monkeys-audio:*,http-get:*:audio/x-monkeys-audio:*,http-get:*:audio/ape:*,http-get:*:application/monkeysaudio:*,http-get:*:audio/x-monkeysaudio:*,http-get:*:application/monkeys-audio:*,http-get:*:audio/x-ape:*,http-get:*:application/x-monkeys-audio:*,http-get:*:application/x-monkeysaudio:*,http-get:*:audio/monkeysaudio:*,http-get:*:audio/wavpack:*,http-get:*:application/x-wavpack:*,http-get:*:audio/x-wv:*,http-get:*:application/wavpack:*,http-get:*:audio/wv:*,http-get:*:audio/x-wavpack:*,http-get:*:application/wv:*,http-get:*:application/x-wv:*,http-get:*:audio/mpc:*,http-get:*:application/musepack:*,http-get:*:application/x-mpc:*,http-get:*:application/mpc:*,http-get:*:audio/musepack:*,http-get:*:application/x-musepack:*,http-get:*:audio/x-mpc:*,http-get:*:audio/x-musepack:*,http-get:*:audio/x-tak:*,http-get:*:audio/tak:*,http-get:*:audio/amr:*,http-get:*:audio/vnd.rn-realaudio:*,http-get:*:audio/x-pn-realaudio:*
1566; 10 Profile - BubbleUPnP, useragent=Windows10/10.0 UPnP/1.0 BubbleUPnPServer/0.9-update37
36918; 11 NetworkChange_NetworkAddressChanged -
37068; 12 GetNetworkAddresses - 192.168.178.27,dns=True,name=Ethernet,speed=100000000
37080; 13 GetNetworkAddresses - 127.0.0.1,dns=False,name=Loopback Pseudo-Interface 1,speed=1073741824
37087; 14 GetNetworkAddresses - http://192.168.178.27:49382
38322; 15 Profile - Generic Device, useragent=AVM UPnP/1.0 Client 1.0
39347; 16 Profile - BubbleUPnP, useragent=Windows10/10.0 UPnP/1.0 BubbleUPnPServer/0.9-update37
67790; 17 Play - D:\Users\Paul\OneDrive - PBHDK\Music\Iron Maiden\A Matter of Life and Death\06 Out of the Shadows.flac (http://192.168.178.27:49382/encode/AC1EF725EF9E170E-2147483643.wav)
68682; 18 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
90347; 19 Profile - Generic Device, useragent=Lavf/57.83.100
90433; 20 Profile - Generic Device, useragent=Lavf/57.83.100
90441; 21 GetEncodedFile[1] 192.168.178.27 - GET D:\Users\Paul\OneDrive - PBHDK\Music\Iron Maiden\A Matter of Life and Death\06 Out of the Shadows.flac to 192.168.178.27; mime=audio/wav,rate=44100,channels=2
90454; 22 GetEncodedFile[1] - exit=0, playtime=6
90478; 23 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
90487; 24 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
90493; 25 GetEncodedFile[2] - range=bytes 0-59430259/59430260
90497; 26 GetEncodedFile[2] 192.168.178.27 - GET D:\Users\Paul\OneDrive - PBHDK\Music\Iron Maiden\A Matter of Life and Death\06 Out of the Shadows.flac to 192.168.178.21; mime=audio/wav,rate=44100,channels=2
90854; 27 StateTimer - Playing,old=Stopped
98687; 28 GetEncodedFile[2] - exit=0, playtime=8184
105095; 29 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
105103; 30 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
105111; 31 GetEncodedFile[3] - range=bytes 6617690-59430259/59430260
105119; 32 GetEncodedFile[3] 192.168.178.27 - GET D:\Users\Paul\OneDrive - PBHDK\Music\Iron Maiden\A Matter of Life and Death\06 Out of the Shadows.flac to 192.168.178.21; mime=audio/wav,rate=44100,channels=2
129886; 33 GetEncodedFile[3] - exit=0, playtime=24761
142604; 34 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
142617; 35 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
142623; 36 GetEncodedFile[4] - range=bytes 13433434-59430259/59430260
142629; 37 GetEncodedFile[4] 192.168.178.27 - GET D:\Users\Paul\OneDrive - PBHDK\Music\Iron Maiden\A Matter of Life and Death\06 Out of the Shadows.flac to 192.168.178.21; mime=audio/wav,rate=44100,channels=2
142840; 38 GetEncodedFile[4] - exit=0, playtime=205
143173; 39 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
143189; 40 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
143202; 41 GetEncodedFile[5] - range=bytes 14450734-59430259/59430260
143213; 42 GetEncodedFile[5] 192.168.178.27 - GET D:\Users\Paul\OneDrive - PBHDK\Music\Iron Maiden\A Matter of Life and Death\06 Out of the Shadows.flac to 192.168.178.21; mime=audio/wav,rate=44100,channels=2
155750; 43 GetEncodedFile[5] - exit=0, playtime=12530
161949; 44 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
161957; 45 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
161962; 46 GetEncodedFile[6] - range=bytes 17770832-59430259/59430260
161966; 47 GetEncodedFile[6] 192.168.178.27 - GET D:\Users\Paul\OneDrive - PBHDK\Music\Iron Maiden\A Matter of Life and Death\06 Out of the Shadows.flac to 192.168.178.21; mime=audio/wav,rate=44100,channels=2
162174; 48 GetEncodedFile[6] - exit=0, playtime=202
168438; 49 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
168446; 50 Profile - Generic Device, useragent=Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.172094
168452; 51 GetEncodedFile[7] - range=bytes 18424219-59430259/59430260
168456; 52 GetEncodedFile[7] 192.168.178.27 - GET D:\Users\Paul\OneDrive - PBHDK\Music\Iron Maiden\A Matter of Life and Death\06 Out of the Shadows.flac to 192.168.178.21; mime=audio/wav,rate=44100,channels=2
243034; 53 Profile - BubbleUPnP, useragent=Windows10/10.0 UPnP/1.0 BubbleUPnPServer/0.9-update37



zigzag10

  • Jr. Member
  • **
  • Posts: 58
Hi everyone,

Great Plugin! However, at the moment, I'm running into either one of two issues:

- loud white noise in the middle of playback
- playback just stops all together

Attached is my log file just after a white noise incident.

Any suggestions what I could do?

Many thanks!



In the plugin settings I don’t know if you’ve got ‘Output as a continuous stream’ selected?  If you have try unselecting it.  In my case, with this option unselected, I get a reliable connection to my UPnP audio device and the plugin doesn't cause any stability issues for MB.

TheGiwi

  • Newbie
  • *
  • Posts: 3
In the plugin settings I don’t know if you’ve got ‘Output as a continuous stream’ selected?  If you have try unselecting it.  In my case, with this option unselected, I get a reliable connection to my UPnP audio device and the plugin doesn't cause any stability issues for MB.

It's disabled. I had tried enabling it for testing and then it doesn't work at all. :-\

zigzag10

  • Jr. Member
  • **
  • Posts: 58
It's disabled. I had tried enabling it for testing and then it doesn't work at all. :-\

Sorry that you’re still having difficulties with the plugin.  I’m not its developer and what I suggested in my earlier post was purely based on what has worked for me.
 
Here’s a further suggestion: if you haven’t already, install Bubble UPnP Server and use it to set your DLNA audio device up as an OpenHome renderer.  Then go into the plugin settings and make sure ‘Generic device’ is selected as the DLNA device profile. Having done that restart MB and see whether you can now playback music to the audio device.

TheGiwi

  • Newbie
  • *
  • Posts: 3
Sorry that you’re still having difficulties with the plugin.  I’m not its developer and what I suggested in my earlier post was purely based on what has worked for me.
 
Here’s a further suggestion: if you haven’t already, install Bubble UPnP Server and use it to set your DLNA audio device up as an OpenHome renderer.  Then go into the plugin settings and make sure ‘Generic device’ is selected as the DLNA device profile. Having done that restart MB and see whether you can now playback music to the audio device.

Cheers for your help zigzag! That's actually exactly my setup at the moment, so no improvement there... :/

I might have to check out some of the alternative Chromecast casting options here on the forum and see if they work better. Maybe it's also an issue with my local network ... ?

[email protected]

  • Newbie
  • *
  • Posts: 1
>you can already change the output device to one of the other UPnP devices but i guess you mean output the same sound data to multiple devices at the same time in which case the answer is no, i am not willing to do that

Hi, can I ask why this isn't possible? Most poeple will nowadays have more than one streaming speaker spread about their home. The lack of an option to choose all or some of these speakers seems like a massive misstep. To be able to do so from a pc would be e brilliant piece of functionality to have. It would be really good to have this.

Cheers,

Jason.

zigzag10

  • Jr. Member
  • **
  • Posts: 58
>you can already change the output device to one of the other UPnP devices but i guess you mean output the same sound data to multiple devices at the same time in which case the answer is no, i am not willing to do that

Hi, can I ask why this isn't possible? Most poeple will nowadays have more than one streaming speaker spread about their home. The lack of an option to choose all or some of these speakers seems like a massive misstep. To be able to do so from a pc would be e brilliant piece of functionality to have. It would be really good to have this.

Cheers,

Jason.

Yup, a small number of audio manufactures have developed extensions to the DNLA/UPnP protocol enabling music to be played to multiple devices, but generally this only works within their own bespoke and typically costly eco-systems.  Good examples of this are Linn with Songcast and HEOS by Denon.  So, the mainstay of devices and software that can utilise DNLA/UPnP don’t have this feature and IMHO this has nothing to do with MB, or indeed this plugin.  

However, and this completely untested on my part, but perhaps what you’re looking for could be achieved by using a combination of TuneBlade (http://www.tuneblade.com/) and AirCast/AirUPnP (https://sourceforge.net/projects/aircast-airupnp/)  The former  will  enable you playback music to multiple airplay devices, and if I get it right the latter is intended to make UPnP/DNLA devices into airplay receivers.  Worth trying??

FuzzyLogic

  • Newbie
  • *
  • Posts: 8
Just noticed that I get album images on my Auna Connect 150 when connecting directly to my Synology NAS, but not when streaming from MB (neither MB > Connect150 nor Connect150 from MB Library).

Anybody got an idea what to do about it?

FWIW I'm seeing something similar. I have a Synology NAS with FLAC files and a Yamaha RX-V485 receiver. If I stream using the receiver as the player I get album art (talking to the Synology media server). When I use MB to play to my receiver using the plugin everything works except album art.

Elyans

  • Newbie
  • *
  • Posts: 1
Dear Steven,
the plugin for DLNA works perfect from my files on the PC to my PIONEER XC-HM71.
All works fine, even an internet Radio to the PC speakers.

Only if I want to play an internet Radio to my PIONEER it works only for 6 sec..
Do I something rong?

Possessed

  • Newbie
  • *
  • Posts: 5
No. I have this same issue. I wrote about this. But owner Steven doesn't care.He doesn't give a [expletive deleted]!
Last Edit: March 12, 2020, 11:52:43 PM by phred