2 ms·
Totally agree, although the author's use of vlc definitely qualifies as a clever hack. I want more hackers to realize how insanely easy it is to programmatical
by sigil 13y ago
Totally agree, although the author's use of vlc definitely qualifies as a clever hack.
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 https://github.com/acg/generating-video-demo
Example gif:
http://imgur.com/RiqEHJJ http://imgur.com/RiqEHJJ
- goostavos 13y agoInteresting! At work I hacked together a video writer that compiles still frames to a movie using OpenCV. But it is slow --ungodly slow. I'll have to check out ffmpeg!
- sigil 13y agoTry this: ffmpeg -i frame%04d.png -vcodec mjpeg -sameq test.avi
- unlikelymordant 13y agoIf I wanted to strip the audio into a big wav or mp3 file, how would that be done?