Skip to content

Instantly share code, notes, and snippets.

@echohack
Created July 29, 2015 17:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save echohack/61ec4e97789546fb0328 to your computer and use it in GitHub Desktop.
Save echohack/61ec4e97789546fb0328 to your computer and use it in GitHub Desktop.
convert an mp4 to gif with ffmpeg
ffmpeg -i input_file.mp4 -vf scale=320:-1:flags=lanczos,fps=30 frames/ffout%03d.png
convert -loop 0 frames/ffout*.png output_file.gif
@linzhi
Copy link

linzhi commented Mar 24, 2017

转换后的大小如何啊

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