MCPcopy Create free account
hub / github.com/kkroening/ffmpeg-python / compile

Function compile

ffmpeg/_run.py:175–190  ·  view source on GitHub ↗

Build command-line for invoking ffmpeg. The :meth:`run` function uses this to build the commnad line arguments and should work in most cases, but calling this function directly is useful for debugging or if you need to invoke ffmpeg manually for whatever reason. This is the sam

(stream_spec, cmd='ffmpeg', overwrite_output=False)

Source from the content-addressed store, hash-verified

173
174@output_operator()
175def compile(stream_spec, cmd='ffmpeg', overwrite_output=False):
176 """Build command-line for invoking ffmpeg.
177
178 The :meth:`run` function uses this to build the commnad line
179 arguments and should work in most cases, but calling this function
180 directly is useful for debugging or if you need to invoke ffmpeg
181 manually for whatever reason.
182
183 This is the same as calling :meth:`get_args` except that it also
184 includes the ``ffmpeg`` command as the first argument.
185 """
186 if isinstance(cmd, basestring):
187 cmd = [cmd]
188 elif type(cmd) != list:
189 cmd = list(cmd)
190 return cmd + get_args(stream_spec, overwrite_output=overwrite_output)
191
192
193@output_operator()

Callers 2

run_asyncFunction · 0.85
jquery-3.2.1.jsFile · 0.85

Calls 1

get_argsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…