Created
June 4, 2019 06:48
-
-
Save frankzhao/230ab527f7deab918c274c4cd04a8606 to your computer and use it in GitHub Desktop.
mp4 to 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 temp | |
ffmpeg -i recording.mp4 -r 5 temp/frame-%03d.jpg | |
convert -delay 20 -loop 0 temp/*.jpg output.gif | |
rm -r temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment