Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Camera board • Re: How to make the OV9281 camera output an 8-bit image on the Raspberry Pi 5?

$
0
0
I haven't found a moment until now to try this out

Configuring for 10bit 1280x800

Code:

media-ctl -d /dev/media0 -rmedia-ctl -d /dev/media0 -l ''\''csi2'\'':4 -> '\''rp1-cfe-csi2_ch0'\'':0 [1]'media-ctl -d /dev/media0 -V ''\''ov9281 10-0060'\'':0 [fmt:Y10_1X10/1280x800 field:none colorspace:raw]'media-ctl -d /dev/media0 -V ''\''csi2'\'':0 [fmt:Y10_1X10/1280x800 field:none colorspace:raw]' media-ctl -d /dev/media0 -V ''\''csi2'\'':4 [fmt:Y10_1X10/1280x800 field:none colorspace:raw]' v4l2-ctl -v width=1280,height=800,pixelformat=Y10Pv4l2-ctl --stream-mmap=3 --stream-count=1000 --stream-to=/dev/null
Configuring for 8 bit 1280x800

Code:

media-ctl -d /dev/media0 -rmedia-ctl -d /dev/media0 -l ''\''csi2'\'':4 -> '\''rp1-cfe-csi2_ch0'\'':0 [1]'media-ctl -d /dev/media0 -V ''\''ov9281 10-0060'\'':0 [fmt:Y8_1X8/1280x800 field:none colorspace:raw]'media-ctl -d /dev/media0 -V ''\''csi2'\'':4 [fmt:Y8_1X8/1280x800 field:none colorspace:raw]' media-ctl -d /dev/media0 -V ''\''csi2'\'':0 [fmt:Y8_1X8/1280x800 field:none colorspace:raw]'v4l2-ctl -v width=1280,height=800,pixelformat=GREYv4l2-ctl --stream-mmap=3 --stream-count=1000 --stream-to=/dev/null
You can also use qv4l2 to display the 8bit format in a window. It doesn't know how to decode Y10P.

Statistics: Posted by 6by9 — Fri Oct 17, 2025 12:31 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles