Compare commits

...

2 Commits

Author SHA1 Message Date
blankie
4f41d11ba9
Merge 55cc0d5bf4 into 52c0ffe40a 2024-11-17 15:34:35 +05:30
blank X
55cc0d5bf4
[ffmpeg] Set default subtitles regardless of container 2022-05-12 08:37:15 +07:00

View File

@ -648,6 +648,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', f'{i + 1}:0'])