Save RAW image and video of IMX477 image sensor

Thank you Jerry.

But I need to capture the image with 4032 x 3040 @ 30fps.
I saw the v4l2 do not support this resolution

Is there any other options that I can follow?