== imx415 60fps

Hi @ken

I recently noticed Radxa updated the driver and the tuning file for 60 FPS (1920x1080).
I tried it, but unfortunately, the tuning file imx415_RADXA-CAMERA-4K_DEFAULT.json is not working properly. Maybe you did not push the latest fix?

Note:
i can get 60 fps without the tuning file.

$ sudo apt update
$ sudo apt reinstall camera-engine-rkaiq
$ md5sum /usr/lib/librkaiq.so
b3895d63dc47045bc6e0e99dd440de66 /usr/lib/librkaiq.so

@ken
Please point to the source code you are using for the engine. I can’t pull your deb packages, it breaks my setup. I need to build the engine natively.

FYI, 3840x2160 mode works fine, 1920x1080 mode does not.

For Kernel6.1
https://github.com/radxa-pkg/rockchip-iqfiles/releases/download/0.2.3/rockchip-iqfiles-rk3588_0.2.3_all.deb
https://github.com/radxa-pkg/rockchip-prebuilt/releases/download/0.4.1-linux-6.1-stan-rkr1-5/camera_engine_rkaiq_rk3588_arm64.deb

I have 60 fps fully working: Radxa Camera 4K (IMX415) at a real 4K@60 on ROCK 5B – out-of-tree driver, no kernel rebuild

I tested your driver on Rock 5C-lite (8 cores unlocked / missing AVS1 decoder). I get ~55 fps (3840x2160) displayed on screen, but unfortunately the image is dark with the current iqfile (the one which works with 30fps).

I built in-tree kernel module driver, 6.1.43-rk3588-v4l2-cam. Built only the kernel.

Which iqfile and kernel version are you running? Can you please attach the iqfile that runs fine with UHD 60fps?

Update:

I forgot to rename the iqfile to imx415-60fps.

And thanks for your work!

I use:

gst-launch-1.0 -e \
  v4l2src device=/dev/video11 io-mode=dmabuf \
  ! video/x-raw,format=UYVY,width=3840,height=2160,framerate=60/1 \
  ! queue max-size-buffers=2 max-size-bytes=0 max-size-time=0 \
  ! mpph265enc rc-mode=cbr bps=35000000 gop=60 max-pending=4 \
  ! h265parse ! matroskamux ! filesink location=4k60.mkv

This results in true 60 fps on my Rock 5B

I use a slightly different iqfile. Renaming it to correct name solved it in my case. Rock 5C lite has no GPU (or at least a working one, but luckily my GPU works which is good for testing, it oscillates a bit) and some missing encoder but H265 looks fine. CPU% 70~80 (rendering 4k) and 12% if encoding.

Just for the record:

libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
mpp[2576]: mpp_info: mpp version: ac16b2c author: Yanjun Liao 2025-07-31 fix[h264e_api_v2]: Fix bit_real calc in skip mode
mpp[2576]: H265D_PARSER: No start code is found.
Input #0, matroska,webm, from ‘4k60.mkv’:
Metadata:
encoder : GStreamer matroskamux version 1.20.3
creation_time : 2026-10-05T12:11:56.428278Z
Duration: 00:00:06.53, start: 0.122000, bitrate: 28671 kb/s
Stream #0:0(eng): Video: hevc, yuv420p(pc, bt709, progressive), 3840x2160, SAR 1:1 DAR 16:9, 60 fps, 60 tbr, 1k tbn, 1k tbc (default)
Metadata:
title : Video
BITSPS : 34176221
mpp[2576]: mpp_info: mpp version: ac16b2c author: Yanjun Liao 2025-07-31 fix[h264e_api_v2]: Fix bit_real calc in skip mode
mpp[2576]: H265D_PARSER: No start code is found.

1 Like

:eyes:

If interested in 90 fps: rk3588-imx415-4k60/4k90 at main · bambooCZ/rk3588-imx415-4k60 · GitHub

Feedback with my rock 5c-lite setup:

a) It works, most of the times!

b) First time running and grabbing frames gives some csi errors, just like described in 1188 Mhz

v4l2-ctl -d /dev/video11 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=4 --stream-skip=500 --stream-count=1 --stream-to=/dev/null
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 63.62 fps, dropped buffers: 17
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 62.68 fps, dropped buffers: 6
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 63.46 fps, dropped buffers: 11
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 63.10 fps, dropped buffers: 6
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 62.45 fps, dropped buffers: 6
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 63.37 fps, dropped buffers: 6
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 62.20 fps, dropped buffers: 6
<<<<<<<^C

c) Second time running (without booting) and grabbing frames:

v4l2-ctl -d /dev/video11 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=4 --stream-skip=500 --stream-count=1 --stream-to=/dev/null
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 90.04 fps, dropped buffers: 5
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 90.03 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 90.03 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 90.03 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 90.03 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Forum always resize image to 1920x1080 and can’t render faster than this:

d) running third time, csi errors…

Update:

Encoding 90 fps, and image looks normal (better than rendered on screen)

libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
mpp[7212]: mpp_info: mpp version: ac16b2c author: Yanjun Liao 2025-07-31 fix[h264e_api_v2]: Fix bit_real calc in skip mode
mpp[7212]: H265D_PARSER: No start code is found.
Input #0, matroska,webm, from ‘4k90_NV12.mkv’:
Metadata:
encoder : GStreamer matroskamux version 1.20.3
creation_time : 2026-10-05T23:54:09.280948Z
Duration: 00:00:07.53, start: 0.116000, bitrate: 14252 kb/s
Stream #0:0(eng): Video: hevc, yuv420p(pc, bt709, progressive), 3840x2160, SAR 1:1 DAR 16:9, 90 fps, 90 tbr, 1k tbn, 1k tbc (default)
Metadata:
title : Video
BITSPS : 34081961
mpp[7212]: mpp_info: mpp version: ac16b2c author: Yanjun Liao 2025-07-31 fix[h264e_api_v2]: Fix bit_real calc in skip mode
mpp[7212]: H265D_PARSER: No start code is found.