[FFmpeg-cvslog] doc/ffmpeg: mention how to pass options to loopback decoders

Anton Khirnov git at videolan.org
Thu Mar 28 09:54:34 EET 2024


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Mar 14 11:11:11 2024 +0100| [56320880f7df58583c18ff722fe252871294aa60] | committer: Anton Khirnov

doc/ffmpeg: mention how to pass options to loopback decoders

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56320880f7df58583c18ff722fe252871294aa60
---

 doc/ffmpeg.texi | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index a38ef834e1..801c083705 100644
--- a/doc/ffmpeg.texi
+++ b/doc/ffmpeg.texi
@@ -229,12 +229,16 @@ successive integers starting at zero. These indices should then be used to refer
 to loopback decoders in complex filtergraph link labels, as described in the
 documentation for @option{-filter_complex}.
 
+Decoding AVOptions can be passed to loopback decoders by placing them before
+ at code{-dec}, analogously to input/output options.
+
 E.g. the following example:
 
 @example
 ffmpeg -i INPUT                                        \
   -map 0:v:0 -c:v libx264 -crf 45 -f null -            \
-  -dec 0:0 -filter_complex '[0:v][dec:0]hstack[stack]' \
+  -threads 3 -dec 0:0                                  \
+  -filter_complex '[0:v][dec:0]hstack[stack]'          \
   -map '[stack]' -c:v ffv1 OUTPUT
 @end example
 
@@ -244,11 +248,13 @@ reads an input video and
 (line 2) encodes it with @code{libx264} at low quality;
 
 @item
-(line 3) decodes this encoded stream and places it side by side with the
-original input video;
+(line 3) decodes this encoded stream using 3 threads;
+
+ at item
+(line 4) places decoded video side by side with the original input video;
 
 @item
-(line 4) combined video is then losslessly encoded and written into
+(line 5) combined video is then losslessly encoded and written into
 @file{OUTPUT}.
 
 @end itemize



More information about the ffmpeg-cvslog mailing list