Updated script that correctly centers the GUI for cameras with 480 pix screens (instead of assuming 360 pix).
Changes (including a small code optimization) courtesy of msl.
Edit : Updated to v3.2 - small cosmetic changes.
The 'build' check fails for custom builds done outside an SVN directory (bi.build_revision = 0) - the build variable ends up 'nil' and the compare fails. May apply to CHDK-Shell builds; but I haven't tested it.
I found the 'Press any key to start' message a bit confusing - it doesn't actually start recording, it just exits the help screen.
On the G12, when I start video recording with the script, the camera crashes after a few seconds - haven't investigated yet. Will try my other cameras later.
Phil.
Edit: On the G12 the camera attempts to do an exposure calculation when the 'shoot_full' button is pressed to start the recording. If the selected values (Tv/Av/Sv) are 'out of range' the camera crashes.
The following changes seem to fix the problem:
...
set_aelock(1) -- go to manual exposure mode
if (vbutton ~= 1) then press("shoot_half") sleep(1000) end -- half press to let cam calc exp before override
tv96=call_event_proc("SetAE_ShutterSpeed",tv96target)
...
if is_pressed("set") then
if ( vbutton == 1 ) then press("video") sleep(1000) release("video") sleep(1000)
else click("shoot_full") end
---
Also noticed that the sv96max value is not used, and av_table and sv_table are defined twice with different values.