Added 'kwargs' option to 'overwrite_output'

This commit is contained in:
VisualPlugin 2023-08-25 07:55:43 +00:00 committed by GitHub
parent df129c7ba3
commit 2803574b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,12 +39,12 @@ def global_args(stream, *args):
@output_operator()
def overwrite_output(stream):
def overwrite_output(stream, **kwargs):
"""Overwrite output files without asking (ffmpeg ``-y`` option)
Official documentation: `Main options <https://ffmpeg.org/ffmpeg.html#Main-options>`__
"""
return GlobalNode(stream, overwrite_output.__name__, ['-y']).stream()
return GlobalNode(stream, overwrite_output.__name__, ['-y'], kwargs=kwargs).stream()
@output_operator()