Skip to content

Instantly share code, notes, and snippets.

@arthuralvim
Created April 8, 2015 20:11
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 arthuralvim/980a54af714e1316d16f to your computer and use it in GitHub Desktop.
Save arthuralvim/980a54af714e1316d16f to your computer and use it in GitHub Desktop.
Utilizando o FFMPEG para gerar gifs.
ffmpeg -t 10 -ss 00:00:08 -i video.mp4 -loop 0 -vf "transpose=1" -s 240x320 output.gif
convert -layers Optimize output.gif output-small.gif
ffmpeg -t 10 -ss 00:00:10 -i video2.mp4 -loop 0 -s 320x240 output2.gif
convert -layers Optimize output2.gif output2-small.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment