Proper video with Zoom & Focus - page 2 - Feature Requests - CHDK Forum supplierdeeply

Proper video with Zoom & Focus

  • 45 Replies
  • 9559 Views
*

Offline a710is

  • ****
  • 250
  • A710 IS
Re: Proper video with Zoom & Focus
« Reply #10 on: 17 / March / 2008, 06:06:19 »
Advertisements
hey, how are you able to test this stuff?
I don't see any new build...

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Proper video with Zoom & Focus
« Reply #11 on: 17 / March / 2008, 06:15:41 »
hey, how are you able to test this stuff?
I don't see any new build...

Modifying the CHDK Sources - CHDK Wiki
Compiling CHDK under Linux - CHDK Wiki
Compiling CHDK under Windows - CHDK Wiki

if you are on windows, compiling chdk is as easy as a walk in the park.

*

Offline quietschi

  • ***
  • 116
  • Ixus70 102a
Re: Proper video with Zoom & Focus
« Reply #12 on: 17 / March / 2008, 06:54:54 »
Btw i found out that Subject Distance override don't work anymore. Camera hangs when setting any Subject Distance. Manual focus seems to work, but when pressing shutter half camera hangs. Any Idea?

found out that this only happens when camera is set to auto flash mode. In other flash modes (off,on)
Subject Distance override works

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Proper video with Zoom & Focus
« Reply #13 on: 17 / March / 2008, 07:17:02 »

tested it on a620 - sorry, didnt work. enabled it in video settings. tested a few times just to make sure, to no avail.
what exactly is the procedure one can do to test it thoroughly? enabling it in video menu should be sufficient, right? then record a video, it *should* use the zoom buttons to zoom in & out, no matter if you are in alt mode or not, script running or not. shouldnt it?

Try call unlock_optical_zoom() during video recording by some custom keypress. If then zooming not works, A620 not supports this function. But I will make further investigation...

Sorry, I cannot upload binaries, because I currently have only expensive GPRS connection.
« Last Edit: 17 / March / 2008, 07:19:58 by ewavr »


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Proper video with Zoom & Focus
« Reply #14 on: 17 / March / 2008, 07:23:29 »
i'll be damned. i hope its just a bug and the a620 actually does support this feature. will test your suggestions tonight.
if it isnt supported natively, i guess there still will be a way to achieve this, right?

edit: dont be sorry :) this is the perfect occasion to provide a link to paypal ;)

*

Offline msl

  • *****
  • 1274
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Proper video with Zoom & Focus
« Reply #15 on: 17 / March / 2008, 11:18:32 »
Tested on A460:

Optical video zoom works very well.  :)

A little problem is when I zoom in and the zooming goes over to the digital zoom I can't zoom out optical.

Thanks for your work!

CHDK-DE:  CHDK-DE links

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Proper video with Zoom & Focus
« Reply #16 on: 17 / March / 2008, 16:48:59 »
okay, i replaced

Code: (c) [Select]

                   {conf.save_raw = !conf.save_raw;
                   draw_restore();
                   }
with 
      
Code: (c) [Select]
   {
                   unlock_optical_zoom();
                    draw_string(100, 100, "set!", conf.osd_color);
                   }
                   
in gui.c - this way this gets executed in alt-mode when i press erase button (normally you enable/disable raw this way).

zooming in video works now, but only in the following situation:
start video recording.
call unlock_optical_zoom() - zoom.

doesnt work when i call it in "idle" mode.

hope this is sufficient information for you to enhance your function, ewavr. if you need further testing, just drop me a message or post here :)
by the way, is the cam supposed to refocus after each zoom step? how can i test it? it kind of refocuses, but i tested it in very dim light, not the best situation to test it in :)

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Proper video with Zoom & Focus
« Reply #17 on: 17 / March / 2008, 18:13:26 »
zooming in video works now, but only in the following situation:
start video recording.
call unlock_optical_zoom() - zoom.

doesnt work when i call it in "idle" mode.

This is normal, because at start of video recording camera locks optical zoom again.
So, unlock_optical_zoom() works but is called from a bad place in MovieRecordTask().
You cat try modify movie_rec.c as follows: (for A620)

remove "BL unlock_optical_zoom\n"  from loc_FFD2C170

and add

"loc_FFD2C178:\n"                           
                "BL      unlock_optical_zoom\n"                                       
                "BL      sub_FFD2C488\n" 
                "B       loc_FFD2C1BC\n"

or

"loc_FFD2C178:\n"                           
                "BL      sub_FFD2C488\n" 
                "BL      unlock_optical_zoom\n"                                       
                "B       loc_FFD2C1BC\n"

Please verify (with LED blinking from unlock_optical_zoom()) that unlock_optical_zoom() is called once after video recording start.


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Proper video with Zoom & Focus
« Reply #18 on: 18 / March / 2008, 02:39:41 »
Quote
"loc_FFD2C178:\n"                           
                "BL      unlock_optical_zoom\n"                                       
                "BL      sub_FFD2C488\n"
                "B       loc_FFD2C1BC\n"

this one works for a620 (havent tried the other option you gave, but that shouldnt be neccessary anymore, eh?).
what are the next steps? do we have to find out the behaviour of all cameras? on the other hand, why not make the call to unlock_video_zoom on every camera every time? who wouldnt want video zoom?

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Proper video with Zoom & Focus
« Reply #19 on: 18 / March / 2008, 03:09:38 »
this one works for a620

It's good. I will change sources for A620 (and A610).

what are the next steps? do we have to find out the behaviour of all cameras? on the other hand, why not make the call to unlock_video_zoom on every camera every time?

Because unlock_video_zoom() calls PutsCameraLog(). I afraid, that this function can store some camera log in flash memory (flash endurance is not too big) in some cases. Maybe this log stored only on camera error, and maybe not - I don't know. It is safe to call unlock_video_zoom() once per video recording, but can be unsafe once per each frame  ;)

 

Related Topics