Skip to content

Instantly share code, notes, and snippets.

@davebcn87
Last active February 28, 2021 16:15
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 davebcn87/49f912be34189261f6d1c70621a20bb5 to your computer and use it in GitHub Desktop.
Save davebcn87/49f912be34189261f6d1c70621a20bb5 to your computer and use it in GitHub Desktop.
Gif command with ffmpeg
# You will need to install ffmpeg first: https://github.com/FFmpeg/FFmpeg
# add this to your .bashrc or .zshrc
function gif() { ffmpeg -i $1 -pix_fmt rgb8 -vf scale=-1:1080 $2 }
# Usage
# $~ gif whatever.mov output.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment