mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-05 04:22:51 +08:00
Merge 66ac7f975a8790726f1864374ed0be0a6f766f2a into df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6
This commit is contained in:
commit
5997ea40f4
@ -149,7 +149,7 @@ def _get_output_args(node, stream_name_map):
|
||||
|
||||
|
||||
@output_operator()
|
||||
def get_args(stream_spec, overwrite_output=False):
|
||||
def get_args(stream_spec, overwrite_output=None):
|
||||
"""Build command-line arguments to be passed to ffmpeg."""
|
||||
nodes = get_stream_spec_nodes(stream_spec)
|
||||
args = []
|
||||
@ -170,6 +170,8 @@ def get_args(stream_spec, overwrite_output=False):
|
||||
args += reduce(operator.add, [_get_global_args(node) for node in global_nodes], [])
|
||||
if overwrite_output:
|
||||
args += ['-y']
|
||||
elif overwrite_output == False:
|
||||
args += ['-n']
|
||||
return args
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user