Bilal's crop_rec_4k experiments for 650D / 700D (T4i / T5i)

Started by theBilalFakhouri, September 18, 2020, 07:51:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Danne

Cool.

What preset? 16:9? Are the other ones working better?

SubZeroz

Quote from: Danne on October 10, 2020, 08:29:32 PM
Cool.

What preset? 16:9? Are the other ones working better?

2.35:1

I didn't push it to the git yet, a local repo (So what I've published earlier should work anyway).

All Presets are working great, I just wanted to see it on my entire phone-screen.

The problem was that in that build, the fixed liveview contains a rect at the top of the screen with the real image, so I've pulled it down to the center, and then scaled it to fit my entire screen.
I need to slice the configuration (shutter etc') from the bottom, because its out of the screen, thanks to the changes above :-)

Danne

I see. So corrupted frames occur with 2.35:1.

I checked 700D sources. in crop_rec.c there´s this for 2.35:1 preset:
        case 0xC0F06804: return 0x748018A;

        case 0xC0F06010: return 0x1C9;
        case 0xC0F06008: return 0x1C901C9;
        case 0xC0F0600C: return 0x1C901C9;

        case 0xC0F0713c: return 0x755;


You could try changing C0F0713c to the same as beginning of 0x748. So change it to:
        case 0xC0F0713c: return 0x748;
If still getting pink frames you could increase timer regs:
        case 0xC0F06010: return 0x1C9;
        case 0xC0F06008: return 0x1C901C9;
        case 0xC0F0600C: return 0x1C901C9;

This means you´ll gonna have to decrease reg 6014 to compensate back to 24 or 25 fps.


My preset in eosm code look like this as comparison example:
        case 0xC0F06804: return 0x748018A + reg_6804_width + (reg_6804_height << 16);
        case 0xC0F06014: return 0x8ec + reg_6014;
        case 0xC0F0600c: return set_25fps ? 0x2470247 - 24 + reg_6008 + (reg_6008 << 16): 0x2470247 + reg_6008 + (reg_6008 << 16);
        case 0xC0F06008: return set_25fps ? 0x2470247 - 24 + reg_6008 + (reg_6008 << 16): 0x2470247 + reg_6008 + (reg_6008 << 16);
        case 0xC0F06010: return set_25fps ? 0x247 - 24 + reg_6008: 0x247 + reg_6008;
        case 0xC0F0713c: return 0x755 + reg_713c;


I think increasing timer registry around the same as on eosm should do the trick:
        case 0xC0F0600c: return 0x2470247;
        case 0xC0F06008: return 0x2470247;
        case 0xC0F06010: return 0x247;
        case 0xC0F06014: return 0x8ec;
        case 0xC0F0713c: return 0x755;

theBilalFakhouri

Quote from: SubZeroz on October 10, 2020, 07:58:23 PM
Couple of questions:
1. Are you going to change the position of the liveview? (Like - putting it in the center?), I need to know because I plan to change the Android-App to stretch the image to the entire screen, removing the black edges (Bigger image, No flickering or black!).

2. Out of 60 seconds 3 seconds with pink flickering. Its not only in ur build, it also happened in Danne's build. Does this happen because the camera CPU is under heavy usage? (This doesnt happen in NON-HDMI), Lowering the resolution should fix it?

1- Unfortunately it's not a simple task, LiveView is very complex, we can't control this part yet, it may take weeks or months to achieve this, it won't be any time soon.

2- During my previous tests I didn't get corrupted frames in 1x3 Modes with the correct previews, I will make more tests in future, in other normal modes like 1080p or 2.5K I got some corrupted frames, it's an overhead yes when the output is 1080i which affects all builds, changing HDMI output to 720x480 probably would solve this problem, not sure how 720p output would perform.

theBilalFakhouri

It seems I missed two replies here.

Quote from: AllWashedOut on October 06, 2020, 10:18:16 PM
Thanks for the new features. Very interesting.

I'm using my 700d for streaming (using the HDMI output). I do not record to the SD card. Do settings like high resolution or dual-iso now have any benefits for HDMI output, or only for the video recorded to SD?

You're welcome

HDMI output won't be benefited from these modes regarding quality also Dual ISO (which needs to be processed in post, otherwise if you used it in streaming you will get lines in the image), as you said you will get the benefits from these modes only when recording RAW data to SD card, the best Mode for streaming using HDMI is the normal 1080p.

Quote from: Morfeus77 on October 08, 2020, 02:53:04 PM
Hi to everyone , thanks for you hard work. About 48fps record I have some dudes. Please can someone post the steps for a right configuration. Should I change the resolution in canon menu? Thanks for your attention

Hello, thanks

Set video mode to 720p @ 60 FPS (NTSC) from Canon Menu, then enable "Crop mode V2" and do the following:
https://i.ibb.co/NSGfybb/3x3-48-FPS.png



Then press Menu button twice to apply the new settings, this will give 1736x868 2:1 AR @ 48 FPS in 3x3 Binning mode, the preview would be stretched!
- You can increase Y resolution more, but you may get corrupted frames.

Danne

Quote from: theBilalFakhouri on October 11, 2020, 12:15:53 PM
2- During my previous tests I didn't get corrupted frames in 1x3 Modes with the correct previews,
Do try my last suggestion. Also match 713c with 6804. Typically what will solve pink frame issues.

SubZeroz

Thanks Danne.

Bilal is there any chance you'll test this?

I'll get an environment ready to compile but it would take me some time.

_______________________________________

I Have a special version of the Android App which should suites the last build.
In this one when you open the App you'll see the same screen as the Camera LiveView, but when you'll single-press the screen it would enlarge only portion of the screen - where the real image is (And not black edges etc')

I Currently use this with HDMI-INPUT 1920x1080, and 4.3k preset. I'm not sure how this will look with the other modes.

But it's really cool that you can see a big preview :-)

https://drive.google.com/file/d/1lGLnwsvirNw-rz3AAu5oJS0ZvhWwNOlY

IBIRRU

Hi Bilal, is it possible to add a preset for "full resolution liveview 1:1) in your custom crop_rec module for 700D?

I tried to use crop_rec new but the preview in 5x is not usable and it stop working immediately after the start also if I reduce fps to 4.

I would try to take a video of the full moon at 1600 mm of FL to obtain a "mineral moon" picture.

Thanks for your great work

Fabio
EOS 700D 1.1.5, EOS 500D

Morfeus77

Quote from: theBilalFakhouri on October 11, 2020, 12:51:04 PM
It seems I missed two replies here.

You're welcome

HDMI output won't be benefited from these modes regarding quality also Dual ISO (which needs to be processed in post, otherwise if you used it in streaming you will get lines in the image), as you said you will get the benefits from these modes only when recording RAW data to SD card, the best Mode for streaming using HDMI is the normal 1080p.

Hello, thanks

Set video mode to 720p @ 60 FPS (NTSC) from Canon Menu, then enable "Crop mode V2" and do the following:
https://i.ibb.co/NSGfybb/3x3-48-FPS.png



Then press Menu button twice to apply the new settings, this will give 1736x868 2:1 AR @ 48 FPS in 3x3 Binning mode, the preview would be stretched!
- You can increase Y resolution more, but you may get corrupted frames.


Thanks a lot for the explanation, I'll will try now.
Good job


alt1

Quote from: theBilalFakhouri on September 21, 2020, 08:39:23 AM

New Focus Maps:
https://raw.githubusercontent.com/bilalfakhouri/magic-lantern/master/700D%20Focus%20Pixels%20Maps.zip
-Added 4.3K Anamorphic 1x3 Preset 1440x1836 map.

Sorry, but I don't see 1440x1836 map in this archive. The latest map here is from 2018 year.

theBilalFakhouri

In focus pixel maps we are calculating the black areas too, so:

Naming of focus pixel map  RAW resolution
Naming of focus pixel map  > RAW resolution

In your case the map you are looking for is "80000326_1512x1864.fpm", extract all the focus pixel maps in MLVApp folder, you should be fine in all crop_rec presets automatically.

-You can also use the latest MLVApp which can download all the required focus maps automatically too, or you can drag and drop the focus maps from the archive into MLVApp interface, and this will install the focus maps in MLVApp.

Original focus map created in 2018 which covers all focus pixels on the sensor, and we are using the same map for all 1x3 Binning modes (I am duplicating it), remaining thing is to identify which RAW resolution we are using now and calculate the offsets for current resolution (to match the focus pixel map with MLV file), and we can achieve this by just changing the naming of the focus pixel map to include RAW resolution + black areas, in this case the focus pixel map date will stay 2018 (renaming won't affect the date).

alt1

New Focus Maps:
https://raw.githubusercontent.com/bilalfakhouri/magic-lantern/master/700D%20Focus%20Pixels%20Maps.zip
-Added 4.3K Anamorphic 1x3 Preset 1440x1836 map.
[/quote]

Unfortunately, with 650D after extracting files into MLVAPP folder when I record 1440x1836 I have focus dots

theBilalFakhouri

Ah, I thought you are using 700D (Why not to post on 650D thread?)

Mostly all 700D focus pixels maps are identical to 650D too, in this case you need only to change the ID in focus pixel map files from 700D ID to 650D ID; from "80000326" to "80000301":

Just did it for all focus pixel maps, try these focus maps for 650D (It should work with all crop_rec presets using my 650D build):
650D Focus Pixels Maps.zip

Please let me know if these work for 650D in all presets.

alt1

Thank you very much theBilalFakhouri. All presets work fine now. Except these presets I use also not registered " 1736*696 1x1  48fps" from new Crop_Rec V2 menu and it has focus dots. Is it simple to create focus map for this preset?
 

theBilalFakhouri

You're welcome

Please provide short MLV sample for the mode you are using, you can cut it in MLVApp, two frames are enough, export it as MLV (fast pass)

I can make a simple tutorial about how to generte focus pixel map for any resolution (using Crop rec V2) for both 1x3 and 1x1 modes.

theBilalFakhouri

Quote from: IBIRRU on October 14, 2020, 03:16:00 PM
Hi Bilal, is it possible to add a preset for "full resolution liveview 1:1) in your custom crop_rec module for 700D?

I tried to use crop_rec new but the preview in 5x is not usable and it stop working immediately after the start also if I reduce fps to 4.

I would try to take a video of the full moon at 1600 mm of FL to obtain a "mineral moon" picture.

Thanks for your great work

Fabio

Sorry for the delay, I didn't use full resolution LiveView much in the past, so I spent some weeks playing with it.

I am preparing for a new build which solve ML Framing in x5 mode, and also added custom FPS in crop_new, this will allow using the full shutter speed in any framerate, from 360° to 1° angles.

Adding full resolution LiveView preset in crop_rec won't perform any better from crop_new, Canon preview would be broken in both modules, in this case you should use ML Framing (which has a problem currently in my latest build, fortunately I fixed it now, will realease a new build soon)

Guess what: Full resolution LiveView = 5208x3478 @ 5 FPS is continous in 12-bit lossless  :) , of course when using 240 MHz overclock. More info coming soon.

IBIRRU

Great news !!

Many thanks Bilal!! :D

I will wait the next relaease.
EOS 700D 1.1.5, EOS 500D

pteichner

Hey guys, could you point me to the latest mostly stable build that included the sd_uhs mod please. Also what can you achieve on the 700D? Is 240MHz stable? It's been working on on my 6D, need a B-roll camera and I've got a 700D lying around.

CameraGobbl

Wondering if someone can help me.

I studied and was into filmmaking about a decade ago, and am looking to get back into it. First off, though, I want to get better at photography, so I'm in the market for a very cheap but capable DSLR, and I'm looking at used Rebels and I might be able to get a pretty good deal on a 700D.

I'm also quite interested in using this camera as a low budget cinema camera down the line with ML, though I know it takes a bit of learning and tweaking. I'm fine with that. I've seen some great images come out of both the EOS M and the Canon 700D using ML RAW. The RAW excites me because more than 4k, what I want is something with no compression and higher dynamic range and bit depth. But I'm not completely sure of the 700D's capabilities with ML, so let me just ask some quick questions.

1. Since the EOSM and 700D have the same sensor and processor, can the 700D create the same quality of video I see on EOS M videos like from Zeek's channel?

2. I know ML won't work miracles. I don't care about true 4k or slow mo. But I'd like something stable, RAW, and around 1080p true resolution (I want to shoot 4:3 too, so 1440 x 1080 would be great).

tl;dr- I'm looking for a very cheap camera that I can practice photography on as well as shoot decent video with ML. RAW 1080p with a minimum crop to avoid aliasing (2x would be fine) is essentially what I am aiming for, and was just wondering if the 700D could do all this. If not, I might just go for a cheaper option like a used t2i.

Thanks

AllWashedOut

Could you add the option to disable 30-minute live view timeout? It's present in the 700D "Lua Fix" builds. Or perhaps it's just been renamed in this build?

Original name: Prefs tab -> "Powersave in Liveview" -> "30-minutes timer"

Walter Schulz


lightwriter

@theBilalFakhouri

Hi there!

I have a Canon 700D and a SanDisk Extreme Pro 95MB/s SDHC V30 speed class U3 32GB. Is SD Overclock at 192Mhz stable with this card?

You referred the 1x3 Mode which can be used with this configuration: 1600x2040 @ 23.976 FPS 2.35:1 AR. How can it have a 2.35 aspect ratio with  a resolution of 1600x2040? Does it have to edited in MLV app to get the correct aspect ratio?

Does the 1x3 Mode get rid of the aliasing?

theBilalFakhouri

Hello @lightwriter

Yes, 192MHz overclock is stable for Sandisk Extreme PRO 95MB/S  cards, you need to do low level format in the camera at least for once, this prevent speed drops if it were there.

You can get 1x3 1600x2040 in crop_new (Crop mode V2):

Set Binning mode to 1x3, Y resolution to 2040, FPS to 23.976, keep X resolution as default (zero)

Press Menu button twice for refreshing LiveView to apply our new settings, from mlv_lite set the resolution to 1600, Aspect ratio to 2.35:1, now you should be okay, check the resolution from mlv_lite (RAW video)

MLVApp would read the file as 1x3 Binning, and would stretch the footage automatically --> So the stretched resolution from 1600x2040 file would be after stretching 4800x2040, now it's 2.35:1 AR

The Preview would be stretched in LiveView, there is no real-time correct preview in this mode, you want to use ML Framing to check framing.

Yes there is no aliasing in 1x3 Binning, this is the huge advantage for this mode! also 1x3 Binning reduces moire patterns a lot.

AlexPace

Is it possible to get a full 16:9 ratio over the HDMI output without the black vertical sidebars at any resolution?  I mean straight out of the camera without processing.  I know the T5i can't do a full-screen 1080i, but stretching or cropping with OBS software introduces some lag that is awkward on Zoom calls.

Note: I tried Canon's EOS WebCam software that uses USB instead of HDMI but the frame rate was way too low for reasonable Zoom calls.