Unable to change resolution of Imx219 camera on CM5

I’m using imx219 raspberry pi camera on rock CM5 board and with kernel upper than 6.1 it works !

But When I make some tries, I have found that the only supported resolution is 3280x2464. When I ask for a lower resolution (ie 1920x1080), it simply scale the picture.

The bad thing about that, it is I can’t have a framerate upper than 21 FPS due to max resolution FPS limitation.
I really need to go to 30 FPS in FHD resolution as the camera is able to do and after higher rate in 640x480 but I havn’t found this resolution in the implementation of the imx219 driver in linux source code used by radxa boards.

v4l2-ctl --list-formats-ext --device /dev/video11
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture Multiplanar

        [0]: 'UYVY' (UYVY 4:2:2)
                Size: Stepwise 32x32 - 3280x2464 with step 8/8
        [1]: 'NV16' (Y/UV 4:2:2)
                Size: Stepwise 32x32 - 3280x2464 with step 8/8
        [2]: 'NV61' (Y/VU 4:2:2)
                Size: Stepwise 32x32 - 3280x2464 with step 8/8
        [3]: 'NV21' (Y/VU 4:2:0)
                Size: Stepwise 32x32 - 3280x2464 with step 8/8
        [4]: 'NV12' (Y/UV 4:2:0)
                Size: Stepwise 32x32 - 3280x2464 with step 8/8
        [5]: 'NM21' (Y/VU 4:2:0 (N-C))
                Size: Stepwise 32x32 - 3280x2464 with step 8/8
        [6]: 'NM12' (Y/UV 4:2:0 (N-C))
                Size: Stepwise 32x32 - 3280x2464 with step 8/8

To kill the rkaiq_3A_server process before switching resolutions
Then switch the resolution with this command :
media-ctl -d /dev/media0 --set-v4l2 ‘“m00_b_imx219 5-0010”:0[fmt:SRGGB10_1X10/1920x1080@10000/300000]’
Then run rkaiq_3A_server &

1 Like

Thanks for you rapid answer it is working.

But how do you tweak configuration of the ISP like AWB or denoise filter strength ?

With raspberry pi I know it is directly in the gst-launch command, I can access with the rpicamsrc to the isp configuration like “awb-mode” to be in “fluorescent” mode

Reading documentation I heard about a rkv4l2src located in gstreamer1.0-rockchip1. Unfortunately this package in bookworm-test branch doesn’t contains the right .so file
What did I miss ?

And other question, I would like to use imx219 in lower resolution like 640x480 at its maximal framerate (90FPS if I well remember). It is not included today in the imx219.c driver. Is it planned to integrate other resolutions ?