Hacker News new | ask | show | jobs
by songshuu 2230 days ago
Offhand do you recall the one-liner for that?

I remember seeing it a couple years back.

3 comments

I often refer to this article, it does a good job of building a one-liner up from scratch: https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
I do use both YouTube-DL and FFMPEG, and producing high-res GIF is actually very easy. It took me two weeks (part time) to launch the first raw version that worked well on my machine :) but took over a year to be able to scale it so everyone else can use it as well.
url=http://www.youtube.com/watch?v=V5bYDhZBFLA; youtube-dl -b $url; mplayer $(ls ${url##=}| tail -n1) -ss 00:57 -endpos 10 -vo gif89a:fps=5:output=output.gif -vf scale=400:300 -nosound

https://www.commandlinefu.com/commands/view/6110/create-an-a...