interval 30 minutes on/off for video recording... - Script Writing - CHDK Forum

interval 30 minutes on/off for video recording...

  • 2 Replies
  • 3738 Views
interval 30 minutes on/off for video recording...
« on: 24 / April / 2009, 03:12:26 »
Advertisements
hello..
I need script which can start video recording for 30 minutes, than stop it for 5 seconds, and than start recording again for 30 minutes. File size is limited to 4gb which is arround 30min and I have 16Gb card. So this script can alone fill up entire card without my intervention. Camera is G7.

thanks
« Last Edit: 24 / April / 2009, 03:25:04 by foler »

*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
Re: interval 30 minutes on/off for video recording...
« Reply #1 on: 24 / April / 2009, 04:44:06 »
I need script

Write or try to find one.


It might be enough to just check the free space on the card every few seconds. If it's still filling, do nothing.
Here's some pseudocode:

Code: [Select]
do (or :loop)
  previous_free_space = get_free_space_statement()
  sleep a few sec
  if get_free_space_statement() == previous_free_space then shoot()
while true (or goto "loop")

Re: interval 30 minutes on/off for video recording...
« Reply #2 on: 24 / April / 2009, 05:17:53 »
hello..
I need script which can start video recording for 30 minutes, than stop it for 5 seconds, and than start recording again for 30 minutes.

Using SDM uBasic commands that is :-

shoot_movie_for 1800
sleep_for_seconds  5
shoot_movie_for 1800
end


The camera does not have to be in movie mode initially.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal