Last active
February 28, 2021 16:15
-
-
Save davebcn87/49f912be34189261f6d1c70621a20bb5 to your computer and use it in GitHub Desktop.
Gif command with ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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