[ffmpeg] Set default subtitles regardless of container

pull/3709/head
blank X 2022-05-06 08:32:34 +07:00
rodzic 10fa2471fc
commit 55cc0d5bf4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CC15FC822C7F61F5
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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)])