mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-05 04:22:51 +08:00
Merge 68099d4854f165540bdbd40324ae195a3e9999f4 into df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6
This commit is contained in:
commit
cf8efc953e
@ -282,11 +282,19 @@ def run_async(
|
|||||||
"""
|
"""
|
||||||
args = compile(stream_spec, cmd, overwrite_output=overwrite_output)
|
args = compile(stream_spec, cmd, overwrite_output=overwrite_output)
|
||||||
stdin_stream = subprocess.PIPE if pipe_stdin else None
|
stdin_stream = subprocess.PIPE if pipe_stdin else None
|
||||||
stdout_stream = subprocess.PIPE if pipe_stdout else None
|
stdout_stream = stderr_stream = None
|
||||||
stderr_stream = subprocess.PIPE if pipe_stderr else None
|
|
||||||
if quiet:
|
if quiet:
|
||||||
stderr_stream = subprocess.STDOUT
|
stderr_stream = subprocess.STDOUT
|
||||||
stdout_stream = subprocess.DEVNULL
|
stdout_stream = subprocess.DEVNULL
|
||||||
|
|
||||||
|
if pipe_stdout:
|
||||||
|
stdout_stream = subprocess.PIPE
|
||||||
|
stderr_stream = subprocess.DEVNULL if quiet else None
|
||||||
|
|
||||||
|
if pipe_stderr:
|
||||||
|
stderr_stream = subprocess.PIPE
|
||||||
|
|
||||||
return subprocess.Popen(
|
return subprocess.Popen(
|
||||||
args,
|
args,
|
||||||
stdin=stdin_stream,
|
stdin=stdin_stream,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user