Created
November 21, 2014 20:16
-
-
Save jameswhite/603c219a9838176456be to your computer and use it in GitHub Desktop.
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
# Get the video | |
sudo curl https://yt-dl.org/downloads/2014.11.16/youtube-dl -o /usr/local/bin/youtube-dl | |
sudo chmod 755 /usr/local/bin/youtube-dl | |
/usr/local/bin/youtube-dl https://www.youtube.com/watch?v=zhUi13dU_88 | |
# snippet it | |
ln -s "WFTDA Roller Derby - 2014 Championships - Rose City Rollers vs. Gotham Girls Roller Derby-zhUi13dU_88.mp4" input.mp4 | |
ffmpeg -i input.mp4 -ss 3445 -t 00:00:04.0 -acodec copy -vcodec copy output.mp4 ; gif output.mp4; | |
# gif it | |
ffmpeg -i output.mp4 -s 600x400 -pix_fmt rgb24 -r 29.97 -f gif - | gifsicle --optimize=3 --delay=3 > output.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment