Author Topic: How to enter 5x crop and move crop window from lua?  (Read 11508 times)

ilia3101

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1004
Re: How to enter 5x crop and move crop window from lua?
« Reply #25 on: September 03, 2019, 11:24:55 PM »
Actually, I did exactly that, back then. Didn't try to postprocess such as sequence, though; it was just an early experiment.

Seems like it would be a decent option to implement by default, as it won't break compatibility with current post processing dual iso software, and may be very nice in the future if an improved method comes along.

If a higher frame rate is desired, 1x3 sampling (1880x3752 resized to 5640x3752) would still use all pixels from the sensor. Expecting about 10 fps for this one, on 5D2. Recovering the full resolution from this might be possible with some artificial intelligence, as I couldn't get anything interesting with "classic" techniques :P

I am now thinking about this one a lot more, I want to try. Is it actually possible to get this kind of stretching working on the 5D mark 2? Was it ever achieved in adtg_gui?

Maybe with reduced height, could get closer to 24fps, possibly reduce width too.


Also forgot to post this yesterday - - the 5.6K shots were filmed with my script (a couple of posts up) and stitched in MLV stitcher, the 3k shots were just manually moving the crop window up/down to increase vertical resolution. The 4.6k shot happened when my script failed to move the crop window enough.

Pretty still shots, can't do much with this panorama method, but it could still be useful sometimes.

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7740
Re: How to enter 5x crop and move crop window from lua?
« Reply #26 on: September 04, 2019, 07:15:57 AM »
Very nice shots Ilia3101.
Anamorphic mode is the 1x3 binning talked about I believe. Think it´s already even in 5d2 although seems buggy.

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2307
Re: How to enter 5x crop and move crop window from lua?
« Reply #27 on: September 04, 2019, 08:16:08 AM »
Anamorphic mode is the 1x3 binning talked about I believe. Think it´s already even in 5d2 ....
https://www.magiclantern.fm/forum/index.php?topic=19336.msg213010#msg213010

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3413
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: How to enter 5x crop and move crop window from lua?
« Reply #28 on: September 04, 2019, 08:59:25 AM »
Also forgot to post this yesterday...

Wonderful shots @Ilia3101 and I am definitely pleased to see this former bad boy still kicking ass!  8)
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

ilia3101

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1004
Re: How to enter 5x crop and move crop window from lua?
« Reply #29 on: September 04, 2019, 03:18:15 PM »
Ah thanks everyone!!

I remember now. this is really exciting.

@reddeercity The preset implemented in actual builds is a vertical line skipped isn't it? (has to be stretched vertically)

Would you consider adding this type of squeeze to builds as well? it should be better in some ways.

I'll try replicating myself also.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 2125
Re: How to enter 5x crop and move crop window from lua?
« Reply #30 on: September 04, 2019, 04:28:41 PM »
@reddeercity The preset implemented in actual builds is a vertical line skipped isn't it? (has to be stretched vertically)

Would you consider adding this type of squeeze to builds as well? it should be better in some ways.
+1
Waiting for this since march! :) On the EOS M this is great (if not best option atm), on EOS 5D2 I hope it is even better.
5D3.113 | EOSM.202

ilia3101

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1004
Re: How to enter 5x crop and move crop window from lua?
« Reply #31 on: September 04, 2019, 06:40:50 PM »
+1
Waiting for this since march! :) On the EOS M this is great (if not best option atm), on EOS 5D2 I hope it is even better.

I am now also very excited for this. Also just looked and registers weren't posted so I can't try to replicate.

@reddeercity do you have a sample MLV in that mode? Also do you think it would be possible to expand the vertical resolution over what you got there?

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3413
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: How to enter 5x crop and move crop window from lua?
« Reply #32 on: September 05, 2019, 09:58:17 AM »
+1
Waiting for this since march! :) On the EOS M this is great (if not best option atm), on EOS 5D2 I hope it is even better.

+10
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2307
Re: How to enter 5x crop and move crop window from lua?
« Reply #33 on: September 23, 2019, 06:36:34 AM »
@reddeercity do you have a sample MLV in that mode?
Yes , 1x3_1664x1842_24fps_M18-2247.MLV
I have 2 problems to archive this , first I can't get the 3xcrop_mode check to work with more then 1 crop_rec preset , the others
just default back to 3x3(FHD) mode and the second is the atdg_reg are not working in the crop_rec for 5D2 (I think I have solve the adtg_reg problem)
but until I get the 3x crop_mode check working to see if the atdg_reg are being applied.
In the next days I'll be working on this , and will continue on the 3K/UHD 5D2 Raw development and Other Digic IV Cams
I will show over there the code that's causing the issue's
..... do you think it would be possible to expand the vertical resolution over what you got there?
no , 1664x1842 (4992x1842) is the max. @ 23.976fps , on second thought I found a old test I did and got 2144x3200
but it very unstable at that almost full height , it seem anything over 1842 vertical has issue , but that was also early in my development , I haven't tried since


2144x3204_M02-2329_frame_4.png

Edit: quick link to the part of the code I was talking about
crop_rec.c#lines-1588
FYI, I started to update the source code to a new bitbucket repository. magic-lantern_reddeercity_5d2-50d_4k-crop_rec
but I have updated the crop_rec module code yet with the new presets , in the next days .

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3413
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: How to enter 5x crop and move crop window from lua?
« Reply #34 on: September 23, 2019, 07:10:23 AM »
FYI, I started to update the source code to a new bitbucket repository. magic-lantern_reddeercity_5d2-50d_4k-crop_rec
but I have updated the crop_rec module code yet with the new presets , in the next days .

Thank you so very much, David. 8)
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109