Author Topic: UPNP  (Read 138925 times)

hiccup

  • Hero Member
  • *****
  • Posts: 9157
That seems to work. At first MB startup it only saw my wireless attached SB (i5 Eet), after the second startup MB also saw my wired SB (i5 Woon).
On a side-note for now, MP3's are playing well, but flac playback is very bad; silences, ugly noise bursts, etc.
I'll try to give some sensible feedback on this with different files and settings in the coming days. I'll also then try ReplayGain, Continuous stream, etc.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 35001
i've put in some more buffering/concurrency so that should improve things. I'll make it available after a bit more testing.
However I dont see how MB would cause long silences/ noise bursts etc. Normally the rendering device has its own buffering to smooth fluctuations in network traffic. If it still happens i am struggling to see how i could improve it.

hiccup

  • Hero Member
  • *****
  • Posts: 9157
I haven't been testing today, but the silences/bursts happened only in the last version, where I believe you added 127.0.0.1.
Before that, when it played, it played well.
I'll begin experimenting again probably tomorrow.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 35001
updated musicbee - unzip and replace the existing files where MB is installed:
http://musicbee.niblseed.com/V2_5/MusicBee_Exe_Patched.zip

and updated plugin to be unzipped and placed in the plugins folder:
http://www.mediafire.com/download/8oqz833v9z364da/mb_Upnp.zip

Now has more buffering for sending data over the network.
Also i have made some changes and had confirmation it works with a PS3.

vzell

  • Sr. Member
  • ****
  • Posts: 459
With the latest version of the plugin from 18.11.2014 all the UPNP/DLNS functionality is gone. "Server Mode" with Fritz!App Media as a controller doesn't see the MusicBee library at all and Pioneer VSX-924 as a player in Preferences-Player-audio player-output is gone too. The last version from 16.11.2014 worked fine in server and controller mode. :-(

I'm using Muscibee 2.5.5435

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 35001
If you are getting odd behavior, then start by enabling the debug log which is an option in the configuration screen (a file "UpnpErrorLog.dat" is created in the same AppData folder as the error log).
Then post a link to the file

hiccup

  • Hero Member
  • *****
  • Posts: 9157
The first time after installing both updates and restarting my pc and MB, both TV and SB wouldn't play.
It did after first starting up and playing and closing FB once, and then starting MB again.
After following restarts this doesn't seem to happen anymore, and both TV and SB play fine with MB.

Playing FLAC gives the same problem playing to SB. Starting with silence, and then only repeating noise bursts every few periods.
I notice the time indicator on MB going back and forth between 0:00 and 0:01 sec.

I uploaded two new logs.
The first when trying to play MB the first time after restart, and it wouldn't play.
The second as it's working now, with the flac problem.


vzell

  • Sr. Member
  • ****
  • Posts: 459
I get

19.11.2014 12:35:23; 1 SyncNewPlayState - Stopped,mb=Paused
19.11.2014 12:36:42; 1 GetNetworkAdresseses - id=Local Area Connection,speed=1000000000
19.11.2014 12:36:42; 2 GetNetworkAddresses - 192.168.2.11,dns=True,trans=False
19.11.2014 12:36:42; 3 GetNetworkAdresseses - id=VirtualBox Host-Only Network,speed=100000000
19.11.2014 12:36:42; 4 GetNetworkAddresses - 169.254.77.107,dns=False,trans=False
19.11.2014 12:36:42; 5 GetNetworkAdresseses - id=Loopback Pseudo-Interface 1,speed=1073741824
19.11.2014 12:36:42; 6 GetNetworkAddresses - 127.0.0.1,dns=False,trans=False

and the following popup after replacing the upnp dll with the latest one



I had my Pioneer VSX-924 as the output device. When switching to DirectSound Output and restarting I get these additional lines in the logfile

19.11.2014 12:44:06; 1 GetNetworkAdresseses - id=Local Area Connection,speed=1000000000
19.11.2014 12:44:06; 2 GetNetworkAddresses - 192.168.2.11,dns=True,trans=False
19.11.2014 12:44:06; 3 GetNetworkAdresseses - id=VirtualBox Host-Only Network,speed=100000000
19.11.2014 12:44:06; 4 GetNetworkAddresses - 169.254.77.107,dns=False,trans=False
19.11.2014 12:44:06; 5 GetNetworkAdresseses - id=Loopback Pseudo-Interface 1,speed=1073741824
19.11.2014 12:44:06; 6 GetNetworkAddresses - 127.0.0.1,dns=False,trans=False

but as already noted in my last message no UPNP/DLNA functionality at all

vzell

  • Sr. Member
  • ****
  • Posts: 459
And this is the output with the plugin from 16.11.2014:
Code
19.11.2014 12:35:23; 1 SyncNewPlayState - Stopped,mb=Paused
19.11.2014 12:36:42; 1 GetNetworkAdresseses - id=Local Area Connection,speed=1000000000
19.11.2014 12:36:42; 2 GetNetworkAddresses - 192.168.2.11,dns=True,trans=False
19.11.2014 12:36:42; 3 GetNetworkAdresseses - id=VirtualBox Host-Only Network,speed=100000000
19.11.2014 12:36:42; 4 GetNetworkAddresses - 169.254.77.107,dns=False,trans=False
19.11.2014 12:36:42; 5 GetNetworkAdresseses - id=Loopback Pseudo-Interface 1,speed=1073741824
19.11.2014 12:36:42; 6 GetNetworkAddresses - 127.0.0.1,dns=False,trans=False
19.11.2014 12:44:06; 1 GetNetworkAdresseses - id=Local Area Connection,speed=1000000000
19.11.2014 12:44:06; 2 GetNetworkAddresses - 192.168.2.11,dns=True,trans=False
19.11.2014 12:44:06; 3 GetNetworkAdresseses - id=VirtualBox Host-Only Network,speed=100000000
19.11.2014 12:44:06; 4 GetNetworkAddresses - 169.254.77.107,dns=False,trans=False
19.11.2014 12:44:06; 5 GetNetworkAdresseses - id=Loopback Pseudo-Interface 1,speed=1073741824
19.11.2014 12:44:06; 6 GetNetworkAddresses - 127.0.0.1,dns=False,trans=False
19.11.2014 12:55:24; 1 ProcessMessage - device 'uuid:44243a99-7446-46f5-867d-3074979b467c:Xbox-SystemOS',valid=True
19.11.2014 12:55:25; 2 ProcessMessage - device 'uuid:5F9EC1B3-ED59-79BB-4530-745e1c7901e3:VSX-924',valid=True
19.11.2014 12:55:28; 3 ProcessRequest:Exception - Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt)
   at MusicBeePlugin.Plugin.UpnpService.ProceedEventSubcribe(HttpRequest request)
   at MusicBeePlugin.Plugin.HttpServer.ProcessRequest(Object parameters)
19.11.2014 12:55:28; 4 ProcessRequest:Exception - Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt)
   at MusicBeePlugin.Plugin.UpnpService.ProceedEventSubcribe(HttpRequest request)
   at MusicBeePlugin.Plugin.HttpServer.ProcessRequest(Object parameters)
19.11.2014 12:55:28; 5 ProcessRequest:Exception - Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt)
   at MusicBeePlugin.Plugin.UpnpService.ProceedEventSubcribe(HttpRequest request)
   at MusicBeePlugin.Plugin.HttpServer.ProcessRequest(Object parameters)
19.11.2014 12:56:50; 6 Activate - 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/vnd.dlna.adts:DLNA.ORG_PN=AAC_ADTS_320,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO_320,http-get:*:audio/3gpp:DLNA.ORG_PN=AAC_ISO_320,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO,http-get:*:audio/3gpp:DLNA.ORG_PN=AAC_ISO,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMABASE,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMAFULL,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/m4a:*,http-get:*:audio/x-m4a:*,http-get:*:audio/x-caf:*,http-get:*:audio/x-aiff:*,http-get:*:audio/aiff:*,http-get:*:audio/x-mp4:*,http-get:*:audio/dsd:*,http-get:*:audio/x-dsd:*
19.11.2014 12:56:51; 7 PostSoapRequest - 500,send=POST /AVTransport/ctrl HTTP/1.1
Host: 192.168.2.31:8080
User-Agent: MusicBee UPnP Plugin
Content-Type: text/xml; charset="utf-8"
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#Stop"
Content-Length: 288

<?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:Stop xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID></u:Stop></s:Body></s:Envelope>
19.11.2014 12:56:54; 8 Play - D:\media\music\T. Rex\Greatest Hits\CD1\02 Get It On.mp3
19.11.2014 12:56:57; 9 StateTimer - Loading,old=Stopped
19.11.2014 12:56:57; 10 GetLibraryFile - request=GET,url=D:\media\music\T. Rex\Greatest Hits\CD1\02 Get It On.mp3
19.11.2014 12:57:00; 11 StateTimer - Playing,old=Loading
19.11.2014 12:57:10; 12 GetLibraryFile - exitcode=10054, playtime=12291,url=D:\media\music\T. Rex\Greatest Hits\CD1\02 Get It On.mp3
Last Edit: November 19, 2014, 06:48:56 PM by Steven

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 35001
@vzell, the plugin link is updated to address the number parsing issue
@hiccup, the log looks completely normal. My only suggestion is as an experiment to force encoding to PCM (using continious output or alternatively replay gain enabled in musicbee itself and the flac song has a replay gain value) as see what happens. As to initially not seeing the device i have an idea what it might be but if it was the case it would take foobar 30 seconds or so before it can see the device. Is that the case?

hiccup

  • Hero Member
  • *****
  • Posts: 9157
I can't remember for sure, but I don't believe FB took time to find the players. I wouldn't worry about that for now since I am not able to replicate that behavior at the moment.

I uploaded two new logs.
One is called 'erratic', since I kind of erratically tried several settings, but none of them giving any improvement, and all the earlier mentioned errors.
The other one is one with a shorter more thought-through exercise: I set continuous streaming to 'off', set MB to use smart gain, then first played a flac with ReplayGain value, and then the same flac song without RG value.
The one with RG did not play at all, and the one without RG played (with silence/noise problem though)

edit,
I'm loosing my mind, now suddenly flac is playing well without any stutters.
....unless I set MB to use Smart Gain, then nothing plays anymore, without any errors displaying. (error log #3 added... )

Can you also see my plugin preferences settings in the logs? I'd hate it if I complicate stuff because of settings I changed there.
When my head is a bit clearer then tonight I'll see if I can think of some systematic testing and feedback. I'm getting a bit to confused now.
Last Edit: November 19, 2014, 08:03:29 PM by hiccup

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 35001
i forgot that you were having problems before with LPCM data being played so there is no point to that test as it wont work in your case - the player strangely reports an "Illegal mime type" error even though it reports LPCM as a supported format.
I was just trying to determine if it is something specific about flac files causing the weird playback. I am pretty close to giving up for your setup but i will do one last thing - could you play a flac file in foobar and send me the foobar log

vzell

  • Sr. Member
  • ****
  • Posts: 459
@vzell, the plugin link is updated to address the number parsing issue
@hiccup, the log looks completely normal. My only suggestion is as an experiment to force encoding to PCM (using continious output or alternatively replay gain enabled in musicbee itself and the flac song has a replay gain value) as see what happens. As to initially not seeing the device i have an idea what it might be but if it was the case it would take foobar 30 seconds or so before it can see the device. Is that the case?


Still the same problem with the latest version (mb_Upnp.dll ?213504?19.11.14?19:54)

20.11.2014 08:22:20; 1 GetNetworkAdresseses - id=Local Area Connection,speed=1000000000
20.11.2014 08:22:20; 2 GetNetworkAddresses - 192.168.2.11,dns=True,trans=False
20.11.2014 08:22:20; 3 GetNetworkAdresseses - id=VirtualBox Host-Only Network,speed=100000000
20.11.2014 08:22:20; 4 GetNetworkAddresses - 169.254.77.107,dns=False,trans=False
20.11.2014 08:22:20; 5 GetNetworkAdresseses - id=Loopback Pseudo-Interface 1,speed=1073741824
20.11.2014 08:22:20; 6 GetNetworkAddresses - 127.0.0.1,dns=False,trans=False

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 35001
@vzell, the plugin is receiving no messages from the device. I cant help any further in your case

vzell

  • Sr. Member
  • ****
  • Posts: 459
But how comes that the version from 16.11.2014 works fine ?