aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-09-24 05:51:54 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-09-24 06:05:35 +0530
commitb19404591a8ad4d0c7e962931ea809221e3f0b8e (patch)
tree56fb96572fb415d6d1858e7bbb6feea2ce088125 /yt_dlp/postprocessor/ffmpeg.py
parent1f8471e22cdb5181aa19b0c63523ad96891ea2dd (diff)
downloadhypervideo-pre-b19404591a8ad4d0c7e962931ea809221e3f0b8e.tar.lz
hypervideo-pre-b19404591a8ad4d0c7e962931ea809221e3f0b8e.tar.xz
hypervideo-pre-b19404591a8ad4d0c7e962931ea809221e3f0b8e.zip
Separate the options `--ignore-errors` and `--no-abort-on-error`
In youtube-dl, `-i` ignores both download and post-processing error, and treats the download as successful even if the post-processor fails. yt-dlp used to skip the entire video on either error and there was no option to ignore the post-processing errors like youtube-dl does. By splitting the option into two, now either just the download errors (--no-abort-on-error, default on CLI) or all errors (--ignore-errors) can be ignored as per the users' needs Closes #893
Diffstat (limited to 'yt_dlp/postprocessor/ffmpeg.py')
-rw-r--r--yt_dlp/postprocessor/ffmpeg.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py
index 7ea01620e..679377aa6 100644
--- a/yt_dlp/postprocessor/ffmpeg.py
+++ b/yt_dlp/postprocessor/ffmpeg.py
@@ -288,8 +288,7 @@ class FFmpegPostProcessor(PostProcessor):
stdout, stderr = process_communicate_or_kill(p)
if p.returncode not in variadic(expected_retcodes):
stderr = stderr.decode('utf-8', 'replace').strip()
- if self.get_param('verbose', False):
- self.report_error(stderr)
+ self.write_debug(stderr)
raise FFmpegPostProcessorError(stderr.split('\n')[-1])
for out_path, _ in output_path_opts:
if out_path: