mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
--embed-subs now implies --write-sub
--write-sub was needed to generate a video file with embed subtitles anyway, so we simplify the interface
This commit is contained in:
parent
68ddba20ae
commit
213b6ff6d1
@ -280,6 +280,7 @@ def _real_main(argv=None):
|
||||
'format': opts.convertsubtitles,
|
||||
})
|
||||
if opts.embedsubtitles:
|
||||
opts.writesubtitles = True # Required to generate a final file with embed subtitles
|
||||
postprocessors.append({
|
||||
'key': 'FFmpegEmbedSubtitle',
|
||||
})
|
||||
|
@ -805,7 +805,7 @@ def parseOpts(overrideArguments=None):
|
||||
postproc.add_option(
|
||||
'--embed-subs',
|
||||
action='store_true', dest='embedsubtitles', default=False,
|
||||
help='Embed subtitles in the video (only for mp4, webm and mkv videos)')
|
||||
help='Embed subtitles in the video (only for mp4, webm and mkv videos), implies --write-sub')
|
||||
postproc.add_option(
|
||||
'--embed-thumbnail',
|
||||
action='store_true', dest='embedthumbnail', default=False,
|
||||
|
Loading…
Reference in New Issue
Block a user