FFMPEG Cheat Sheet

 

Create animated GIF (with nice colors) from a sequence of images named “img (0…N).jpg”. Use “%0Nd.jpg” for 0-padded numbered files.

set pattern="%04d.jp2"
ffmpeg -i %pattern% -vf palettegen palette.png 
ffmpeg -i %pattern% -i palette.png -lavfi "fps=15, paletteuse" out.gif

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s