From a941247e07fd782bacd24b6dcfcdc362b6408859 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 18 Mar 2018 09:30:23 -0400 Subject: [PATCH] Provisional fix for timelines on remuxed h.264 videos. Should it also apply to MPEG-2? And... why does it work? --- plugins/video/transcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/video/transcode.py b/plugins/video/transcode.py index 63586cb..09599e7 100644 --- a/plugins/video/transcode.py +++ b/plugins/video/transcode.py @@ -312,7 +312,7 @@ def select_videocodec(inFile, tsn, mime=''): if (mime == 'video/x-tivo-mpeg-ts'): org_codec = vInfo.get('vCodec', '') if org_codec == 'h264': - codec += ['-bsf:v', 'h264_mp4toannexb'] + codec += ['-bsf:v', 'h264_mp4toannexb', '-muxdelay', '0'] elif org_codec == 'hevc': codec += ['-bsf:v', 'hevc_mp4toannexb'] else: -- 2.11.4.GIT