Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - pparent

#1
Modules Development / Re: video_av.mo (Aperture priority)
November 04, 2019, 06:19:54 PM
@DeafEyeJedi

I shared the code i the form of a patch to the ML core source (on lens.c/lens.h) + a standard separate module.

https://github.com/pparent76/ML_video_av

The patch to the ML core source is very simple simple you can apply it by hand if  lens.c/lens.h source has changed since (it's just about adding two functions, and two variables).

Once the patch applied the module can be compiled as a normal module.
#2
Modules Development / Re: video_av.mo (Aperture priority)
September 25, 2019, 12:46:06 PM
Just wanted to mention that I've been using my module (latest git version) for some time now in various projects, and it's been very useful to me.
#3
Modules Development / Re: video_av.mo (Aperture priority)
December 12, 2017, 08:25:00 PM
I have a 550d from today.

I tested my module on it, it works well, after very few adjustments related to FRAME_ISO_OVERRIDE.

Unfortunately FRAME_ISO _OVERRIDE, really does not bring much on this camera because there is no FRAME_SHUTTER_OVERRIDE to go along.

I will soon sell my 500d but it will make sure the module still works on it.

Working image on 550d:
http://www.own-mailbox.com/magiclantern-Nightly.2017Dec12.550D109.zip

If anyone else than myself could test it, it would be great! I would be great also to test on 600D,650D,700D,750D,...
#4
Modules Development / Re: video_focus.mo
December 10, 2017, 05:53:50 PM
Thank's a lot!

I will start working on this as soon as I have time.

I will soon replace my 500D by a 550D (and have the two during a certain period of time).
#5
Modules Development / video_focus.mo
December 10, 2017, 04:27:19 PM
Hi,

After video_av.mo I will do a module to make it easier to focus while video shooting in various situation.

Here are the functionalities that I would want for my module:

1)Make Canon's auto-focus remotely controlled/triggered (useful for selfie video).
2)Display focus value while recording to assist manual focus: a number that corresponds to the focus distances (Useful to note good focus distance in x10 mode and then navigate through them with manual focus, while recording.
3)Display focus indicator (a number) while recording to assist manual focus: a number that tells how well we are in focus, in a certain zone.
4)Have a user-guided follow object auto-focus mode (user specifies direction with keys, the machine goes in that direction as much as necessary to have a good focus).

Do you have any comment on feasibility, or can you help me if you know how to:
1)Trigger canon's AF from code.
2)Get an indication of manual focus state (  a number that corresponds to the focus distance )
3)An indication of how well we are in focus in a certain zone (possibly canon's zone).

Thank's a lot!
#6
Modules Development / Re: video_av.mo
December 10, 2017, 04:20:34 PM
New important improvements:

*Enable the possibility to use FRAME_ISO_OVERRIDE for those who have it
*Various improvement on other cams: faster and correct some bugs
*Add the possibility to choose a threshold of expo delta, before we actually change expo: adds a lot of stability.

Testing images: (At your own risks).
*https://www.own-mailbox.com/magiclantern-Nightly.2017Dec10.550D109.zip]https://www.own-mailbox.com/magiclantern-Nightly.2017Dec10.550D109.zip
*https://www.own-mailbox.com/magiclantern-Nightly.2017Dec10.500D111.zip

Not yet tested on 550D but I will soon have one.

Todo
*Test that it works on 550D, and if possible other "Rebel" model.
*Make the module work for raw video mode (I will not work on that soon).
#7
Modules Development / Re: video_av_expo.mo
December 01, 2017, 09:40:47 PM
The current version on my github is usable on 500D. I expect it to work for other "rebel" model (550D, 600D, 650D, 700D,..), but I cannot be sure before some test is done. I may buy a 550D some day, when I have money and find a good deal.

Options of the module
*Smooth changes:whether we want changes to be progressive or not
*Allow jumps: wether we allow jump changes in expo when huge expo changes are required (e.g instant change from dark to daylight).

Other demo videos 500D 
* Small expo changes, low light, using the canon's expo lock button to change expo only when desired, f2.3:
https://www.youtube.com/watch?v=uaHAz3Y-A8U&feature=youtu.be
*Medium expo changes f2,5: https://youtu.be/ey-Q1uXLu2k
*Extreme expo changes, with jumps enabled f1.8: https://youtu.be/pRJcHhET1Qw


Magic lantern testing build with this module
(As it requires a small modification to core you have to update magic lantern completly)
USE AT YOUR OWN RISKS
*500D.111: tested on my camera  https://own-mailbox.com/magiclantern-Nightly.2017Dec01.500D111.zip
*550D.109: not tested yet. https://own-mailbox.com/magiclantern-Nightly.2017Dec01.550D109.zip

Todo
*For cameras with FRAME_ISO and FRAME-SHUTTER override, take advantage of this to make the system,  smoother, a lot faster and more reliable.
*Make the module work for raw video mode.

Usability
*Taking the expo at the beginning of the scene and lock it: perfect
*Scene with few and progressive light changes: very good. Example: daylight selfy youtube video during sunset, dawn, or cloud passing-by.
*Scene with big light changes: Could be better, but good for amateur shots (*) and will be better in the futur for cameras with FRAME_ISO override.

(*)Anyways I think only amateur shots would involve this kind of huge changes in light in the same shot.

Next?
My next module will focus on focus in video mode.
#8
Modules Development / Re: video_av_expo.mo
November 17, 2017, 01:20:19 PM
I've put my under development code here.

https://github.com/pparent76/ML_video_av

There are still some bug in smooth mode, that provoke few glitches, that I will try to solve on Sunday.
#9
Modules Development / Re: video_av_expo.mo
November 09, 2017, 02:35:35 PM
Hi,

Here is a demo of a video shot with my module on 500D in Av mode, to get an idea of how smooth it will be:

https://www.youtube.com/watch?v=Pga949uc4Ys

It still requires improvement, I'll keep working on it in following days/weeks, and eventually it will work just fine! I'll publish the code as soon as it is clean enough and usable.

I used set_movie_digital_iso_gain_for_gradual_expo() to smooth things out and FRAME_ISO in read-only mode.

Pierre.
#10
Modules Development / Re: video_av_expo.mo
November 07, 2017, 11:04:06 AM
Actually what I'm going to do is:

1- A minimalistic patch on lens.c/.h simply adding 2 lines: a property "shutter_auto" to "lens_info" struct, and "lens_info.shutter_auto=buf[0];" at the begining of in PROP_HANDLER( PROP_SHUTTER_AUTO ) .
2- A module video_av_expo.mo, that adapts tv and iso automatically while smoothing changes in time as nicely as possible.
3- video_av_expo.mo will have the feature to choose Av value and then apply it to the lens, rather than needing to go physically through all intermediaries values, as currently the case.

I'll post the code as soon as ready probably in less than a week!
#11
I've made it! So exciting!  :)

Basically what I did is add in lens.c

in PROP_HANDLER( PROP_SHUTTER_AUTO ) at the begining:

Quote
if (dont_override_tv && CONTROL_BV)
{
if (ABS(buf[0] - lens_info.raw_shutter) > 0 && buf[0]  )
                    {   bv_set_rawshutter(COERCE(buf[0], 0x60, 0x98));  bv_auto_update(); return;}
}

in PROP_HANDLER( PROP_ISO_AUTO ) at the begining :
Quote
if (dont_override_iso && CONTROL_BV)
{
bv_set_rawiso(buf[0]); bv_auto_update(); return;
}

I will write a clean patch soon with new menu entry allowing to choose whether to override iso and tv or not.

ps: Though I must admit that exposure changes are not as smooth as in fully automatic mode. There must but some trick to smooth exposure changes in fully automatic mode.
#12
Ok thanks a lot.

Actually what I wanted initially was only to know Am I underexposed, overexposed or fairly well exposed, to adapt iteratively.

But if we can get to override on some parameters it would be a lot simpler an cleaner. This line makes me think that there is hope it could maybe be possible:

CONTROL_BV_TV = CONTROL_BV_AV = CONTROL_BV_ISO = CONTROL_BV_ZERO = 0; // auto

I'll keep you informed.

Pierre.
#13
Hi,

Thanks a lot for your answer.

Untwisting the lens in video mode does work thanks a lot! :)

Couldn't we have an option to partially overriding the lens properties? (By modify lens.c & movtweaks.c)  I will try to test that (except if you tell me that's impossible). It would probably avoid to have to untwist the lens and loose auto-focus.

Thanks again

#14
Modules Development / video_av.mo (Aperture priority)
November 05, 2017, 12:29:37 PM
[Edit:] code of the module: https://github.com/pparent76/ML_video_av

Hi,

I'm in the process of developing a video_av_expo module. Basically it will allow to have a fixed aperture in video mode but adapt dynamical shutter speed and iso to get a good exposure.  Iso will allawys be set to its lowest possible value, and will only be increased if shutter speed is at its minimum.

I sounds like a pretty easy module, but I'm having a problem with a basic thing that is blocking me: I can't get proper exposure estimation.  Canon av value is not processed in video mode (500D) . So I tried to use auto_ettr_get_correction() but it fails to work because raw_hist_get_percentile_levels fails because raw_update_params() returns 0. No idea why...

For now I've started my tests by modifying autoexpo module, but I will write a clean module as soon as it works properly.

How can I get exposure estimation in video mode in a module?

Any help appreciated!
#16
Feature Requests / 500D video improvement.
October 22, 2017, 11:26:17 PM
Hi,

I see several improvements that could be done to have a more complete video mode in 500D (from easiest to hardest):

1)Allow to change aperture without needing to go physical through all values ( to go from 2 to 3 you need to go through 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9).
2)Av Semi-automatic exposure before shooting the scene and lock it for the scene.
3)Av Semi-automatic exposure dynamic and adjusting smoothly while filming.
4) Make canon auto-focus remotely controlled/triggered (useful for selfie video).
5) Display focus indicator (a number) while recording to assist manual focus.
6) Have a user-guided follow object auto-focus mode (user specifies direction with keys, the machine goes in that direction as much as necessary for focus).
7)Find a way to get full HD@24 fps (maybe using jepg re-compressed raw)

I'm a developer and I will try to see theses things.

If you have any thought on that It would be welcome!  :)