Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!! - page 14 - Feature Requests - CHDK Forum
supplierdeeply

Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!

  • 213 Replies
  • 126016 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #130 on: 27 / January / 2014, 14:16:01 »
Advertisements
It's an odd log, no stack or register trace.
It starts with:
Code: [Select]
ASSERT!! Head.c Line 3985
Occured Time  2014:01:27 11:08:41
ISR : vector=107
ShootConDump:
0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f
0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f
CameraConDump:
07 0a 02 0d 09 01 0f 0f 0f 0f

Followed by the camera log.
Frame timing related interrupt service routine...
http://magiclantern.wikia.com/wiki/Register_Map#HEAD_Timers

I bet it's SetAE_ShutterSpeed related, but I have no idea about the difference the registration functions make...
Anyway, it probably means that some camera models can exhibit strange issues like this.

Is the script usable on the camera (with FA.Create and InitializeAdjustmentSystem)?

edit: looks like it takes 1.5k posts to become blue  :haha
« Last Edit: 27 / January / 2014, 14:17:59 by srsa_4c »

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #131 on: 27 / January / 2014, 16:33:08 »
It's an odd log, no stack or register trace.
It starts with:
Code: [Select]
ASSERT!! Head.c Line 3985
Occured Time  2014:01:27 11:08:41
ISR : vector=107
ShootConDump:
0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f
0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f
CameraConDump:
07 0a 02 0d 09 01 0f 0f 0f 0f

Followed by the camera log.
Frame timing related interrupt service routine...
http://magiclantern.wikia.com/wiki/Register_Map#HEAD_Timers

I bet it's SetAE_ShutterSpeed related, but I have no idea about the difference the registration functions make...
Anyway, it probably means that some camera models can exhibit strange issues like this.

Is the script usable on the camera (with FA.Create and InitializeAdjustmentSystem)?

edit: looks like it takes 1.5k posts to become blue  :haha

In the testing I've done with version 3.4 (adding TerminateAdjustmentSystem), the G1X works very well. Have not had any issues so far, I can start and stop movies in the script, and start and stop the script itself without problems.

I noticed there is another event proc called SetShutterSpeed, if SetAE_ShutterSpeed is the only issue, maybe SetShutterSpeed will work if called directly. I'll do some more testing when I get a chance.

Phil.

Edit: Doh, I forgot I added event proc calls to get the current Tv, Av and Sv values - these are what was crashing when I removed the FA.Create and InitialiseAdjustmentSystem calls. After adding all the wrappers I now have 3.4 working, on the G1X, with direct calls to the firmware instead of using event procs. Both SetShutterSpeed and SetAE_ShutterSpeed functions work.
« Last Edit: 28 / January / 2014, 04:06:02 by philmoz »
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)

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #132 on: 28 / January / 2014, 04:28:28 »
Attached script puts a set_aelock(1) after a full press / video button press.
Does not seem to help much on the ixus115 :(

Same on the IXUS310 - you can set the Tv, Av & Sv fine before recording; but as soon as the recording starts the camera resets the exposure and ignores the AE lock.

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)

Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #133 on: 28 / January / 2014, 09:03:08 »
In the testing I've done with version 3.4 (adding TerminateAdjustmentSystem), the G1X works very well. Have not had any issues so far, I can start and stop movies in the script, and start and stop the script itself without problems.

I noticed there is another event proc called SetShutterSpeed, if SetAE_ShutterSpeed is the only issue, maybe SetShutterSpeed will work if called directly. I'll do some more testing when I get a chance.

Edit: Doh, I forgot I added event proc calls to get the current Tv, Av and Sv values - these are what was crashing when I removed the FA.Create and InitialiseAdjustmentSystem calls. After adding all the wrappers I now have 3.4 working, on the G1X, with direct calls to the firmware instead of using event procs. Both SetShutterSpeed and SetAE_ShutterSpeed functions work.
Is this general enough to work for all cams that currently work without it? (i.e.  add to the "official version" of the script?)  I'm trying to maintain a "current copy" in my script svn repository and a download link for the wiki page : http://chdk.wikia.com/wiki/Manual_Exposure_Control_for_Video_Recording
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #134 on: 28 / January / 2014, 09:04:37 »
Same on the IXUS310 - you can set the Tv, Av & Sv fine before recording; but as soon as the recording starts the camera resets the exposure and ignores the AE lock.
Phil.

Damn, that's too bad. I wonder what the "fast EV" function is doing to stop the automatic exposure from happening? If I could find that piece of code then maybe it could get implemented in this script.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #135 on: 28 / January / 2014, 13:46:31 »
In the testing I've done with version 3.4 (adding TerminateAdjustmentSystem), the G1X works very well. Have not had any issues so far, I can start and stop movies in the script, and start and stop the script itself without problems.

I noticed there is another event proc called SetShutterSpeed, if SetAE_ShutterSpeed is the only issue, maybe SetShutterSpeed will work if called directly. I'll do some more testing when I get a chance.

Edit: Doh, I forgot I added event proc calls to get the current Tv, Av and Sv values - these are what was crashing when I removed the FA.Create and InitialiseAdjustmentSystem calls. After adding all the wrappers I now have 3.4 working, on the G1X, with direct calls to the firmware instead of using event procs. Both SetShutterSpeed and SetAE_ShutterSpeed functions work.
Is this general enough to work for all cams that currently work without it? (i.e.  add to the "official version" of the script?)  I'm trying to maintain a "current copy" in my script svn repository and a download link for the wiki page : http://chdk.wikia.com/wiki/Manual_Exposure_Control_for_Video_Recording

The 3.4 version I posted earlier works on the G12, G1X and SX40; but it adds four event proc calls that should probably be tested on other cameras.

The direct call version also works on these cameras - it requires changes to the core CHDK and new Lua functions. I'll try and post a patch plus the modified script over the next few days.

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)

*

Offline srsa_4c

  • ******
  • 4451
Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #136 on: 29 / January / 2014, 17:30:03 »
mojo43 has found out that the CHDK 'fast EV switch' (aka EnterToCompensationEVF() )is able to lock exposure while recording. It even makes the script working (on the ixus115), but exposure is way off.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #137 on: 29 / January / 2014, 17:44:19 »
mojo43 has found out that the CHDK 'fast EV switch' (aka EnterToCompensationEVF() )is able to lock exposure while recording. It even makes the script working (on the ixus115), but exposure is way off.

I was trying to use this in the IXUS 310; but so far no luck.

It works when starting video recording via the Canon UI; but not when started with the script.

This could be related to how I had to 'enable' the Video button on the 310 - it's a touch screen button, so I had to use a call to PostLogicalEventToUI in kbd.c.

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)


*

Offline srsa_4c

  • ******
  • 4451
Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #138 on: 29 / January / 2014, 17:53:23 »
It works when starting video recording via the Canon UI; but not when started with the script.
Actually, I was messing with entering/exiting ALT mode while running the script (fortunately it still works), and modifying 'fast EV' while recording made the exposure lock, and the script controls started to take effect. I have not tried to modify the script yet.

*

Offline D@noosh

  • *
  • 17
  • Delighing you always, Canon
Re: Video Manual Control: ISO, APERTURE & SHUTTER SPEED CONTROL, PLEASE!!!!
« Reply #139 on: 30 / January / 2014, 08:14:35 »
The 3.4 version I posted earlier works on the G12, G1X and SX40; but it adds four event proc calls that should probably be tested on other cameras.

The direct call version also works on these cameras - it requires changes to the core CHDK and new Lua functions. I'll try and post a patch plus the modified script over the next few days.

Phil.
Hello Phil, I tested the version of the script on SX40 HS. I found out that in order to enable and run the script, camera should be set in video mode via the ring dial, after that we can run the script. The script does work but the problem is I can't find my recorded videos that I recorded with the script in the play mode of my camera. what's wrong?

Thanks in advance.
P.S: Do you have any fast and brief tutorials in order to learn how to improve this script?
K O W A N O N ...

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal