mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 00:01:54 +01:00
Compare commits
2 Commits
c59526bc7f
...
f94c1f95c5
Author | SHA1 | Date | |
---|---|---|---|
|
f94c1f95c5 | ||
|
55cc0d5bf4 |
|
@ -648,6 +648,8 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
|
||||||
# Don't copy the existing subtitles, we may be running the
|
# Don't copy the existing subtitles, we may be running the
|
||||||
# postprocessor a second time
|
# postprocessor a second time
|
||||||
'-map', '-0:s',
|
'-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)):
|
for i, (lang, name) in enumerate(zip(sub_langs, sub_names)):
|
||||||
opts.extend(['-map', f'{i + 1}:0'])
|
opts.extend(['-map', f'{i + 1}:0'])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user