aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-05-14 02:35:28 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-05-14 02:35:28 +0800
commitbb8ca1d112e95cd3fe48fff5af980a62a9db2572 (patch)
treed9d9fc6ccd3af64cbcc4f87816564cb048af483d
parent8e595397529abc71093264e3695fb00d95be4d78 (diff)
[postprocessor/embedthumbnail] Use run_ffmpeg_multiple_files
-rw-r--r--youtube_dl/postprocessor/embedthumbnail.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py
index 95c52f65f..4e08c2709 100644
--- a/youtube_dl/postprocessor/embedthumbnail.py
+++ b/youtube_dl/postprocessor/embedthumbnail.py
@@ -36,12 +36,12 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
if info['ext'] == 'mp3':
options = [
- '-i', thumbnail_filename, '-c', 'copy', '-map', '0', '-map', '1',
+ '-c', 'copy', '-map', '0', '-map', '1',
'-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']
self._downloader.to_screen('[ffmpeg] Adding thumbnail to "%s"' % filename)
- self.run_ffmpeg(filename, temp_filename, options)
+ self.run_ffmpeg_multiple_files([filename, thumbnail_filename], temp_filename, options)
if not self._already_have_thumbnail:
os.remove(encodeFilename(thumbnail_filename))