Skip to content

Instantly share code, notes, and snippets.

@johnthepink
Created January 18, 2022 16:03
Show Gist options
  • Save johnthepink/871b4084b642e185b4f5dad8374c543c to your computer and use it in GitHub Desktop.
Save johnthepink/871b4084b642e185b4f5dad8374c543c to your computer and use it in GitHub Desktop.
Creating Gifs on OSX
# dependencies to install
brew install ffmpeg
brew install gifsicle
# add this to your shell environment
function v2g() {
ffmpeg -i "$1" -pix_fmt rgb8 -r 10 "$2" && gifsicle -O3 "$2" -o "$2"
}
# record a screencast with Quick Player
# then, run this with the information filled out
v2g path/to/input.mov path/to/output.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment