raspberrypi / libcamera

Other
196 stars 74 forks source link

cam: Unsupported V4L2 pixel format RPBP #146

Closed gittsumm closed 1 month ago

gittsumm commented 1 month ago

I built libcamera from source on an RPi5 8GB. Mostly works, but there's a warning:

(for background)

$ cam -l [2:15:24.713740031] [5955] INFO Camera camera_manager.cpp:284 libcamera v0.2.0 [2:15:24.729559900] [5956] INFO RPI pisp.cpp:695 libpisp version v1.0.5 999da5acb4f4 14-06-2024 (07:31:26) [2:15:24.749598606] [5956] INFO RPI pisp.cpp:1154 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/imx296@1a to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0 Available cameras: 1: 'imx296' (/base/axi/pcie@120000/rp1/i2c@88000/imx296@1a)

and then

$ cam -c 1 --capture=10 --file=cam.cap [2:24:27.034870737] [6008] INFO Camera camera_manager.cpp:284 libcamera v0.2.0 [2:24:27.050803440] [6009] INFO RPI pisp.cpp:695 libpisp version v1.0.5 999da5acb4f4 14-06-2024 (07:31:26) [2:24:27.069650720] [6009] INFO RPI pisp.cpp:1154 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/imx296@1a to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0 [2:24:27.069924720] [6008] WARN V4L2 v4l2_pixelformat.cpp:344 Unsupported V4L2 pixel format RPBP Using camera /base/axi/pcie@120000/rp1/i2c@88000/imx296@1a as cam0 [2:24:27.070256443] [6008] INFO Camera camera.cpp:1183 configuring streams: (0) 800x600-XRGB8888 [2:24:27.070460554] [6009] INFO RPI pisp.cpp:1450 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx296@1a - Selected sensor format: 1456x1088-SBGGR10_1X10 - Selected CFE format: 1456x1088-PC1B cam0: Capture 10 frames 8668.059239 (0.00 fps) cam0-stream0 seq: 000007 bytesused: 1920000 8668.125784 (15.03 fps) cam0-stream0 seq: 000008 bytesused: 1920000 8668.192603 (14.97 fps) cam0-stream0 seq: 000009 bytesused: 1920000 8668.259234 (15.01 fps) cam0-stream0 seq: 000010 bytesused: 1920000 8668.326025 (14.97 fps) cam0-stream0 seq: 000011 bytesused: 1920000 8668.392638 (15.01 fps) cam0-stream0 seq: 000012 bytesused: 1920000 8668.459591 (14.94 fps) cam0-stream0 seq: 000013 bytesused: 1920000 8668.526039 (15.05 fps) cam0-stream0 seq: 000014 bytesused: 1920000 8668.592766 (14.99 fps) cam0-stream0 seq: 000015 bytesused: 1920000 8668.659610 (14.96 fps) cam0-stream0 seq: 000016 bytesused: 1920000 ...

The frames are captured (I don't know how to play them back yet maybe due to formatting or just my lack of experience and my attempt at 'vlc cam.cap' just gives a black screen for a few seconds), but there's this from above:

[2:24:27.069924720] [6008] WARN V4L2 v4l2_pixelformat.cpp:344 Unsupported V4L2 pixel format RPBP

Is this a problem at all, or is it just that the imx296 (RPI official global-shutter camera) is too new and there's still development work to be done to support it? Are there any side-effects to be aware of or that need to be mitigated? Would the HQ imx477 camera have this warning? I just want a decent camera that works...

naushir commented 1 month ago

This error is inconsequential, and you can safely ignore it. In later releases, I'll remove the log point completely.