Need help w/continuous video script for S95 - page 4 - Script Writing - CHDK Forum

Need help w/continuous video script for S95

  • 69 Replies
  • 19343 Views
*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #30 on: 12 / September / 2014, 22:15:29 »
Advertisements
Deleting the line allowed the script to run, but the focus unfortunately doesn't work on this s95. I can still pause the script and focus so I still have that option.

I am running 1.2, would 1.3 make a difference?

thanks

j

Re: Need help w/continuous video script for S95
« Reply #31 on: 12 / September / 2014, 22:33:48 »
Deleting the line allowed the script to run, but the focus unfortunately doesn't work on this s95. I can still pause the script and focus so I still have that option.
So I'm confused.  If you don't load CHDK at all, just use the camera "as is", then once you start a video, do you just "'half press" the shutter button and the camera refocuses while recording continues?  On my cameras, when I'm in video mode, the focus adjusts automatically while recording runs.  How is this different than what you see?

Quote
I am running 1.2, would 1.3 make a difference?
I don't think so.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Need help w/continuous video script for S95
« Reply #32 on: 12 / September / 2014, 22:49:02 »
So apparently none of my cameras (at least the ones within reach) will refocus when shooting video just by doing a "half press".  Is that a special feature of the S95? Or something that needs to be setup specially?
It's a CHDK feature, implemented on some models. See #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1.
Thanks.  I'll look at that.   As it happens,  my S100 continually refocuses during recording.

I wonder why the OP's S95 is not refocussing with the half press I inserted in the code?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #33 on: 12 / September / 2014, 22:52:04 »
Quote
If you don't load CHDK at all, just use the camera "as is", then once you start a video, do you just "'half press" the shutter button and the camera refocuses while recording continues?

If I don't load CHDK, the focus and zoom is disabled on the S95, I think that is by default because of the internal sound it was disabled.

With CHDK (no script) - I can refocus with a half press of the shutter and use the zoom during video recording.
With CHDK and ext_video.lua script - I lost the ability to focus and zoom but gained the auto-restart, the second version of this script brought back the zoom but no focus.

Hopefully I described that correctly.


*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #34 on: 12 / September / 2014, 23:16:25 »
Quote
As it happens,  my S100 continually refocuses during recording

I just checked, focus and zooming was a new feature for the S100 model

Re: Need help w/continuous video script for S95
« Reply #35 on: 13 / September / 2014, 01:11:22 »
Hopefully I described that correctly.
I think I get it - nafraf added some additional explanation on IRC.   Trying to get one of my available cameras to build with the CAM_AF_SCAN_DURING_VIDEO_RECORD now.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4450
Re: Need help w/continuous video script for S95
« Reply #36 on: 13 / September / 2014, 07:55:56 »
I wonder why the OP's S95 is not refocussing with the half press I inserted in the code?
AF scan during video is a feature provided by CHDK. You can't currently use it from a script (solution: introduce a script function).

Re: Need help w/continuous video script for S95
« Reply #37 on: 13 / September / 2014, 11:27:29 »
I wonder why the OP's S95 is not refocussing with the half press I inserted in the code?
AF scan during video is a feature provided by CHDK. You can't currently use it from a script (solution: introduce a script function).
Yea - I guess the code in gui_osd.c :
Code: [Select]
#if CAM_AF_SCAN_DURING_VIDEO_RECORD
    if (is_video_recording())
        if (kbd_is_key_clicked(conf.video_af_key)) MakeAFScan();
#endif
does not allow you to press the selected "AF Key" with a press() / release() sequence  as it only runs during normal shooting.

My A1200 crashes with CAM_USE_ZOOM_FOR_MF enabled when I press the "AF Key" more than once.  I'll try some of the other cameras later.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Need help w/continuous video script for S95
« Reply #38 on: 14 / September / 2014, 10:13:36 »
With CHDK and ext_video.lua script - I lost the ability to focus and zoom but gained the auto-restart, the second version of this script brought back the zoom but no focus.
Try the attached script and see if it enables the refocus functionality when you "half press".  It has a direct call to the Canon firmware routine (MakeAFScan()) and is thus only useful for a S95 1.00E camera.

If that works, it's probably time for a new more general script function as srsa_4c suggested.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #39 on: 14 / September / 2014, 21:13:23 »
thanks, sorry for the delay I haven't been getting notifications for new forum posts. I don't have the camera with me at the moment but will try it asap.

j

 

Related Topics