Last active
January 14, 2018 21:20
-
-
Save kimmellj/08ff85b84e2153b6176eade68ddda209 to your computer and use it in GitHub Desktop.
Convert an MP4 to a GIF
This file contains 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/bash | |
mkdir kay-head-shake | |
mv Kay\ Head\ Shake.mp4 kay-head-shake/kay.mp4 | |
cd kay-head-shake/ | |
mkdir frames | |
ffmpeg -i kay.mp4 -r 5 'frames/frame-%03d.jpg' | |
cd frames/ | |
convert -delay 20 -loop 0 *.jpg ../kay.gif | |
cd ../ | |
open kay.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment