Hi guys,
I am trying to run the lua script#3 from
https://chdk.fandom.com/wiki/Continuous_Video_Scripts using chdkptp but having issues running it. The script runs well when I run it without chdkptp after putting the camera into rec mode.
However, when I run it from chdkptp after putting the camera into rec mode, it is not starting the recording. I found out that it is because some function returns true/false instead of 0/1 when the USB is connected. So I fixed that by doing this small change in the script.
$diff vid_ext_orig.lua vid_ext_mod1.lua
19c19
< if rec and vid and vid_button == 0 then
---
> if rec and vid and vid_button == false then
23c23
< elseif rec and vid_button == 1 then
---
> elseif rec and vid_button == true then
After this change, the script starts the recording (I see the red recording symbol) but the camera crashes immediately with I/O error on the chdkptp CLI. I have tested it on SX230HS. Here is how I ran the script.
> rec
> . a=1 b=0 loadfile('A/vid_ext_mod1.lua')()
ROMLOG is also attached. I am not sure if I am doing something wrong here.
> =return get_buildinfo()
1:return:table:{platform="sx230hs",build_date="Oct 7 2021",build_number="1.5.1",build_time="23:36:31",version="CHDK",platsub="101a",build_revision="6020",digic=40,platformid=12840,os="dryos"}
Also tested on SX260HS and it has the same issue there. Any help would be appreciated.