Sony BRAVIA TV & DLNA formats

As I wrote earlier, I try to get some in­fos which formats my Sony BRAVIA 5800 TV is able to play over the net­work. Sony is not really help­ful (they tell only names someone with a DLNA spec could cor­rectly in­ter­pret). Now I took the time to move my TV into a dif­fer­ent sub­net (the same where my NAS is in, not like be­fore in a DMZ), and I in­stalled min­idlna. After some net­work sniff­ing, the use of the In­tel UPnP Device Spy and some min­idlna–source read­ing I have now a bet­ter idea what my Sony TV ex­pects.

The DLNA-​specification seems to man­date a MIME-​type and some DLNA-​specific iden­ti­fier which de­scribes the con­tent a player (a DLNA-​Renderer) is able to dis­play. In the fol­low­ing I will present the MIME-​type, the DLNA-​identifier, and prob­ably a Sony-​specific iden­ti­fier.

Re­gard­ing pic­tures the TV only ac­cepts JPEGs, bit in small, me­dium and large sizes. I did not bother to look up what this means in real val­ues, so far this is not of high in­terest for me. For au­dio the TV ac­cepts MP3s and LPCM (raw PCM samples). The raw sniffed data from the TV looks like this:

image/jpeg:DLNA.ORG_PN=JPEG_SM
image/jpeg:DLNA.ORG_PN=JPEG_MED
image/jpeg:DLNA.ORG_PN=JPEG_LRG
audio/mpeg:DLNA.ORG_PN=MP3
audio/L16:DLNA.ORG_PN=LPCM

The more in­ter­est­ing part for me is the video part. The TV sup­ports MPEG2 Video (the MPEG_​ part in the DLNA.ORG_PN) and H.264 (the AVC_​ part in the DLNA.ORG_PN). For MPEG2 it sup­ports pro­gram streams (PS in DLNA.ORG_PN) and trans­port streams (TS in DLNA.ORG_PN). For PS it sup­ports PAL and NTSC res­ol­u­tions (720×576 is PAL, HD res­ol­u­tions like 720p or 1080i or 1080p are not sup­por­ted). The packet-​length of a trans­port steam can be 188 bytes or 192 bytes. If the width is >= 1288 or the height is >= 720, min­idlna adds HD in DLNA.ORG_PN, else it will add SD. The EU in DLNA.ORG_PN is for SD video with a height of 576 or 288 pixels. De­pend­ing of the com­bin­a­tion of the packet-​length and if there is a timestamp in use or not, the DLNA.ORG_PN will have a _​ISO or a _​T ap­pen­ded.

It also sup­ports H.264. The DLNA.ORG_PN starts with a AVC in this case. Only trans­port streams (TS  in DLNA.ORG_PN) is sup­por­ted. As with MPEG2, the packet-​length of the TS can be 188 or 192 bytes. De­pend­ing of the com­bin­a­tion of the packet-​length and if there is a timestamp in use or not, the DLNA.ORG_PN will have a _​ISO or a _​T ap­pen­ded. De­pend­ing on the pro­file used, min­idlna adds some more in­fos to the DLNA.ORG_PN, BL if it is a baseline-​profile, MP if it is a main-​profile, and HP if it is a high-​profile. I do not see this in the valid video formats my TV re­ques­ted over the wire. As with the MPEG2 format, SD or HD is ad­ded (in min­idlna) de­pend­ing on the width and height, but also on the bitrate of the video. For the main-​profile the width has to be <= 720, the height <= 576 and the bitrate <= 10M (base 10, not base 2) for SD, and the width has to be <=1920, the height <= 1152 and the bitrate <= 20M (base 10, not base 2) for HD. For the high-​profile the width has to be <=1920, the height <=1152, the bitrate <= 30M (base 10, not base 2) and the au­dio has to be AC3 to get the HD ad­ded in DLNA.ORG_PN. The au­dio is spe­cified in DLNA.ORG_PN as MPEG1_​L3 for MP3, AC3 for AC3, and AAC or AAC_​MULT5 for AAC (ste­reo or 5-​channel). As can be seen be­low, the TV seems only to sup­port AC3 au­dio for AVC. The TV also has _​24_​, _​50_​ and _​60_​ in DLNA.ORG_PN. I did not find those things in the min­idlna source (but I have not really searched for this). I could ima­gine that _​24_​ stands for 24 pic­tures per second, and the _​50_​ and _​60_​ for pro­gress­ive videos (with 50 re­spect­ively 60 pic­tures per second), but this is pure spec­u­la­tion from my side. Here is the raw sniffed data:

video/mpeg:DLNA.ORG_PN=AVC_TS_HD_24_AC3_ISO;SONY.COM_PN=AVC_TS_HD_24_AC3_ISO
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_24_AC3;SONY.COM_PN=AVC_TS_HD_24_AC3
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_24_AC3_T;SONY.COM_PN=AVC_TS_HD_24_AC3_T

video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_PS_PAL
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_PS_NTSC

video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_50_L2_T
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_60_L2_T
video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU_T
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_50_AC3_T
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_60_AC3_T
video/mpeg:DLNA.ORG_PN=MPEG_TS_HD_50_L2_ISO;SONY.COM_PN=HD2_50_ISO
video/mpeg:DLNA.ORG_PN=MPEG_TS_HD_60_L2_ISO;SONY.COM_PN=HD2_60_ISO
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_HD_50_L2_T;SONY.COM_PN=HD2_50_T
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_HD_60_L2_T;SONY.COM_PN=HD2_60_T

video/mpeg:DLNA.ORG_PN=AVC_TS_HD_50_AC3_ISO;SONY.COM_PN=AVC_TS_HD_50_AC3_ISO
video/mpeg:DLNA.ORG_PN=AVC_TS_HD_60_AC3_ISO;SONY.COM_PN=AVC_TS_HD_60_AC3_ISO
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_50_AC3;SONY.COM_PN=AVC_TS_HD_50_AC3
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_60_AC3;SONY.COM_PN=AVC_TS_HD_60_AC3
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_50_AC3_T;SONY.COM_PN=AVC_TS_HD_50_AC3_T
video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_60_AC3_T;SONY.COM_PN=AVC_TS_HD_60_AC3_T

video/​x-​mp2t-​mphl-​188

So far I did not get the time to ex­per­i­ment with this. I also have the im­pres­sion that min­idlna has still some rough edges (the sin­tel video I used to test be­fore with a dif­fer­ent me­dia server, does not show up in the list with min­idlna).

StumbleUponXINGBalatarinBox.netDiggGoogle GmailNetvouzPlurkSiteJotTypePad PostYahoo BookmarksVKSlashdotPocketHacker NewsDiigoBuddyMarksRedditLinkedInBibSonomyBufferEmailHatenaLiveJournalNewsVinePrintViadeoYahoo MailAIMBitty BrowserCare2 NewsEvernoteMail.RuPrintFriendlyWaneloYahoo MessengerYoolinkWebnewsStumpediaProtopage BookmarksOdnoklassnikiMendeleyInstapaperFarkCiteULikeBlinklistAOL MailTwitterGoogle+PinterestTumblrAmazon Wish ListBlogMarksDZoneDeliciousFlipboardFolkdJamespotMeneameMixiOknotiziePushaSvejoSymbaloo FeedsWhatsAppYouMobdiHITTWordPressRediff MyPageOutlook.comMySpaceDesign FloatBlogger PostApp.netDiary.RuKindle ItNUjijSegnaloTuentiWykopTwiddlaSina WeiboPinboardNetlogLineGoogle BookmarksDiasporaBookmarks.frBaiduFacebookGoogle ClassroomKakaoQzoneSMSTelegramRenrenKnownYummlyShare/​Save

4 thoughts on “Sony BRAVIA TV & DLNA formats”

  1. dude, this is awe­some! i have ex­actly the same prob­lem, i want to stream dir­ectly from my NAS..!

    how i can enter your MIME types in a way my NAS + Bravia un­der­stands?

    de­fault (syn­o­logy) Nas mime types are:
    avi=video/x-ms-video,wav=audio/x-wav

    and the NAS uses ffm­peg for transcod­ing and stream­ing

    1. Try it with a bug-​report to Syn­o­logy, or in­stall a dif­fer­ent DLNA (upnp-​av) server on it. What is dis­played in this post­ing are not really MIME types (they are not de­tailed enough), the most im­port­ant parts here are DLNA or upnp-​av types. The DLNA server on your NAS needs to be able to un­der­stand the types the TV re­quests.

      What I try to do is to find the right formats the TV is able to play, and a DLNA server which is de­liv­er­ing this without transcod­ing or re-​encoding. The ra­tionale is, that if I take a DVD and gen­er­ate a file for stream­ing to my TV any­way, I want to have the right format dir­ectly, this way the DLNA server does not need to spend en­ergy to gen­er­ate the right format each time the file is watched.

  2. Fant­astic job! i’ll be us­ing this to transcode for my newer 2012 lineup 40HX750. hard to find info like this on the in­ter­net. thanks!

  3. Syn­o­logy did a great job by provid­ing apps to stream to an Apple TV or dir­ect to our TV. They also descrip­ing clearly, you’ll need a TV who is able to re­cog­nize most of the formats we have for pic­tures and movies today. So find­ing this par­tic­u­lar tele­vi­sion can be a real chal­lenge. Not sure Sony has the one we look­ing for.… 😉

Leave a Reply

Your email address will not be published. Required fields are marked *