Save a video as GIF

Save a video as GIF, scaling the height to 1000px and setting framerate to 15

Recipe Parameters
output.sh
ffmpeg -i path/to/video.mp4 [-vf|-filter:v] 'scale=-1:1000' -r 15 path/to/output.gif
Warm Reminder

Project Under Development

This project is still in development and may contain errors. Please use with caution.

# Why use this command?

This command is crucial for image processing. Save a video as GIF, scaling the height to 1000px and setting framerate to 15. By using FFmpeg's advanced encoding libraries, you ensure the best possible quality/size ratio.

# Parameter Explanation

The command constructs a filter graph that processes the input stream. Key flags like -c:v (codec) and -crf (quality) determine the final output properties.

path/to/video.mp4Input Video File configuration
[-vf|-filter:v]Video Filter configuration
path/to/output.gifOutput GIF File configuration

Common Errors & Solutions

"GIF file is too large"

GIFs are inefficient. Try reducing the framerate (-r 10) or the scale (scale=-1:480).

"Low quality colors"

Standard GIF conversion uses a generic palette. Use the 'palettegen' and 'paletteuse' filters for better quality.

Related Tools in Image