Also, a quick note.. regarding what preview resolution to use with IMX412 camera with MISP enabled..
For best quality (non-EIS applications, where the output is 16:9 aspect ratio, such as 3840x2160, 1920x1080, 1280x720), you should select 3840x2160 as the preview resolution. For EIS applications, the full frame 4040x3040 resolution should be used because it will allow more stabilization margin. selecting 3840x2160 will tell the camera to crop this region from the full frame 4040x3040, since we don't need the rest of the image.
For low latency applications, you can use input resolution of 1936x1080. Note that this is slightly non-standard (as opposed to 1920x1080 because the 1936x1080 resolution allows faster processing. So you could have input resolution of 1936x1080 and output resolution of 1920x1080, 1280x720, etc.
Alex