I tried to implement a handler for h265 but it changed nothing. I cloned the sony2010 profile (called it sony2010test/Sony Bravia TV (2010) Test) added this to the profile as the last Video section:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="18000" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<Matches container="*" vCodec="h265" />
</Video>
Whether the config change means anything or not, I cannot say. There isn't exactly a manual for this configuration file.
The file I have is a mkv file and MediaInfo reports this about the video stream:
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 42 min
Bit rate : 900 kb/s
Width : 1 916 pixels
Height : 1 076 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.018
Stream size : 275 MiB (82%)
Writing library : x265 1.9:[Windows][GCC 4.9.0][64 bit] 8bit
Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=240 / min-keyint=24 / scenecut=40 / rc-lookahead=20 / lookahead-slices=6 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=3 / limit-refs=3 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=2 / pass / bitrate=900 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
The executed ffmpeg line is this:
C:\Program Files (x86)\Serviio\bin\\..\lib\ffmpeg.exe -threads 4 -i \\readyshare\USB_Storage\somevideo.mkv -y -threads 4 -c:v mpeg2video -pix_fmt yuv420p -b:v 18000k -maxrate:v 18000k -bufsize:v 18000k -r 24000/1001 -g 15 -c:a ac3 -b:a 384k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts I:\TEMP\Serviio\transcoding-temp-64748-sony2010test-ORIGINAL.stf
The TV displays large black bars on top and bottom, compressing the video, making in unbearable to watch.
What can I try to fix the aspect ratio?