Created
April 23, 2016 23:08
-
-
Save yagop/944c465057d98327496640f1050be6e4 to your computer and use it in GitHub Desktop.
Youtube2GIF
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
cd /tmp | |
youtube-dl "https://www.youtube.com/watch?v=bS5P_LAqiVg" | |
# 6s of durantion. Starting from 00:10:46. Kung Fury as input file. 11 fps. 640x360 frame size. Yes to all. Save as out.gif | |
ffmpeg -t 6 -ss 00:10:46 -i KUNG\ FURY\ Official\ Movie\ \[HD\]-bS5P_LAqiVg.mkv -r 11 -s 640x360 -y out.gif | |
# The maximum GIF file size for twitter is 5MB, our file is 4.8MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment