INTERACT FORUM

Networks and Remotes => Media Network => Topic started by: tombert on February 19, 2011, 08:09:58 am

Title: MC as DLNA controller
Post by: tombert on February 19, 2011, 08:09:58 am
A few releases ago MC didn't even show up my DLNA Renderers ... but now this seems to be stable ...
Anyhow one problem remains: When I drag-drop a file to my Renderer (which is a Sony TV) it always plays the same file - which is the one I played and selected last directly with the TV.

Anything I/you can do about?

thx
Title: Re: MC as DLNA controller
Post by: JimH on February 19, 2011, 08:53:50 am
A few releases ago MC didn't even show up my DLNA Renderers ... but now this seems to be stable ...
Anyhow one problem remains: When I drag-drop a file to my Renderer (which is a Sony TV) it always plays the same file - which is the one I played and selected last directly with the TV.

Anything I/you can do about?

thx

Please try the latest beta.  Some changes were made for video conversion.  It might help.
Title: Re: MC as DLNA controller
Post by: tombert on February 19, 2011, 09:07:50 am
Tried now - no success - always plays the same file ...
By the way: forgot to say I'am trying with Audio.

Title: Re: MC as DLNA controller
Post by: bob on February 21, 2011, 01:25:45 pm
What type of file are you drag/dropping? Is it stored locally or on a library server or NAS?
Title: Re: MC as DLNA controller
Post by: tombert on February 21, 2011, 01:29:13 pm
Its an Audio file, mp3, stored on a samba network share.
Title: Re: MC as DLNA controller
Post by: bob on February 21, 2011, 01:48:00 pm
Thanks for the info...
Now about the file that played when you accessed it from the Sony TV. Did you access that through MC or did you access the NAS directly (with SMB or DLNA)??
Title: Re: MC as DLNA controller
Post by: tombert on February 21, 2011, 01:51:52 pm
MC runs as DLNA server - that's the way I access the file.
Title: Re: MC as DLNA controller
Post by: bob on February 21, 2011, 03:23:10 pm
Very interesting...

I'd be nice if you could get a wireshark capture of this happening since we don't have a Sony TV here.
Title: Re: MC as DLNA controller
Post by: tombert on February 22, 2011, 01:02:15 pm
you should have received e-mail from me ...

thx
Title: Re: MC as DLNA controller
Post by: bob on February 22, 2011, 02:54:50 pm
you should have received e-mail from me ...

thx

Got it, thanks!
Title: Re: MC as DLNA controller
Post by: bob on February 28, 2011, 04:59:13 pm
you should have received e-mail from me ...

thx

I see what is going on. The file is being presented to the TV but the TV is rejecting it.
From what I can dig out online the Sony is claiming it's a mimetype error (this may not actually be the problem but it's a good hint).
Now the content directory is showing the file as being L16 LPCM not mp3:
Vier Gewinnt
http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_CI=0" duration="0:03:52" size="41052514">http://192.168.100.93:52101/Music/F137690.0.wav

If the original is mp3 then it's being transcoded by MC. You might want to try turning off conversion in the DLNA server audio conversion options.
I think the reason it plays the previous song is that was the last successful set transport uri command and the TV probably just does that after we set the uri (and assume it worked).
The thing is, while it should work with the mp3 without conversion (let me know if this works if you can test it), it really should have worked with the conversion as well. I might have something for you to test that way in a day or two.

Thanks,
Bob
Title: Re: MC as DLNA controller
Post by: tombert on February 28, 2011, 05:18:29 pm
I've changed to "never convert" and played an mp3 file with the TV.
Then I draged-droped another file onto the TV - it still plays the old file ... but this time MC thinks it plays the new one.

thx
Title: Re: MC as DLNA controller
Post by: bob on March 01, 2011, 08:48:25 am
I've changed to "never convert" and played an mp3 file with the TV.
Then I draged-droped another file onto the TV - it still plays the old file ... but this time MC thinks it plays the new one.

thx

I hate to ask, but would you mind doing a capture of that scenario as well?
Title: Re: MC as DLNA controller
Post by: bob on March 01, 2011, 09:42:14 am
The closest thing I have here for testing is a Sony BD-S570. It seems to REQUIRE the DLNAExtra setting in advanced. Can you make sure the first server (or only server, if you only have one) in your DLNA server list has that set in advanced options? Both the Sony and Samsung BD/TV templates for creating a DLNA server should set that flag. Thanks...
Title: Re: MC as DLNA controller
Post by: tombert on March 01, 2011, 01:48:05 pm
Ok I'll check DLNAExtra (but I think it's already enabled) and provide another wireshark snapshot ... but might take a few days till I have time.

thx
Title: Re: MC as DLNA controller
Post by: tombert on March 03, 2011, 11:05:56 am
I've checked - DLNA extra is always on.
Did send you the wireshark snapshot you requested by e-mail.

thx
Title: Re: MC as DLNA controller
Post by: bob on March 03, 2011, 03:01:09 pm
Got it, haven't checked it yet. Will asap...
Thanks...
Title: Re: MC as DLNA controller
Post by: bob on March 08, 2011, 12:06:38 pm
Thanks for that dump...

There might be a problem with that device accepting cover art as a resource. I'll make you a test build to check this hypothesis...

Bob
Title: Re: MC as DLNA controller
Post by: tombert on March 08, 2011, 01:10:51 pm
... but ... cover art is working fine!
Title: Re: MC as DLNA controller
Post by: bob on March 08, 2011, 04:14:25 pm
... but ... cover art is working fine!
It's presented in a couple of different ways...
Title: Re: MC as DLNA controller
Post by: tombert on March 18, 2011, 04:33:48 pm
any news? was the wireshark snapshot ok?
Title: Re: MC as DLNA controller
Post by: bob on March 22, 2011, 10:00:10 am
Sorry, not yet. The queue is getting real deep. If you don't mind, bump this topic periodically.
Title: Re: MC as DLNA controller
Post by: pbair on March 25, 2011, 11:02:16 am
I'm having the same issues controlling my Sony Bravia KDL-52EX700 from MC16 to play music files.  No matter what song I play in MC...the TV always plays the last song I played via the TV's direct access to my media server.

Any progress with a solution for this?
Title: Re: MC as DLNA controller
Post by: bob on March 28, 2011, 05:02:58 pm

Hi tombert,
I got a change to check the last dump. The renderer is returning an obscure error saying the the resource we presented it with isn't available.
There are only 2 resources in the SetAvTransport didl. One is:
http://192.168.100.93:52100/Music/F765.0.mp3 (http://192.168.100.93:52100/Music/F765.0.mp3)
and the other is:
http://192.168.100.93:52100/AArt/765.jpg (http://192.168.100.93:52100/AArt/765.jpg)
Can you make sure both of these open in a browser?

Thanks...
Title: Re: MC as DLNA controller
Post by: tombert on March 29, 2011, 01:40:53 pm
Well I had to try with another file ... but yes - I can access both image and music. I tried with:
http://192.168.100.93:52100/AArt/714128.jpg
http://192.168.100.93:52100/Music/F714128.0.mp3

The image showed my thumb and the mp3 played nice.

tom
Title: Re: MC as DLNA controller
Post by: bob on March 29, 2011, 04:31:51 pm
Well I had to try with another file ... but yes - I can access both image and music. I tried with:
http://192.168.100.93:52100/AArt/714128.jpg
http://192.168.100.93:52100/Music/F714128.0.mp3

The image showed my thumb and the mp3 played nice.

tom

Ok, thanks for trying it.
Can you turn off DLNA (and DLNAExtra) in the advanced options so it's just using upnp commands and see if anything changes??

