Night-time time-lapse - sunsetF16.lua - page 4 - Completed and Working Scripts - CHDK Forum

Night-time time-lapse - sunsetF16.lua

  • 40 Replies
  • 33004 Views
*

Offline reyalp

  • ******
  • 11900
Re: Night-time time-lapse - sunsetF16.lua
« Reply #30 on: 29 / August / 2011, 01:59:26 »
Advertisements
Question: What in this script makes it dependent on Collaborative Build?
The current CHDK trunk is (descendent of) the collaborative build. It should work fine.
Don't forget what the H stands for.

Re: Night-time time-lapse - sunsetF16.lua
« Reply #31 on: 02 / September / 2011, 17:44:19 »
Hi, I'm trying to use SunsetF16 to create a time lapse, but the Startup Delay doesn't seem to work. I put the startup delay at 330 minutes and put the camera out last night (so it would start taking pictures ~1 hour before sunrise). But the camera started taking pictures almost immediately once I started the script. I've been messing around with it today and the same thing happens no matter what I put as the Startup delay. Any one else have this issue or have any suggestions on what I can do?

Camera: SD 870 IS (IXUS 860)
Thanks,
Dave

Re: Night-time time-lapse - sunsetF16.lua
« Reply #32 on: 24 / February / 2012, 06:20:53 »
Hi, first post here.  Been lurking using CHDK off and on for a couple years or so.

Anyway, is anyone using this script on an A590IS?  I am using the latest build for version B firmware.  Both this script and the intervalometer script (lua) (that comes in the full build) stop working after a while.  I just get "Press shutter to close."  I can use the ultra intervalometer script (bas) without issue.

Thanks!

Re: Night-time time-lapse - sunsetF16.lua
« Reply #33 on: 24 / February / 2012, 07:14:23 »
I can only say I had the same problem a few times. I dodn't post that anywhere. At the moment I'm not able to test this more now...

SX130IS, 1.00c
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick


Re: Night-time time-lapse - sunsetF16.lua
« Reply #34 on: 26 / February / 2012, 17:07:15 »
Thanks for the reply.  Yeah I have not had any trouble with scripts written in .bas doing this on the A590.  I've had them run 10hrs plus.  I downloaded YASS which is .bas and I'm going to try it this week I hope.

Re: Night-time time-lapse - sunsetF16.lua
« Reply #35 on: 26 / February / 2012, 18:00:19 »
I have discovered that my problem with script stuck was a different kind. Simply I had a loop like:

Code: (lua) [Select]
repeat
    sleep(10)
    until get_shooting()

to get Tv, focus and so on.
Unfortunately sometimes (very rarely, but that's enough) my camera didn't do half-shoot process properly and then script was stuck in never-ending loop with half_shoot pressed (get_shooting never returning true). I have lost a couple of minutes from last time lapse, just before sunrise (and there were so nice colors then...).

The solution was safety check - stay with half_shoot pressed for some while, and if this while takes too long, then try again. Seems to be working. The dirty code:

Code: (lua) [Select]
self_test=false
    repeat
        press("shoot_half")             --we press shoot_half to get all exposure params
        step=0
        repeat
            sleep(10)
            if (get_shooting()) then    --if we are lucky, camera can shoot now,
                step=300                --so we set step>200 to leave safety loop
                self_test=true          --and set self_test to true to leave outside loop
                end
            step=step+1
            until step>200
        if(self_test==false) then       --we had no luck this time, camera missed something,
            release("shoot_half")       --so we release shoot_half and go back.
            end
        until self_test==true

I have almost done very nice script for time lapses, with auto Tv (on Av, ISO fixed) and additional linear correction of the exposure (I need to a  little underexpose at night but well-exposed on day).

Currently it works nice on day and night, sunrise and sunset.

Auto Tv is based on camera measured brightness, Tv, Av, ISO and some calculations from APEX.

In a few days I should post this script on forum.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

Re: Night-time time-lapse - sunsetF16.lua
« Reply #36 on: 24 / October / 2013, 17:03:52 »
Fantastic script, and very well thought out.
Probably one of the most sophisticated time-lapse scripts I've seen!
I also really like the description in the document.

Unfortunately it doesn't work for me :(
I always get an error:
sunset.lua:12: bad argument #1 to 'set_tv96_direct' (number expected, got nil)
*** TERMINATED ***

Do you have an idea what could be the issue?

I'm running on a G11, CHDK 1.2.0-3155-0, using the F16 version.

Thanks!

Re: Night-time time-lapse - sunsetF16.lua
« Reply #37 on: 03 / October / 2014, 04:43:45 »
Hi everyone, I'm using CHDK (or at least try to) to create night-time time-lapse videos. I found the sunsetF16 and think it can do what I want. Unfortunately it doesn't take pictures with longer exposure than 15 seconds.

I am using a S5IS with CHDK 1.2

I hope someone has a hint how I can solve this problem.
the Sunset.tbl:
Code: [Select]
return {
-- Table: {1}
{
   ["current_tv"]=-333,
   ["picsAnHour"]=120,
   ["histo_over_start"]=160,
   ["jpg_resolution"]=-1,
   ["default_sv"]=419,
   ["dusk_start_tv"]=96,
   ["histo_under_end"]=23,
   ["dusk_start_sec1000"]=500,
   ["histo_over_end"]=1023,
   ["dusk_duration_ev"]=576,
   ["histo_median_value"]=80,
   ["max_tv"]=-576,
   ["histo_median_weight"]=50,
   ["histo_under_weight"]=0,
   ["histo_under_start"]=0,
   ["shoot_sv"]=419,
   ["shoot_tv"]=-333,
   ["jpg_quality"]=-1,
   ["histo_over_limit"]=4,
   ["histo_under_limit"]=30,
},
}

the log attached


Re: Night-time time-lapse - sunsetF16.lua
« Reply #38 on: 03 / October / 2014, 19:41:46 »
Unfortunately it doesn't take pictures with longer exposure than 15 seconds.
As written, the script should allow exposures as long as 65 seconds.  If your S5is is limited to 15 seconds then it may be a problem with the CHDK port.   

According to the Camera Features Table the camera should support extended exposure times and there have not been any recent changes in the code that supports that.

Can you achieve exposures longer than 15 seconds using the Overrride Tv menu item in the Enhanced Photo Operations menu ?

Incidentally,  I'm not a big fan of this script as it contains code that will automatically delete images if it thinks the SD card is almost full. Some other options for your application might include : yass4.lua meteor.lua
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Night-time time-lapse - sunsetF16.lua
« Reply #39 on: 04 / October / 2014, 11:46:39 »
Hi waterwingz, thanks for your reply and your links to the other scripts. The meteor.lua said it requires Lua native calls to be enabled. Doing this also the sunsetF16.lua works.

I am just wondering why the exif info says only 15 seconds but the Iso is going up. Watching the camera im sure the exposure time was about 60 seconds.

Quote
Can you achieve exposures longer than 15 seconds using the Overrride Tv menu item in the Enhanced Photo Operations menu ?
Just to answer your qustion: yes that did work before.
Im using the camera and SD card only for that purpose so im not afraid of deleted data but maybe I'll test the other scripts anyways.

 

Related Topics