CHDK Wiki
Advertisement
Forums: Index > Help desk > S2 IS for video and scripts problem



I have difficulity in make good use of the CHDK in my S2 IS camera. Two very useful functions are not working well: 1. when I update the CHDK to pre14.grand148.md.cln.zsm-s2is-100f-119 or 120, I cannot use video recoder (it will hang my camera), but pre14-s2is-100f-148 did work. 2. when it is in "alt" mold (try to run a script). I am writing a script try to get the exposure information in the Av mold by: [press "shoot_half"] [sleep 3000] [get_tv f] but always get the f value to 15 with different light condition. Anyone out here using S2 IS GM1.00F and working?

here is the script I wrote to bracketing a set of pictures when light changed.

rem Light Change Capture (from dark to bright)

@title Light Change Capture (Av Mode)
@param a Number of Pics
@default a 8
@param b exposure time differnce (in step)
@default b 1
@param c time wait for shoot half
@default c 1 (0.1s)

if a<1 then let a=1
if b<1 then let b=1
c=c*100

print "Pics:"; a; " Step:"; b

click "shoot_half" 
sleep c
get_tv e
print "preset tv=";e

for s=1 to a

   if s<a then gosub "cec" 
   if (f-b)>=e then gosub "cap" else s=s-1  

next s

end

rem check exposure change
:cec
   click "shoot_half"
   sleep c
   get_tv f
   print "p=";e;"  n=";f
   if f<e then e=f
return

rem capture one image
:cap
   shoot
   print "Pics:"; s;"/";a
   e=f
return

- You can test this version http://ewavr.nm.ru/hdk/for_test/ewavr-s2is-100f-150.zip. If video recording does not work, I shall make some more test versions. -Ewavr 11:22, 21 November 2007 (UTC)

- I am sorry to tell that this ewavr-s2is-100f-150.zip version still cannot work out in video in my S2 IS as well as the script command "get_tv" does not return me the exposure information... Jocewang 13:24, 21 November 2007 (UTC)

- I have found a bug in my code for video recording. You can try corrected vesion: http://www.ewavr.nm.ru/hdk/for_test/ewavr-s2is-100f-151.zip. Ewavr 17:35, 21 November 2007 (UTC)

Advertisement