8000 allow to use different command other than 'ffmpeg' · Powercoder64/ffmpeg-python@6dfaa3c · GitHub
[go: up one dir, main page]

Skip to content

Commit 6dfaa3c

Browse files
committed
allow to use different command other than 'ffmpeg'
1 parent 9a64b5c commit 6dfaa3c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ffmpeg/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,11 @@ def get_args(self):
220220
args += reduce(operator.add, [self._get_output_args(node, stream_name_map) for node in output_nodes])
221221
args += reduce(operator.add, [self._get_global_args(node) for node in global_nodes], [])
222222
return args
223-
224-
def run(self):
225-
args = ['ffmpeg'] + self.get_args()
223+
224+
def run(self, cmd='ffmpeg'):
225+
if type(cmd) == str:
226+
cmd = [cmd]
227+
args = cmd + self.get_args()
226228
subprocess.check_call(args)
227229

228230

0 commit comments

Comments
 (0)
0