* [FFmpeg-devel] [PATCH] doc/ffmpeg: mention how to pass options to loopback decoders
@ 2024-03-14 10:12 Anton Khirnov
2024-03-19 14:58 ` Stefano Sabatini
0 siblings, 1 reply; 3+ messages in thread
From: Anton Khirnov @ 2024-03-14 10:12 UTC (permalink / raw)
To: ffmpeg-devel
---
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
+@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;
@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}.
@end itemize
--
2.43.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] doc/ffmpeg: mention how to pass options to loopback decoders
2024-03-14 10:12 [FFmpeg-devel] [PATCH] doc/ffmpeg: mention how to pass options to loopback decoders Anton Khirnov
@ 2024-03-19 14:58 ` Stefano Sabatini
2024-03-22 10:47 ` Anton Khirnov
0 siblings, 1 reply; 3+ messages in thread
From: Stefano Sabatini @ 2024-03-19 14:58 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On date Thursday 2024-03-14 11:12:31 +0100, Anton Khirnov wrote:
> ---
> 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
AVOptions => options (rationale: we have only a few references to
AVOptions and no direct ones in ffmpeg.texi, and there is no need to
assume arbitrary AV/FF jargon).
> +@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;
>
> @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}.
LGTM otherwise, thanks.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] doc/ffmpeg: mention how to pass options to loopback decoders
2024-03-19 14:58 ` Stefano Sabatini
@ 2024-03-22 10:47 ` Anton Khirnov
0 siblings, 0 replies; 3+ messages in thread
From: Anton Khirnov @ 2024-03-22 10:47 UTC (permalink / raw)
To: FFmpeg development discussions and patches
Quoting Stefano Sabatini (2024-03-19 15:58:03)
> On date Thursday 2024-03-14 11:12:31 +0100, Anton Khirnov wrote:
> > ---
> > 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
>
> AVOptions => options (rationale: we have only a few references to
> AVOptions and no direct ones in ffmpeg.texi, and there is no need to
> assume arbitrary AV/FF jargon).
This is how these options are described by ffmpeg -h full.
--
Anton Khirnov
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-22 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-14 10:12 [FFmpeg-devel] [PATCH] doc/ffmpeg: mention how to pass options to loopback decoders Anton Khirnov
2024-03-19 14:58 ` Stefano Sabatini
2024-03-22 10:47 ` Anton Khirnov
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git