FFMPEG gif script for bash
Script to generate animated gifs easily from command line.
Outputs palette-mapped .gifs with great colours & desired resolution from your videos.
- Clone the repo
- Install ffmpeg (you might need to install a package manager, such as homebrew for OS X)
./gifenc [input movie file] [generated gif's name] [horizontal resolution] [frames per second (fps)]
./gifenc input.mov output.gif 720 10will output 720px wide 10fps .gif. (
chmod +x gifenc.shmight be needed to run beforehand)
- Tweak the parameters in order to get internet-shareable sizes
- Tested with most common movie formats
Special thanks to this article.