Thanks,
Bob
Title: Re: MC as DLNA controller
Post by: tombert on March 31, 2011, 12:02:37 pm
I turned both options off independently but no change ...  :(
Title: Re: MC as DLNA controller
Post by: bob on April 04, 2011, 11:34:14 am
I turned both options off independently but no change ...  :(
Tom, what model is your TV? We are thinking of getting one to test with.

Title: Re: MC as DLNA controller
Post by: tombert on April 04, 2011, 11:57:00 am
KDL-40EX500
Title: Re: MC as DLNA controller
Post by: bob on April 04, 2011, 12:52:23 pm
KDL-40EX500

It's really hard to tell what they are up to. There seem to be some TV's that are marked as DMR (renderers) and others that aren't and according to what I can find online, the US versions of some models don't support DMR where the European ones do.

I'm looking at http://support.sony-europe.com/tutorials/tvhc/dlna/dlna.aspx?site=odw_en_GB&m=KDL-40EX500 (http://support.sony-europe.com/tutorials/tvhc/dlna/dlna.aspx?site=odw_en_GB&m=KDL-40EX500)
which doesn't claim DMR functionality like this one does:
http://support.sony-europe.com/tutorials/tvhc/dlna/dlna.aspx?site=odw_en_GB&m=KDL-52W5800 (http://support.sony-europe.com/tutorials/tvhc/dlna/dlna.aspx?site=odw_en_GB&m=KDL-52W5800) (if you look under "enjoy photo/music files over the network").

However, punch the model number in here:
http://www.dlna.org/products (http://www.dlna.org/products)

and you'll see it's DMR certified. Sigh.

Anyway, thanks for the model, we'll see if we can dig up a close relative.
Title: Re: MC as DLNA controller
Post by: bob on April 15, 2011, 03:39:52 pm
So we picked up a KDL-40EX600 because DLNA.ORG says it's a DMR but there is no ethernet or wireless on it that I can find!
There seems to be some indication on the interwebs that it uses a usb network adapter but whatever I plug in comes up as an unsupported device.

Anyone have any tips on networking these or should we take it back??
Title: Re: MC as DLNA controller
Post by: tombert on April 16, 2011, 12:56:52 am
 ? ... mine has a LAN plug ...
Title: Re: MC as DLNA controller
Post by: bob on April 19, 2011, 01:47:11 pm
? ... mine has a LAN plug ...
It's a bit weird, none of the KDL-40EX anythings have networking in the US. It looks like you can buy a Sony dongle to use with the usb port but it doesn't claim DLNA support anywhere.

Anyway we took it back and got a KDL-46NX810 that duplicates your problem so I've finally got something to test with...
Title: Re: MC as DLNA controller
Post by: bob on April 19, 2011, 02:42:55 pm
Interesting. It should work with at least mp3 and lpcm but it doesn't, it should also work with mpeg2 video but no luck. It does work with pictures though, hmmm.
Title: Re: MC as DLNA controller
Post by: bob on April 25, 2011, 05:28:38 pm
Working in Build 16.0.75 and above.
The TV required extra info in the HEAD request.
Tested with mp3 and L16.
Also works with mpeg2/ac3 videos and ifos (unconverted) and all others converted to DVD/MPEG2 with the Video MimeType hack (in advanced, mimetype set to video/mpeg and DLNAType set to MPEG_PS_NTSC (the defaults))
Title: Re: MC as DLNA controller
Post by: tombert on April 26, 2011, 10:04:20 am
Hi,

does it mean that I can safely buy MC16? The problem is fixed?

thx
Title: Re: MC as DLNA controller
Post by: bob on April 26, 2011, 10:59:11 am
Hi,

does it mean that I can safely buy MC16? The problem is fixed?

thx
It works perfectly for me with Music now (it has native support for MP3 and L16). The cover-art looks great on the TV :)
it worked fine before with Images and still does.
The TV is somewhat limited playing video. It appears to only support mpeg2 video (as required by the DLNA standard).
The DVD rips in MC work fine as well as mpeg2 with ac3 sound.
I think other video will need to be transcoded. The DVD mpeg2 preset in MC works well with the mpeg override settings I mentioned.
According to it's DLNA certificate, when pushing to the TV, you can't seek. You can pause/resume however and that is what I see here.

http://certification.dlna.org/certs/REG13086555.pdf (http://certification.dlna.org/certs/REG13086555.pdf)

Thanks a lot for your help with this :)
Title: Re: MC as DLNA controller
Post by: tombert on May 04, 2011, 01:45:17 pm
Unfort. MC16 fails in my .wine installation - simply hangs up ... currently I'am trying to re-install ... hope to get it running again ...
Title: Re: MC as DLNA controller
Post by: tombert on May 16, 2011, 03:30:39 pm
Fine - works again! I can controll my TV now ... still doing some testing ... but so far so good ...
thx for your support!
Title: Re: MC as DLNA controller
Post by: tombert on May 17, 2011, 08:40:23 am
Hi again, unfort. it stops playing after some time. When I click to play the whole album the first song plays through ... then the next file starts, plays about 10~20 seconds and then stops.
thx
Title: Re: MC as DLNA controller
Post by: tombert on May 17, 2011, 08:47:39 am
I disabled audio conversion and played an mp3: it stopped after the first file finished. The TV simply went back to the analog input (Receiver), no error messages in MC.
thx
Title: Re: MC as DLNA controller
Post by: bob on May 17, 2011, 12:12:57 pm
I disabled audio conversion and played an mp3: it stopped after the first file finished. The TV simply went back to the analog input (Receiver), no error messages in MC.
thx

