Aug 21 2011
Making Time Lapse Videos – Initial Fumbling
You can create your own Time Lapse videos using all open source stuff. Well, almost all.
On Windows I’m using ffmpeg (command line program) and InfranView(for bulk image processing).
Photos were shot with a Canon DSLR (Rebel XTi) in “medium” resolution. Used my 555/556 based timer to trigger the shutter.
- Ttake the photos. The more the better.
- Drop them into a clean folder.
- FFMPEG needs the files ordered by file name, starting with _0001. Your camera probably incremented them another way. To fix this, use InfranView.
- Open Infraview and go to Batch mode.
- Select “Batch rename”.
- In the Name Pattern enter “img_####” (result will be img_0001, etc).
- Select all the images (“Look in”) and press “Add All” to bring them into the Input files section.
- Change Output directory. I use a subdir under my source folder.
- Press Start Batch. It will take a little bit to do all the renaming and moving.
- Now open up a command window. I run this from the \ffmpeg\bin\ directory:
ffmepg -r 12 -i c:\timelapse\1\out\img_%04.jpg -sameq -s hd720 -vcodec libx264 -crg 25 test.mp4
Where -r is frames per sec (you can adjust, or leave out), -i is the location of the input files (where you batch output them to using infraview). The %04 means that names should be formatted like: img_0000.jpg. If you have three digit suffixs (ex. img_001.jpg) you’d use img_%03.jpg. The test.mp4 is the output file name.
I cheated and used someones settings for the rest — these worked for me, others did not. I do not pretend to understand them! Still experimenting. I got a lot of errors and warning when using simpler examples. And I got a lot of “black screen” videos. Dunno why.
- The resulting mp4 should play on your computer. I found that uploading the YouTube resulted in screwed up YouTube videos (the sync is messed up or something). To resolve this, Evelyn processed the file into a FLV (YouTube friendly) format. Then it was fine. Go figure. Again, I do not pretend to understand it.
Here are some links that helped me out:
Even if you don’t do time lapse, InfranView is worth a look. If you process a lot of photos, it saves a LOT of time. Bulk re-sizing, conversion, renaming, etc. Makes it easy to take those gigantic 12 MP files down to something you can upload to Facebook.
The Windows versions of this stuff:
http://ffmpeg.zeranoe.com/builds/ — make sure to download the 32 or 64 bit “static build” (latest release)












