


Input – text to be sent to stdin (to be used with pipe: Quiet – shorthand for setting capture_stdout and capture_stderr. ParametersĬapture_stdout – if True, capture stdout (to be used withĬapture_stderr – if True, capture stderr. Invoke ffmpeg for the supplied node graph. run ( stream_spec, cmd='ffmpeg', capture_stdout=False, capture_stderr=False, input=None, quiet=False, overwrite_output=False ) ¶ get_args ( stream_spec, overwrite_output=False ) ¶īuild command-line arguments to be passed to ffmpeg. Error ( cmd, stdout, stderr ) ¶īases: Exception ffmpeg. Includes the ffmpeg command as the first argument. This is the same as calling get_args() except that it also The run() function uses this to build the commnad lineĪrguments and should work in most cases, but calling this functionĭirectly is useful for debugging or if you need to invoke ffmpeg compile ( stream_spec, cmd='ffmpeg', overwrite_output=False ) ¶ The stderr output can be retrieved by accessing the Raisesįfmpeg.Error – if ffprobe returns a non-zero exit code,Īn Error is returned with a generic error message. Run ffprobe on the specified file and return a JSON representation of the output. probe ( filename, cmd='ffprobe', **kwargs ) ¶ Official documentation: Main options ffmpeg. Overwrite output files without asking (ffmpeg -y option) To tell ffmpeg to write to stdout, use pipe: as the filename. If multiple streams are provided, they are mapped to the same audio_bitrate=200.įormat – alias for -f parameter, e.g. video_bitrate=1000.Īudio_bitrate – parameter for -b:a, e.g. Some keyword-arguments are handled specially, as shown below. output ( *streams_and_filename, **kwargs ) ¶įfmpeg.output(stream1, filename, **ffmpeg_args)Īny supplied keyword arguments are passed to ffmpeg verbatim (e.g. Include all given outputs in one ffmpeg command line ffmpeg. To tell ffmpeg to read from stdin, use pipe: as the filename. input ( filename, **kwargs ) ¶Īny supplied kwargs are passed to ffmpeg verbatim (e.g. output ( audio, video, 'out.mp4' ) view ( detail=False, filename=None, pipe=False, **kwargs ) ¶ ffmpeg.
