[FFmpeg-user] Set loop/iterations for generated GIF images
Eugene Dzhurinsky
jdevelop at gmail.com
Wed Jun 26 19:11:20 CEST 2013
> so ./ffmpeg -i ... -loop 123 out.gif should do the trick.
It doesn't actually, I am using it as
> ffmpeg -c:v png -pix_fmt rgb24 -f image2pipe -r 24 -i - -y -loop 0
video.gif
and
> ffmpeg -c:v png -pix_fmt rgb24 -f image2pipe -r 24 -i - -y video.gif
which produces exactly the same result. I am reading set of images from
STDIN for animation creation, if that matters,
ffmpeg version N-53165-g3da726f Copyright (c) 2000-2013 the FFmpeg
developers
built on May 16 2013 18:19:02 with gcc 4.8.0 (GCC) 20130502 (prerelease)
configuration: --prefix=/usr --enable-gpl --enable-libass
--enable-libfaac --enable-libmp3lame --enable-libopus --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
--enable-x11grab
libavutil 52. 32.100 / 52. 32.100
libavcodec 55. 9.100 / 55. 9.100
libavformat 55. 7.100 / 55. 7.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 68.101 / 3. 68.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
2013/6/26 Clément Bœsch <ubitux at gmail.com>
> On Tue, Jun 25, 2013 at 04:22:01PM -0400, Eugene Dzhurinsky wrote:
> > Hello!
> >
> > Can you please tell me - what are the command-line options to set the
> loop
> > (0/1) and iterations number for animated GIF creation?
> >
>
> % ./ffmpeg -v 0 -h muxer=gif
> Muxer gif [GIF Animation]:
> Common extensions: gif.
> Mime type: image/gif.
> Default video codec: gif.
> GIF muxer AVOptions:
> -loop <int> E..... Number of times to loop the
> output. (from 0 to 65535)
> -final_delay <int> E..... Force delay (in ms) after the
> last frame (from -1 to 65535)
>
> so ./ffmpeg -i ... -loop 123 out.gif should do the trick.
>
> --
> Clément B.
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
--
regards
Eugene Dzhurinsky
More information about the ffmpeg-user
mailing list