It is currently Sat Mar 06, 2021 5:53 am

Post new topic Reply to topic  [ 2 posts ] 
 Canon script - chdk 
Author Message
User avatar

Joined: Wed Apr 23, 2014 8:01 pm
Posts: 19
Location: Gdansk, Poland
Post Canon script - chdk
I've been using Canon G12 & G1X for shooting timelapses for about a year.
After installing CHDK software (canon hack development kit), the camera can utilize a bunch of timelapse scripts.

I'm using this script a lot (and I was testing it extensively in the field to provide feedback for the author - to help eliminate bugs, introduce ideas for new functions, etc.). It's good for sunrises, sunsets, anything with changing exposure:
Here's an example timelapse I've shoot with yass 4 script:

When I need to shoot at a fastest rate possible, I switch to jpeg and use this script (it cannot change exposure, but is very fast):

I'm also using a simple intervalometer script sometimes (it is useful for hyperlapses, astrolapses), which just shoots at a set interval (it's included in any standard CHDK compilation).

CHDK download page:

Canon G12 & G1X are really capable for a small cameras they are. Raw files contain much information to work with later, the cameras are light, don't have a mechanical shutter (no mechanical wear, virtually no vibration introduced), the aperture is 100% consistent between frames. For me it's the best of both worlds.

I'm shooting timelapses with Canon G12, Canon G1X and Nikon D800.

Wed Apr 23, 2014 8:31 pm

Joined: Tue Oct 07, 2014 10:55 am
Posts: 1
Post Re: Canon script - chdk
Thanks for the tip on CHDK and scripts you mentioned.

Yours is probably not the first post on CHDK in this forum, but it was the first I read when I browsed the forum yesterday (my first time around).

It was really a BIG surprise to know that my old, humble PowerShot A3100 could be hacked and improved!! :o

I'm not new to hacking equipment like routers, but I simply never thought it could be also possible on these little cameras. (better thinking, why shouldn't it?...)

With CHDK, I could finally override the poor intervalometer that comes with the camera and make an unlimited number of sequential exposures.

And here's my first nightly 8 sec time lapse video: (too much polution, few stars, but I love it, since it's my first acceptable one :roll: )

For the records, since I'm over an Ubuntu 14.04 laptop, the video was produced this way:

A - Shooting

I shoot 88 10 sec exposure pictures using CHDK default intervalometer.

B - Post-production

1) I gathered the photos in a specific directory;

2) I renamed the file names so that they start from 0001 upwards. To do this, I ran this smal script, adapted from the reference at the bottom of this post:

x=1; for i in *.JPG; do counter=$(printf %04d $x); ln -sv "/your_time_lapse_directory/$i" /your_time_lapse_directory/tmp/img"$counter".jpg; x=$(($x+1)); done
exit 0

3) I joined the photos in a video. I executed the following command line from the /tmp directory (the directory where the renamed images stay, see script above):

avconv -f image2 -r 10 -i img%04d.jpg -vcodec libx264 time-lapse-10fps.mp4

(The -r option let you set up the video frame rate, the -f option I don't know what it means)


Btw, nice sunrise video in Gdansk. I soon will try to use the script you mentioned and see what happens.

Thanks once more.

Tue Oct 07, 2014 11:54 am
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore. pozycjonowanie