Skip to content

Commit 3a7ef27

Browse files
authored
[postprocessor/ffmpeg] Show ffmpeg output on error (refs #22680) (#29336)
1 parent a7f61fe commit 3a7ef27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

youtube_dl/postprocessor/ffmpeg.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ def run_ffmpeg_multiple_files(self, input_paths, out_path, opts):
231231
stdout, stderr = p.communicate()
232232
if p.returncode != 0:
233233
stderr = stderr.decode('utf-8', 'replace')
234-
msg = stderr.strip().split('\n')[-1]
234+
msgs = stderr.strip().split('\n')
235+
msg = msgs[-1]
236+
if self._downloader.params.get('verbose', False):
237+
self._downloader.to_screen('[debug] ' + '\n'.join(msgs[:-1]))
235238
raise FFmpegPostProcessorError(msg)
236239
self.try_utime(out_path, oldest_mtime, oldest_mtime)
237240

0 commit comments

Comments
 (0)