Rockchip supports the latest gstreamer on Debian sid but you need to apply their patches.
Here is the patch set: https://github.com/JeffyCN/rockchip_mirrors/tree/buildroot/package/gstreamer1
Please, don’t assume isp doesn’t work correctly in ubuntu, you are going in the wrong direction with the image you are using (which one?).
It won’t tell you that is not working but you can see all parameters are passed to mpp:
rock5b mpp[2730]: mpp_enc: MPP_ENC_SET_RC_CFG bps 8000000 [7500000 : 8500000] fps [30:30] gop 5
rock5b mpp[2730]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [640:480] stride [640:480]
rock5b mpp[2730]: mpp_enc: mode cbr bps [7500000:8000000:8500000] fps fix [30/1] -> fix [30/1] gop i [5] v [0]
rock5b rkaiq[319]: DBG: /dev/media1: wait stream start event success ...
rock5b kernel: rkisp_hw fdcb0000.rkisp: set isp clk = 594000000Hz
rock5b rkaiq[319]: DBG: /dev/media1: wait stream stop event...
rock5b kernel: rkcif-mipi-lvds2: stream[0] start streaming
And this is on Ubuntu 22.04, you can check if it worked:
out_640x480.h264.zip (804.3 KB)
BTW, have you seen the latest work in FFmpeg encoder?
Here the gstreamer log with kernel rkr4.1:
rock5b mpp[3051]: mpp_enc: MPP_ENC_SET_RC_CFG bps 8000000 [7500000 : 8500000] fps [30:30] gop 5
rock5b mpp[3051]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [640:480] stride [640:480]
rock5b mpp[3051]: mpp_enc: mode cbr bps [7500000:8000000:8500000] fps fix [30/1] -> fix [30/1] gop i [5] v [0]
rock5b kernel: rkisp_hw fdcb0000.rkisp: set isp clk = 594000000Hz
rock5b rkaiq[319]: DBG: /dev/media1: wait stream start event success ...
rock5b rkaiq[319]: DBG: /dev/media1: wait stream stop event...
rock5b kernel: rkcif-mipi-lvds2: stream[0] start streaming
rock5b kernel: rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream on, src_sd: 000000000731bd23, sd_name:rockchip-csi2-dphy0
rock5b kernel: rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream ON
rock5b kernel: rockchip-csi2-dphy0: dphy0, data_rate_mbps 892
rock5b kernel: rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:1, dphy0
rock5b kernel: rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:1, dphy0
rock5b kernel: imx415 3-001a: s_stream: 1. 3864x2192, hdr: 0, bpp: 10
rock5b kernel: imx415 3-001a: set vblank 0x3a vts 2250
rock5b kernel: imx415 3-001a: set exposure(shr0) 225 = cur_vts(2250) - val(2025)
rock5b kernel: imx415 3-001a: set analog gain 0x36
rock5b kernel: imx415 3-001a: set analog gain 0x35
rock5b kernel: imx415 3-001a: set analog gain 0x33
rock5b kernel: imx415 3-001a: set analog gain 0x32
rock5b kernel: imx415 3-001a: set analog gain 0x31
rock5b kernel: imx415 3-001a: set analog gain 0x30
rock5b kernel: rkcif-mipi-lvds2: stream[0] start stopping, total mode 0x2, cur 0x2
rock5b kernel: rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream off, src_sd: 000000000731bd23, sd_name:rockchip-csi2-dphy0
rock5b kernel: rockchip-mipi-csi2 fdd30000.mipi2-csi2: stream OFF
rock5b kernel: rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream_stop stream stop, dphy0
rock5b kernel: rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:0, dphy0
rock5b kernel: rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:0, dphy0
rock5b kernel: imx415 3-001a: s_stream: 0. 3864x2192, hdr: 0, bpp: 10
rock5b kernel: rkcif-mipi-lvds2: stream[0] stopping finished, dma_en 0x0
rock5b rkaiq[319]: DBG: /dev/media1: wait stream stop event success ...
rock5b rkaiq[319]: DBG: device manager start
rock5b rkaiq[319]: DBG: rkisp_init engine succeed
rock5b rkaiq[319]: DBG: /dev/media1: wait stream start event...
rock5b kernel: rkisp rkisp0-vir0: first params buf queue
rock5b kernel: rkisp0-vir0: waiting on params stream off event timeout