News for hackers. Stuff that matters.
Re:Show HN: Gifify – Convert any video file to an optimized ... by redacted on Sunday November 23, 2014 @01:25AM (#8648007)
Next, take the Gifify output, upload to gfycat to get a optimised video file. Repeat until convergence.
Re:Show HN: Gifify – Convert any video file to an optimized ... by vvoyer on Monday November 24, 2014 @04:10AM (#8651571)
I immediately thought of it too, it might be fun to do the movify to transform a gif to a movie, command line.
Re:Show HN: Gifify – Convert any video file to an optimized ... by anonfunction on Saturday November 22, 2014 @07:19PM (#8647225)
Here's my own video -> gif bash script: https://github.com/montanaflynn/vidtogif

And here's a one-liner using ffmpeg and ImageMagick:

  ffmpeg -i input.mp4 -vf scale=600:-1 -r 5 -f image2pipe -vcodec ppm - | convert - gif:- | convert -layers Optimize - output.gif
Re:Show HN: Gifify – Convert any video file to an optimized ... by vvoyer on Saturday November 22, 2014 @07:27PM (#8647258)
Careful, your script and one liner generates a whopping 1.5mb file for a 3s movie.

While gifify generates a 1mb file for a 800 px wide, 20s screencast.

https://github.com/pornel/giflossy helps a lot, and works with unix pipes too, you can try it.

Optimized! :)

Also, gifify has lots of options like compression, resizing, speed, colors..

Of course, in the end, it's only a wrapper to ffmpeg - convert - gifsicle (giflossy).

But it helps a lot in achieving MOVIE -> GIF. In a command line way or programmatic way (i.e., you can write a server that uses it and stream gifs to the client).

Re:Show HN: Gifify – Convert any video file to an optimized ... by anonfunction on Saturday November 22, 2014 @07:35PM (#8647281)
Yes I was just looking at your implementation and must say it's better in numerous ways :)
Re:Show HN: Gifify – Convert any video file to an optimized ... by hetaali on Sunday November 23, 2014 @03:48PM (#8649879)
If you want to create a gif that represents the complete video in a short gif loop have a look at https://github.com/marlev/gifserver

"I spent hours googling for a service that creates an animated gif from a video, that represents the complete video. I only found solutions that animated the first 10 frames, the first 30 seconds etc. So i decided to create gifserverthat will represent the complete video with 9 looping frames,no matter how long the original file is."

Re:Show HN: Gifify – Convert any video file to an optimized ... by llimllib on Saturday November 22, 2014 @09:44PM (#8647624)
Why are you using that fork of gifsicle? I went to that repo to read the homepage but it was the unchanged gifsicle README.
Re:Show HN: Gifify – Convert any video file to an optimized ... by Nyr on Saturday November 22, 2014 @10:01PM (#8647659)
It does implement support for lossy LZW compression which I assume he's using for this.
Re:Show HN: Gifify – Convert any video file to an optimized ... by vvoyer on Sunday November 23, 2014 @12:57PM (#8649346)
Yes giflossy does a very good job at compressing GIFs. Giflossy compression wlil be implemented in gifsicle in the end.
Re:Show HN: Gifify – Convert any video file to an optimized ... by vvoyer on Monday November 24, 2014 @05:40PM (#8655136)
gifify now supports subtitles and can extract 5 seconds from a 2 hours movies in less than 20 seconds.

HF with GIFS

Re:Show HN: Gifify – Convert any video file to an optimized ... by tiagocesar on Monday November 24, 2014 @08:43AM (#8652297)
The people at Buzzfeed will love it :)