Converting video to high-quality gif using ffmpeg

1 · Bhupesh Varshney · Feb. 13, 2021, 10:48 a.m.
Summary
Converting videos to GIFs using ffmpeg is a pain in the ass if you don’t know what’s happening. GIF size getting 10x the size of original video ? Don’t worry, I got you! Below are few points that can help: Always create a custom palette Don’t increase/decrease file dimensions Save unnecessary frame conversion by skipping timeframes (using -t). Experiment with fps (default value is 24) # Get video dimensions ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 ...