--[[ rem PRINT must be attached with Record Video - func rem SD870 / fe50 @title Still+Vid mix SD870 @param a Number of Images @default a 3 @param b Sleep between Pics in s @default b 5 @param c Video lenght in s @default c 5 @param d Sleep after Loop in s @default d 30 @param e LoopCount @default e 2 --]] seq = 0 vidc = 0 imagec = 0 function Report() print("Seq:"..seq.." Pics:"..imagec.." Vid:"..vidc.." done") end function MainLoop() for i = 1,a do shoot() imagec = imagec + 1 -- inc Image counter sleep(b*1000) end click("print") --Video start sleep(c*1000) --Video capturing... click("print") --Video stop sleep(1000)--now back in still rec mode, video should be saved vidc = vidc + 1 -- inc Video counter seq = seq + 1 -- inc Sequence counter end -- Main -------------------------------------------------- image_dur = 600 -- ms for capturing image duration = (e*(((a*image_dur) + (b*1000) + (c*1000) + (d*1000)) / 1000) / 1000) -- in s print("Take "..a.."pics, sleep "..b.."s") print("then "..c.."s Vid, each "..d.."s") print(e.."(Loops, ~"..duration/60.." min)") repeat MainLoop() Report() sleep(d*1000) until seq == e print("script done") Report()