Skip to content

Instantly share code, notes, and snippets.

@sergiks
Created August 11, 2020 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiks/829cfc32627bbff6f7cb5fa6f3868148 to your computer and use it in GitHub Desktop.
Save sergiks/829cfc32627bbff6f7cb5fa6f3868148 to your computer and use it in GitHub Desktop.
GIF with ffmpeg
palette="/tmp/palette.png"
filters="fps=15,scale=320:-1:flags=lanczos"
ffmpeg -i input.flv -vf "$filters,palettegen" -y $palette
ffmpeg -i input.flv -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y output.gif
@sergiks
Copy link
Author

sergiks commented Aug 11, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment