Menu

Bravia changes

2011-02-14
2013-05-29
  • Craig Chambers

    Craig Chambers - 2011-02-14

    Hi Justin (or anyone else who answers),

    Previously I made a change to metadata.c to fix AVCHD support on my Bravia TVs.  The change was as below:

    asprintf(&m.dlna_pn, "AVC_TS_MT_HD_AC3%s;%s",   ==> asprintf(&m.dlna_pn, "AVC_TS_HD_24_AC3%s;%s",

    I have just updated to clean source and obviously this change is not present, but there is a now a change in the published code in upnpsoap.c to fix Bravias using a DLNA type with _50_ as the fps. 

    I don't know a huge amount about DLNA types, but is this all simply to get the renderer to accept the content?  Or does it have an effect on how the file is actually rendered - i.e. will my 24p Blu-ray rips still be rendered as 24fps files? 

    I currently have 50i content taken from BBC-HD, which works fine with my original changes, so my guess is that it's all firstly about getting past the TVs accept list, rather than actually to do with the file format, but I'd feel better knowing I'm not losing anything with the new changes ;-)

    Cheers,
    Craig

     
  • Justin Maggard

    Justin Maggard - 2011-02-15

    Unfortunately I don't have any personal experience with DLNA support on Sony TVs.  But from what I've heard from other users, it does not affect how the file is rendered; it should only affect whether or not it shows up on the list on the TV.  If you could, I'd love to get you to try the latest code as of today.  I just checked in a bunch of changes to DLNA profile handling.

     
  • Craig Chambers

    Craig Chambers - 2011-02-16

    Hi Justin,

    The changes I mentioned originally do not seem to have affected anything with my AVCHD files.  I'll try and get round to the changes checked in in the last couple of days shortly.  Is there anything in particular that I should look out for, or is it simply a regression test?

    /Craig

     
  • Justin Maggard

    Justin Maggard - 2011-02-16

    Nothing in particular… basically just a regression test.

     
  • Craig Chambers

    Craig Chambers - 2011-02-21

    Hi Justin,

    I had a quick look at the very latest check-ins and my AVCHD files are no longer visible on my Bravia TVs.  As it's a working system (not a test rig) I have reverted to the previous build. 

    /Craig

     
  • Justin Maggard

    Justin Maggard - 2011-02-24

    Uh oh.  Any chance you might be able to try changing AVC_TS_HD_50_AC3 to AVC_TS_HD_24_AC3 in upnpsoap.c and see if that works for you?

     
  • Craig Chambers

    Craig Chambers - 2011-02-27

    Hi Justin,

    Still not working after that change I'm afraid, though as I explained above, when it is working both of those options work with my TVs.

    Cheers,
    Craig

     
  • Justin Maggard

    Justin Maggard - 2011-03-19

    Sorry Craig, I lost track of this thread.  Can you send me the debug log after you browse some AVCHD files?

     
  • Craig Chambers

    Craig Chambers - 2011-03-22

    I'll give it a try when I can.  I guess I could do with a test config file that just points to one location with some diverse test media to reduce the scan time. 

     
  • Craig Chambers

    Craig Chambers - 2011-03-23

    Hi justin,

    A quick look with upnp-inspector shows the following…
    http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0

    A look at the entries in the DB confirms that this is what is stored.  Is this what you'd expect?  The "HP" looks a little odd to me.

    I think the relevant section of the debug log is below.
    Looking at it, I guess that the Bravia client check in upnphttp.c doesn't work with this older model Bravia TV 

    A quick check on the KDL-40EX403 upstairs, and the new version actually works, which tells me that this may be the case…

    /Craig

    minidlna.c:1143: debug: HTTP connection from 192.168.72.55:61174
    upnphttp.c:153: debug: Client found in cache.
    upnphttp.c:763: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1

    X-AV-Physical-Unit-Info: pa="BRAVIA KDL-40W5500     ";

    X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-40W5500     "; mv="1.7";

    Host: 192.168.72.1:8200

    User-Agent: UPnP/1.0 DLNADOC/1.50

    Content-Length: 659

    Content-Type: text/xml; charset="utf-8"

    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"

    upnphttp.c:153: debug: Client found in cache.
    upnphttp.c:606: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    upnpsoap.c:1490: debug: SoapMethod: Browse
    upnpsoap.c:1051: debug: Browsing ContentDirectory:
    * ObjectID: 2$15$C$0$B$5
    * Count: 10
    * StartingIndex: 0
    * BrowseFlag: BrowseDirectChildren
    * Filter: dc:title,av:mediaClass,dc:date,@childCount,res,upnp:class,res@resolution,upnp:album,upnp:genre,upnp:albumArtURI,upnp:albumArtURI@dlna:profileID,dc:creator,res@size,res@duration,res@bitrate,res@protocolInfo
    * SortCriteria: +dc:title
    upnpsoap.c:1096: debug: Browse SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '2$15$C$0$B$5' order by d.TITLE limit 0, 10;
    upnphttp.c:1083: debug: HTTP RESPONSE: HTTP/1.1 200 OK

    Content-Type: text/xml; charset="utf-8"

    Connection: close

    Content-Length: 5774

    Server: Ubuntu/10.10 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0

    <?xml version="1.0" encoding="utf-8"?>

    <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/"&gt;
    &lt;item id="2$15$C$0$B$5$0" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP01-The_Eleventh_Hour&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-01-30T22:54:22&lt;/dc:date&gt;&lt;res size="3571857408" duration="1:04:26.769" bitrate="923731" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1323.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$1" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP02-The_Beast_Below&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-02-06T21:17:33&lt;/dc:date&gt;&lt;res size="2473261056" duration="0:46:18.825" bitrate="890038" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1324.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$2" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP03-Victory_to_the_Daleks&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-02-13T22:01:33&lt;/dc:date&gt;&lt;res size="2513922048" duration="0:45:17.449" bitrate="925103" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1325.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$3" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP04-Time_of_the_Angels&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-02-20T20:47:05&lt;/dc:date&gt;&lt;res size="2274318336" duration="0:41:23.849" bitrate="915642" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1326.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$4" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP05-Flesh_and_Stone_new&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-02-27T21:19:03&lt;/dc:date&gt;&lt;res size="3193159680" duration="0:44:17.711" bitrate="1201469" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1327.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$5" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP06-Vampires_of_Venice&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-03-06T23:09:37&lt;/dc:date&gt;&lt;res size="3592574976" duration="0:50:40.871" bitrate="1181429" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1328.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$6" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP07-Amys_Choice&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-03-16T20:41:28&lt;/dc:date&gt;&lt;res size="2909583360" duration="0:46:03.671" bitrate="1052796" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1329.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$7" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP08-The_Hungry_Earth&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-03-23T19:22:12&lt;/dc:date&gt;&lt;res size="3059208192" duration="0:45:42.039" bitrate="1115669" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1330.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$8" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP09-Cold_Blood&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2010-06-02T21:59:59&lt;/dc:date&gt;&lt;res size="1254555648" duration="0:45:40.103" bitrate="457849" resolution="1280x720" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1331.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$9" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP10-Vincent_and_the_Doctor&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2010-06-14T18:32:45&lt;/dc:date&gt;&lt;res size="1254180864" duration="0:46:34.727" bitrate="448766" resolution="1280x720" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1332.mpg&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result>
    <NumberReturned>10</NumberReturned>
    <TotalMatches>14</TotalMatches>
    <UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>

    metadata.c:807: debug: Container: 'mpeg'
    metadata.c:910: debug: Stream 0 of SATC_S2_Ep12-La_Douleur_Exquise.mpg is 720x576 MPEG2 PS
    minidlna.c:1143: debug: HTTP connection from 192.168.72.55:61175
    upnphttp.c:153: debug: Client found in cache.
    upnphttp.c:763: debug: HTTP REQUEST: POST /ctl/ContentDir HTTP/1.1

    X-AV-Physical-Unit-Info: pa="BRAVIA KDL-40W5500     ";

    X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-40W5500     "; mv="1.7";

    Host: 192.168.72.1:8200

    User-Agent: UPnP/1.0 DLNADOC/1.50

    Content-Length: 660

    Content-Type: text/xml; charset="utf-8"

    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"

    upnphttp.c:153: debug: Client found in cache.
    upnphttp.c:606: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    upnpsoap.c:1490: debug: SoapMethod: Browse
    upnpsoap.c:1051: debug: Browsing ContentDirectory:
    * ObjectID: 2$15$C$0$B$5
    * Count: 10
    * StartingIndex: 10
    * BrowseFlag: BrowseDirectChildren
    * Filter: dc:title,av:mediaClass,dc:date,@childCount,res,upnp:class,res@resolution,upnp:album,upnp:genre,upnp:albumArtURI,upnp:albumArtURI@dlna:profileID,dc:creator,res@size,res@duration,res@bitrate,res@protocolInfo
    * SortCriteria: +dc:title
    upnpsoap.c:1096: debug: Browse SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '2$15$C$0$B$5' order by d.TITLE limit 10, 10;
    upnphttp.c:1083: debug: HTTP RESPONSE: HTTP/1.1 200 OK

    Content-Type: text/xml; charset="utf-8"

    Connection: close

    Content-Length: 2647

    Server: Ubuntu/10.10 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0

    <?xml version="1.0" encoding="utf-8"?>

    <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/"&gt;
    &lt;item id="2$15$C$0$B$5$A" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP11-The_Lodger&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2010-06-14T18:59:33&lt;/dc:date&gt;&lt;res size="1252085760" duration="0:42:31.047" bitrate="490812" resolution="1280x720" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1333.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$B" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP12-The_Pandorica_Opens&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2010-06-28T21:24:49&lt;/dc:date&gt;&lt;res size="1257265152" duration="0:48:41.063" bitrate="430413" resolution="1280x720" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1334.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$C" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP13-The_Big_Bang&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2010-06-28T21:23:22&lt;/dc:date&gt;&lt;res size="1669435392" duration="0:53:41.191" bitrate="518266" resolution="1280x720" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1335.mpg&lt;/res&gt;&lt;/item&gt;&lt;item id="2$15$C$0$B$5$D" parentID="2$15$C$0$B$5" restricted="1"&gt;&lt;dc:title&gt;Doctor_Who_S5_EP14-A_Christmas_Carol&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2011-01-01T22:35:15&lt;/dc:date&gt;&lt;res size="3543773184" duration="1:00:57.019" bitrate="969033" resolution="1440x1080" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0"&gt;http://192.168.72.1:8200/MediaItems/1336.mpg&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result>
    <NumberReturned>4</NumberReturned>
    <TotalMatches>14</TotalMatches>
    <UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>

     
  • Justin Maggard

    Justin Maggard - 2011-03-24

    Oops, it looks like once profile was missed.  The "HP" is normal now, depending on the actual video stream type.  It looks like yours is video stream is h.264 high profile.  Can you add this line in upnpsoap.c, after line 693 (the modifyString calls for Bravias)?

    modifyString(dlna_pn, "AVC_TS_HP_HD_AC3", "AVC_TS_HD_50_AC3", 0);

     
  • Craig Chambers

    Craig Chambers - 2011-04-06

    Hi Justin,

    The new settings committed today seem to work fine with my W5500.  I've not had chance to check my EX403, but someone else checked a 703, so I'm sure it's OK.
    I was going to put another issue in here, but as it's not really related to Bravias I'll raise a new bug.

    Thanks,
    Craig

     

Log in to post a comment.