Arducam ar0234 60 fps failed

Hi,

Setup: rpi4 4gb, Bullseye, ar0234

I can’t show/record 60fps with gst / libcamera-vid.
I got this:

Please help.

Please help to enable 60fps.

sorry for the late reply,
Can you provide test commands? We need to do some testing.

libcamera-vid -t 10000 --width 1920 --height 1080 --framerate 60 -o test.h264

Hello, we found that there is no problem after testing. The value filled in after your --height parameter is 1980, which is an unsupported format. You can try the following command

libcamera-vid -t 10000 --width 1920 --height 1080 --framerate 60 -o test.h264

you can use the command

v4l2-ctl --list-formats-ext

view supported resolution formats, we look forward to your reply.

Yes, 1080. It was typo.

But it does not work.

List formats has no FullHD resolutions (only a lot of wrong formats).

Does your driver support Rpi4 Bullseye 64bit?

On the latest Raspberry Pi systems you can use

libcamera-still --list-cameras 

view supported resolutions, Tomorrow we will test a 64-bit system, Looking forward to getting your feedback.

Thank you. Waiting you reply.

hi vsw. We tested the latest 64-bit Raspberry Pi system and found no problems. You can try lowering the resolution and look forward to the follow-up communication.

Hi, have tested again.

–framerate 60 FHD failed video with mixed yuv planes.
Sometimes 1/10 it shows normal video, but always 30 fps file.
–framerate 30 FHD sometimes has broken video.
–framerate 120 HD sometimes normal video, but file has 30 fps

Please, help to fix it. What test and info i can provide?

dmesg:

Linux number 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
[    7.871686] arducam: loading out-of-tree module taints kernel.
[    8.094222] arducam-pivariety 10-000c: firmware version: 0x10003
[    8.532997] arducam-pivariety 10-000c: Consider updating driver arducam-pivariety to match on endpoints

list-formats:

libcamera-apps build: 1b3b2e0a5c0f-intree 15-02-2022 (02:40:12)
libcamera build: v0.0.0+3416-179ef58c
pi@number:~ $ libcamera-vid --list-cameras
[0:19:23.214594807] [4371]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3416-179ef58c
[0:19:23.236986333] [4372]  WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 'arducam-pivariety'
[0:19:23.237162572] [4372]  WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[0:19:23.237250089] [4372] ERROR CameraSensor camera_sensor.cpp:551 'arducam-pivariety 10-000c': Camera sensor does not support test pattern modes.
[0:19:23.253179471] [4372] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
[0:19:23.601650411] [4372]  WARN RPI raspberrypi.cpp:1233 Mismatch between Unicam and CamHelper for embedded data usage!
[0:19:23.602182960] [4372] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:19:23.602372551] [4372]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/arducam@0c to Unicam device /dev/media2 and ISP device /dev/media3
Available cameras
-----------------
0 : arducam-pivariety [1920x1200] (/base/soc/i2c0mux/i2c@1/arducam@0c)
    Modes: 'SGRBG10_CSI2P' : 1280x720 1920x1080 1920x1200

Sorry, this happened, please send an email to [email protected], with the forum link, we will send a firmware to you update. I hope that can help you, please reply to us after sending the email so that we are more smooth comminicate. Thank you.

Email was sent. Please check it.

Thank you, please wait a moment. Our staff will send a firmware to you to update.

Our staff has sent you the new firmware, looking forward to your feedback.

Firmware_update file is for 32bit.
My Bullseye is 64bit.

Sorry, our staff made a mistake, the new update file will be sent to you soon, looking forward to your follow-up feedback.

Thank you. Waiting email.

Firmware was updated.
Now camera plays without yuv planes damage.

But h264 file parsed by ffmpeg has only 30fps for --framerate 60 both for HD and FHD modes.

Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720, 30 fps, 30 tbr, 1200k tbn, 60 tbc


Made X/EGL preview window
[0:05:08.830240014] [1902]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3416-179ef58c
[0:05:08.851985015] [1903]  WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 'arducam-pivariety'
[0:05:08.852084535] [1903]  WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[0:05:08.852121276] [1903] ERROR CameraSensor camera_sensor.cpp:551 'arducam-pivariety 10-000c': Camera sensor does not support test pattern modes.
[0:05:08.862170769] [1903] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
[0:05:09.213809521] [1903]  WARN RPI raspberrypi.cpp:1233 Mismatch between Unicam and CamHelper for embedded data usage!
[0:05:09.214344082] [1903] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:05:09.214513954] [1903]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/arducam@0c to Unicam device /dev/media1 and ISP device /dev/media2
[0:05:09.215182813] [1902]  INFO Camera camera.cpp:1028 configuring streams: (0) 1920x1080-YUV420
[0:05:09.245090029] [1903]  INFO RPI raspberrypi.cpp:751 Sensor: /base/soc/i2c0mux/i2c@1/arducam@0c - Selected sensor format: 1920x1080-SGRBG10_1X10 - Selected unicam format: 1920x1080-pgAA
[0:05:09.314634504] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Saturation = 1.000000
[0:05:09.315000897] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Contrast = 1.000000
[0:05:09.315142824] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Brightness = 0.000000
[0:05:09.315252270] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AwbMode = 0
[0:05:09.315354382] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Sharpness = 1.000000
[0:05:09.315527551] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: ExposureValue = 0.000000
[0:05:09.315690145] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AeExposureMode = 0
[0:05:09.315796535] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: FrameDurationLimits = [ 16666, 16666 ]
[0:05:09.316074667] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AeMeteringMode = 0
[0:05:09.316243688] [1910]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: NoiseReductionMode = 1

Can i record 60 fps for FHD with ar0234?
How to make tests?

Sorry for only replying now. You can try lowering the resolution to use. If you do not set the width and height, our program will choose a suitable resolution to execute.