Skip to content

Instantly share code, notes, and snippets.

@statik
Forked from crashGoBoom/vid2gif.sh
Created August 27, 2019 18:59
Show Gist options
  • Save statik/d7f71e0ea38c17917955d7e7d9c8d6ab to your computer and use it in GitHub Desktop.
Save statik/d7f71e0ea38c17917955d7e7d9c8d6ab to your computer and use it in GitHub Desktop.
Create a gif from mov file using FFMPEG
_video_file="${1}"
ffmpeg -i $_video_file -vf palettegen pal.png
ffmpeg -i $_video_file -i pal.png -lavfi paletteuse=bayer_scale=4:dither=bayer -r 18 video.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment