Skip to content

Instantly share code, notes, and snippets.

@samos123
Created November 4, 2023 05:20
Show Gist options
  • Save samos123/ac7fae1d6e8b7e4da949d089ca81f7df to your computer and use it in GitHub Desktop.
Save samos123/ac7fae1d6e8b7e4da949d089ca81f7df to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# source a SO question I forgot to capture link of
ffmpeg -y -i $1 \
-filter_complex "fps=5,scale=980:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=32[p];[s1][p]paletteuse=dither=bayer" \
$2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment