I want more hackers to realize how insanely easy it is to programmatically generate video with ffmpeg. Just write a program that dumps raw RGB frames to stdout! You can turn that into any video format conceivable, including gif.
Here's a little demo I wrote. Generates a video of the Mandelbrot set coming into focus:
https://github.com/acg/generating-video-demo
Example gif:
ffmpeg -i frame%04d.png -vcodec mjpeg -sameq test.avi ffmpeg -i myvideo.mkv -vn -acodec ogg myvid_sans_video.ogg ffmpeg -i myvideo.mkv myaudio.mp3The file size reduction was quite impressive for our use case (roughly 10x smaller.)
In the end we did decide that while putting 5 second video intros in emails is cool, a 200k image is still a bit much for mobile users.
You must have a very different experience of email than I do. That sounds absolutely terrible to me. Am I missing some reason that this would be useful, or is this just a case of wildly diverging preferences?
Our product (Interactly) is virtual video interactions, so our main value prop is being able to see real people respond.
In that context we figured it would be interesting to see if we could include a 5 second GIF intro right into the notification email; mostly out of curiosity just to see if it would technically be possible.
I was surprised to find out it was mostly feasible, but you're right that it doesn't make sense beyond the fact that it would be a cool gimmick.
For example, here's a gif produced with just ffmpeg: http://i.imgur.com/DWc4OdD.gif
And here is the version produced by ImageMagick: http://i.imgur.com/OdojPSo.gif
While the one made using ImageMagick looks better, it's also less compressed and takes up more space. So it's a tradeoff between the two.
Duke Dumont - Need U @ 1:42
http://www.youtube.com/watch?feature=player_detailpage&v=FnJ...
gst-launch-1.0 rtspsrc location=rtsp://192.168.2.112:8080/stream.sdp ! rtph264depay ! h264parse ! omxh264dec ! autovideosink
Gstreamer is more than this, but it'is a neat example.