From soup to nuts, I need help with a sd1200 on a mac. - page 4 - Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes) - CHDK Forum

From soup to nuts, I need help with a sd1200 on a mac.

  • 43 Replies
  • 8610 Views
Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #30 on: 02 / June / 2013, 13:40:50 »
Advertisements
sorry for the confusion.

I have 2 timers on my card.

drivelapse (doesn't work "start" "finish") and countdown timer (which works, but is giving me the sub-par pics)

here is the code:

DRIVE LAPSE

rem  Drivelapse v1.1

rem  If you find this script useful, please consider making a donation to
rem  Action Medical Research: http://www.action.org.uk/sponsor/TeamGraysonRally


@title Drivelapse

@param i = Target interval (sec)
@default i 10

@param f = Focus (mm)
@default f 65535

@param t = Target Tv96
@default t 576

@param n = Minimum Sv96
@default n 371

@param x = Maximum Sv96
@default x 795

gosub "record_mode"

gosub "focus"

C = 0
:loop
  Z = get_tick_count
  gosub "meter"
  gosub "exposure"
  gosub "capture"
  gosub "status"
  sleep i * 1000 - (get_tick_count - Z)
  goto "loop"

:record_mode
  while get_mode <> 0
    set_record 1
    sleep 100
  wend
  return

:focus
  set_focus f
  set_aflock 1
  return

:meter
  press "shoot_half"
  while get_shooting = false
    sleep 10
  wend
  A = get_av96
  B = get_bv96
  return
 
:exposure
  S = A+t-B
  rem Limit minimum Sv
  if S<n then let S=n
  rem Limit maximum Sv
  if S>x then let S=x
  rem Adjust Tv to compensate for Sv limits
  if S<>A+t-B then let T=B+S-A else let T=t
  set_tv96_direct T
  set_sv96 S
  return
 
:capture
  if get_jpg_count < 1 then goto "full"
  click "shoot_full"
  C = C+1
  return

:status
  cls
  if get_jpg_count >= 9999 then
    print "Time left:", "Over", get_jpg_count/i/3600, "hours"
  else
    print "Time left:", get_jpg_count/i/3600; ":"; get_jpg_count/i%3600/60; ":"; get_jpg_count/i%60
  endif
  print "Av96:", A
  print "Tv96:", T, "("; t, "target)"
  print "Sv96:", S, "("; n; "-"; x, "range)"
  return
 
:full
  cls
  print "MEMORY CARD FULL"
  end


COUNT DOWN TIMER

rem Countdown Intervalometer v1.1
rem An intervalometer script that will take a specific number of photos.
rem
rem If the Number of Shots is set to zero the intervalometer switches from
rem a countdown intervalometer mode over to a perpetual intervalometer mode
rem that will continue to take photos until your memory card is full or your
rem camera's battery runs out of power.
rem
rem Version 1.1 updated Sept 19, 2010.
rem Added the perpetual intervalometer mode.
rem
rem Version 1.0 Created by Andrew Hazelden on Sept 16, 2010.
rem
rem E-mail: andrewhazelden@gmail.com   Blog: www.andrewhazelden.com
rem
rem To download the latest version check out this blog post:
rem http://www.andrewhazelden.com/blog/2010/09/ubasic-countdown-intervalometer-script-for-canon-powershots-running-chdk/

@title Countdown Intervalometer

rem i is the interval between photos in seconds.
@param i Interval in Sec
@default i 10

rem n is the number of shots to take.
@param n Number of Shots
@default n 99

rem e is elapsed photos taken.
e=0

rem r is the number of shots remaining.
r=n

rem get timelapse start time in ms
z=get_tick_count

rem q is photo time elapsed temp counter in ms
rem v is actual time per photo in ms

rem check for perpetual photo mode if Number of Shots equals zero.
if n=0 then gosub "perpetual"
if n>0 then gosub "countdown"


rem get end time using
x=get_tick_count


rem calculate total timelapse duration
p = (x-z)/1000


rem print total timelapse duration

rem s is seconds elapsed
s=(p)%60

rem m is minutes elapsed
m=((p)/60)%60

rem h is hours elapsed
h=(p)/3600

cls
print "Sequence Complete."
print e, "Shots Taken in:"
print h;":";m;":";s, "HH:MM:SS"
end





:remaining
rem time remaining subroutine

rem s is seconds remaining
s=((v/1000)*r)%60

rem m is minutes remaining
m=(((v/1000)*r)/60)%60

rem h is hours remaining
h=((v/1000)*r)/3600

print "Est. Time Remaining:"
print h;":";m;":";s, "HH:MM:SS"

return



:perpetual
rem perpertual intervalometer mode

rem run the while loop forever.
while 1
   
   shoot
   rem increase elapsed photo counter
   e=e+1
   
   cls
   print "Shot:", e
   
   rem interval between photos delay
   sleep i*1000
   
wend

return




:countdown
rem countdown intervalometer mode

rem run the while loop until there are no shots remaining.
while r
   rem get the start time for this shot
    q = get_tick_count
   shoot
   
   rem increase elapsed photo counter
   e=e+1
   
   rem decrease shots remaining counter
   r=r-1
   
   cls
   print "Shot:", e, " of ", n
   
   rem If we are beyond the 1st shot call the "remaining" subroutine
   rem to display the time remaining.
   if e>1 then gosub "remaining"
   
   rem interval between photos delay
   if r>0 then sleep i*1000
   
   rem calculate time between photos in ms
   v=get_tick_count-q
   
wend

return

Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #31 on: 02 / June / 2013, 13:42:02 »
also, here are the pics the countdown timer is taking....

(good one)

(bad one)

weird.

Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #32 on: 02 / June / 2013, 13:45:00 »
sorry for the weird sizes, i feel this is not a reflection of my poor techno skills, but of the weirdness of what is going on with this script.

*

Offline dc3

  • *
  • 6
Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #33 on: 02 / June / 2013, 14:04:08 »
I want to look at the actual file from you SD card.  I suspect its an issue with how you stored the code in the file

« Last Edit: 25 / October / 2015, 16:54:21 by dc3 »


Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #34 on: 02 / June / 2013, 14:12:36 »
ahhhh...sorry, like i said, not the most savy.

here ya go!

Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #35 on: 02 / June / 2013, 14:15:15 »
it must have something to do with the 32 gig card...when i use the 4 gig, it seems to resolve itself....i might just have to go with it.

it's a shame, i can't get this stuff to work on the 32, it's super frustrating!


Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #36 on: 02 / June / 2013, 14:40:47 »
it must have something to do with the 32 gig card...when i use the 4 gig, it seems to resolve itself....i might just have to go with it.   it's a shame, i can't get this stuff to work on the 32, it's super frustrating!
Your 32G card is fine.  As I suspected,  you have all kinds of HTML crud buried in your copy of the drivelapse script. Probably because of the way you cut and pasted it from the web page. 

Try this :
Ported :   A1200    SD940   G10    Powershot N    G16

Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #37 on: 02 / June / 2013, 20:03:34 »
cool! drive lapse works great now! but still only with the 4gig card, on the 32, every time i try and load the photos onto my ipad there are 2 photos for every shot, one good photo, one crappy...

i'm not sur why that happens, but it seems stuck...good news is the 4g works just fine.


Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #38 on: 02 / June / 2013, 20:24:07 »
cool! drive lapse works great now! but still only with the 4gig card, on the 32, every time i try and load the photos onto my ipad there are 2 photos for every shot, one good photo, one crappy...
i'm not sur why that happens, but it seems stuck...good news is the 4g works just fine.
Do you by chance have RAW/DNG enabled while using the 32G card?  If so,  you are actually creating two image files each time you take a shot - a  .jpg file and a .dng file.   The "crappy" one you see on your iPad is the "thumbnail" embedded in the DNG.   Just disable RAW (third menu item in the main CHDK menu) and the second photos will stop happening.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: From soup to nuts, I need help with a sd1200 on a mac.
« Reply #39 on: 03 / June / 2013, 09:11:12 »
when i looked at the photos, it did say dng file...hmmm, lemme try this. you're good. I'm kinda amazed and must commend you.

 

Related Topics