Skip to content

RPI5 - Omnivision 9281 8 Bit Mode #126

@automaton123456

Description

@automaton123456

Hi,

I have been getting issues when trying to get the output of the camera working in 8 bit mode at 640:400 resolution, both through Python and the command line. Everything works fine with 10bit, but as soon as I try rpicam-raw 640:400:8:P or set the bit_depth as 8bit in Python I start getting Broken Pipe errors. I get no other errors in my logs

Here are my listed modes

rpicam-hello --list-cameras
Available cameras

0 : ov9281 [1280x800 10-bit MONO] (/base/axi/pcie@120000/rp1/i2c@88000/ov9281@60)
Modes: 'R8' : 640x400 [309.79 fps - (0, 0)/1280x800 crop]
1280x720 [171.79 fps - (0, 0)/1280x720 crop]
1280x800 [143.66 fps - (0, 0)/1280x800 crop]
'R10_CSI2P' : 640x400 [247.83 fps - (0, 0)/1280x800 crop]
1280x720 [137.42 fps - (0, 0)/1280x720 crop]
1280x800 [114.93 fps - (0, 0)/1280x800 crop]

Am I miss-understanding how this all works. Does setting bit depth to 8 correspond to the R8 mode? In this example what mode is the app actually selecting? R10_CSI2P,640x400/0?

rpicam-hello --camera 0 --mode 640:480:8:P
[0:07:13.057859596] [2369] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
[0:07:13.074079445] [2370] INFO RPI pisp.cpp:662 libpisp version v1.0.4 6e3a53d137f4 04-03-2024 (18:25:28)
[0:07:13.075956320] [2370] WARN CameraSensorProperties camera_sensor_properties.cpp:274 No static properties available for 'ov9281'
[0:07:13.076385548] [2370] WARN CameraSensorProperties camera_sensor_properties.cpp:276 Please consider updating the camera sensor properties database
[0:07:13.080948308] [2370] INFO RPI pisp.cpp:1121 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/ov9281@60 to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0
Made X/EGL preview window
Mode selection for 640:400:12:P
R8,640x400/0 - Score: 2000
R8,1280x720/0 - Score: 2306.67
R8,1280x800/0 - Score: 2260
R10_CSI2P,640x400/0 - Score: 1000
R10_CSI2P,1280x720/0 - Score: 1306.67
R10_CSI2P,1280x800/0 - Score: 1260
Stream configuration adjusted
[0:07:13.372661787] [2369] INFO Camera camera.cpp:1183 configuring streams: (0) 640x400-YUV420 (1) 640x400-MONO_PISP_COMP1
[0:07:13.372806308] [2370] INFO RPI pisp.cpp:1405 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/ov9281@60 - Selected sensor format: 640x400-Y10_1X10 - Selected CFE format: 640x400-PC1M
[0:07:13.373938174] [2374] WARN IPARPI ipa_base.cpp:1055 Could not set SHARPNESS - no sharpen algorithm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions