Created
May 9, 2019 08:15
-
-
Save kumamotone/50f81555040b2d176c864dec31230f4d to your computer and use it in GitHub Desktop.
Automation Script
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
for f in "$@" | |
do | |
ext=${f##*.} | |
if [ $ext = "mov" ]; then | |
osascript -e 'display notification "'$f'" with title "Gif encode start"' | |
/usr/local/bin/ffmpeg -i $f -filter_complex "[0:v] fps=8,scale=600:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" $f.gif | |
osascript -e 'display notification "'$f'" with title "Gif encode end"' | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment