News for hackers. Stuff that matters.
Re:Stupid Programmer Tricks and Star Wars GIFs by sigil on Tuesday October 29, 2013 @01:51PM (#6636103)
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

Example gif:

http://imgur.com/RiqEHJJ

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?
Re:Stupid Programmer Tricks and Star Wars GIFs by djeikyb on Wednesday October 30, 2013 @01:16AM (#6639651)
Something like this probably works:

    ffmpeg -i myvideo.mkv -vn -acodec ogg myvid_sans_video.ogg
Re:Stupid Programmer Tricks and Star Wars GIFs by mtrimpe on Wednesday October 30, 2013 @03:00PM (#6642463)
Or even just

    ffmpeg -i myvideo.mkv myaudio.mp3