Skip to content

Instantly share code, notes, and snippets.

@lukevers
Created October 3, 2016 18:25
Show Gist options
  • Save lukevers/b2e8a67fd3736a4b5072d3ee6547e425 to your computer and use it in GitHub Desktop.
Save lukevers/b2e8a67fd3736a4b5072d3ee6547e425 to your computer and use it in GitHub Desktop.
Making gifs
#!/bin/sh
palette="/tmp/palette.png"
filters="fps=15,scale=-1:-1:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment