1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 02:01:50 +00:00

[postprocessor/embedthumbnail] Allow mkv to embed thumbnails

Fixes #6046
This commit is contained in:
Yen Chi Hsuan 2016-02-21 03:25:44 +08:00
parent 765ac263db
commit 7360db05b4

View file

@ -40,7 +40,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
'Skipping embedding the thumbnail because the file is missing.') 'Skipping embedding the thumbnail because the file is missing.')
return [], info return [], info
if info['ext'] == 'mp3': if info['ext'] in ('mp3', 'mkv'):
options = [ options = [
'-c', 'copy', '-map', '0', '-map', '1', '-c', 'copy', '-map', '0', '-map', '1',
'-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"'] '-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']