Skip to content

Instantly share code, notes, and snippets.

View davebcn87's full-sized avatar

David Cortés davebcn87

View GitHub Profile
@davebcn87
davebcn87 / gif.sh
Last active February 28, 2021 16:15
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