mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-05 04:22:51 +08:00
Redirect stderr to stdout and stdout to DEVNULL when quiet is requested.
This commit is contained in:
parent
c12e8890ad
commit
0ec6e69d88
@ -282,7 +282,8 @@ def run_async(
|
|||||||
stdout_stream = subprocess.PIPE if pipe_stdout else None
|
stdout_stream = subprocess.PIPE if pipe_stdout else None
|
||||||
stderr_stream = subprocess.PIPE if pipe_stderr else None
|
stderr_stream = subprocess.PIPE if pipe_stderr else None
|
||||||
if quiet:
|
if quiet:
|
||||||
stdout_stream = stderr_stream = subprocess.DEVNULL
|
stderr_stream = subprocess.STDOUT
|
||||||
|
stdout_stream = subprocess.DEVNULL
|
||||||
return subprocess.Popen(
|
return subprocess.Popen(
|
||||||
args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream
|
args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user