Skip to content

Commit

Permalink
[postprocessor/ffmpeg] Fix avconv processing broken in #19025 (closes…
Browse files Browse the repository at this point in the history
… #19067)
  • Loading branch information
dstftw authored and oleksis committed Apr 19, 2019
1 parent 51fb831 commit 8cbd22e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions youtube_dl/postprocessor/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,13 @@ def run_ffmpeg_multiple_files(self, input_paths, out_path, opts):
encodeArgument('-i'),
encodeFilename(self._ffmpeg_filename_argument(path), True)
])
cmd = ([encodeFilename(self.executable, True), encodeArgument('-y')] +
[encodeArgument('-loglevel'), encodeArgument('repeat+info')] +
files_cmd +
[encodeArgument(o) for o in opts] +
[encodeFilename(self._ffmpeg_filename_argument(out_path), True)])
cmd = [encodeFilename(self.executable, True), encodeArgument('-y')]
# avconv does not have repeat option
if self.basename == 'ffmpeg':
cmd += [encodeArgument('-loglevel'), encodeArgument('repeat+info')]
cmd += (files_cmd +
[encodeArgument(o) for o in opts] +
[encodeFilename(self._ffmpeg_filename_argument(out_path), True)])

if self._downloader.params.get('verbose', False):
self._downloader.to_screen('[debug] ffmpeg command line: %s' % shell_quote(cmd))
Expand Down

0 comments on commit 8cbd22e

Please sign in to comment.