Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ffmpeg/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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


Expand Down