Skip to content

Instantly share code, notes, and snippets.

@kumamotone
Created August 12, 2019 11:37
Show Gist options
  • Save kumamotone/e6602f89b1d32ad0c26ff081247da4c5 to your computer and use it in GitHub Desktop.
Save kumamotone/e6602f89b1d32ad0c26ff081247da4c5 to your computer and use it in GitHub Desktop.
Making GIF Animation by ffmpeg
osascript -e 'display notification "start" with title "GIF Encode"'
/usr/local/bin/ffmpeg -i "${@}" -filter_complex "[0:v] fps=8,scale=600:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" "${@}".gif
osascript -e 'display notification "Gif encode end"'
@kumamotone
Copy link
Author

kumamotone commented Aug 12, 2019

Usage

As a shell script

$ sh movtogif.sh file.mov

As a QuickAction of Automator

image

Ensure that Pass input: is set to as arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment