Here's my attempt at a Dolly Zoom:
The zoom motion is still kind of rough, but then, most of the time stepping to the next zoom level doesn't work. When it fails I had to step forward 3 and back 2 to get it to the correct zoom. Must be a better way?
z=get_zoom()set_zoom(z+1)
How are you setting zoom, with key clicks, or set_zoom?
If you use CHDK 1.5, and set_zoom, you can try setting the zoom to slow speed before stepping, like set_zoom_speed(1)
zmax=get_zoom_steps()znext=get_zoom()+zif (znext < 0 ) then znext = 0endif (znext > zmax) then znext = zmaxendset_zoom(znext)i=1while (get_zoom() ~= znext) do i = i + 1 if (zmax >= znext + i) then print("knock:",znext+i) set_zoom(znext+i) else if (znext - i >= 0 ) then print("knock:",znext-i) set_zoom(znext-i) else break end end set_zoom(znext)end
The docs said "Note 1: set_zoom_speed has no effect on most of CHDK supported cameras, it works only for the S2 and S3." so I thought it wouldn't make a difference on the ELPH 330HS (which is an IX model I think?) Doesn't seem to change the zoom speed at least.
We recently (CHDK 1.5 autobuild 5508 and later) changed it so many cameras support at least 2 speeds. Generally, Digic 4 and later cameras that zoom more slowly video is recording should now be able to set the slow speed in CHDK.
Can you tell us a little bit more about the image processing and software you use?
#!DIR=`pwd`IMAGE=`basename $DIR`ffmpeg -framerate 25 -pattern_type glob -i IMG\*.JPG ${IMAGE}.mp4
#!DIR=`pwd`IMAGE=`basename $DIR`ffmpeg -i ${IMAGE}.mp4 -vf scale=480:-1 -r 25 -f image2pipe -vcodec ppm - \ | convert -delay 4 -coalesce -duplicate 1,-2-1 -layers OptimizePlus -loop 0 - ${IMAGE}.gif
Currently using CHK_DE 1.4.1, Camera ixus255_elph330hs, FW 100fSo, ver 1.5 might fix the zoom problem?
Yes, quite likely it will work if you use 1.5 and set_zoom_speed(1)
Well, that didn't work (1.5.0 rev 5543). Instead of incrementing the zoom, the script causes the camera to halt: screen dark, lens extended, dead. Back to 1.4.1.
That's not good. If you can post the crash log, that may be helpful.
Started by KaLi Feature Requests
Started by waterwingz Creative Uses of CHDK
Started by sarkar « 1 2 » Script Writing
Started by caiokn General Help and Assistance on using CHDK stable releases
Started by c_joerg Creative Uses of CHDK