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)
| 173 | |
| 174 | @output_operator() |
| 175 | def 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() |
no test coverage detected
searching dependent graphs…