Last active
August 29, 2015 14:19
-
-
Save spite/10ff99d4f85a87abad7f to your computer and use it in GitHub Desktop.
Converting a video captured with Quicktime to GIF (for posting to twitter)
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
ffmpeg -i input2.mov -vf "setpts=(1/2)*PTS" output.mov | |
ffmpeg -ss 00:00:00.000 -i output.mov -pix_fmt rgb24 -vf scale=506:-1 -r 10 output.gif |
-ss specifies the starting time
-vf scale=506:1 forces to 506px wide, according height
-r specifies framerate
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This one plays at twice the speed, at the size of twitter GIF card