Created
November 14, 2017 12:06
-
-
Save ordavidil/e25dc420e044de5adc6d85923f8dc820 to your computer and use it in GitHub Desktop.
Convert .mov files to .gif via terminal (Mac)
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
# Add to your .bash_profile | |
# Usage: | |
# mov_to_gif <file_name> | |
# | |
# Taken from: https://gist.github.com/dergachev/4627207#instructions | |
function mov_to_gif() { | |
GIF=$(sed 's/\.mov/\'$'.gif/g' <<< $1) | |
ffmpeg -i $1 -pix_fmt rgb24 -r 10 -f gif - > $GIF | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment