8000 allow arguments to be manually passed to ffmpeg/run wrappers · Powercoder64/ffmpeg-python@c0d37f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c0d37f3

Browse files
author
Davide Depau
authored
allow arguments to be manually passed to ffmpeg/run wrappers
1 parent 4ada40b commit c0d37f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ffmpeg/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,9 @@ def get_args(parent):
230230

231231
@operator(node_classes={OutputNode, GlobalNode})
232232
def run(parent, cmd='ffmpeg'):
233-
args = [cmd] + parent.get_args()
233+
if type(cmd) == str:
234+
cmd = [cmd]
235+
elif type(cmd) != list:
236+
cmd = list(cmd)
237+
args = cmd + parent.get_args()
234238
subprocess.check_call(args)

0 commit comments

Comments
 (0)
0