Author Topic: Video crop mode: adjust crop factor?  (Read 4776 times)

DigitalVeil

  • Member
  • ***
  • Posts: 110
  • 70D, 700D
Video crop mode: adjust crop factor?
« on: January 05, 2015, 07:03:42 PM »
Currently, crop mode is just limited to "on" and "off" and the only option is 3x crop.  Would it be at all possible to set custom crop factors, like 1.5x, 2.5x, etc?  If possible, I feel this would be a useful feature.
Glass: EF-S 24mm f/2.8 STM, EF 50mm f/1.8, EF-S 55-250mm IS STM, EF-S 18-55mm IS STM

dmilligan

  • Developer
  • Hero Member
  • *****
  • Posts: 3218
  • 60Da / 1100D / EOSM
Re: Video crop mode: adjust crop factor?
« Reply #1 on: January 05, 2015, 07:59:35 PM »
No, it's because of the nature of the CFA.

You can either read every pixel (3x crop), or skip lines* and read every 3rd line (non-crop mode). You can't skip non-integer number of lines (obviously), and you can't skip every other line because you'd end up with either only red and green pixels (no blue data) or only blue and green pixels (no red data).

I suppose you could skip 1 of every 3 lines (read 2 lines, skip 1, read 2, skip 1 etc.). You'd have pixel data for every color, but you'd end up with a really strange bayer pattern, that you'd probably have to write your own custom demosaicing algorithm. This would also require extensive reverse engineering (we don't know how to implement custom readout schemes like this on CMOS or if it's even possible => my bet would be it's not even possible).

You could also theoretically skip differently horizontally vs. vertically (you could read every column, but only every third row). This might be useful for anamorphic lenses. But again, this would require custom readout mode which we don't know how to do, or if it's even possible.


*There is evidence that the 5D3 bins pixels instead of skipping them, but the limitation remains.

DigitalVeil

  • Member
  • ***
  • Posts: 110
  • 70D, 700D
Re: Video crop mode: adjust crop factor?
« Reply #2 on: January 05, 2015, 08:32:23 PM »
Thanks dmilligan.  I appreciate that you're willing to take the time and explain these things, it's a lot more helpful and educational than simply saying "no" with a snarky attitude like some other members of this forum will do from time to time.  I know that nobody "owes" an explanation to anybody, so it's nice having people who are willing to explain.

I was hoping that it would be possible to read every 2nd line instead of every 3rd line, but oh well! Marked impossible for now.
Glass: EF-S 24mm f/2.8 STM, EF 50mm f/1.8, EF-S 55-250mm IS STM, EF-S 18-55mm IS STM

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12467
Re: Video crop mode: adjust crop factor?
« Reply #3 on: January 05, 2015, 08:38:44 PM »
I was hoping that it would be possible to read every 2nd line instead of every 3rd line, but oh well!

That's possible - take a look here: http://www.magiclantern.fm/forum/index.php?topic=10111.msg125694#msg125694

dmilligan

  • Developer
  • Hero Member
  • *****
  • Posts: 3218
  • 60Da / 1100D / EOSM
Re: [IMPOSSIBLE]Video crop mode: adjust crop factor?
« Reply #4 on: January 05, 2015, 08:56:45 PM »
So it's possible, but not particularly useful for full color recording for the reasons I mentioned (I suppose you could do b&w with it perhaps)?

DigitalVeil

  • Member
  • ***
  • Posts: 110
  • 70D, 700D
Re: [IMPOSSIBLE]Video crop mode: adjust crop factor?
« Reply #5 on: January 05, 2015, 10:31:41 PM »
That's possible - take a look here: http://www.magiclantern.fm/forum/index.php?topic=10111.msg125694#msg125694

Gotcha.  Possible, but probably not practical for anything other than maybe black&white.
Glass: EF-S 24mm f/2.8 STM, EF 50mm f/1.8, EF-S 55-250mm IS STM, EF-S 18-55mm IS STM

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 603
Re: Video crop mode: adjust crop factor?
« Reply #6 on: January 05, 2015, 11:45:35 PM »
http://www.magiclantern.fm/forum/index.php?topic=10111.msg125426#msg125426

Possible, but the colors are crazy  ;D





This can be useful in 60FPS raw video

If 5D3 have 1920x672 1.61x
It may have 1920x672 1.0x

DigitalVeil

  • Member
  • ***
  • Posts: 110
  • 70D, 700D
Re: Video crop mode: adjust crop factor?
« Reply #7 on: January 06, 2015, 12:57:17 AM »
You can just color-grade the living crap out of it right?  :P
Glass: EF-S 24mm f/2.8 STM, EF 50mm f/1.8, EF-S 55-250mm IS STM, EF-S 18-55mm IS STM

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 603
Re: Video crop mode: adjust crop factor?
« Reply #8 on: January 06, 2015, 05:10:27 AM »
Processing ACR 2012 can recover the color when one channel is clipped.

To check if this works, just take a picture of a red or blue filter. Red or blue channel must be clipped.
If it's working, just create a converter.

But all this does not make sense. Currently we can not change the size of the raw buffer.
We can only change the aspect ratio - http://www.magiclantern.fm/forum/index.php?topic=10111.msg123909#msg123909

Later we encounter the problem of writing speed :P
My camera write only 20MB/s