Magic Lantern Forum

Using Magic Lantern => Raw Video => Topic started by: rbrune on April 07, 2015, 10:43:50 PM

Title: ML raw/mlv resolution, write speed and crop factor calculator
Post by: rbrune on April 07, 2015, 10:43:50 PM
Since the topics of maximum SD/CF card writing speeds, achievable maximum resolutions and how the different recording modes affect the crop factor come up over and over again I put together a little javascript calculator that should help understanding the capabilities of the respective cameras better - and might be useful for planning shoots.

How to use:
Select your camera model, select the desired recording mode (zoom, 1080p, 720p) which determines the pixel subsampling mode, pick an aspect ratio and frame rate. Ideally also type in the max. writing speed of your SD/CF card measured by magic lantern (otherwise it uses the limit of the SD/CF interface which might not be achievable with your card).


http://rbrune.github.io/mlraw/
(updated April 20th, 2015)

If you miss a feature or something doesn't seem right please let me know.



Disclaimer:
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: chmee on April 07, 2015, 10:56:29 PM
good job. handy.
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Kharak on April 08, 2015, 06:13:00 AM
Really nice!

Thanks!
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Danne on April 08, 2015, 07:11:25 AM
Nice one.
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: dubzeebass on April 08, 2015, 02:31:13 PM
Can u add ability to calculate run time per card size? Great job!
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: rbrune on April 09, 2015, 08:50:49 AM
Can u add ability to calculate run time per card size? Great job!

Great idea - and done.
Added a snippet on how many minutes a 32GB card will be good for.
Title: ML raw/mlv resolution, write speed and crop factor calculator
Post by: DeafEyeJedi on April 10, 2015, 08:25:39 PM
Definitely a great tool!

(http://images.tapatalk-cdn.com/15/04/10/8bd1205f0bbe73caaa37452933e9c66e.jpg)

Thanks for sharing @rbune!
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: skrull on April 10, 2015, 08:55:27 PM
This is really interesting!

I would like to see something like this calculator into ML as a separate module, or better yet, inside MLV module as a menu option... I would code it myself, but I'm too busy atm... I will see it.
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Walter Schulz on April 10, 2015, 09:06:14 PM
? There is a calculator included. Each time you choose resolution and/or change ratio and/or frame rate you will see bandwidth required.
What are you missing?
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: budafilms on April 11, 2015, 06:43:19 AM
A personal experience is about select the lens for the shoot.
For example, a medium shot could be nice with a 50 mm than 85.

As you know, exist an optical tool to do this. And is very expensive.

I have enough resolution for my movies at Full HD, this is one of the advantages to get 4K: crop, have more possibilities, less takes for insert...

Maybe could be a very nice option in live view, pressing a button an select the crop factor lens to know how could be your shoot: 24 MM, 35, 50, 85.

This one was an old idea when I see the graphical representation by @DeafEyeJedi.

Thnks!

Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: vertigopix on April 20, 2015, 12:00:21 PM
Nice tool, thank you !

Maybe can you add 60D ?  :)
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Ottoga on April 20, 2015, 12:32:25 PM
Nice... Even works on my mobile.
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: rbrune on April 20, 2015, 03:57:19 PM
Nice tool, thank you !

Maybe can you add 60D ?  :)

Done (it is basically a 600D)
.
But since I do not have a 60D, can you confirm to me that
a) the max SD card write speed is about 21MB/s
b) the max selectable resolution in crop mode is 2512x1080
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: vertigopix on April 20, 2015, 04:23:53 PM
Thank you !

Quote
a) the max SD card write speed is about 21MB/s
b) the max selectable resolution in crop mode is 2512x1080

a) Yes, max 21 MB/s with a fast card exFAT formatted   :(
b) No, max selectable crop is 2496x1080
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: rbrune on April 20, 2015, 09:18:05 PM
Thank you !

a) Yes, max 21 MB/s with a fast card exFAT formatted   :(
b) No, max selectable crop is 2496x1080

Awesome, thank you.

@b) 2512 is probably the actual max - but mlv_rec only allows multiples of 32 (like my calculator), so everything is correct now.
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: vertigopix on April 21, 2015, 09:27:06 AM
You're welcome.

Great tool and working offline ! I've copied the 2 files to my phone and tablet and it's working with Chrome !  :)
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Lucas7 on April 22, 2015, 11:25:43 PM
Hi

That seems to be a great tool
But how do you set up the subsampling in Magic latern ?
(In fact I would like to have the full width with my 650D in 1280x720 24 fps without having to crop, is it possible ?)

Cheers
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: baranbaran on April 23, 2015, 08:39:34 AM
that is an amazing idea .....well done
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Grzegorz on May 06, 2015, 09:37:38 PM
This is great - thank you!

It solved my problem! Til 5 minutes ago I though I had a poor card, as I could not reach the limits with my 50D - looking hard at your table I realised I had been shooting 30 fps and comparing it to your limits at 24 fps! ::)
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Grzegorz on May 07, 2015, 11:06:04 AM
Canon 50D today, with Lexar x1066 64GB, in crop mode managed over six minutes with no frames skipped at 1728 x 1080, aspect 16:10, I stopped the recording myself. :)

Would someone pls. direct me to a thread explaining framing in crop mode? What I see is obviously not what I get...
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: rbrune on May 07, 2015, 03:15:15 PM
Canon 50D today, with Lexar x1066 64GB, in crop mode managed over six minutes with no frames skipped at 1728 x 1080, aspect 16:10, I stopped the recording myself. :)

Would someone pls. direct me to a thread explaining framing in crop mode? What I see is obviously not what I get...


Regarding the framing, open my calculator again and look at the rectangle that shows you the portion used of the sensor. Of course you have to comapre it to the APS-C sized grey frame to see how much/little of the full sensor area you're using. Also the calculator gives you the crop factor with which you can multiply your lens focal length with to get the effective focal length.
Also there are some settings regarding framing indicators in the ML mlv settings, play around with those.

Now 1728x1080@24fps for 6mins is about 75MB/s. Are you sure those are your settings and really no frame was dropped? I thought the theoretical limit of the 50D interface is about 70MB/s and you exceeded it by quite a bit.
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Grzegorz on May 07, 2015, 09:01:12 PM
Hi,

Thanks for your advise!

 
Regarding the video I am reasonably sure - I did not check the frame numbers (did not extract frames) for anything missing BUT the recording stops when a frame is dropped, doesn't it? I mean I have seen this message several times when trying to record at 30 fps and the recording would always stop  after a few hundred frames once the message was displayed. And I did not change any settings regarding this. I still have this video, so if there is anything you would like me to check, (even upload - but I do not know where to upload - it is almost 30GB - 8957 frames) then I will. I watched it through MIRawViewer. There is also a MRX file - I do not know what are the info inside, is there an information about frames ? Or is there any other method to check the frames apart from extracting and counting?

In my previous post I forgot to mention it was 23.976 fps using nightly 2015May03.50D109
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Grzegorz on May 08, 2015, 09:35:32 PM
Confirmed. I have just converted the files using raw2cdng.1.6.5. which resulted in 8957 consecutive frames.

One strange thing, though. MIRawViewer v.1.4.3 states: 1728 x 1080 23.976 FPS, 8957 frames, BUT when I open .dng in RawTherapee 4.2.147 the actual image size appears to be 1720 x 1072. Any ideas?
 
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: Grzegorz on May 08, 2015, 11:44:24 PM
Well, it seems 50D is capable of even more  :)

I have just managed to record 8393 frames (no dropped frames) at 1792 x 1080 at 23.976 fps (according to ML settings and MIRawViewer, but extracted dngs are 1784 x 1072).
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: keel on February 29, 2016, 07:38:10 PM
edit: problem solved
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: beauchampy on February 29, 2016, 10:13:16 PM
This is great! It's now at the top of my favourites bar  ;) Thanks for the awesome tool!
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: beauchampy on March 01, 2016, 10:57:49 AM
Question - so in your tool if I select 5dm3 doing 50p at 16:9 it tells me I need 1856x626

In my camera, the closest resolution I have available for 16:9 50p is 1856x650

I don't have the option for 626?

Edit: And btw are people really pushing 100mb/s on their 5d3's?
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: DeafEyeJedi on March 01, 2016, 06:20:23 PM
@beauchampy -- speaking of 113 or 123?

As well as with latest nightly, correct?
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: beauchampy on March 02, 2016, 08:37:28 AM
@beauchampy -- speaking of 113 or 123?

As well as with latest nightly, correct?

123. Not the latest because of the pink frames issue - currently running a build from August '14. Are different resolutions available in later builds?
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: rbrune on March 08, 2016, 02:29:31 PM
Yes, the latest version allows more fine grained control over the resolution.

And for 100MB/s - maybe someone with a 5d3 can chip in but I assume something around 90MB/s is more realistic as it leaves some bandwidth and ram to cope with hickups/CF slowdowns during writing.
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: k2121 on February 05, 2017, 09:14:53 PM
Hi,
I'm new user of ml.
Why when I activate "raw video (mlv)" option, everyday I have another expect write speed? It's annoying, because I never know when I can record MLV continously. Please help me.
Greetings
K.
Title: Re: ML raw/mlv resolution, write speed and crop factor calculator
Post by: aphyinsh@gmail.com on March 02, 2017, 02:24:03 PM
just wondering where to select the 'sampling mode'? any guys can point me that? thanks in advance.