HEVC Transcode to MPEG2TS/AC3 works but corrupt stream
Thanks to Dan for guidance and advice.
---------------
This is a weird one (aren't they all). I have a pretty current Windows 10 PC which can play the source video with VLC, MPC etc. My DNLA client (a Sony BDP S5100 Blu-ray) is older and does not support HEVC natively, so I have to transcode for HEVC.
The audio stream is e-ac3, container is matroska and with that combo I normally transcode even with the older H264 "AVC" codec.
Transcoding "seems" to run fine, I'll post a bit of the debug log below but the Sony reports that the stream is corrupt and won't play it. I'm pretty sure the audio stream is not the problem because I have another version of the source video with H264/AVC and e-ac3 audio and matroska and with transcoding running, it works just fine.
I'm using the bdp2013 profile plus an extension in user_profiles.xml to force transcoding for the matroska/eac3 combo along with setting a target output (mpegts, ac3 bitrate 320, maxwidth 1920, maxheight 1080) that the Sony and the Panasonic TV hooked to it have always been happy with.
So my mystery is, the transcoding log looks the same for AVC and HEVC, but AVC will play and HEVC won't. They both have the same target output, so what's going on? Could it be something else like the weird display aspect ratio below? Here's a couple factoids:
ffmpeg-i on the HEVC shows this (along with other stuff):
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 1920x1038, SAR 1:1 DAR 320:173, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
ffmpeg-i on the AVC version shows this:
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
both HEVC and AVC show this for the audio stream:
Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 256 kb/s (default)
Both files in the log when they start delivering the file say this:
...using transcoding (profile: custombdps5100 > quality: ORIGINAL > Transcoding > [MPEG2TS/AC3] > matcher: 1)
So that seems to be saying that they both should be transcoded the same way. I'm puzzled on what to try with this. I'm on the latest Serviio and ffmpeg is version 3.4.4. Thanks for any suggestions!