diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-12 08:52:09 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-12 08:52:09 +0530 |
commit | 397235c52bd9dc0e7f993e83b9301d981690c02f (patch) | |
tree | 1b899e63a55046c8b26c3ec93ab70aabf0af96d4 /yt_dlp/postprocessor/embedthumbnail.py | |
parent | 463654846390165a923b395673b5aef581cd4e0d (diff) | |
download | hypervideo-pre-397235c52bd9dc0e7f993e83b9301d981690c02f.tar.lz hypervideo-pre-397235c52bd9dc0e7f993e83b9301d981690c02f.tar.xz hypervideo-pre-397235c52bd9dc0e7f993e83b9301d981690c02f.zip |
[ffmpeg] Standardize use of `-map 0`
Closes #2182
Diffstat (limited to 'yt_dlp/postprocessor/embedthumbnail.py')
-rw-r--r-- | yt_dlp/postprocessor/embedthumbnail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py index e199a1cdd..84ab54f44 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -108,7 +108,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): self.run_ffmpeg_multiple_files([filename, thumbnail_filename], temp_filename, options) elif info['ext'] in ['mkv', 'mka']: - options = ['-c', 'copy', '-map', '0', '-dn'] + options = list(self.stream_copy_opts()) mimetype = 'image/%s' % ('png' if thumbnail_ext == 'png' else 'jpeg') old_stream, new_stream = self.get_stream_number( @@ -184,7 +184,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): if not success: success = True try: - options = ['-c', 'copy', '-map', '0', '-dn', '-map', '1'] + options = [*self.stream_copy_opts(), '-map', '1'] old_stream, new_stream = self.get_stream_number( filename, ('disposition', 'attached_pic'), 1) |