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

Graphics, sound and multimedia • Re: RPI 5 get RAW16 from FPGA using dummy_sensor

$
0
0
Getting closer! Think I've got most the media controller setup figured out from other posts. I'll show all the steps I went through once I get any sort of image out of this thing.

Code:

v4l2-ctl -v width=1280,height=800,pixelformat='Y16 '
And media controller formats based on @6by9 suggestion above. However these formats are Bayer not greyscale. Likely need to change the input format?

Code:

media-ctl -d /dev/media0 -V ''\''csi2'\'':0 [fmt:SBGGR16_1X16/1280x800 field:none field:none]'media-ctl -d /dev/media0 -V ''\''csi2'\'':4 [fmt:SBGGR16_1X16/1280x800 field:none field:none]'
streaming command:

Code:

XXXX@raspberrypi:~ $ v4l2-ctl --verbose -d /dev/video0 --set-fmt-video=width=1280,height=800,pixelformat='Y16 ' --stream-mmap=4 --stream-skip=3 --stream-count=2 --stream-to=hdmiin.yuv --stream-pollVIDIOC_QUERYCAP: okVIDIOC_G_FMT: okVIDIOC_S_FMT: okFormat Video Capture:Width/Height      : 1280/800Pixel Format      : 'Y16 ' (16-bit Greyscale)Field             : NoneBytes per Line    : 2560Size Image        : 2048000Colorspace        : RawTransfer Function : NoneYCbCr/HSV Encoding: ITU-R 601Quantization      : Full RangeFlags             : VIDIOC_REQBUFS returned 0 (Success)VIDIOC_QUERYBUF returned 0 (Success)VIDIOC_QUERYBUF returned 0 (Success)VIDIOC_QUERYBUF returned 0 (Success)VIDIOC_QUERYBUF returned 0 (Success)VIDIOC_QBUF returned 0 (Success)VIDIOC_QBUF returned 0 (Success)VIDIOC_QBUF returned 0 (Success)VIDIOC_QBUF returned 0 (Success)VIDIOC_STREAMON returned -1 (Invalid argument)
Based on "If the various subdevices disagree on the format, then you'll get an error from VIDIOC_STREAMON" https://forums.raspberrypi.com/viewtopi ... 5#p2035822

Is the Bayer vs. greyscale the issue here or what format might work here? Don't need to display the full 16 bit greyscale. Just want to see something besides errors would be nice.

EDIT: Also from dmesg:

Code:

[17785.465107] rp1-cfe 1f00128000.csi: Format mismatch![17785.465115] rp1-cfe 1f00128000.csi: Failed to start media pipeline: -22

Statistics: Posted by RLC — Thu Apr 24, 2025 6:21 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles