1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

Adds ffmpeg argument for ensuring default subtitle is set

This commit is contained in:
James Robey 2019-09-16 11:50:35 +07:00
parent e1f692f0b3
commit 0046610ace

View File

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