diff options
author | pukkandan <pukkandan@gmail.com> | 2020-11-15 01:38:54 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2020-11-15 01:47:26 +0530 |
commit | 958804ad4e019ce59c6b5d72918dff846839220c (patch) | |
tree | 102c0a8b5ede6cb777af30ed8147ba47e4622f36 /youtube_dlc/postprocessor/embedthumbnail.py | |
parent | d052b9a112fb7ae749a829dceba6e3289663a303 (diff) | |
download | hypervideo-pre-958804ad4e019ce59c6b5d72918dff846839220c.tar.lz hypervideo-pre-958804ad4e019ce59c6b5d72918dff846839220c.tar.xz hypervideo-pre-958804ad4e019ce59c6b5d72918dff846839220c.zip |
Ensure all streams are copied when using ffmpeg
Diffstat (limited to 'youtube_dlc/postprocessor/embedthumbnail.py')
-rw-r--r-- | youtube_dlc/postprocessor/embedthumbnail.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dlc/postprocessor/embedthumbnail.py b/youtube_dlc/postprocessor/embedthumbnail.py index 4a0d02fc4..7ca0ce6e5 100644 --- a/youtube_dlc/postprocessor/embedthumbnail.py +++ b/youtube_dlc/postprocessor/embedthumbnail.py @@ -94,7 +94,8 @@ class EmbedThumbnailPP(FFmpegPostProcessor): thumbnail_filename = 'cover.jpg' options = [ - '-c', 'copy', '-attach', thumbnail_filename, '-metadata:s:t', 'mimetype=image/jpeg'] + '-c', 'copy', '-map', '0', + '-attach', thumbnail_filename, '-metadata:s:t', 'mimetype=image/jpeg'] self._downloader.to_screen('[ffmpeg] Adding thumbnail to "%s"' % filename) @@ -140,6 +141,6 @@ class EmbedThumbnailPP(FFmpegPostProcessor): os.remove(encodeFilename(filename)) os.rename(encodeFilename(temp_filename), encodeFilename(filename)) else: - raise EmbedThumbnailPPError('Only mp3 and m4a/mp4 are supported for thumbnail embedding for now.') + raise EmbedThumbnailPPError('Only mp3, mkv, m4a and mp4 are supported for thumbnail embedding for now.') return [], info |