From 0046610acef921da4a88a09573da8bef6484a656 Mon Sep 17 00:00:00 2001 From: James Robey Date: Mon, 16 Sep 2019 11:50:35 +0700 Subject: [PATCH] Adds ffmpeg argument for ensuring default subtitle is set --- youtube_dl/postprocessor/ffmpeg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 70416c25e..ddd9b8ee5 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -413,6 +413,8 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor): # Don't copy Apple TV chapters track, bin_data (see #19042, #19024, # https://trac.ffmpeg.org/ticket/6016) '-map', '-0:d', + # always set a default subtitle (https://trac.ffmpeg.org/ticket/2402) + '-disposition:s:0 default', ] if information['ext'] == 'mp4': opts += ['-c:s', 'mov_text']