Skip to content

Instantly share code, notes, and snippets.

@devnano
Last active November 7, 2019 17:38
Show Gist options
  • Save devnano/ba48d6872be3921c4fe126074e092866 to your computer and use it in GitHub Desktop.
Save devnano/ba48d6872be3921c4fe126074e092866 to your computer and use it in GitHub Desktop.
# setpts=0.5*PTS -> https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video
# video to gif https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
# loop=1
ffmpeg -i how\ to.mov -filter_complex "[0:v] loop=1,setpts=0.25*PTS,fps=2,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" tutorial.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment