From a4625becc564831f698467854766303c7e0b7e7f Mon Sep 17 00:00:00 2001 From: ashish anand Date: Sun, 1 May 2016 18:50:55 +0530 Subject: [PATCH] fix embedding the thumbnails --- youtube_dl/postprocessor/embedthumbnail.py | 2 +- youtube_dl/postprocessor/ffmpeg.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py index 3bad5a266..5eb0cc736 100644 --- a/youtube_dl/postprocessor/embedthumbnail.py +++ b/youtube_dl/postprocessor/embedthumbnail.py @@ -47,7 +47,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): self._downloader.to_screen('[ffmpeg] Adding thumbnail to "%s"' % filename) - self.run_ffmpeg_multiple_files([filename, thumbnail_filename], temp_filename, options) + self.run_ffmpeg_multiple_files([filename, thumbnail_filename], temp_filename, options, False) if not self._already_have_thumbnail: os.remove(encodeFilename(thumbnail_filename)) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index fa99b0c2a..f0db2d55f 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -139,7 +139,7 @@ class FFmpegPostProcessor(PostProcessor): def probe_executable(self): return self._paths[self.probe_basename] - def run_ffmpeg_multiple_files(self, input_paths, out_path, opts): + def run_ffmpeg_multiple_files(self, input_paths, out_path, opts, prefix_input_paths=True): self.check_version() oldest_mtime = min( @@ -151,7 +151,7 @@ class FFmpegPostProcessor(PostProcessor): for path in input_paths: files_cmd.extend([ encodeArgument('-i'), - encodeFilename(self._ffmpeg_filename_argument(path), True) + encodeFilename(self._ffmpeg_filename_argument(path) if prefix_input_paths else path, True) ]) cmd = ([encodeFilename(self.executable, True), encodeArgument('-y')] + files_cmd +