This commit is contained in:
Moviuro 2020-09-26 07:59:20 +02:00 committed by GitHub
commit ccbfa2fd23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -282,6 +282,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',
})

View File

@ -809,7 +809,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,