[FFmpeg-devel] [PATCH] doc/filters: add overlay daisy-chaining example

Clément Bœsch ubitux at gmail.com
Sat Dec 15 20:06:30 CET 2012


On Sat, Dec 15, 2012 at 03:38:22PM +0100, Stefano Sabatini wrote:
> ---
>  doc/filters.texi |   16 ++++++++++++++--
>  1 file changed, 14 insertions(+), 2 deletions(-)
> 
> diff --git a/doc/filters.texi b/doc/filters.texi
> index fecb629..44654fe 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -3132,8 +3132,8 @@ to pass the two inputs through a @var{setpts=PTS-STARTPTS} filter to
>  have them begin in the same zero timestamp, as it does the example for
>  the @var{movie} filter.
>  
> -You can chain together more overlays but the efficiency of such
> -approach is yet to be tested.
> +You can chain together more overlays but you should test the
> +efficiency of such approach.
>  
>  @subsection Examples
>  
> @@ -3182,6 +3182,18 @@ The above command is the same as:
>  @example
>  ffplay input.avi -vf 'split[b], pad=iw*2[src], [b]deshake, [src]overlay=w'
>  @end example
> +
> + at item
> +Chain several overlays in cascade:
> + at example
> +nullsrc=s=200x200 [bg];
> +testsrc=s=100x100, split=4 [in0][in1][in2][in3];
> +[in0] lutrgb=r=0, [bg]   overlay=0:0     [mid0];
> +[in1] lutrgb=b=0, [mid0] overlay=100:0   [mid1];
> +[in2] lutrgb=g=0, [mid1] overlay=0:100   [mid2];
> +[in3] null,       [mid2] overlay=100:100 [out0]"
> + at end example
> +

Nice one :)

You have a trailing quote, otherwise LGTM.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121215/c3f25d1e/attachment.asc>


More information about the ffmpeg-devel mailing list