You don't have it set to "stop after each file" in the repeat settings for the zone do you?
Title: Re: MC as DLNA controller
Post by: tombert on May 17, 2011, 12:46:21 pm
When I first click on the Bravia Zone I can see it's set to "Repeat playing now".
When I click the second time the zone immediately disappers, then after a few seconds it appears ... and so on ...
thx
Title: Re: MC as DLNA controller
Post by: tombert on May 17, 2011, 01:43:34 pm
Another observation: I started playing on my Bravia via WebRemote, the playing stopped after the first file. Opened MC to see that it's caught in an infinite loop still playing the first file from 0 to 5 seconds.

thx
Title: Re: MC as DLNA controller
Post by: bob on May 17, 2011, 02:30:30 pm
Another observation: I started playing on my Bravia via WebRemote, the playing stopped after the first file. Opened MC to see that it's caught in an infinite loop still playing the first file from 0 to 5 seconds.

thx

The 0-5 seconds thing is essentially the timeout for MC waiting for commands to complete. It's likely doing GetPosition calls and not getting a response.
I assume you are using a current version?
Let me try it again with our Bravia to make sure something hasn't gotten messed up.
If the TV gets confused you may have to power cycle it for it to work properly again. This seems to be a common problem with DLNA devices.

Title: Re: MC as DLNA controller
Post by: tombert on May 17, 2011, 02:39:49 pm
Yes - power cycling the whole system helps ... but after each file  :) ...
thx for your help.
Title: Re: MC as DLNA controller
Post by: bob on May 17, 2011, 05:16:49 pm
Yes - power cycling the whole system helps ... but after each file  :) ...
thx for your help.
I just tried duplicating your scenario with 10 short mp3 files. Tried it set to convert always and not convert. Worked fine both ways. Is your MC both the controller and server?
Title: Re: MC as DLNA controller
Post by: tombert on May 18, 2011, 12:29:23 am
yes it is both server and controller.
Title: Re: MC as DLNA controller
Post by: bob on May 19, 2011, 09:52:07 am
yes it is both server and controller.
Did this happen recently (perhaps with a specific version)? Wasn't it working properly for you a week or so ago?
Title: Re: MC as DLNA controller
Post by: tombert on May 19, 2011, 01:50:54 pm
I only recently started testing, the thing that the TV disappears from MC I remember already happened in MC15 but I didn't bother since I wasn't using MC as a controller.
I'am going to try older version soon and let you know.
thx
Title: Re: MC as DLNA controller
Post by: tombert on May 19, 2011, 03:53:04 pm
I captured an error, which shortly afterwards MC closes connection.
Can this have anything to do with my problem that the TV disappears and appears again?
The complete wireshark log is available if you wish so.
thx

0000  00 17 42 2e df f6 78 84 3c 0b a1 ba 08 00 45 00   ..B...x.<.....E.
0010  01 d5 63 7e 40 00 40 06 8b f2 c0 a8 64 42 c0 a8   ..c~@.@.....dB..
0020  64 1f cc 63 c6 aa ab a2 03 97 a5 22 0e 5d 50 18   d..c.......".]P.
0030  1c d4 19 74 00 00 3c 3f 78 6d 6c 20 76 65 72 73   ...t..<?xml vers
0040  69 6f 6e 3d 22 31 2e 30 22 3f 3e 3c 73 3a 45 6e   ion="1.0"?><s:En
0050  76 65 6c 6f 70 65 20 78 6d 6c 6e 73 3a 73 3d 22   velope xmlns:s="
0060  68 74 74 70 3a 2f 2f 73 63 68 65 6d 61 73 2e 78   http://schemas.x
0070  6d 6c 73 6f 61 70 2e 6f 72 67 2f 73 6f 61 70 2f   mlsoap.org/soap/
0080  65 6e 76 65 6c 6f 70 65 2f 22 20 73 3a 65 6e 63   envelope/" s:enc
0090  6f 64 69 6e 67 53 74 79 6c 65 3d 22 68 74 74 70   odingStyle="http
00a0  3a 2f 2f 73 63 68 65 6d 61 73 2e 78 6d 6c 73 6f   ://schemas.xmlso
00b0  61 70 2e 6f 72 67 2f 73 6f 61 70 2f 65 6e 63 6f   ap.org/soap/enco
00c0  64 69 6e 67 2f 22 3e 3c 73 3a 42 6f 64 79 3e 3c   ding/"><s:Body><
00d0  73 3a 46 61 75 6c 74 3e 3c 66 61 75 6c 74 63 6f   s:Fault><faultco
00e0  64 65 3e 73 3a 43 6c 69 65 6e 74 3c 2f 66 61 75   de>s:Client</fau
00f0  6c 74 63 6f 64 65 3e 3c 66 61 75 6c 74 73 74 72   ltcode><faultstr
0100  69 6e 67 3e 55 50 6e 50 45 72 72 6f 72 3c 2f 66   ing>UPnPError</f
0110  61 75 6c 74 73 74 72 69 6e 67 3e 3c 64 65 74 61   aultstring><deta
0120  69 6c 3e 3c 55 50 6e 50 45 72 72 6f 72 20 78 6d   il><UPnPError xm
0130  6c 6e 73 3d 22 75 72 6e 3a 73 63 68 65 6d 61 73   lns="urn:schemas
0140  2d 75 70 6e 70 2d 6f 72 67 3a 63 6f 6e 74 72 6f   -upnp-org:contro
0150  6c 2d 31 2d 30 22 3e 3c 65 72 72 6f 72 43 6f 64   l-1-0"><errorCod
0160  65 3e 35 30 31 3c 2f 65 72 72 6f 72 43 6f 64 65   e>501</errorCode
0170  3e 3c 65 72 72 6f 72 44 65 73 63 72 69 70 74 69   ><errorDescripti
0180  6f 6e 3e 41 63 74 69 6f 6e 20 47 65 74 56 6f 6c   on>Action GetVol
0190  75 6d 65 20 66 61 69 6c 65 64 0a 3c 2f 65 72 72   ume failed.</err
01a0  6f 72 44 65 73 63 72 69 70 74 69 6f 6e 3e 3c 2f   orDescription></
01b0  55 50 6e 50 45 72 72 6f 72 3e 3c 2f 64 65 74 61   UPnPError></deta
01c0  69 6c 3e 3c 2f 73 3a 46 61 75 6c 74 3e 3c 2f 73   il></s:Fault></s
01d0  3a 42 6f 64 79 3e 3c 2f 73 3a 45 6e 76 65 6c 6f   :Body></s:Envelo
01e0  70 65 3e                                          pe>



0000  78 84 3c 0b a1 ba 00 17 42 2e df f6 08 00 45 00   x.<.....B.....E.
0010  00 67 40 f8 00 00 80 11 af db c0 a8 64 1f c0 a8   .g@.........d...
0020  64 42 cb 84 d0 04 00 53 4a 17 48 54 54 50 2f 31   dB.....SJ.HTTP/1
0030  2e 31 20 32 30 30 20 4f 4b 0d 0a 43 6f 6e 6e 65   .1 200 OK..Conne
0040  63 74 69 6f 6e 3a 20 63 6c 6f 73 65 0d 0a 44 61   ction: close..Da
0050  74 65 3a 20 54 68 75 2c 20 31 39 20 4d 61 79 20   te: Thu, 19 May
0060  32 30 31 31 20 32 30 3a 33 32 3a 34 39 20 47 4d   2011 20:32:49 GM
0070  54 0d 0a 0d 0a                                    T....



Title: Re: MC as DLNA controller
Post by: tombert on May 19, 2011, 03:57:11 pm
Ahja ... just a note: My TV definitely rejects audio volume setting via DLNA.
Title: Re: MC as DLNA controller
Post by: tombert on May 22, 2011, 10:42:28 am
Created a new thread: http://yabb.jriver.com/interact/index.php?topic=64230.0