Porting a camera sx530hs - page 19 - DryOS Development - CHDK Forum

Porting a camera sx530hs

  • 300 Replies
  • 114173 Views
*

Offline blackhole

  • *****
  • 847
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #180 on: 19 / May / 2016, 09:45:39 »
Advertisements
I tried to implement CAM_AF_SCAN_DURING_VIDEO_RECORD, but additional AF scan can be made only once.
I think a similar problem was found on A810 port, maybe you can check A810 port to know if the same workaround can be used.
Thanks for the information, I'll look.

Re: Porting a camera sx530hs
« Reply #181 on: 19 / May / 2016, 16:04:55 »
Quote
Hi! Can someone please tell me where can i find the CHDK firmware for the sx530hs and which features are working and which are not for the sx530hs (is there a list somewhere?). Is it safe to install?

Hi !!
Two posts above is the CHDK for sx530 with firmware 100c. If your camera does not have firmware 100c, do not use it. To determine the version of the firmware you can use this application:
http://www.zenoshrdlu.com/acid/acid.html
CHDK for sx530 is almost fully functional, but the bugs are still possible.
In relation to safety, CHDK is a hack so there is always a certain risk. The risk is quite small but if you are not willing to accept a small risk, not using CHDK. It has to be your decision.

Thanks!  :) Yes it is a 100c, i will try it!

Dou you know if it's possible with the CHDK to add slow motion capabilities to this camera? I formerly had an sx240hs capable of 1920 x 1080 (24 fps), 1280 x 720 (30 fps) 640 x 480 (30, 120 fps), 320 x 240 (240 fps). The sx530hs only delivers 30p! Is it possible to change those video settings with CHDK?

*

Offline blackhole

  • *****
  • 847
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #182 on: 19 / May / 2016, 16:31:12 »
No, something like that is not a normal part of chdk. FPS depends on the hardware capabilities of the camera so that some things will never be possible. Here you can read about some of the efforts regarding changes FPS.
https://chdk.setepontos.com/index.php?topic=7938.0

Re: Porting a camera sx530hs
« Reply #183 on: 19 / May / 2016, 17:03:02 »
No, something like that is not a normal part of chdk. FPS depends on the hardware capabilities of the camera so that some things will never be possible. Here you can read about some of the efforts regarding changes FPS.
https://chdk.setepontos.com/index.php?topic=7938.0

 :(... Thanks anyway blackhole


*

Offline blackhole

  • *****
  • 847
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #184 on: 19 / May / 2016, 18:07:47 »
I tried to implement CAM_AF_SCAN_DURING_VIDEO_RECORD, but additional AF scan can be made only once.
I think a similar problem was found on A810 port, maybe you can check A810 port to know if the same workaround can be used.
Works seamlessly on this way, but I do not know how to throw out DEF (some_flag_for_af_scan, 0x000281d4) from stubs_entry.S ???

*

Offline srsa_4c

  • ******
  • 4430
Re: Porting a camera sx530hs
« Reply #185 on: 19 / May / 2016, 18:28:36 »
Works seamlessly on this way, but I do not know how to throw out DEF (some_flag_for_af_scan, 0x000281d4) from stubs_entry.S ???
You'd have to DEF it again in stubs_min.S (but you'd need to come up with a RAM location that doesn't change its content).

However, I have a better idea (in development).
Movie AF scan (the CHDK feature) was invented for cameras that have no autofocus during video recording. Recently, more and more models (even my low end ixus150) feature continuous auto-focus during recording. The problem with these is the opposite of the old problem: they often don't allow locking the focus during recording.

What I'm proposing is:
Keeping the AF key entry in the video menu. The button chosen there would lock the focus on first press, unlock on second press, and so on.
Additionally, I'd offer two alternative ways for locking/unlocking focus:
- One based on DoAFLock/UnlockAF. DoAFLock always does an AF scan, then locks the focus.
- Another, based on the 'MovieAF.Suspend' and 'MovieAF.Resume' event procedures. These just freeze/unfreeze the AF process, without doing an AF scan.

Patch will follow shortly.

*

Offline srsa_4c

  • ******
  • 4430
Re: Porting a camera sx530hs
« Reply #186 on: 19 / May / 2016, 19:10:17 »
Here it is (implemented for sx520/530 and ixus150).
The 'MovieAF.Suspend' and 'MovieAF.Resume' functions can be found in the funcs_by_*.csv files.
One weakness of this implementation is that it doesn't handle the situation where focus is locked by one method and user changes methods (Video parameters -> AF scan when locking focus) before stopping recording.
Also, I did not verify that the parameter required by 'MovieAF.Resume' is equal to what's used in the ixus150.

edit:
@blackhole
Is it possible to stop auto focus during video recording on this camera, with native methods? (That is, is it possible to do without CHDK?)
« Last Edit: 19 / May / 2016, 19:15:40 by srsa_4c »

*

Offline blackhole

  • *****
  • 847
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #187 on: 19 / May / 2016, 19:39:16 »
It looks pretty good!!! :)
I do not know how quickly focuses ixus150,but sx530 is very slow. Switching the focus from distant objects to those who are close on the sx530 takes almost 5 seconds. This slowness has nothing to do with your patch or generally with chdk. The camera simply has a slow AF when shooting video.


*

Offline blackhole

  • *****
  • 847
  • A590IS 101b
    • Planetary astrophotography
Re: Porting a camera sx530hs
« Reply #188 on: 20 / May / 2016, 09:09:38 »
Quote
@blackhole
Is it possible to stop auto focus during video recording on this camera, with native methods? (That is, is it possible to do without CHDK?)
The focus can be locked only using MF or AFL before the start of recording.

Re: Porting a camera sx530hs
« Reply #189 on: 24 / May / 2016, 13:42:54 »
Hello, just a simple question. I have CHDK on my sx530hs, working fine but I cannot load any scripts or even see files on my SD card (Kingstone 64GB SDXC Class 10 uhs 1). Any suggestions? http://imgur.com/a/1WX5t

 

Related Topics