Problem with MultiMovie script - Script Writing - CHDK Forum

Problem with MultiMovie script

  • 3 Replies
  • 2994 Views
*

Offline Maron

  • *
  • 24
Problem with MultiMovie script
« on: 18 / August / 2011, 04:05:22 »
Advertisements
Hello all.
i have been using this script for the past little while to shoot multiple 9:50min movies (max is 10 mins) on my ixus 120, and everything has been working fine, until recently, it began to stop shooting more than, say, two or three videos, even though i am using a 16gb card (80 mins of video), and the battery had not died. When i came back to the camera, about an hour after i had strated the script, the lens was out, and the display was off (the camera was still on). I hav never had this problem before.
using firmware 1.01a, and CHDK build 1291.

Here is the script:

@title MultiMovie
@param x one part time in sec
@default x 590

f=0

print "record will start..."

press "shoot_half"
sleep 1500
:new
f=f+1
press "shoot_full"
release "shoot_full"
if f=1 then release "shoot_half"

print "file number: ";f

s=get_time 0
m=get_time 1
h=get_time 2
d=get_time 3
b=s+m*60+h*3600+d*3600*24

:loop
s=get_time 0
m=get_time 1
h=get_time 2
d=get_time 3
t=s+m*60+h*3600+d*3600*24
u=t-b
print "file number: ";f
print "time left:";x-u
if u>x then goto "reload"
sleep 900
goto "loop"

:reload
print "reloading..."
press "shoot_full"
release "shoot_full"
print "waiting for ready..."
:waitloop
q=get_movie_status
if q=1 then goto "new"
print "status:",q
sleep 100
goto "waitloop"

Re: Problem with MultiMovie script
« Reply #1 on: 20 / August / 2011, 11:00:38 »
Well, that's strange... I have no this camera, on SX130 everything was OK. Maybe you turned off the ALT mode? As far as I remember when you're out of ALT mode the script might not launch next movie... Or something goes wrong with get_movie_status.

Do you maybe remember what was the last shown message in the console?

Unfortunetly I have no camera at these days as well as I have not a lot of time, so I can't guarantee I'll help you... You can also try to put a kind of pauses before 'reload'.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline Maron

  • *
  • 24
Re: Problem with MultiMovie script
« Reply #2 on: 22 / August / 2011, 03:23:28 »
I put the camera in a place, and come back about an hour later (expecting it to have taken an hour's worth of videos). I don't know what the last message displayed it, and it's impossible that it went out of ALT mode, because no-one touched it.

Re: Problem with MultiMovie script
« Reply #3 on: 22 / August / 2011, 11:55:20 »
Did it happen only once? Couse you know, CHDK is just a hack and sometimes some strange things might happen. If this situation happened once or it's very rare it would be very difficult to find the reason. If you can reproduce this situation in a known way, it would give us more informations.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal