This commit is contained in:
James Robey 2020-09-30 12:58:42 +08:00 committed by GitHub
commit 5d5044b900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -413,6 +413,8 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
# Don't copy Apple TV chapters track, bin_data (see #19042, #19024,
# https://trac.ffmpeg.org/ticket/6016)
'-map', '-0:d',
# always set a default subtitle (https://trac.ffmpeg.org/ticket/2402)
'-disposition:s:0 default',
]
if information['ext'] == 'mp4':
opts += ['-c:s', 'mov_text']