Raspberry Pi 5 with Camera Module 3 on bookworm step-by-step
Issue #248 claims that this combination works. I followed all the suggestions in that issue but I can't get it to work. All the packages listed are installed. Would it be possible to get a step-by-step guide?
I keep getting the Invalid argument error shown below.
/home/pi/ustreamer/ustreamer -d /dev/video0 -r 640x480 -p 8001
-- INFO [22132.500 ] -- Starting PiKVM uStreamer 6.41 ...
-- INFO [22132.510 ] -- HTTP: Listening HTTP on [127.0.0.1]:8001
-- INFO [22132.510 ] -- HTTP: Starting eventloop ...
-- INFO [22132.510 ] -- Using V4L2 device: /dev/video0
-- INFO [22132.510 ] -- CAP: Using capture type: single-planar
-- INFO [22132.510 ] -- CAP: Using input channel: 0
-- INFO [22132.510 ] -- CAP: Using resolution: 640x480
-- INFO [22132.510 ] -- CAP: Using format: YUYV
-- INFO [22132.510 ] -- CAP: Querying HW FPS changing is not supported
-- INFO [22132.510 ] -- CAP: Using IO method: MMAP
-- INFO [22132.511 ] -- CAP: Requested 5 device buffers, got 5
-- ERROR [22132.511 ] -- CAP: Can't start capturing: Invalid argument
-- INFO [22132.512 ] -- CAP: Capturing stopped
Using https://github.com/ArduCAM/mjpg-streamer which has an input_libcamera.so I was able to get stills and video.
Hello. Please try this recipe: https://github.com/pikvm/ustreamer?tab=readme-ov-file#raspberry-pi-camera-example
Sup?
Sorry, was busy on another project. I believe this is the result of:
$ sudo modprobe bcm2835-v4l2 $ libcamerify ./ustreamer --host :: --encoder=m2m-image
I used script to capture the output. If there is a better way, let me know.
BTW, the examples on that page have a "$" at the beginning of each line which makes copy and paste worthless.
Probably some kind of bug in libcamerify. I can't do anything here because ustreamer only works with V4L2 devices, sorry. You should ask Raspberry support about libcamerify.