1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 22:07:17 +08:00

fix embedding the thumbnails

This commit is contained in:
ashish anand 2016-05-01 18:50:55 +05:30
parent 174aba3223
commit a4625becc5
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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 +