get_movie_status infinite loop returning 6's! - General Discussion and Assistance - CHDK Forum

get_movie_status infinite loop returning 6's!

  • 8 Replies
  • 5969 Views
get_movie_status infinite loop returning 6's!
« on: 24 / December / 2013, 13:44:01 »
Advertisements
Hi,

I recently got CHDK going on my Powershot SX150IS.

The preloaded scripts work fine, but I'm trying to get this one to work I got from the Wiki, I'm using the script 1b: http://chdk.wikia.com/wiki/Continuous_Video_Scripts

After activating the script, it records the first 10 minute video fine, and saves it. But, it hangs and doesn't go onto starting the next video. I added a print statement to find the value of get_movie_status in the loop at the bottom and this is what happened:

After saving the vid, it repeatedly printed "6" for the value of get_movie_status; according to the Wiki, it only goes up to 5!

So it's getting stuck here, and movie status won't change from 6. I'm very confused and hope to fly this on a high altitude balloon soon and would really like to get it working.

Any help will be greatly appreciated.
Matt

Re: get_movie_status infinite loop returning 6's!
« Reply #1 on: 24 / December / 2013, 13:59:54 »
After saving the vid, it repeatedly printed "6" for the value of get_movie_status; according to the Wiki, it only goes up to 5!
Very interesting - something new!  I guess we need to figure out what a "6" means.

What happens if you change that part of the code  to this :

Code: [Select]
    do
        sleep 100
    until get_movie_status=6
    sleep 1000
Ported :   A1200    SD940   G10    Powershot N    G16

Re: get_movie_status infinite loop returning 6's!
« Reply #2 on: 24 / December / 2013, 14:03:50 »
After saving the vid, it repeatedly printed "6" for the value of get_movie_status; according to the Wiki, it only goes up to 5!
Very interesting - something new!  I guess we need to figure out what a "6" means.

What happens if you change that part of the code  to this :

Code: [Select]
    do
        sleep 100
    until get_movie_status=6
    sleep 1000

Re: get_movie_status infinite loop returning 6's!
« Reply #3 on: 24 / December / 2013, 14:05:14 »
Waterwingz, I'm on #chdk and I'd be very very grateful if we could continue debugging there.

Thanks very much
matt

Re: get_movie_status infinite loop returning 6's!
« Reply #4 on: 24 / December / 2013, 14:11:57 »
Ok, I made that change to the code. It's running right now. It finished the first video and started a second video!

So that's excellent. However, I'm gonna leave it running for another 5 mins just to see if the first one saved ok.

Looking good dude!

Matt

Re: get_movie_status infinite loop returning 6's!
« Reply #5 on: 24 / December / 2013, 14:14:40 »
Awesome, the whole thing is working absolutely perfectly!

Thanks for the help Waterwingz, much appreciated. Merry christmas!

Matt

*

Offline srsa_4c

  • ******
  • 4451
Re: get_movie_status infinite loop returning 6's!
« Reply #6 on: 24 / December / 2013, 14:17:58 »
Very interesting - something new!  I guess we need to figure out what a "6" means.
FWIW, there's a hint about this phenomenon. Probably many new cameras are affected, because nobody tests for this. The workaround for the script should work though.

Re: get_movie_status infinite loop returning 6's!
« Reply #7 on: 24 / December / 2013, 15:08:01 »
Waterwingz, I'm on #chdk and I'd be very very grateful if we could continue debugging there.
Sorry - on the road for family holiday stuff - IRC is not really an option - unlike the other 51 weeks for the year.  My server bot monitors the channel - that's why you can see me there but I'm not.

Awesome, the whole thing is working absolutely perfectly!
YACP -   Yet Another Christmas Present ...  :xmas
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: get_movie_status infinite loop returning 6's!
« Reply #8 on: 24 / December / 2013, 15:11:13 »
And another hint: http://chdk.setepontos.com/index.php?topic=8051.msg84735#msg84735

The script 3 from the wiki takes into consideration this circumstance.



Merry Christmas to all  :xmas
CHDK-DE:  CHDK-DE links

 

Related Topics


SimplePortal © 2008-2014, SimplePortal