Monday, February 18, 2013

Timelapse Video

A shell script to create timelapsed video from an X11 display


A really simple script to capture video from a window or the entire screen. It captures frames at a given interval, thus creating a timelapse effect. It's been useful enough I'm giving it a post of it's own. It does depend on ffmpeg being installed though.

Source Code

Example Video


./ 5 1000
would take 1000 captures, one every 5 seconds.
./ 60 1440 test.mp3
would take capture a frame every minute for a day, and put the audio of test.mp3 with the resulting video.


Simple yet handy, not much else to say :p It's incredibly trivial, and the simple technique can be used to do other types of video creation.

No comments: