From 55cc0d5bf43c84df778b2f12387b5106f846a392 Mon Sep 17 00:00:00 2001 From: blank X Date: Fri, 6 May 2022 08:32:34 +0700 Subject: [PATCH] [ffmpeg] Set default subtitles regardless of container --- yt_dlp/postprocessor/ffmpeg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index d1d8e1687c..6ca9d4bedc 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -639,6 +639,8 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor): # Don't copy the existing subtitles, we may be running the # postprocessor a second time '-map', '-0:s', + # Mark the first subtitle track as default + '-disposition:s:0', 'default', ] for i, (lang, name) in enumerate(zip(sub_langs, sub_names)): opts.extend(['-map', '%d:0' % (i + 1)])