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

General discussion • read from old camera in raspberry pi 5

$
0
0
I installed Ubuntu 24 on a Raspberry Pi 5. I want to read data from the Pi NoIR IMX219PQ Sony camera but have been unable to do so.

I added start_x=1 at the end of /boot/firmware/config.txt, but I did not enable the legacy camera mode from raspi-config because the last time I enabled it and rebooted Ubuntu, I encountered an error:

Boot error: Code 7 - Kernel or device tree not found or is not compatible.

After this, Ubuntu failed to load.

Below is the output of my commands. Can anyone help me?

v4l2-ctl --list-devices
pispbe (platform:1000880000.pisp_be):
/dev/video20
/dev/video21
/dev/video22
/dev/video23
/dev/video24
/dev/video25
/dev/video26
/dev/video27
/dev/video28
/dev/video29
/dev/video30
/dev/video31
/dev/video32
/dev/video33
/dev/video34
/dev/video35
/dev/video36
/dev/video37
/dev/media2
/dev/media3

rp1-cfe (platform:1f00110000.csi):
/dev/video0
/dev/video1
/dev/video2
/dev/video3
/dev/video4
/dev/video5
/dev/video6
/dev/video7
/dev/media0

rpivid (platform:rpivid):
/dev/video19
/dev/media1

fatemeeak@fatemeeak-desktop:~$ v4l2-ctl --device=/dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'YUYV' (YUYV 4:2:2)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[1]: 'UYVY' (UYVY 4:2:2)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[2]: 'YVYU' (YVYU 4:2:2)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[3]: 'VYUY' (VYUY 4:2:2)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[4]: 'RGBP' (16-bit RGB 5-6-5)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[5]: 'RGBR' (16-bit RGB 5-6-5 BE)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[6]: 'RGBO' (16-bit A/XRGB 1-5-5-5)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[7]: 'RGBQ' (16-bit A/XRGB 1-5-5-5 BE)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[8]: 'RGB3' (24-bit RGB 8-8-8)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[9]: 'BGR3' (24-bit BGR 8-8-8)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[10]: 'RGB4' (32-bit A/XRGB 8-8-8-8)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[11]: 'BA81' (8-bit Bayer BGBG/GRGR)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[12]: 'GBRG' (8-bit Bayer GBGB/RGRG)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[13]: 'GRBG' (8-bit Bayer GRGR/BGBG)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[14]: 'RGGB' (8-bit Bayer RGRG/GBGB)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[15]: 'pBAA' (10-bit Bayer BGBG/GRGR Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[16]: 'pGAA' (10-bit Bayer GBGB/RGRG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[17]: 'pgAA' (10-bit Bayer GRGR/BGBG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[18]: 'pRAA' (10-bit Bayer RGRG/GBGB Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[19]: 'pBCC' (12-bit Bayer BGBG/GRGR Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[20]: 'pGCC' (12-bit Bayer GBGB/RGRG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[21]: 'pgCC' (12-bit Bayer GRGR/BGBG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[22]: 'pRCC' (12-bit Bayer RGRG/GBGB Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[23]: 'pBEE' (14-bit Bayer BGBG/GRGR Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[24]: 'pGEE' (14-bit Bayer GBGB/RGRG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[25]: 'pgEE' (14-bit Bayer GRGR/BGBG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[26]: 'pREE' (14-bit Bayer RGRG/GBGB Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[27]: 'BYR2' (16-bit Bayer BGBG/GRGR)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[28]: 'GB16' (16-bit Bayer GBGB/RGRG)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[29]: 'GR16' (16-bit Bayer GRGR/BGBG)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[30]: 'RG16' (16-bit Bayer RGRG/GBGB)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[31]: 'PC1R' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[32]: 'PC1B' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[33]: 'PC1g' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[34]: 'PC1G' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[35]: 'GREY' (8-bit Greyscale)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[36]: 'Y10P' (10-bit Greyscale (MIPI Packed))
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[37]: 'Y12P' (12-bit Greyscale (MIPI Packed))
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[38]: 'Y14P' (14-bit Greyscale (MIPI Packed))
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[39]: 'Y16 ' (16-bit Greyscale)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[40]: 'PC1M' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1

ffplay -f v4l2 -input_format yuyv422 -video_size 640x480 -framerate 30 -i /dev/video0
ffplay version 6.1.1-3ubuntu5 Copyright (c) 2003-2023 the FFmpeg developers
built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
[video4linux2,v4l2 @ 0xffff54000c20] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
[video4linux2,v4l2 @ 0xffff54000c20] Time per frame unknown
[video4linux2,v4l2 @ 0xffff54000c20] ioctl(VIDIOC_STREAMON): Invalid argument
/dev/video0: Invalid argument

Statistics: Posted by fatemeeak — Sat Mar 29, 2025 1:10 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles