x265 transcoding not fully implemented in profiles.xml
The title may be a bit provocative, but the truth is that x265 transcoding (Matroska containers) does not work for my Sony BDP-370 player. However, for mp4 containers it does work out of the box. After looking at the default profile.xml I do understand why (see below). I edited my profile.xml file and tested it afterwards. The modified profile.xml works much better and will now transcode x265 correctly.
--> Zip, may I ask you to update the default profile.xml according to these suggestions at the end of this post?
I have only tested the bdp2010 profile, but I would suspect x265 transcoding will also not work with the default profile.xml for the following (Sony) combinations:
1a. Profile "sony2012" container="mp4" vCodec="h265" (no match in any rule set)
1b. Profile "sony2012" container="mpeg" vCodec="h265" aCodec="dca","dts-hd" (will be catched by audio transcoding rule set)
2a. Profile "bdp2012" container="matroska" vCodec="h265" aCodec="trueHD","flac","lpcm" (will be catched by the "Remux video and transcode unsupported audio..." rule set )
2b. Profile "bdp2012" container="mpeg" vCodec="h265" aCodec="lpcm" (will be catched by the "Remux video and transcode unsupported audio..." rule set)
3. Profile "bdp2010" container="matroska" vCodec="h265" (will be catched by the "mkv stutter" rule set or the rule set directly after depending on the aCodec used in the file)
Fixing the 3 above profiles will also (due to inherance fix the 4 below profiles "automatically")
4. Profile "bdp2010us" will due to inherance of bdp2010 suffer from the same behavior as bdp2010.
5. Profile "sony2011" will due to inherance of sony2012 suffer from the same behavior as sony2012. (However sony2010 have a matching mp4 rule set that works)
6. Profile "sony2012us" will due to inherance of sony2012 suffer from the same behavior as sony2012.
7. Profile "sony2011us" will due to inherance of sony2012us" suffer from the same behavior as sony2012us.
It would be nice if the default profile.xml file could be changed into something like this :
1. For profile "sony2012":
From
To this:
- Code:
...
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<Matches container="*" vCodec="h265"/>
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high_422" />
...
2. For profile "bdp2012":
From
To this:
3. For profile "bdp2010":
From
To this:
- Code:
...
</MediaFormatProfiles>
<Transcoding>
<!-- h264 videos with high/main profile level > 4.1 will be transcoded to mpegts with mpeg2video and ac3 audio -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="320" forceInheritance="true">
<Matches container="*" vCodec="h265"/>
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high_444" />
<Matches container="*" vCodec="h264" profile="high_422" />
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="matroska" vCodec="vp8" />
</Video>
<!-- 2010 model Sony BDP requests all formats except mpeg-ps and mpeg-ts in 32KB chunks which works badly over wifi, hence mkv files are remuxed to mpeg-ts by default in this profile. Natively played
...
The addition for bdp2010 will also fix playback for h264 high profiles that also does not work right now.
Regards,
Fred