Is this the best way to automate shooting videos? - Script Writing - CHDK Forum
supplierdeeply

Is this the best way to automate shooting videos?

  • 2 Replies
  • 3613 Views
Is this the best way to automate shooting videos?
« on: 18 / February / 2008, 14:34:48 »
Advertisements
I wanted to shoot video in short sections so I made this script to shoot X number of minutes before stopping shooting, and then starting again. I did it by automating presses of the Video button on my S3. The problem with this method is that it could conceivably get out of sync, meaning that it could start recording when it means to stop, and vice versa.

Here's how I'm doing it, is this the best way?

Also, is there a way to disable the "I'm recording" red LED above the lens? I'm using the Allbest build, which, as I understand it, has all the features of Fingalo's build incorporated.


Code: [Select]
rem by wrybread@gmail.com for an S3
@title Video Splitter
@param a Interval (minutes)
@default a 10

rem b keeps track of how many vids we've shot
b=1

rem s is how many seconds we'll shoot for
s = a * 60

click "video"

:looper

  rem routine to pause in a way that will show countdown on console
  x=0
  :pauser
    x = x + 1
    r = s - x
    cls
    print "Shooting video ", b
    print r, " seconds remaining"
    sleep 1000
    if x < s then goto "pauser"

  rem Enough time has passed, so lets split the video
  click "video"

  rem pause for a moment to let the video save.... Is this always enough time?
  sleep 3500

  b = b + 1
  click "video"

goto "looper"

(And yes I know I should really add a second parameter to only record Y number of videos, I'll add this soon).

Edit: I increased the delay between stopping recording and starting the next. This delay (3500ms) is working well on my S3 with a Kingston 2 gig card shooting 320x240 @ 30fps.
« Last Edit: 18 / February / 2008, 16:09:34 by wrybread »

Re: Is this the best way to automate shooting videos?
« Reply #1 on: 18 / February / 2008, 16:33:15 »
Also, is there a way to disable the "I'm recording" red LED above the lens?

Yes there is a way...You can stop the blinking red led by starting your camera in record mode, pressing MENU button and then navigate down to Tally Lamp and set it off.

Re: Is this the best way to automate shooting videos?
« Reply #2 on: 18 / February / 2008, 20:33:29 »
Deleted
« Last Edit: 22 / April / 2008, 12:30:24 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal