arcadien
Posts: 1
Joined: Sat Feb 24, 2024 3:18 pm

Unable to get any pixel from imx219/Pi 4b/Bookworm

Sat Feb 24, 2024 3:50 pm

I just created an issue at the camera-streamer project but it may be a misunderstanding.

Here is my setup:
* Raspberry pi 4b 2Go
* C615 USB webcam
* Raspberry cam 2.1 (original) with imx219 sensor
* Klipper/Mainsail/crowsnest up-to-date with [Kiauh](https://github.com/dw-0/kiauh)-assisted installation.

After long readings on the internets, I succeeded streaming the C615 using the camera-streamer backend in webrtc mode. As far as i understand, it means hardware acceleration is available and activated for that device. My problem comes from the Raspberry cam.
It is detected so that hardware should be ok:

Code: Select all

15:27 $ libcamera-hello  --list-camera
Available cameras
-----------------
0 : imx219 [3280x2464 10-bit RGGB] (/base/soc/i2c0mux/i2c@1/imx219@10)
    Modes: 'SRGGB10_CSI2P' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
                             1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
                             1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
                             3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
           'SRGGB8' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
                      1640x1232 [83.70 fps - (0, 0)/3280x2464 crop]
                      1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
                      3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
By the way, streaming with Crowsnest does not work. The command line it "produces" is:

Code: Select all

$ /home/pi/crowsnest/bin/camera-streamer/camera-streamer --http-port=8080 --camera-path=/base/soc/i2c0mux/i2c@1/imx219@10 --camera-type=libcamera --camera-format=YUYV --camera-snapshot.height=1080 --camera-width=1920 --camera-height=1080 --camera-fps=30 --camera-auto_reconnect=1
When I launch that command on the terminal, i get this error:

Code: Select all

[5:04:42.729452782] [15275] ERROR V4L2 v4l2_videodevice.cpp:1697 /dev/video13[24:out]: Failed to queue buffer 0: Invalid argument
[5:04:42.729539281] [15275] ERROR RPISTREAM rpi_stream.cpp:276 Failed to queue buffer for ISP Input
I spend hours reading various interesting posts about camera models, old and new (libcamera) implementations, CMA memory, start/fixup files and so on. I tried _a lot_ of parameter combination, but never succeeded in having any output.

I put a lot of information on the issue. I would be very pleased if someone can give me some clue to help me using that camera. Thanks

Return to “Camera board”