Skip to content

Instantly share code, notes, and snippets.

@v
Created November 12, 2021 19:14
Show Gist options
  • Save v/e5066e5d31d2fed5e5d093f2a56cc28e to your computer and use it in GitHub Desktop.
Save v/e5066e5d31d2fed5e5d093f2a56cc28e to your computer and use it in GitHub Desktop.
#!/bin/bash
FILE="$1"
OUTPUT="${FILE%%.*}.gif"
echo $OUTPUT
ffmpeg -i "$FILE" -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 "$OUTPUT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment