Page 1 of 1
Sony Bravia TV 2011 profile - added VC-1

Posted:
Thu Apr 12, 2012 2:43 pm
by soundcheck
Hi folks.
I added vc1 transcoding to the Bravia 2011 profile. You IMO should integrate it, to make it general available. It lets my play quite a number of movies now.
in the transcode h264 section of Bravia 2011 I added
<Matches container="mpegts" vCodec="vc1" />
Thx
Re: Sony Bravia TV 2011 profile - added VC-1

Posted:
Thu Apr 12, 2012 6:30 pm
by Illico
I don't have 2011 model, but I can confirm that it should be added for 2010 model.
soundcheck, are you agree with that profile ?
- Code:
<Profile id="9" name="Sony Bravia TV (2011)" extendsProfileId="1">
<!-- same as older Bravia 2010/2009 except it supports AVI playback -->
<Detection>
<UPnPSearch>
<FriendlyName>BRAVIA KDL-\d{2}([A-Z]X\d2\d|CX400).*</FriendlyName>
</UPnPSearch>
</Detection>
<DeviceDescription>
<!-- act as WMP so that the TV doesn't show root categories -->
<ModelName>Windows Media Player Sharing</ModelName>
<ModelNumber>3.0</ModelNumber>
<Manufacturer>Microsoft Corporation</Manufacturer>
</DeviceDescription>
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SonyDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.WMPContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
<!-- rename native mpeg2ts with h264/ac3 ac3 formats to those supported by the tv -->
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU">AVC_TS_MP_HD_AC3</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU">AVC_TS_MP_SD_AC3</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_HD_AC3_T</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_SD_AC3_T</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_HP_HD_MPEG1_L2_T</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_HP_SD_MPEG1_L2_T</MediaFormatProfile>
<!-- rename transcoded mpeg2ts with h264 to one of the TV's supported profiles -->
<MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_SD_AC3_ISO</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_HP_HD_MPEG1_L2_ISO</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_HP_SD_MPEG1_L2_ISO</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems -->
<Video targetContainer="mpegts" targetACodec="ac3" forceVTranscoding="true" forceInheritance="true">
<Matches container="asf" vCodec="mpeg2video" />
</Video>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<!-- expected profile MPEG_TS_SD_EU/MPEG_TS_SD_NA/MPEG_TS_SD_KO -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="384" forceInheritance="true">
<Matches container="avi" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="avi" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="mpegts" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="mpegts" vCodec="h264" profile="main" levelGreaterThan="4.1" />
</Video>
<!-- Remux h264 video with AC3 audio to MPEG-TS stream without transcoding -->
<!-- expected profile AVC_TS_MP_HD_AC3_ISO -->
<Video targetContainer="mpegts" forceInheritance="true">
<Matches container="avi" vCodec="h264" aCodec="ac3" />
<Matches container="mp4" vCodec="h264" aCodec="ac3" />
<Matches container="matroska" vCodec="h264" aCodec="ac3" />
</Video>
<!-- Remux all other h264 video to MPEG-TS stream with ac3 audio transcoding -->
<!-- expected profile AVC_TS_MP_HD_AC3_ISO -->
<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
<Matches container="avi" vCodec="h264" />
<Matches container="mp4" vCodec="h264" />
<Matches container="flv" vCodec="h264" />
<Matches container="matroska" vCodec="h264" />
<!-- if audio different to ac3, must be transcoded -->
<Matches container="mpegts" aCodec="aac" />
<Matches container="mpegts" aCodec="mp3" />
<Matches container="mpegts" aCodec="dca" />
<Matches container="mpegts" aCodec="lpcm" />
<Matches container="mpeg" aCodec="dca" />
<Matches container="ogg" vCodec="mpeg4" />
</Video>
<!-- All Others video/audio codec will be transcoded into mpeg2ts, mpeg2video and ac3 audio -->
<!-- expected profile MPEG_TS_SD_EU/MPEG_TS_SD_NA/MPEG_TS_SD_KO -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="192" forceInheritance="true">
<Matches container="mpegts" vCodec="vc1" />
<Matches container="asf" />
<Matches container="mp4" />
<Matches container="matroska" />
<Matches container="flv" />
<Matches container="wtv" />
<Matches container="ogg" />
</Video>
<Audio targetContainer="lpcm" forceInheritance="true">
<!-- To allow "pause" then "resume" functions and album art for TVs that support it - transcode to mp3 instead -->
<Matches container="asf" />
<Matches container="mp4" />
<Matches container="ogg" />
<Matches container="flac" />
<Matches container="adts" />
</Audio>
</Transcoding>
</Profile>
EDIT: I move the topic to Sony section
Re: Sony Bravia TV 2011 profile - added VC-1

Posted:
Fri Apr 13, 2012 7:29 am
by soundcheck
I put my rule in the block above, where you put yours. I'll post mine asap.
Though it won't make a big difference.
BTW. Is there a list where those codec abreviations are listed. If ffmpeg -i e.g. shows "VC-1" , i need to know to enter vc1 into the profile.
THX
Re: Sony Bravia TV 2011 profile - added VC-1

Posted:
Fri Apr 13, 2012 10:24 am
by soundcheck
Here is my patch for the Serviio 0.6.2 profiles.xml for the Bravia 2011 profile:
- Code:
--- profiles.xml.orig 2012-04-12 16:14:32.573902676 +0200
+++ profiles.xml 2012-04-13 11:50:24.583919532 +0200
@@ -558,6 +558,8 @@
<Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="mpegts" vCodec="h264" profile="high" levelGreaterThan="4.1" />
+ <Matches container="mpegts" vCodec="h264" profile="high" levelGreaterThan="4.1" aCodec="truehd"/>
+ <Matches container="mpegts" vCodec="vc1" />
<Matches container="mpegts" vCodec="h264" profile="main" levelGreaterThan="4.1" />
</Video>
<!-- Remux h264 video with AC3 audio to MPEG-TS stream without transcoding -->
@@ -579,6 +581,7 @@
<Matches container="mpegts" aCodec="mp3" />
<Matches container="mpegts" aCodec="dca" />
<Matches container="mpegts" aCodec="lpcm" />
+ <Matches container="mpegts" aCodec="truehd" />
<Matches container="mpeg" aCodec="dca" />
<Matches container="ogg" vCodec="mpeg4" />
</Video>
The patch also includes "truehd" support that I brought up over here:
viewtopic.php?f=11&t=5916I'd appreciate if you could add this solution to the default profile. Perhaps there's a more appropriate/generic way to get it implemented. You're the experts.
Cheers
Re: Sony Bravia TV 2011 profile - added VC-1

Posted:
Fri Apr 13, 2012 7:47 pm
by zip
Illico, keep me posted on this or create a ticket to be added to 1.0, thanks
Re: Sony Bravia TV 2011 profile - added VC-1

Posted:
Fri Apr 13, 2012 10:21 pm
by patters
Wow - version 1.0

Re: Sony Bravia TV 2011 profile - added VC-1

Posted:
Sat Apr 21, 2012 9:26 am
by Illico
zip wrote:Illico, keep me posted on this or create a ticket to be added to 1.0, thanks
Sony Bravia 2011 profile could be updated with following :
- Add support of VC-1 video codec
- Add support of truehd audio codec
- Code:
<Profile id="9" name="Sony Bravia TV (2011)" extendsProfileId="1">
<!-- same as older Bravia 2010/2009 except it supports AVI playback -->
<Detection>
<UPnPSearch>
<FriendlyName>BRAVIA KDL-\d{2}([A-Z]X\d2\d|CX400).*</FriendlyName>
</UPnPSearch>
</Detection>
<DeviceDescription>
<!-- act as WMP so that the TV doesn't show root categories -->
<ModelName>Windows Media Player Sharing</ModelName>
<ModelNumber>3.0</ModelNumber>
<Manufacturer>Microsoft Corporation</Manufacturer>
</DeviceDescription>
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SonyDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.WMPContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
<!-- rename native mpeg2ts with h264/ac3 ac3 formats to those supported by the tv -->
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU">AVC_TS_MP_HD_AC3</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU">AVC_TS_MP_SD_AC3</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_HD_AC3_T</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_SD_AC3_T</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_HP_HD_MPEG1_L2_T</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_HP_SD_MPEG1_L2_T</MediaFormatProfile>
<!-- rename transcoded mpeg2ts with h264 to one of the TV's supported profiles -->
<MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_SD_AC3_ISO</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_HP_HD_MPEG1_L2_ISO</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_HP_SD_MPEG1_L2_ISO</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems -->
<Video targetContainer="mpegts" targetACodec="ac3" forceVTranscoding="true" forceInheritance="true">
<Matches container="asf" vCodec="mpeg2video" />
</Video>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<!-- expected profile MPEG_TS_SD_EU/MPEG_TS_SD_NA/MPEG_TS_SD_KO -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="384" forceInheritance="true">
<Matches container="avi" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="avi" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="mpegts" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="mpegts" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="mpegts" vCodec="vc1" />
</Video>
<!-- Remux h264 video with AC3 audio to MPEG-TS stream without transcoding -->
<!-- expected profile AVC_TS_MP_HD_AC3_ISO -->
<Video targetContainer="mpegts" forceInheritance="true">
<Matches container="avi" vCodec="h264" aCodec="ac3" />
<Matches container="mp4" vCodec="h264" aCodec="ac3" />
<Matches container="matroska" vCodec="h264" aCodec="ac3" />
</Video>
<!-- Remux all other h264 video to MPEG-TS stream with ac3 audio transcoding -->
<!-- expected profile AVC_TS_MP_HD_AC3_ISO -->
<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
<Matches container="avi" vCodec="h264" />
<Matches container="mp4" vCodec="h264" />
<Matches container="flv" vCodec="h264" />
<Matches container="matroska" vCodec="h264" />
<!-- if audio different to ac3, must be transcoded -->
<Matches container="mpegts" aCodec="aac" />
<Matches container="mpegts" aCodec="mp3" />
<Matches container="mpegts" aCodec="dca" />
<Matches container="mpegts" aCodec="lpcm" />
<Matches container="mpegts" aCodec="truehd" />
<Matches container="mpeg" aCodec="dca" />
<Matches container="ogg" vCodec="mpeg4" />
</Video>
<!-- All Others video/audio codec will be transcoded into mpeg2ts, mpeg2video and ac3 audio -->
<!-- expected profile MPEG_TS_SD_EU/MPEG_TS_SD_NA/MPEG_TS_SD_KO -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="192" forceInheritance="true">
<Matches container="asf" />
<Matches container="mp4" />
<Matches container="matroska" />
<Matches container="flv" />
<Matches container="wtv" />
<Matches container="ogg" />
</Video>
<Audio targetContainer="lpcm" forceInheritance="true">
<!-- To allow "pause" then "resume" functions and album art for TVs that support it - transcode to mp3 instead -->
<Matches container="asf" />
<Matches container="mp4" />
<Matches container="ogg" />
<Matches container="flac" />
<Matches container="adts" />
</Audio>
</Transcoding>
</Profile>
Re: Sony Bravia TV 2011 profile - added VC-1

Posted:
Sat Apr 21, 2012 9:56 am
by Illico
Soundcheck, could you provide an exemple of movie with VC-1 that did not work with original sony profile?
According to protocolInfo result, 2011 model may support :
http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L1_WMA;DLNA.ORG_FLAGS=8d700000000000000000000000000000,
http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L2_WMA;DLNA.ORG_FLAGS=8d700000000000000000000000000000,