8000 Merge pull request #6 from Depaulicious/patch-2 · Powercoder64/ffmpeg-python@236dae6 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 236dae6

Browse files
authored
Merge pull request kkroening#6 from Depaulicious/patch-2
Allow arguments to be manually passed to ffmpeg/run wrappers
2 parents 8d142c5 + 0647c68 commit 236dae6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ffmpeg/_run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ def get_args(node):
104104
@operator(node_classes={OutputNode, GlobalNode})
105105
def run(node, cmd='ffmpeg'):
106106
"""Run ffmpeg on node graph."""
107-
args = [cmd] + node.get_args()
107+
if isinstance(cmd, basestring):
108+
args = [cmd]
109+
elif type(cmd) != list:
110+
args = list(cmd)
111+
args += node.get_args()
108112
_subprocess.check_call(args)
109113

110114

0 commit comments

Comments
 (0)
0