IntroductionIn just a few days, my friend and I will be taking part in a rally across Europe, covering 12 countries in 7 days in a 17-year-old car bought for just £333 (€400; $500). We are doing this to raise funds for our chosen charity,
Action Medical Research.
We plan to capture a timelapse of the entire trip, condensing each day of driving into a short video.
There are plenty of excellent timelapse scripts available for CHDK, but capturing images from a moving vehicle has specific requirements. I was unable to find a script for this purpose, so I decided to create 'Drivelapse' (attached).
Hardware requirementThe script was written for a Canon SD800 IS (IXUS 850 IS). It may work with other camera models, but I have been unable to test this. Attempting to use the script with a camera that has a variable aperture as opposed to an ND filter will result in the depth of field changing between shots. It was designed for IXUS/SD-series cameras.
CHDK versionThe script has been tested with CHDK 1.1. It has not been tested with other versions.
ConfigurationThe script has the following configurable parameters:
Target interval (sec)This specifies how often a photo is taken. This should be 1 second for the smoothest results, but a larger interval can be considered if you have limited storage space.
Default: 1
Focus (mm)This specifies the focus distance. Usually, this should be 'infinity' to capture the scenery, but you can reduce it if you need to focus on something closer to the camera.
Default: 65535 (infinity)
Target Tv96This specifies the shutter speed to be used. A small amount of motion blur is desirable as it will result in a smoother video.
Adding or subtracting 96 from this value will result in a doubling or halving of the shutter speed respectively.
Default: 576 (1/60 sec)
Minimum Sv96This controls the minimum ISO to be used. It should be set to the minimum Sv96 for your camera model.
Default: 371
* (ISO 80)
Maximum Sv96This controls the maximum ISO to be used. It should be set to the maximum Sv96 value for your camera model, or lower if the noise level is not acceptable.
Default: 795
* (ISO 1600)
* These are the Sv96 values for a Canon SD800 IS. To determine the correct values for your camera model, you can use
this script.
The default settings should be fine for the majority of use cases.
Prerequisites- Manually set the white balance to 'Sunny'. Do not use auto white balance or the colour temperature will vary between shots.
- Set the metering mode to 'Center weighted'. This gives more consistent results than evaluative metering.
- Set exposure compensation if required. This is largely dependent upon how much sky appears in the composition relative to the road, but generally +1/3 produces good results.
- Set the image format to 16:9.
- Set the image quality to 'Normal'.
- Securely mount the camera to the inside of the vehicle. Use of a windscreen suction mount is recommended.
- Powering the camera from a DC adapter (or AC adapter in conjunction with a power inverter) is highly recommended.
- If required, set the script to auto start when the camera is powered on.
How it worksThe script allows the camera to enable/disable the built-in ND filter according to the current light level. It then sets the shutter speed to
Target Tv96, and adjusts the Sv96 (ISO) to achieve a correct exposure taking into account any exposure compensation. This works much like a shutter-priority mode.
If a correct exposure cannot be obtained due to over-exposure even at
Minimum Sv96, the shutter speed is increased until a correct exposure can be achieved. This will result in a shutter speed faster than
Target Tv96 if it is particularly bright.
If a correct exposure cannot be obtained due to under-exposure even at
Maximum Sv96, the shutter speed is decreased until a correct exposure can be achieved. This will result in a shutter speed slower than
Target Tv96 if light levels are low, but has the advantage of creating some nice light trails when driving through tunnels etc.
The exposure is recalculated prior to each shot to allow for changing lighting conditions.
Status displayThe script will display the amount of recording time left until the memory card becomes full. Note that if you are using a memory card that is capable of holding over 9,999 shots, the script will display 'Over X hours' until there are fewer than 9,999 shots remaining.
In addition, the Av96, Tv96 and Sv96 values used for each shot will be displayed.
SampleThis sample video was produced using
LRTimelapse in conjunction with
Adobe Lightoom. It was rendered at 25fps.
Drivelapse: Sandbach, Cheshire to Hinckley, LeicestershireThis was one of a number of test videos that we made prior to the rally. It is slightly underexposed, so could have done with +1/3 or +2/3 of exposure compensation.
DonateA lot of time and testing has gone into developing this script. If you find it useful, please consider
making a donation to Action Medical Research.
You can also
follow our Facebook page to see our timelapse videos as they are posted. The rally starts on 1 September 2012.
FeedbackAny comments, suggestions or feedback welcome. Please let me know if you find this script useful, or if you can confirm that it works with any other camera models.
Changelogv1.0: Initial release
v1.1: Adds a check to verify that the camera is in record mode. If not, switches to record mode. (Thanks lapser and waterwingz)