Monday, February 18, 2013

Timelapse Video


A shell script to create timelapsed video from an X11 display




Overview

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

https://github.com/plurSKI/timelapseVideo

Example Video

Usage

./timeLapse.sh DELAY_IN_SECONDS NUMBER_OF_CAPTURES [MUSIC]
Examples:
./timeLapse.sh 5 1000
would take 1000 captures, one every 5 seconds.
./timeLapse.sh 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.

Conclusion

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: