[FFmpeg-devel] [PATCH] doc/demuxers: document gif demuxer

Timothy Gu timothygu99 at gmail.com
Fri Aug 29 02:42:23 CEST 2014


On Aug 28, 2014 5:27 PM, "Lou Logan" <lou at lrcd.com> wrote:
>
> Signed-off-by: Lou Logan <lou at lrcd.com>
> ---
>  doc/demuxers.texi | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/doc/demuxers.texi b/doc/demuxers.texi
> index d51b9d0..7b96d85 100644
> --- a/doc/demuxers.texi
> +++ b/doc/demuxers.texi
> @@ -174,6 +174,32 @@ See @url{http://quvi.sourceforge.net/} for more
information.
>  FFmpeg needs to be built with @code{--enable-libquvi} for this demuxer
to be
>  enabled.
>
> + at section gif
> +
> +Animated GIF demuxer.
> +
> +It accepts the following options:
> +
> + at table @option
> + at item min_delay
> +Set the minimum valid delay between frames in hundredths of seconds.
> +Range is 0 to 6000. Default value is 2.
> +
> + at item default_delay
> +Set the default delay between frames in hundredths of seconds.
> +Range is 0 to 6000. Default value is 10.
> +
> + at item ignore_loop

> +If set to 1, ignore loop setting (Netscape Looping Application
> +Extension). Default value is 1.

If it is 0 does it loop forever?

> + at end table
> +

> +For example, with the overlay filter, place a continuously looping gif

GIF

> +over another video:

Add: The shortest option for overlay filter is used to cut off the output
video at the length of the shortest input file, which is always
@file{file.mp4} as the GIF loops forever.

> + at example
> +ffmpeg -i input.mp4 -ignore_loop 0 -i input.gif -filter_complex
overlay=shortest=1 out.mkv
> + at end example
> +
>  @section image2
>
>  Image file demuxer.

Timothy


More information about the ffmpeg-devel mailing list