Radxa 4K Camera Issues

Hello,

Could someone provide some guidance on using the 4k camera with the Radxa 5C to record video? I installed ffmpeg-rockchip and am running the debian cli image provided by Radxa from the downloads page for the 5C.

I’ve tried the command from https://docs.radxa.com/en/rock5/rock5c/app-development/rtsp?target=ffmpeg which results in weird artefacts and the video is very choppy

The command from here https://docs.radxa.com/en/rock5/rock5c/getting-started/interface-usage/mipi-csi doesn’t have any strange artefacts, however there is a-lot of ghosting as though frames are overlayed on eachother for around 10s.

Thank you.

ubuntu-rockchip with kernel v5.10 works, I’ve also tested it on rock 5b+ with kernel v6.1 and compiled mpp with the instructions from ffmpeg-rockchip and that works as well. It would be nice if Radxa included this in their docs.

After further testing it seems there is still slight ghosting which distorts the image. I’ve tried it on 6.1, 5.10, on both 5c and 5b+. @radxa could you please provide some instructions for recording / streaming 4k30fps video with the 4k camera? Thank you.

@ChenJaly please check if this can be done on our latest test image.

Hi @RandomMaestro, i am using the t1 image on rock 5b and everything is normal, please try this image on rock 5c: https://github.com/radxa-build/rock-5c/releases/download/rsdk-b2/rock-5c_bookworm_kde_b2.output.img.xz

@RandomMaestro

The ghosting issue has been present since forever. At least in my experience.

I had asked about it multiple times on this forum and even texted Allnet China about it (they ghosted me half a year ago, no pun intended).

Only in my case ghosting has always been pretty heavy.

Sorry to say that, but they ain’t gonna help 'ya. Nobody’s gonna help 'ya. As it is always the case in tech forums, it’s a “you” problem.

Or they simply have some personal beef with me in particular and refuse to help only me. I dunno, lol.

2 Likes

@RandomMaestro, @stardust
Out of curiosity, can you take a print screen of the issue?

I have some ghosting while trying to calibrate IMX477, in some lighting conditions.

With the KDE image same issue, except the output is very dark so even worse than the previous attempts. Could this be related to 5b+/5c effect the 5b?

It’s very annoying, I suspect it’s related to the 5b+/5c and works with 5b. If you have enough ram you could try software encode 1080p60fps.

Hi @RandomMaestro,
Could you please describe the phenomenon of ghosting in more detail? Maybe send pictures and annotate them.

Here is the video: https://streamable.com/yidufx
Original was recorded 4k30fps with ffmpeg. cmd:

ffmpeg -f v4l2 -i /dev/video11 -vf "fps=30" -s 3840x2160 -c:v h264_rkmpp -rc_mode AVBR -b:v 20M -minrate 10M -maxrate 40M -profile:v main -level 5.1 out.mp4

@avaf
The camera is not focused, but the issue is pretty obvious.

That’s exactly the problem i had while trying to tune the IMX477.
This usually happens in indirect light conditions (indoors). I haven’t been able to fix this, there aren’t enough documents.

Most likely, your iqfile for IMX415 is mismatched.

That sucks…

I only got the camera just for testing to see if it could replace an IP camera and reduce costs, but it looks like it won’t work. I wonder if the issue is present with the rpi camera v2? I don’t have a cable to test so might have to order.

Did you try the official radxa image?

I’m using the same image @ChenJaly asked to try.

Not sure it helps, but i have Rock 5C lite with IMX415 that works perfectly, not a single issue (kernel 6.1). tested the rpi camera v2 as well, but nothing compares to the quality of Sony sensors in most cases.
And Rock 5C with IMX477, with occasional ghosting.

Custom image to suit my needs, not the official image.

How did you record the video via ffmpeg or gst? Could it possibly be an issue with the camera?

i used both and some other means, this is not an issue of ffmpeg or gst. Unfortunately, i chose IMX477 for my Rock 5C (expecting great results but 10 fps is frustrating) and IMX415 for Rock 5C lite which is a tiny beast. I lost countless days/hours trying to figure that out and did not exchange the sensors between them, so i can’t tell you.

If i were you i would ask radxa for the hash of imx415 file and /usr/bin/rkaiq_3A_server and compare to yours.

1 Like

Interesting, thank you. Did you use the arducam module for imx477 with the radxa fpc cable?

rpi module + radxa cable.