mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-26 21:59:08 +01:00
[ffmpeg] Set default subtitles regardless of container
This commit is contained in:
parent
10fa2471fc
commit
55cc0d5bf4
1 changed files with 2 additions and 0 deletions
|
@ -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)])
|
||||
|
|
Loading…
Reference in a new issue