Shot Histogram Request - page 20 - CHDK Releases - CHDK Forum

Shot Histogram Request

  • 467 Replies
  • 128063 Views
*

Offline lapser

  • *****
  • 1093
Re: Shot Histogram Request
« Reply #190 on: 29 / March / 2013, 20:34:48 »
Advertisements
Also, see if you can demonstrate that you can turn dark frames off and on in the raw menu, and that it works.
That does not currently work, but soon will.
Another issue with this camera is that CHDK overrides are only applied before the actual shot, but not when half-shooting. I guess it's not your concern, since you're working with the raw data.
The important thing is that capt_seq_hook_set_nr() is called right before the shot. I added a pre-shot delay here so I can set a precise shot interval that also works in continuous mode. This routine also saves the precise shutter open time so it can be saved in the CHDK raw file, if needed.

I do everything in half shoot, and set the exposure directly using propcases. I assume this should work with this camera?
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

*

Offline ahull

  • *****
  • 634
Re: Shot Histogram Request
« Reply #191 on: 30 / March / 2013, 10:50:38 »
This is what I have so far. Lapser's CHDK version works and runs the same timelapse script I was using originally.

I have given up on raw for the time being I think it kinda works but I didn't try it again*, if you want more info about raw I'll grab the camera. It is in the garden watching the world/clouds/sunshine/snow go by at the moment. 

Lapser's script takes one shot then stops. It doesn't seem to crash the camera, nor does it do anything noticeably  odd it simply stops. All of the other parts of the script seem to work, in as much as I can resize and move the metering box set the script going, play with the various parameters etc. but as I said when I set it running it takes a picture then stops.

Oh and I am charging up half a dozen nb-4l batteries, so I have a sporting chance of being able to shoot tonights sunset.

Edit: Nope, RAW (.DNG) more kinda *doesn't* work. I took 6 images, 2 look fine, 4 look terrible, with varying degrees of distortion (banding and snow starting at the top of the image, covering between 20% and 100% of the picture), so let me try the standard build of CHDK and see if that is OK.
« Last Edit: 30 / March / 2013, 11:32:03 by ahull »

*

Offline srsa_4c

  • ******
  • 4451
Re: Shot Histogram Request
« Reply #192 on: 30 / March / 2013, 11:18:41 »
Improved capt_seq.c for ixus40 100k attached. It has all needed hooks, DNG seems alright with it.

*

Offline lapser

  • *****
  • 1093
Re: Shot Histogram Request
« Reply #193 on: 30 / March / 2013, 12:56:28 »
Improved capt_seq.c for ixus40 100k attached. It has all needed hooks, DNG seems alright with it.
THANKS!

Here's the Lapser enhanced build with the new capt_seq.c
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos


*

Offline ahull

  • *****
  • 634
Re: Shot Histogram Request
« Reply #194 on: 30 / March / 2013, 13:16:33 »
 :D Raw now works, I get perfect .DNG files.

Let me try lapser's script again.

*

Offline ahull

  • *****
  • 634
Re: Shot Histogram Request
« Reply #195 on: 30 / March / 2013, 13:26:33 »
OK The script works as before, it takes a picture, saves it, then sits waiting, as if expecting me to do something more... Let me play around a bit, see if I can figure out what is going on. 

Does the script rely on continuous drive mode? 'cos this camera doesn't have that.

Actually what the camera says briefly after taking the picture is

***Terminated***
 6 2 0 -2
« Last Edit: 30 / March / 2013, 13:39:14 by ahull »

*

Offline srsa_4c

  • ******
  • 4451
Re: Shot Histogram Request
« Reply #196 on: 30 / March / 2013, 13:56:00 »
Actually what the camera says briefly after taking the picture is

***Terminated***
 6 2 0 -2
The log says
:353: bad argument #6 to 'format' (number expected, got nil)
XLapser.lua from the previous page.

Quote
Does the script rely on continuous drive mode? 'cos this camera doesn't have that.
It does. Press "down" in shooting mode...

*

Offline lapser

  • *****
  • 1093
Re: Shot Histogram Request
« Reply #197 on: 30 / March / 2013, 14:11:52 »
Actually what the camera says briefly after taking the picture is

***Terminated***
 6 2 0 -2
The log says
:353: bad argument #6 to 'format' (number expected, got nil)
XLapser.lua from the previous page.

Quote
Does the script rely on continuous drive mode? 'cos this camera doesn't have that.
It does. Press "down" in shooting mode...
There's an error in the tv96 to shutter speed conversion.

This relies on the log10 function. There was an error in the address of the log10 function that we discovered with the SX50. Can you check to make sure that address is correct?

[EDIT] Here's where we fixed it for the SX50
http://chdk.setepontos.com/index.php?topic=8932.msg97220#msg97220

[EDIT 2]
Try running this script. It should print "96" if log10 is working:

print(shutter_to_tv96(500))
« Last Edit: 30 / March / 2013, 14:24:25 by lapser »
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos


*

Offline srsa_4c

  • ******
  • 4451
Re: Shot Histogram Request
« Reply #198 on: 30 / March / 2013, 14:28:53 »
There's an error in the tv96 to shutter speed conversion.

This relies on the log10 function. There was an error in the address of the log10 function that we discovered with the SX50. Can you check to make sure that address is correct?
There's a list of function pointers in this firmware, in their names' alphabetical order, it should be correct.

Which CHDK functions are involved?

print(shutter_to_tv96(500))
96
What else could it be?
« Last Edit: 30 / March / 2013, 14:32:10 by srsa_4c »

*

Offline lapser

  • *****
  • 1093
Re: Shot Histogram Request
« Reply #199 on: 30 / March / 2013, 14:42:15 »
Wait, let me get the right script. I'll attach it in a minute.

OK, found it. I did a change that I didn't test.

Line 326 of the script says:
  tvd0=tdv -- for log

It should say tvd0=tvd

I'll test it and post the correct script in a few minutes.

[EDIT lost count] OK, a few minutes are up. Here it is. Sorry for the confusion.
« Last Edit: 30 / March / 2013, 14:56:37 by lapser »
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

 

Related Topics