projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7f61fe
)
[postprocessor/ffmpeg] Show ffmpeg output on error (refs #22680) (#29336)
author
kikuyan
<kikuyan@users.noreply.github.com>
Sun, 20 Jun 2021 16:58:19 +0000
(
01:58
+0900)
committer
GitHub
<noreply@github.com>
Sun, 20 Jun 2021 16:58:19 +0000
(23:58 +0700)
youtube_dl/postprocessor/ffmpeg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/postprocessor/ffmpeg.py
b/youtube_dl/postprocessor/ffmpeg.py
index 5f7298345b3f550c9a8d8b7ba2b602d2f084ed36..9f76c9d4ed295725d768e3892f68432fc41a4db2 100644
(file)
--- a/
youtube_dl/postprocessor/ffmpeg.py
+++ b/
youtube_dl/postprocessor/ffmpeg.py
@@
-231,7
+231,10
@@
class FFmpegPostProcessor(PostProcessor):
stdout, stderr = p.communicate()
if p.returncode != 0:
stderr = stderr.decode('utf-8', 'replace')
- msg = stderr.strip().split('\n')[-1]
+ msgs = stderr.strip().split('\n')
+ msg = msgs[-1]
+ if self._downloader.params.get('verbose', False):
+ self._downloader.to_screen('[debug] ' + '\n'.join(msgs[:-1]))
raise FFmpegPostProcessorError(msg)
self.try_utime(out_path, oldest_mtime, oldest_mtime)