From 0ec6e69d885f9f75a3220f94b79273f288005049 Mon Sep 17 00:00:00 2001 From: Tercio Gaudencio Filho Date: Fri, 30 Oct 2020 17:29:44 -0300 Subject: [PATCH] Redirect stderr to stdout and stdout to DEVNULL when quiet is requested. --- ffmpeg/_run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffmpeg/_run.py b/ffmpeg/_run.py index 559a0f4..c3d5550 100644 --- a/ffmpeg/_run.py +++ b/ffmpeg/_run.py @@ -282,7 +282,8 @@ def run_async( stdout_stream = subprocess.PIPE if pipe_stdout else None stderr_stream = subprocess.PIPE if pipe_stderr else None if quiet: - stdout_stream = stderr_stream = subprocess.DEVNULL + stderr_stream = subprocess.STDOUT + stdout_stream = subprocess.DEVNULL return subprocess.Popen( args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream )