Bracketing series (for example for timelapse HDR) - page 2 - Completed and Working Scripts - CHDK Forum

Bracketing series (for example for timelapse HDR)

  • 22 Replies
  • 24510 Views
Re: Bracketing series (for example for timelapse HDR)
« Reply #10 on: 03 / June / 2008, 01:26:00 »
Advertisements
OK, never mind (yet again).  I see that the problem was with the get_jpg_count (and get_raw_count) commands.  Since vine mentioned the get_exp_count command, I did a little digging around, found that Jucifer's build will run it, so I modified the script to work. Here it is:

Code: [Select]
@title Bracketing series by vine (modified by RawheaD)
@param a Number of shoots per take
@default a 3
@param b Seconds between takes
@default b 5
@param c Number of takes
@default c 50

for i=1 to c
x=get_exp_count
y=x+a
press "shoot_half"
sleep 2000
press "shoot_full"
do
z=get_exp_count
until z=y
release "shoot_full"
release "shoot_half"
print "Take",i,"done"
sleep b*1000
next i
end


I tried this with Jucifer's latest experimental build, available http://www.saunalahti.fi/nirsku/chdk/evil/ and it worked perfectly!! ;-)


Thanks vine.
Using Canon PowerShot A620 & A560

*

Offline fbonomi

  • ****
  • 469
  • A570IS SD1100/Ixus80
    • Francesco Bonomi
Re: Bracketing series (for example for timelapse HDR)
« Reply #11 on: 03 / June / 2008, 03:32:36 »
@raw_head, I see you have problems with thsi script.

I cannot test it noe (my camera is busy) but I suggest to investigate with a print here:

Code: [Select]
z=get_exp_count
print "counting: ",z ,y
until z=y

put a "print_screen 1" before, so you will have the full log.

Re: Bracketing series (for example for timelapse HDR)
« Reply #12 on: 03 / June / 2008, 09:08:57 »
@fbonomi

Hi, thanks, great advice. OK, so here's what happens.  Until the 18th cycle (when I'm doing 5 shot brackets), everything goes as it's supposed to.  So, each cycle, y becomes larger by 5, z increases by 1 per shot till they match, then the next cycle begins.

E.g., the print "counting" will output:

2742843 2742847
2742844 2742847
2742845 2742847
2742846 2742847
2742847 2742847

2742848 2742852
2742849 2742852
2742850 2742852
2742851 2742852
2742852 2742852

2742853 2742957
2742854 2742957
2742855 2742957
2742856 2742957
2742857 2742957

.......

2742928 2742932
2742929 2742932
2742930 2742932
2742931 2742932
2742932 2742932


then after the 18th cycle ends successfully, something happens.  Y is increased successfully, but Z jumps way ahead in the count by a factor of 16,000 or so, and therefore never stops.  Also, it looks like it stops incrementing each shot


2759327 2742937
2759327 2742937
2759327 2742937
2759327 2742937
2759327 2742937
2759327 2742937
2759327 2742937
......



Any ideas?
« Last Edit: 03 / June / 2008, 09:18:58 by rawhead »
Using Canon PowerShot A620 & A560

Re: Bracketing series (for example for timelapse HDR)
« Reply #13 on: 03 / June / 2008, 11:39:02 »
Does your camera have a built-in bracketing mode? Mine does. If you enable that then for every single time-lapse shot in a script it will fire off 3 bracketed shots. It's a simple work-around without making complex scripts. Use already available single-shot time-lapse scripts. If it doesn't have built-in bracketing how about using that CHDK trick for all cameras to have counted bracket shots by using the self-timer. Set the self-timer for 3 shots. Use the CHDK's continuous bracket mode so it fires off 3 bracketing shots for each single time-lapse scripted shot. You may already have what you need for your task you just haven't considered simpler ways to do it.


Re: Bracketing series (for example for timelapse HDR)
« Reply #14 on: 03 / June / 2008, 11:50:36 »
Does your camera have a built-in bracketing mode?

Hi, thanks for the response!  Unfortunately, the A620 doesn't have a built-in auto-bracketing feature.

However, I did try your other method, using the self-timer, and it looks like it's doing its thing ;-)  Thanks, this will be of great use.


I would, however, still like to figure out what went wrong here (Jucifer said he'd look into it in his custom build's thread).


One advantage that this script has over the self-timer method is that shot intervals are shorter; it appears for each shot of a self-timer shot, the camera feels the need to send off the "beep beep beep" (and/or flash flash flash of the LED) to signal the upcoming shot, even if I set the delay to 0 secs.  My ultimate goal is to do 5 bracket shots to create my HDR images, so the faster the camera can shoot all 5 shots, the better.

Anyway, thanks a lot!
Using Canon PowerShot A620 & A560

Re: Bracketing series (for example for timelapse HDR)
« Reply #15 on: 13 / August / 2008, 19:39:56 »
I have an A570 and just wrote the jpeg script in an txt file, copied to SCRIPTS folder in the card but I can't load it, it doesn't appear in the menu selection.
What's wrong???

Re: Bracketing series (for example for timelapse HDR)
« Reply #16 on: 14 / August / 2008, 01:06:30 »
Did you give it a .bas extension.  ----   NOT .txt.

Re: Bracketing series (for example for timelapse HDR)
« Reply #17 on: 14 / August / 2008, 10:59:39 »
Did you give it a .bas extension.  ----   NOT .txt.

Ups, I didn't know, I will rename tonight
Sorry I'm a newbie

Re: Bracketing series (for example for timelapse HDR)
« Reply #18 on: 14 / August / 2008, 19:39:52 »
Well I changed the extension to .bas but can't load it. There aren't any script when I try to load them

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Bracketing series (for example for timelapse HDR)
« Reply #19 on: 15 / August / 2008, 04:18:18 »
Well I changed the extension to .bas but can't load it. There aren't any script when I try to load them

/CHDK/SCRIPTS, not /SCRIPTS/ ?

Or, are you sure you changed the extension and didn't just instead name it script.bas.txt instead due to windows hiding the extension by default?

 

Related Topics


SimplePortal © 2008-2014, SimplePortal