8000 Redirect stderr to stdout and stdout to DEVNULL when quiet is requested. · Powercoder64/ffmpeg-python@0ec6e69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ec6e69

Browse files
committed
Redirect stderr to stdout and stdout to DEVNULL when quiet is requested.
1 parent c12e889 commit 0ec6e69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ffmpeg/_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ def run_async(
282282
stdout_stream = subprocess.PIPE if pipe_stdout else None
283283
stderr_stream = subprocess.PIPE if pipe_stderr else None
284284
if quiet:
285-
stdout_stream = stderr_stream = subprocess.DEVNULL
285+
stderr_stream = subprocess.STDOUT
286+
stdout_stream = subprocess.DEVNULL
286287
return subprocess.Popen(
287288
args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream
288289
)

0 commit comments

Comments
 (0)
0