Sony KDL52XBR6 - what can I get to work?

...Max...
2009-05-16
2013-05-29
  • ...Max...
    ...Max...
    2009-05-16

    Just learned about DLNA couple days ago when I wondered what the RJ45 is doing on the back of my new XBR :-).

    What works:

    - minidlna appears to be the only open-source server that beast even sees, my kudos and heartfelt thanks to Justin! The setup is Ubuntu Jaunty x86, connection over home LAN w/DHCP.
    - can browse folders
    - can display a JPEG file

    What doesn't work:

    - can't display a DivX video (AVI, 720x480, works on everything I can think of including an MPEG4 capable DVD player -- hardly relevant though 'cause it is not getting opened at all)
    - I see the SOAP request for the Video folder that contains only this file. No filters are specified in the SQL query (except parent). The response comes out in a valid-looking SOAP envelope -- I was comparing it to the [working] response I saw when listing & opening the JPEG)
    - TV says the folder is empty :(

    What I tried (by editing & recompiling the minidlna and making sure files.db is recreated every time):

    - MIME type: video/x-msvideo (original code), video/avi, video/divx
    - adding DLNA.ORG_PN=AVI;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01 (with and without flags)
    - changing object type from item.videoItem to item.videoItem.movie

    None of the above made any visible difference. So here comes the cry for help:

    ANY OTHER IDEAS????  I tried googling what I could think of (and got the above ideas to try and fail). Did anyone ever got any kinds of video to play on a recent Sony TV (not PlayStation) via DLNA?

    I am quite willing to be a guinea pig, and probably competent enough for one ;-)

    Thanks in advance,
    ...Max...

    Direct email: max-at-motovilov-dot-com

     
    • ...Max...
      ...Max...
      2009-05-16

      Ok.... read through the entire forum and decided to try AVCHD. Re-encoded a bit of my AVI into H.264/AAC (ffmpeg + libx264) stored as MPEG-2 TS. Here's what minidlna thinks it is (didn't touch that part of metadata analyzer yet):

      video/mpeg:DLNA.ORG_PN=AVC_TS_MP_HD_AC3_ISO;DLNA.ORG_OP=01;DLNA.ORG_CI=0

      Also, just for kicks, tried the same in an MP4 stream:

      video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AC3;DLNA.ORG_OP=01;DLNA.ORG_CI=0

      Sony sees neither. I wonder, did anyone actually get any of the DLNA-equipped TVs to play AVCHD videos? What are the formats/MIMEs?

      ...Max...

       
    • ...Max...
      ...Max...
      2009-05-16

      Yet another test -- a raw fragment (.m2ts) from a Sony HD camcorder (1440x1080 interlaced)

      video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0

      Nothing doing. If that's not supported, I wonder what is -- nothing? :-(

      ...Max...

       
    • Craig Chambers
      Craig Chambers
      2009-05-17

      Hi Max,

      Looking on SonyStyle I see...

      * DLNA compliant

      * DLNA (Digital Living Network Alliance) compliance allows BRAVIA® XBR®6-Series HDTVs to access digital photos from DLNA-enabled PCs and other devices."

      That's all I see.  No mention of music or video.  For my Sony TV (40W5500) the site says the following:

      * Enjoy video, music and photo content from your computer on your TV with DLNA home networking technology

      I'm not certain, but it looks to me as though your TV has no support for any kind of video.  I know that the predecessor to my TV only supported music and photo, so it looks like Sony have been incrementally adding features to their DLNA support.

      Hope that helps,
      Craig

       
    • ...Max...
      ...Max...
      2009-05-18

      Craig,

      So, can you get your TV to play videos? In what format? Could you post the full MIME strings as minidlna logs them?

      Thanks in advance,
      ...Max...

       
    • Craig Chambers
      Craig Chambers
      2009-05-19

      Hi Max,

      Yes, I can stream video.  The XMB has options for Picture, Music and Video as top level elements.  In each of those I can choose the server to use.
      So far I've only streamed straight Mpeg2 files that have been ripped without conversion from a DVD, though the manual that came with the TV suggested that AVCHD and the other HD digital format for Sony cameras was supported (can't remember what that was sorry).

      I'm not certain how to get the logs that you suggest, I haven't enabled logging, unless this is logged by default.  I can only imagine that Mpeg2 is given the MIME type of video/mpeg (otherwise what's the world coming to?)

      Cheers,
      Craig

       
    • ...Max...
      ...Max...
      2009-05-19

      Craig,

      Here's how you can get the response logs the easy way... my big thanks if you wouldn't mind trying it and posting the results :)

      - make sure your minidlna daemon is stopped (kill it otherwise)
      - run "minidlna -f YourProfileFile -d >minidlna.log 2>&1"
      - browse the folders on your TV until you see the list of videos
      - ctrl-c out of minidlna

      The last SOAP response should correspond to the last folder the TV requested. It looks ugly -- XML envelope with the XML response body escaped inside (< and > all over the place) but the MIME strings stand out.

      And whatever the world came to -- I'm holding little hope for it myself -- the important part of the string is right after :video/mpeg: :-)

      ...Max...

       
    • ...Max...
      ...Max...
      2009-05-19

      That was "....< and > all over the place...." -- I am too used to typing HTML...

       
    • Craig Chambers
      Craig Chambers
      2009-05-20

      Hi Max,

      Unfortunately, having updated the source from CVS a few days ago and rebuilt the server, I'm now getting an error every time I try to access the server from my TV (for all types of media).
      I'll give it a try if I get time, and manage to get things working again (fingers crossed).

      Cheers,
      Craig

       
    • Craig Chambers
      Craig Chambers
      2009-05-20

      Hi Max,

      No luck for me with the TV tonight, but the TV's SOAP request is below:

      <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetProtocolInfoResponse xmlns:u="urn:schemas-upnp-org:service:ConnectionManager:1"><Source>http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_HD_NA_ISO;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AAC_MULT5;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_HD_NA;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_PRO;DLNA.ORG_OP=01;DLNA.ORG_CI=0,http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMABASE;DLNA.ORG_OP=01,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMAFULL;DLNA.ORG_OP=01,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMAPRO;DLNA.ORG_OP=01,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO_320;DLNA.ORG_OP=01,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO;DLNA.ORG_OP=01,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_MULT5_ISO;DLNA.ORG_OP=01,http-get:*:audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01,http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01,http-get:*:audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01,http-get:*:audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01,http-get:*:image/jpeg:*,http-get:*:video/avi:*,http-get:*:video/divx:*,http-get:*:video/x-matroska:*,http-get:*:video/mpeg:*,http-get:*:video/mp4:*,http-get:*:video/x-ms-wmv:*,http-get:*:video/x-msvideo:*,http-get:*:audio/mp4:*,http-get:*:audio/wav:*,http-get:*:audio/x-flac:*,http-get:*:application/ogg:*</Source><Sink></Sink></u:GetProtocolInfoResponse></s:Body></s:Envelope>

      /Craig

       
    • ...Max...
      ...Max...
      2009-05-20

      Craig,

      That's too early in the game: see the <u:GetProtocolInfoResponse...> right inside <s:Body>? All you see here -- as far I understand the protocol (courtesy of minidlna source code :) ) -- is what the server can offer in principle. As you drill into the folders, you should eventually see SOAP responses with <u:BrowseResponse...> element (and perhaps with an SQL statement right above if your minidlna is compiled in the same way mine was).  Those are the relevant ones.

      At the end of these responses you'll see <NumberReturned> and <TotalMatches> fields that should have the count of the right objects (videos) in the folder. Reading the actual body is harder because of double-escaping, but each returned video should correspond to an <item> element -- that'll come out as &lt;item&gt; in the log :)

      ...Max...

       
    • Craig Chambers
      Craig Chambers
      2009-05-21

      Ah, OK.  I did wonder about all the file types listed that I was not aware were supported by the TV!

      I've managed to roll my install back and so I may be able to get the response you asked for.  Unfortunately my time is short for a few days as I'm going away.
      I'll try it when I have a moment.

      /Craig

       
    • Craig Chambers
      Craig Chambers
      2009-05-21

      Here you go...

      <?xml version="1.0"?>

      <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
      &lt;item id="2$15$A3" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Callanetics_0002&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2005-07-30T11:44:14&lt;/dc:date&gt;&lt;res size="220630213" duration="0:59:57.989" bitrate="61320" resolution="320x240" protocolInfo="http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVSPML_BASE;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36954.dat&lt;/res&gt;&lt;/item&gt;&lt;container id="2$15$A5" parentID="2$15" restricted="1" childCount="3"&gt;&lt;dc:title&gt;Camcorder&lt;/dc:title&gt;&lt;upnp:class&gt;object.container.storageFolder&lt;/upnp:class&gt;&lt;/container&gt;&lt;item id="2$15$6B" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Chocolat&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2009-05-16T19:33:38&lt;/dc:date&gt;&lt;res size="3521589248" duration="1:31:45.280" bitrate="639674" resolution="720x576" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36867.dat&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$6C" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Clerks&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2009-05-17T09:45:24&lt;/dc:date&gt;&lt;res size="4108912640" duration="1:28:10.240" bitrate="776696" resolution="720x576" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36868.dat&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$6D" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Coast_to_Coast&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2009-05-12T00:30:41&lt;/dc:date&gt;&lt;res size="3555493888" duration="1:36:07.456" bitrate="616475" resolution="720x576" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36869.dat&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$6E" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Confetti&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2009-05-16T18:29:09&lt;/dc:date&gt;&lt;res size="4323801088" duration="1:35:44.288" bitrate="752713" resolution="720x576" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36870.dat&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$6F" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Constantine&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2009-05-15T19:35:15&lt;/dc:date&gt;&lt;res size="5172166656" duration="1:55:47.880" bitrate="744423" resolution="720x576" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36871.dat&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$70" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Daredevil&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2009-05-13T23:21:40&lt;/dc:date&gt;&lt;res size="5514350592" duration="2:13:09.147" bitrate="690230" resolution="720x480" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36872.dat&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$71" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Dark_Crystal&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2009-05-15T19:55:48&lt;/dc:date&gt;&lt;res size="3421603840" duration="1:29:19.200" bitrate="638454" resolution="720x576" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36873.dat&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$72" parentID="2$15" restricted="1"&gt;&lt;dc:title&gt;Day_After_Tomorrow&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2009-05-18T21:42:46&lt;/dc:date&gt;&lt;res size="5171560448" duration="1:58:34.080" bitrate="726947" resolution="720x576" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://217.155.90.66:8200/MediaItems/36874.dat&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result>
      <NumberReturned>10</NumberReturned>
      <TotalMatches>67</TotalMatches>
      <UpdateID>113</UpdateID></u:BrowseResponse></s:Body></s:Envelope>

      I'm not quite sure why miniDLNA is using my external IP when I have explicitly told it in the config to use the internal one!

      /Craig

       
    • ...Max...
      ...Max...
      2009-05-21

      Craig,

      Thanks a lot for your efforts! From what I see, except for one WMV your videos are all straight DVD MPEG-2s in both PAL and NTSC. I assume they are AVIs... will try to build one out of a DVD rip and see what happens. Won't hold my breath though, it definitely looks like I'm SOL as far as that XBR is concerned. Well, there's always a used PS3 to be had :-)... and I'm gonna get one of the BD60 Pannies Costco sells and see what that box can do, too. DLNA.org lists it as compatible with at least MPEG-2 videos.

      Regards,
      ...Max...

       
    • Justin Freitag
      Justin Freitag
      2009-06-17

      i've just picked up a KDL-40V5500 tv and would love to get video steaming/transcoding to this from my NAS.

      i'll see what my tv reports itself to be capable of this evening, but what Max posted looks promising. the WMV support doesn't appear to be documented anywhere either.

      get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AAC_MULT5;
      get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_PRO;

      cheers,
      Justin