Optical Zoom after Makeafscan and Doaflock - General Discussion and Assistance - CHDK Forum  

Optical Zoom after Makeafscan and Doaflock

  • 3 Replies
  • 3159 Views
Optical Zoom after Makeafscan and Doaflock
« on: 07 / November / 2014, 11:52:36 »
Advertisements
Hi guys,

I am looking for a list of chdk capable cameras which would allow me to do both of the below in video mode seamlessly without crashing

a) Afscan during video(#define CAM_AF_SCAN_DURING_VIDEO_RECORD in camera.h) and then optical zoomin/out
b) Manual focus using zoom lever(no #undef CAM_USE_ZOOM_FOR_MF in camera.h) followed by optical zoomin/out
and
c) has a real aperture(no #undef CAM_HAS_IRIS_DIAPHRAGM in camera.h) for Av control

I see that to do manual focusing in video mode one first has to enter the MF mode in the canon menu(macro/normal/MF) before doing the adjustments via the chdk alt mode. Now in the middle if I want to do an AFscan and again continue with manual focus would this be possible without a break in footage/ crash?

It appears many cameras fail these criteria primarily due to issues of zoom after makeafscan(I may be off here, correct me if I am wrong). To quote from the sx220 porting thread.

Quote
2- When recording video and pressing the SET button to get focus, the whole camera it crashes: black screen and nothing there. I think everything it's OK in the menu, but I really didn't spent too much time with this one.
I noticed that too. The problem only occurs when you press set af and then try to zoom. The same problem has BerndtR in the IXUS1000 port (romlog ComputerZoom assert).

Another similar crash happens when you try to use the manual focus during video recording and apply fast_zoom. The reason why this is happening is because the fast_zoom key isn't diasabled in alt mode. All ports until this one had physw_status up to physw_status[2], this camera look like has up to physw_status[5] and the value in physw_status[3] changes when using fast_zoom. I tried to fix that without success for now.


This may even be specific to the sx220 since it is in continuous autofocus mode during video record in contrast to most earlier models which lock focus during recording.

In any case continuing to apply the above criteria to platform.h, I was left with only two cameras g9 and sx100is. I was not able to find any reports of the chdk enabled video usage on these cameras addressing b) namely manual focus+zoom. Any feedback on these cameras is welcome.


Other cameras which have these partly enabled(a and b) and appear to be working include many of the a-series cameras: a3200, a3300, a3400 to name a few [1] and ixus cameras 95, 110, 130, 900(I havent investigated their behaviour more thoroughly).


Some of the cameras which dont have these flags ticked in camera.h but appear to do the job include sx220/sx230[2] and s95[3]. There is also the excellent videxp3 script. Are there any real hardblocks disallowing integration of a) and b) with videxp3 or would this be possible in the foreseeable future.

I am leaning towards the sx220, but for the above issues[4]. Also anyone has been able to do an optical zoom after doing manual focusing in the alt mode in sx220. I find forum saying its possible in general, wanted to confirm.

[1]
a3300 manual focus via zoom lever working
http://chdk.setepontos.com/index.php?topic=9797.msg116153#msg116153
a3300 zoom plus afscan working
http://chdk.setepontos.com/index.php?topic=9797.msg99944#msg99944
[2]
sx220 manual focus working
http://chdk.setepontos.com/index.php?topic=6397.msg81525#msg81525
[3]
s95 afscan + zoom; mf
http://www.youtube.com/channel/UCugOsG6rAwx6QzpnCg-t8yw
[4]
sx220 porting thread video issues
http://chdk.setepontos.com/index.php?topic=6241.msg68291#msg68291
http://chdk.setepontos.com/index.php?topic=6241.msg68357#msg68357
http://chdk.setepontos.com/index.php?topic=6241.msg71316#msg71316

Re: Optical Zoom after Makeafscan and Doaflock
« Reply #1 on: 07 / November / 2014, 17:14:32 »
I am looking for a list of chdk capable cameras which would allow me to do both of the below in video mode seamlessly without crashing
Wow, this is a bit tl;dr.  Sorry - I can see you put a lot of work into writing it up in such detail.

I strongly suspect that you are very unlikely to find anyone who can provide you such a list.  But what you might find is a few people who can tell you if their particular camera can do this :

a) Afscan during video and then optical zoomin/out
b) Manual focus using zoom lever followed by optical zoomin/out
c) has a real aperture for Av control


Reading the platform_camera.h file is a place to start but this would not be the first time that some of the settings there are untested or unreliable or just plain wrong.


Quote
In any case continuing to apply the above criteria to platform.h, I was left with only two cameras g9 and sx100is.
For example, the g9 port is quite old, there has not been a lot of activity on that camera, none of the currrent CHDK devs own the camera,  so it's quite possible it's not completely correct.


« Last Edit: 07 / November / 2014, 17:33:40 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline koshy

  • *****
  • 1096
Re: Optical Zoom after Makeafscan and Doaflock
« Reply #2 on: 07 / November / 2014, 17:47:57 »
you might find a few people who can tell you if their particular camera can do this:
c) has a real aperture for Av control
The "Diaphragm" column on this camera feature table should tell that shouldn't it?
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Optical Zoom after Makeafscan and Doaflock
« Reply #3 on: 07 / November / 2014, 18:09:59 »
CAM_USE_ZOOM_FOR_MF does not do what you think it does.
It does not enable manual focus when recording video - it is a hack to send 'left' and 'right' button presses (on the four way controlled) to the firmware when the zoom in/out is pressed.

The purpose (AFAIK) is to allow cameras that did not have a rear dial, to do manual focus with the zoom lever instead of the left and right buttons on the back.
It is only valid for cameras with a manual focus mode, that do not have a rear dial, and use the 'left' and 'right' buttons to focus in MF.

Even though the G9 defines CAM_USE_ZOOM_FOR_MF the corresponding kbd_use_zoom_as_mf() function is empty so the feature does nothing on the G9.

The G12 has all of the features you are looking for.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)


 

Related Topics