News for hackers. Stuff that matters.
Re:Twitter's GIF hack by eph_unit on Thursday June 19, 2014 @02:01PM (#7917393)
So, what is an easy way to convert gifs to mp4? How did they do this. I run a small gif-sharing site and should probably do this.
Re:Twitter's GIF hack by GHFigs on Thursday June 19, 2014 @02:27PM (#7917546)
I had a convoluted method using gifsicle to extract the frames and then encode as a stream of frames, but then sometime in the past year or so ffmpeg improved native gif support. This is what I use (the options are both for compatibility):

    ffmpeg -i foo.gif -pix_fmt yuv420p -vf crop=floor (in_w/2)*2:floor(in_h/2)*2 foo.mp4
Works for WebM just by changing the extension, too.
Re:Twitter's GIF hack by kwntm on Thursday June 19, 2014 @02:03PM (#7917411)
Re:Twitter's GIF hack by ushi on Thursday June 19, 2014 @02:03PM (#7917409)
Re:Twitter's GIF hack by jdiez17 on Thursday June 19, 2014 @02:06PM (#7917425)
I made a website that does this, and a lot more. It's also open source, and has been around for a while.

https://mediacru.sh