You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">filter_multi_output</code><spanclass="sig-paren">(</span><em>stream_spec</em>, <em>filter_name</em>, <em>*args</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.filter_multi_output" title="Permalink to this definition">¶</a></dt>
319
+
<dd><p>Apply custom filter with one or more outputs.</p>
320
+
<p>This is the same as <codeclass="docutils literal"><spanclass="pre">filter_</span></code> except that the filter can produce more than one output.</p>
321
+
<p>To reference an output stream, use either the <codeclass="docutils literal"><spanclass="pre">.stream</span></code> operator or bracket shorthand:</p>
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">hflip</code><spanclass="sig-paren">(</span><em>stream</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.hflip" title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">input</code><spanclass="sig-paren">(</span><em>filename</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.input" title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">output</code><spanclass="sig-paren">(</span><em>stream</em>, <em>filename</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.output" title="Permalink to this definition">¶</a></dt>
511
+
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">output</code><spanclass="sig-paren">(</span><em>*streams_and_filename</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.output" title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">compile</code><spanclass="sig-paren">(</span><em>stream_spec</em>, <em>cmd=u'ffmpeg'</em>, <em>overwrite_output=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.compile" title="Permalink to this definition">¶</a></dt>
535
+
<dd><p>Build command-line for invoking ffmpeg.</p>
536
+
<p>The <aclass="reference internal" href="#ffmpeg.run" title="ffmpeg.run"><codeclass="xref py py-meth docutils literal"><spanclass="pre">run()</span></code></a> function uses this to build the commnad line
537
+
arguments and should work in most cases, but calling this function
538
+
directly is useful for debugging or if you need to invoke ffmpeg
539
+
manually for whatever reason.</p>
540
+
<p>This is the same as calling <aclass="reference internal" href="#ffmpeg.get_args" title="ffmpeg.get_args"><codeclass="xref py py-meth docutils literal"><spanclass="pre">get_args()</span></code></a> except that it also
541
+
includes the <codeclass="docutils literal"><spanclass="pre">ffmpeg</span></code> command as the first argument.</p>
542
+
</dd></dl>
543
+
544
+
<dlclass="exception">
545
+
<dtid="ffmpeg.Error">
546
+
<emclass="property">exception </em><codeclass="descclassname">ffmpeg.</code><codeclass="descname">Error</code><spanclass="sig-paren">(</span><em>stream_spec</em>, <em>stdout</em>, <em>stderr</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.Error" title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">get_args</code><spanclass="sig-paren">(</span><em>stream_spec</em>, <em>overwrite_output=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.get_args" title="Permalink to this definition">¶</a></dt>
508
-
<dd><p>Get command-line arguments for ffmpeg.</p>
553
+
<dd><p>Build command-line arguments to be passed to ffmpeg.</p>
509
554
</dd></dl>
510
555
511
556
<dlclass="function">
512
557
<dtid="ffmpeg.run">
513
-
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">run</code><spanclass="sig-paren">(</span><em>stream_spec</em>, <em>cmd=u'ffmpeg'</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.run" title="Permalink to this definition">¶</a></dt>
514
-
<dd><p>Run ffmpeg on node graph.</p>
558
+
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">run</code><spanclass="sig-paren">(</span><em>stream_spec</em>, <em>cmd=u'ffmpeg'</em>, <em>capture_stdout=False</em>, <em>capture_stderr=False</em>, <em>input=None</em>, <em>quiet=False</em>, <em>overwrite_output=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.run" title="Permalink to this definition">¶</a></dt>
559
+
<dd><p>Ivoke ffmpeg for the supplied node graph.</p>
<li><strong>capture_stderr</strong> – if True, capture stderr.</li>
568
+
<li><strong>quiet</strong> – shorthand for setting <codeclass="docutils literal"><spanclass="pre">capture_stdout</span></code> and <codeclass="docutils literal"><spanclass="pre">capture_stderr</span></code>.</li>
569
+
<li><strong>input</strong> – text to be sent to stdin (to be used with <codeclass="docutils literal"><spanclass="pre">pipe:</span></code>
570
+
ffmpeg inputs)</li>
571
+
<li><strong>**kwargs</strong> – keyword-arguments passed to <codeclass="docutils literal"><spanclass="pre">get_args()</span></code> (e.g.
<p>Returns: (out, err) tuple containing captured stdout and stderr data.</p>
523
579
</dd></dl>
524
580
525
581
<dlclass="function">
526
582
<dtid="ffmpeg.view">
527
583
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">view</code><spanclass="sig-paren">(</span><em>stream_spec</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.view" title="Permalink to this definition">¶</a></dt>
528
584
<dd></dd></dl>
529
585
586
+
<dlclass="function">
587
+
<dtid="ffmpeg.probe">
588
+
<codeclass="descclassname">ffmpeg.</code><codeclass="descname">probe</code><spanclass="sig-paren">(</span><em>filename</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#ffmpeg.probe" title="Permalink to this definition">¶</a></dt>
589
+
<dd><p>Run ffprobe on the specified file and return a JSON representation of the output.</p>
<trclass="field-odd field"><thclass="field-name">Raises:</th><tdclass="field-body"><aclass="reference internal" href="#ffmpeg.Error" title="ffmpeg.Error"><codeclass="xref py py-class docutils literal"><spanclass="pre">ffmpeg.Error</span></code></a> – if ffprobe returns a non-zero exit code,
595
+
an <aclass="reference internal" href="#ffmpeg.Error" title="ffmpeg.Error"><codeclass="xref py py-class docutils literal"><spanclass="pre">Error</span></code></a> is returned with a generic error message.
596
+
The stderr output can be retrieved by accessing the
597
+
<codeclass="docutils literal"><spanclass="pre">stderr</span></code> property of the exception.</td>
598
+
</tr>
599
+
</tbody>
600
+
</table>
601
+
</dd></dl>
602
+
530
603
</div>
531
604
<divclass="section" id="indices-and-tables">
532
605
<h1>Indices and tables<aclass="headerlink" href="#indices-and-tables" title="Permalink to this headline">¶</a></h1>
0 commit comments