Video refocus (half shutter) for A3300 - page 2 - CHDK Releases - CHDK Forum supplierdeeply

Video refocus (half shutter) for A3300

  • 19 Replies
  • 6699 Views
Re: Video refocus (half shutter) for A3300
« Reply #10 on: 29 / April / 2013, 04:47:39 »
Advertisements
About the A2200, one of my friends has/had it so I can't tell you much about it. I only asked him how he did it that the camera is able of optical zoom and refocus. Then he told me that he did nothing just installed a newer version of CHDK. But that was like 5 months ago, I think he doesn't have the camera anymore.
« Last Edit: 29 / April / 2013, 04:49:58 by nemerdekel1 »

*

Offline srsa_4c

  • ******
  • 4426
Re: Video refocus (half shutter) for A3300
« Reply #11 on: 29 / April / 2013, 16:33:26 »
No, I only replaced MakeAFScan address by DoAFLock address in stubs_entry_2.S.  Camera does not crash, but I can't tell nothing about AF lock issue (I'll have to test better), my test was: start video recording, optical zoom in, AF, optical zoom out, AF, stop. Camera seems to make AF, but zooming In/Out should be equivalent to manual unlock.
If you could catch the movie recording -> movie stopped state transition somewhere (keyboard task, movie_record_task, spytask), you could call UnlockAF when movie recording is finished. That would be a bit more comfortable to the user. If you don't issue UnlockAF, the next recording will start without the initial AF scan (unless the user unlocks it somehow).

An interesting issue is that DoAFLock does not set the AF lock propcase (at least in movie mode).

Re: Video refocus (half shutter) for A3300
« Reply #12 on: 23 / August / 2014, 12:15:25 »
Hi
In my camera a3300 firmware 100d + chdk a3300-100d-1.3.0-3590 is:
in Video Parameters menu:
Enable Optical Zoom: Enable [●] / Disable [ ]
Mute During Zooming: Enable [●] / Disable [ ]
AF key [Shutter, Set]
but AF rescan does not work
During video recording or stop recording, camera often crash and shut down with error e02
When digital zoom is enabled, optical zoom can only enlarge, but do not go decrease magnification.

I tried to lua script http://chdk.setepontos.com/index.php?topic=9797.msg99857#msg99857 and works correctly when the alt mode is on.
What can I do to during recording, get AF scan and dont crash camera when zooming ?

Best Regards
Pit

*

Offline srsa_4c

  • ******
  • 4426
Re: Video refocus (half shutter) for A3300
« Reply #13 on: 23 / August / 2014, 18:32:59 »
a3300 firmware 100d + chdk a3300-100d-1.3.0-3590
(...)
but AF rescan does not work
For some reason, the 100d port has an incorrect address for MakeAFScan. The address used by the 100a port (0xff96d4fc) is correct for 100d too (the function is the same that is used by the a3200 which I know is working). This can be corrected if somebody feels like it. The zoom problem can be corrected by adding
#define CAM_USE_OPTICAL_MAX_ZOOM_STATUS  1
to platform_camera.h
I can't make a test build now, perhaps I'll be able to do it tomorrow (if nobody else does it until then).


Re: Video refocus (half shutter) for A3300
« Reply #14 on: 23 / August / 2014, 19:14:38 »
@srsa_4c
Many thanks for your interest :)
I will therefore wait for a solution.
Best regards.

*

Offline srsa_4c

  • ******
  • 4426
Re: Video refocus (half shutter) for A3300
« Reply #15 on: 24 / August / 2014, 07:54:09 »
Test build is here.
In addition to the above, can you check the following with an official build and then with this test build?

- Make sure that "Video Parameters" -> "Show remaining videotime" is not set to "Don't". Switch the cam to movie mode, check whether there is some CHDK display (related to movie) in the middle of the screen (see attached image).
The movie info display should only be visible when recording. (expected: the official build is buggy, the test build is not)

- Enable "Enhanced photo operations" -> "Override subj. distance" (it should show [On ]). Switch the cam to P or movie mode, enter ALT mode and try adjusting the focus with the zoom lever (you can adjust the step size with the left and right buttons). Of course you need to leave ALT mode to be able to take a picture. You may need to activate the Canon AF lock (halfshoot + left) to actually use the focus you've chosen.
The camera shouldn't crash while doing this. This will not work with the official build, no point in trying.

Re: Video refocus (half shutter) for A3300
« Reply #16 on: 24 / August / 2014, 09:29:10 »
@srsa_4c
You are great!
Your build (a3300-100d-1.3.0-3593-test) works perfectly .... AF rescanning focus during video recording and optical zooming (also with digital zoom) does not crash the camera :)
It would be good for a feed of this version was on http://mighty-hoernsche.de/trunk/
Thank you very much for your help
Best Regards!

*

Offline srsa_4c

  • ******
  • 4426
Re: Video refocus (half shutter) for A3300
« Reply #17 on: 24 / August / 2014, 14:13:47 »
Thanks, fix committed (except the 'manual focus with zoom lever' feature which was not tested): https://www.assembla.com/code/chdk/subversion/commit/3594


Re: Video refocus (half shutter) for A3300
« Reply #18 on: 24 / August / 2014, 15:20:39 »
Hi!
I just tested... the manual focus with the zoom lever also works perfectly :)
Best Regards
« Last Edit: 24 / August / 2014, 15:50:24 by garryy »

*

Offline srsa_4c

  • ******
  • 4426
Re: Video refocus (half shutter) for A3300
« Reply #19 on: 25 / August / 2014, 18:37:05 »
I just tested... the manual focus with the zoom lever also works perfectly :)
Okay, committed.

 

Related Topics