From c0d37f30eaffa2d7ba8b122ba9d4a6935e425414 Mon Sep 17 00:00:00 2001 From: Davide Depau Date: Fri, 26 May 2017 17:32:30 +0200 Subject: [PATCH] allow arguments to be manually passed to ffmpeg/run wrappers --- ffmpeg/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ffmpeg/__init__.py b/ffmpeg/__init__.py index 241c828..294a0f8 100755 --- a/ffmpeg/__init__.py +++ b/ffmpeg/__init__.py @@ -230,5 +230,9 @@ def get_args(parent): @operator(node_classes={OutputNode, GlobalNode}) def run(parent, cmd='ffmpeg'): - args = [cmd] + parent.get_args() + if type(cmd) == str: + cmd = [cmd] + elif type(cmd) != list: + cmd = list(cmd) + args = cmd + parent.get_args() subprocess.check_call(args)