After several weeks of work, this is the new version of my
Timelapse with variable shutter speedCompletely rewritten in Lua, it now supports sunset and dawn, and is rather good in adjustments.
You can find an example here:
all-night timelapse (boring, test 11)It's a very boring setting (no clouds, no lights, nothing to see), but it's just to test a full-night movie, with transitions from day to night and vice-versa.
(sub-sampled to 392 frames of the 1960 original frames)
I am quite satisfied of the results, the night is rather dark but that is what I specified in the settings.
You have three .lua files
set_b_14.lua : the main script (the one you have to execute)
fb-lib.lua : a library of useful LUA functions
dummy.lua : an empty file (see below)
dummy.lua is useful to check the syntax of the scripts before copying them in the camera with a standard compiled Lua.
On my PC I have a different dummy.lua that defines variables and functions that are not available in the standard Lua.
You can run lua.exe set_b_14.lua and see if the syntax is ok (of course, the processing will be meaningless but the important is not to receive errors)
This is the dummy.lua version I have on my PC
-- dummy library for PC
function sleep(n)
x=n
end
function print_screen(n)
x=n
end
function get_tick_count(s)
return 100
end
function press(s)
x=n
end
function shoot(s)
x=n
end
function shot_histo_enable(s)
x=n
end
function get_histo_range(n1,n2)
return 100
end
function set_tv96_direct(n)
x=n
end
function set_bv96(n)
x=n
end
function set_sv96(n)
x=n
end
function get_bv96()
return 0
end
function get_av96()
return 0
end
function press(n)
x=n
end
function release(n)
x=n
end
function get_day_seconds()
return 80000
end
function shutdown()
end
a=0
b=0
c=0
d=0
e=0
f=0
g=0
h=0
i=0
j=0
k=0
l=0
m=0
n=0
o=0
p=0
q=0
r=0
s=0
t=0
v=0
w=0
x=0
y=0
z=0