-
-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I'm setting up a new Pi 5 with OctoPrint—well, hopefully—but I've run into a snag. I have a Camera Module 3 attached, but the latest nightly (6-7-2024) image build isn't working out of the box.
I started debugging over in this issue: guysoft/OctoPi#823 (comment)
But rather than use that issue for rubber-duck-debugging, I'll use this issue to not pollute the OctoPi repo further, until I have more to report.
To debug, I just set up a brand new Pi 5 with a brand new Pi OS Bookworm 64-bit Lite install.
I ran apt update/upgrade, and installed the libcamera-apps suite: sudo apt install libcamera-apps -y. I rebooted, and verified I could see the camera:
pi@pistream:~ $ libcamera-still --list-cameras
Available cameras
-----------------
0 : imx708 [4608x2592 10-bit RGGB] (/base/axi/pcie@120000/rp1/i2c@88000/imx708@1a)
Modes: 'SRGGB10_CSI2P' : 1536x864 [120.13 fps - (768, 432)/3072x1728 crop]
2304x1296 [56.03 fps - (0, 0)/4608x2592 crop]
4608x2592 [14.35 fps - (0, 0)/4608x2592 crop]
Then I tried using go2rtc to stream to my browser:
wget https://github.com/AlexxIT/go2rtc/releases/download/v1.9.3/go2rtc_linux_arm64
chmod +x go2rtc_linux_arm64
---
# Put the following inside go2rtc.yaml
streams:
picam_h264: exec:rpicam-vid -t 0 --codec h264 -o -
picam_mjpeg: exec:rpicam-vid -t 0 --codec mjpeg -o -
---
# Then run go2rtc:
./go2rtc_linux_arm64
In the browser, I opened http://10.0.2.204:1984 and opened one of the two streams. I end up with a window like:
or for mjpeg:
