Skip to content

Instantly share code, notes, and snippets.

@samelie
Last active August 29, 2015 14:13
Show Gist options
  • Save samelie/d7ed93483721786f1769 to your computer and use it in GitHub Desktop.
Save samelie/d7ed93483721786f1769 to your computer and use it in GitHub Desktop.
make gifs from video
//to folder output
ffmpeg -i screencast.mov -vf scale=320:-1 -r 4 output/ffout%3d.png
//make jpg
for i in output/*.png; do convert $i -strip -interlace Plane -gaussian-blur 0.01 -quality 70% $i.jpg; done
// merge, -dalay' is the delay of 8, you would get a FPS=100/8=12.5
convert -delay 6 -loop 0 output/*.jpg output/animation.gif
@samelie
Copy link
Author

samelie commented Apr 29, 2015

ffmpeg -i clip.mp4 -r 10 -vf scale=512:-1 output.gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment