I’m having trouble getting the Arducam HawkEye 64MP to use the sensor format I want with gstreamer and libcamerasrc. According to libcamera-hello --list-cameras, the camera can do 2312x1736 at 30fps, but my stream needs a 16:10 aspect ratio, so I need 2304x1440.
When I request 2304x1440, libcamera selects 3840x2160 as the sensor format and the stream doesn’t work (I believe that mode can’t do 30fps). I’d like to force the sensor to 2304x1440 without cropping.
[2:49:36.325587118] [11296] INFO Camera camera.cpp:1033 configuring streams: (0) 2304x1440-YUYV
[2:49:36.326355044] [11293] INFO RPI vc4.cpp:572 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 3840x2160-SBGGR10_1X10 - Selected unicam
Right now I’m working around it by using 2304x1510 and cropping 70 lines from the top/bottom, but I’d really prefer to select the sensor format directly. Is that possible?
Thanks for the detailed logs. The root cause here is that there’s no native 2304x1440 (16:10) mode on the HawkEye 64MP sensor, so when you request 2304x1440 the pipeline falls back to 3840x2160-SBGGR10_1X10. The modes listed in --list-cameras are optimized for maximum wide-angle coverage, not for 16:10.
So you have two realistic options:
Keep 2304x1510 and crop 70 lines from the top or bottom. This keeps the best image quality, but you need to do the crop in post-processing.
Custom firmware for direct 2304x1440 output without cropping. That requires a custom sensor configuration; if you want to go that route, contact us to discuss specs and timeline.
For now, 2304x1510 + crop is the supported workaround.
Quick follow-up: did the cropping approach end up working for your setup? If this remains a blocker, we’ve also tested the 108MP Motorized Focus USB 3.0 camera module on a Raspberry Pi 5 and it streams fine, so that’s an alternative hardware option to consider: https://www.uctronics.com/arducam-108mp-motorized-focus-usb-3-0-camera-module.html
I’m still testing, but I found something interesting. If I request 1280x800 through libcamerasrc, it does select the sensor format I want. The camera mode is listed as:
2312x1736 [30.00 fps - (0, 0)/9248x6944 crop]
Now I have three questions:
Does the ScalerCrop control correspond to the ROI that can be configured using libcamera-vid?
When I request 1280x800 at 30fps through libcamerasrc, the output looks pixelated if I use the sensor’s scaler crop to get 1280x800. My understanding is the scaler might first upscale the 1280x800 region to the full sensor resolution (2312x1736) and then downscale it back to 1280x800 for libcamerasrc. Is that behavior correct?
Is it possible to create a custom sensor format with resolution 1280x800 at 30fps that uses the full sensor area?
Those are good questions. I don’t have the internal scaler path details confirmed yet, so I’ll check with engineering on the ScalerCrop/ROI mapping and the upscale-then-downscale behavior for the 1280x800 case. A custom 1280x800 full-area mode would fall under the same custom firmware discussion as the 2304x1440 request.
In the meantime, the current workaround stays the same: use 2304x1510 and crop 70 lines from the top or bottom for your 16:10 stream. I’ll follow up here once I have more details on the 1280x800 scaler path.