Skip to content
Turn your videos into palette-mapped gifs with this easy script
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information. asd Jul 5, 2018
coding.gif Update readme, add example Feb 20, 2016
gliding.gif Update gliding gif to a smaller one Feb 20, 2016
nisula-2018-07-04-slomo-200.gif asd Jul 5, 2018

FFMPEG gif script for bash

Football Coding example Gliding example

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)


  • Run ./gifenc [input movie file] [generated gif's name] [horizontal resolution] [frames per second (fps)]
  • i.e.: ./gifenc output.gif 720 10 will output 720px wide 10fps .gif. (chmod +x might 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.

You can’t perform that action at this time.