ffmpeg -ss 00:01:00 -t 10 -i input_video.mp4 -vf "fps=10" -c:v gif output.gif
  • -ss starting time
  • -t duration
gifsicle --optimize=3 --colors 128 --delay=10 --loop=0 input.gif > output.gif
  • Optimizes the GIF using the maximum optimization level (--optimize=3).
  • Limits the color palette to 128 colors (--colors 128), reducing the file size.
  • Sets a delay of 10 hundredths of a second between frames (--delay=10).
  • Ensures the GIF loops indefinitely (--loop=0).