Skip to content

Instantly share code, notes, and snippets.

@jasdeepkhalsa
Created January 9, 2019 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasdeepkhalsa/41ae12bbac7430b1a56da0804f3c5868 to your computer and use it in GitHub Desktop.
Save jasdeepkhalsa/41ae12bbac7430b1a56da0804f3c5868 to your computer and use it in GitHub Desktop.
Video to GIF with FFMPEG
ffmpeg -i video.mp4 -filter_complex "[0:v] fps=24,scale=1080:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" video.gif
## REFERENCES
# https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
# https://ffmpeg.org/ffmpeg-filters.html#scale-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment