500d development - page 227 - DSLR Hack development - CHDK Forum supplierdeeply

500d development

  • 2487 Replies
  • 901243 Views
Re: 500d development
« Reply #2260 on: 21 / December / 2011, 16:45:02 »
Advertisements
I didn't write it but I think it was written for python 2.3. I'm using python 2.6 and it works. I don't thing it will work with Python 3 and over, it should work with python 2.7.
« Last Edit: 21 / December / 2011, 16:49:24 by Chuchin »

Re: 500d development
« Reply #2261 on: 21 / December / 2011, 18:50:18 »
Chuchin I tried version 2.7 and it works ;) thanx a lot for sharing this stuff! Now it will be easier to convert from 30fps to 24fps if we ever need it.

*

Offline vorob

  • *
  • 26
Re: 500d development
« Reply #2262 on: 21 / December / 2011, 23:55:02 »
Hi, is there 30 fps in 1080p in latest custom firmware?

*

Offline Gary

  • *
  • 43
Re: 500d development
« Reply #2263 on: 22 / December / 2011, 01:43:32 »
I tried 4fps.  Gets darker and lighter gradually every few seconds.  Then stops with Buffer full.  Am I doing something wrong?


Re: 500d development
« Reply #2264 on: 22 / December / 2011, 02:35:00 »
I tried 4fps.  Gets darker and lighter gradually every few seconds.  Then stops with Buffer full.  Am I doing something wrong?
No actually I noticed that too, it only seems to happen in 1080 mode though for some reason.

Re: 500d development
« Reply #2265 on: 22 / December / 2011, 10:51:02 »
I tried 4fps.  Gets darker and lighter gradually every few seconds.  Then stops with Buffer full.  Am I doing something wrong?
No actually I noticed that too, it only seems to happen in 1080 mode though for some reason.

You're right. I didn't notice it before. It is present only in 1080p (more frequent when recording, when not recording, it nearly doesn't happen) and it affects all framerates other than 20fps - the exposure is changed to the one used with 20fps - as the shutter changes with fps (as it shouldn't). In other resolutions it happens only at the start of recording.

I have also noticed that when changing resolution, the framerate value becomes strange, that means, much more or less than it should be, e.g. ~9.5 for 9fps in 720p when going from 1080p. I guess, this happens because the timer is not updated when changing recording resolution. The shutter speed may be related to that timer since it changes relatively to the framerate.
Canon EOS 500D, EF-S 17-85mm f/4-5.6 IS USM

Re: 500d development
« Reply #2266 on: 22 / December / 2011, 12:28:17 »
I have made a patch to make ML recompute the timer when switching recording mode to better match the integer frame rate then. It includes also updated safe frame rate limits (allowing frame rate down to 2 and resolving LV restart with higher frame rates and 24+fps in zoom mode).

The exposure changing in 1080p is probably caused by the NTSC computation or use of 120hz timer what doesn't go along with the msleep(1000) command in fps_task(). I think, it might be also the cause of the irregular exposure change in HDR video, although Alex was talking about fixing some addresses. I haven't found the right value for msleep(), however.

There must be a Canon routine overriding those timers which runs only when recording - in that case, we could simply disable it for fps override or alter it for use with HDR video as it is probably called when the fps timer expires (reason why almost every frame in HDR video is taken with normal exposure and only a few are under/overexposed - well, that might mean that it overrides also shutter, iso etc.). Anyway, I said "simply" but this would need a FW hack, pretty clearly camera specific and that's not the right approach, I guess.

And, well, the help string for FPS override says "forces shutter at 1/fps" ..is it what it is really supposed to do as the shutter value in ML bottom bar stays unchanged or, in other words, wrong, Alex?
« Last Edit: 22 / December / 2011, 12:32:02 by kyselejsyrecek »
Canon EOS 500D, EF-S 17-85mm f/4-5.6 IS USM

*

Offline a1ex

  • *****
  • 671
  • ML dev
Re: 500d development
« Reply #2267 on: 22 / December / 2011, 12:57:59 »
Good catch, applied.

On older cameras, setting fps forces 1/fps shutter as a side effect. I don't know how to fix this yet, so it went into docs :)

I'll keep the 4fps limit for now; in other cameras, 3fps is not safe.



Re: 500d development
« Reply #2268 on: 22 / December / 2011, 13:34:11 »
Ok.

I have digged a bit around the shutter values in lens.c and lens.h and found that they are hardly set to/computed for their raw equivalents. The only "reasonable" way how to fix this using this algorithm is to recompute the values in seconds as the raw values are fixed integers with step of size 1 (no way to adjust them). Another approach would be to use different raw values to make it best match the predefined values in seconds - that's approximate and would cause loss of the maximal shutter values used with normal frame rate. (Never mind, just kidding my thoughts)
Canon EOS 500D, EF-S 17-85mm f/4-5.6 IS USM

*

Offline a1ex

  • *****
  • 671
  • ML dev
Re: 500d development
« Reply #2269 on: 22 / December / 2011, 13:45:25 »
The bottom bar actually uses exact formulas for shutter speed and aperture - that's why you see weird values. Canon displays nice round values (market values).

 

Related Topics