Re:Stupid Programmer Tricks and Star Wars GIFs
by goostavos on Tuesday October 29, 2013 @06:43PM
(#6638037)
Interesting! 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!
Re:Stupid Programmer Tricks and Star Wars GIFs
by sigil on Tuesday October 29, 2013 @07:26PM
(#6638282)
Try this:
ffmpeg -i frame%04d.png -vcodec mjpeg -sameq test.avi
Re:Stupid Programmer Tricks and Star Wars GIFs
by unlikelymordant on Tuesday October 29, 2013 @08:28PM
(#6638590)
If I wanted to strip the audio into a big wav or mp3 file, how would that be done?
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:
http://imgur.com/RiqEHJJ