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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Anton Khirnov 2024-03-14 11:11:11 +01:00 committed by Paul B Mahol
parent 21700224e7
commit f1e2f45aee

View File

@ -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 to loopback decoders in complex filtergraph link labels, as described in the
documentation for @option{-filter_complex}. documentation for @option{-filter_complex}.
Decoding AVOptions can be passed to loopback decoders by placing them before
@code{-dec}, analogously to input/output options.
E.g. the following example: E.g. the following example:
@example @example
ffmpeg -i INPUT \ ffmpeg -i INPUT \
-map 0:v:0 -c:v libx264 -crf 45 -f null - \ -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 -map '[stack]' -c:v ffv1 OUTPUT
@end example @end example
@ -244,11 +248,13 @@ reads an input video and
(line 2) encodes it with @code{libx264} at low quality; (line 2) encodes it with @code{libx264} at low quality;
@item @item
(line 3) decodes this encoded stream and places it side by side with the (line 3) decodes this encoded stream using 3 threads;
original input video;
@item @item
(line 4) combined video is then losslessly encoded and written into (line 4) places decoded video side by side with the original input video;
@item
(line 5) combined video is then losslessly encoded and written into
@file{OUTPUT}. @file{OUTPUT}.
@end itemize @end itemize