Rpi camera IMX477

From Rsewiki
Revision as of 18:24, 10 October 2026 by Jca (talk | contribs) (Created page with "Back to ricbot == Using openCV and IMX477 Pi camera in Debian tixie == From Claude: Install: sudo apt install gstreamer1.0-libcamera gstreamer1.0-plugins-base gstreamer1.0-plugins-good libopencv-dev gstreamer1.0-tools Test with gst-inspect-1.0 libcamerasrc gst-launch-1.0 libcamerasrc ! videoconvert ! autovideosink Gives local@Sofia:~/svn/ricbot/cam_mqtt/build $ gst-launch-1.0 libcamerasrc ! videoconvert ! autovideosink Setting pipeline to PAUSED ... [2:52:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Back to ricbot

Using openCV and IMX477 Pi camera in Debian tixie

From Claude:

Install:

sudo apt install gstreamer1.0-libcamera gstreamer1.0-plugins-base gstreamer1.0-plugins-good libopencv-dev gstreamer1.0-tools

Test with

gst-inspect-1.0 libcamerasrc
gst-launch-1.0 libcamerasrc ! videoconvert ! autovideosink

Gives

local@Sofia:~/svn/ricbot/cam_mqtt/build $ gst-launch-1.0 libcamerasrc ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
[2:52:21.505489976] [22408]  INFO Camera camera_manager.cpp:340 libcamera v0.7.2+rpt20260817
[2:52:21.516320790] [22419]  INFO RPI pisp.cpp:725 libpisp version v1.7.0 07-08-2026 (09:22:13)
[2:52:21.526665459] [22419]  INFO IPAProxy ipa_proxy.cpp:184 Using tuning file /usr/share/libcamera/ipa/rpi/pisp/imx477.json
[2:52:21.534459901] [22419]  INFO Camera camera_manager.cpp:223 Adding camera '/base/axi/pcie@1000120000/rp1/i2c@80000/imx477@1a' for pipeline handler rpi/pisp
[2:52:21.534487012] [22419]  INFO RPI pisp.cpp:1186 Registered camera /base/axi/pcie@1000120000/rp1/i2c@80000/imx477@1a to CFE  device /dev/media0 and ISP device /dev/media2 using PiSP variant BCM2712_C0
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayGBM\)\  gldisplaygbm0";
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
[2:52:21.535126582] [22419]  WARN V4L2 v4l2_pixelformat.cpp:346 Unsupported V4L2 pixel format Nc30
[2:52:21.535149841] [22419]  WARN V4L2 v4l2_pixelformat.cpp:346 Unsupported V4L2 pixel format Nc12
New clock: GstSystemClock
[2:52:22.074110521] [22422]  INFO Camera camera.cpp:1216 configuring streams: (0) 1332x990-SBGGR16/RAW
INFO:
../src/gstreamer/gstlibcamerasrc.cpp(617): gst_libcamera_src_negotiate (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:

CameraConfiguration::validate() returned CameraConfiguration::Adjusted [2:52:22.074298279] [22419] INFO RPI pisp.cpp:1502 Sensor: /base/axi/pcie@1000120000/rp1/i2c@80000/imx477@1a - Selected sensor format: 1332x990-SBGGR12_1X12/RAW - Selected CFE format: 1332x990-BYR2/RAW

ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Internal data stream error.
Additional debug info:
../src/gstreamer/gstlibcamerasrc.cpp(903): gst_libcamera_src_task_enter (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.539478398
Setting pipeline to NULL ...
Freeing pipeline ...