Skip to content

Instantly share code, notes, and snippets.

@quietcricket
Created January 28, 2021 08:45
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 quietcricket/afcdd9eeadeac58c733505f0ae63a6b2 to your computer and use it in GitHub Desktop.
Save quietcricket/afcdd9eeadeac58c733505f0ae63a6b2 to your computer and use it in GitHub Desktop.
FFMPEG Commands
# Making gif with PNG files
# Generate palette
ffmpeg -f image2 -i frame%04d.png -vf scale=900:-1:sws_dither=ed,palettegen palette.png
# Join png files using the palette generate
ffmpeg -i frame%04d.png -i palette.png -filter_complex "fps=12,scale=900:-1:flags=lanczos[x];[x][1:v]paletteuse" video.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment