Skip to content

Instantly share code, notes, and snippets.

@alifahrri
Last active November 29, 2018 11:06
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 alifahrri/6277e09b21b94dcf8dccd24d75f926ce to your computer and use it in GitHub Desktop.
Save alifahrri/6277e09b21b94dcf8dccd24d75f926ce to your computer and use it in GitHub Desktop.
video to gif with ffmpeg
ffmpeg -ss 61.0 -t 2.5 -i StickAround.mp4 -f gif StickAround.gif

-ss 61.0 seek to 61.0 seconds
-t 2.5 only read 2.5 then stop

ffmpeg -ss 61.0 -t 2.5 -i StickAround.mp4 -filter_complex "[0:v] fps=12,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" SmallerStickAround.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment