Skip to content

Instantly share code, notes, and snippets.

@marcelmaatkamp
Last active January 17, 2020 14:51
Show Gist options
  • Save marcelmaatkamp/4f777250515263d5cb316e0a98d0d2d4 to your computer and use it in GitHub Desktop.
Save marcelmaatkamp/4f777250515263d5cb316e0a98d0d2d4 to your computer and use it in GitHub Desktop.
#!/bin/bash
fmpeg \
-i $* \
-ss 30 \
-t 3 \
-vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \
-loop 0 \
output.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment