Last active
September 18, 2019 17:25
-
-
Save gadenbuie/ad73164c1153b1551303e42cde7b48b4 to your computer and use it in GitHub Desktop.
Convert screencast mov to gif
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
#!/bin/sh | |
palette="/tmp/palette.png" | |
filters="fps=6,scale=720:-1:flags=bicubic" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
Usage
-
Download the script or copy and paste into a file called
gifify.sh
. -
Make the script executable with
chmod +x gifify.sh
-
Turn your movie into a gif:
./gifify.sh movie.mp4 movie.gif
Requires ffmpeg
which can be installed via homebrew
on MacOS: brew install ffmpeg
homebrew install ffmpeg
-> brew install ffmpeg
:)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit to https://spin.atomicobject.com/2015/07/08/simple-gif-screencast-workflow-mac/ for the original script