Skip to content

Instantly share code, notes, and snippets.

@vandorjw
Created April 16, 2021 16:20
Show Gist options
  • Save vandorjw/051cac4f6f91e90ec890be1eb6fb16e3 to your computer and use it in GitHub Desktop.
Save vandorjw/051cac4f6f91e90ec890be1eb6fb16e3 to your computer and use it in GitHub Desktop.
GIF from MKV
ffmpeg -i recording.mkv -r 15 -vf "scale=1024:-1,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -ss 00:00:00 -to 00:00:20 output.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment