Skip to content

Instantly share code, notes, and snippets.

@camertron
Created June 17, 2022 22:29
Show Gist options
  • Save camertron/f947c3888bfdee5290bc9ffca59efb0e to your computer and use it in GitHub Desktop.
Save camertron/f947c3888bfdee5290bc9ffca59efb0e to your computer and use it in GitHub Desktop.
Easily create a gif
#!/bin/bash
# Usage: gifify.sh <input file> <output file>
ffmpeg -i $1 -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment