Add support for raspberry pi camera V3
3 Likes
I'm assuming that camera is supported in the newer bullseye raspberry OS, which the Octopi 1.0.0rc4 version is based on. You will still more than likely have to install a different streaming service on the pi, like camera-streamer or go2rtc because of the IMX chipset.
I've been 2 days trying to configure this camera for Octoprint and I've been unable, both as in the stable version as in the bullseye based nightly, I've tried different ways and solutions like the camera-streamer and I can only get it to work in the terminal, but not in Octoprint, has anyone got something else?
If you get it working in terminal I wouldn't think it would be that difficult to get working in the OctoPrint interface. You will definitely have to disable the webcamd service for starts. I know Char in the OctoPrint Discord server got it working with an IMX219 camera.
Dark360
January 13, 2023, 10:27pm
#5
This guys instructions worked for me.
what I've done!
sudo apt-get update && sudo apt-get upgrade
sudo apt install -y libcamera-dev libjpeg-dev
sudo apt install -y cmake libboost-program-options-dev libdrm-dev libexif-dev
edit
config.txt
Replace start_x=1 with dtoverlay=imx708
edit
octopi.txt
add to end of file
camera="libcamera"
camera_libcamera_options="-r 1280x720"
reboot
test libcamera with
libcamera-hello
Then use this guide:
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/OctoPrint/
skip the first pβ¦
4 Likes
Hello,
is there some update about support of raspberry pi camera V3?
I saw some note in New OctoPi Release: 1.0.0 ( Please note that OctoPi 1.0.0 does not yet include support for the new Raspberry Pi Camera v3. However, we are actively working on a webcam stack swap that will allow us to support libcamera
based cameras like that one and also newer Arducams. A test image built on top of OctoPi 1.0.0 via OctoPi-UpToDate with that should hopefully be available within the next two weeks!)
Thank you for your feedback.
I am waiting for if because i buy my first rapsberry with this cam V3.
You can find the mentioned testing build in the below issue:
opened 12:55PM - 22 Feb 23 UTC
OctoPi 1.0.0 is out, and I also have a new camera stack for you all to test!
β¦
Over the course of the past two weeks I've been setting up a CustoPiZer build script to swap the mjpg-streamer/webcamd combo on OctoPi that currently only supports the old legacy camera stack with a new camera-streamer and systemd based setup that supports libcamera (think RPiCam v3 as well as newer Arducams on top of the old ones). Some systemd magic takes care of camera detection, hotplug and even multicam support (successfully tested with two USB cameras and one RPiv3cam).
You can find the image here: https://github.com/OctoPrint/OctoPi-UpToDate/releases/tag/1.0.0-1.8.7-20230309160428. **Image last updated on 2023-03-09 @ 16:50UTC!**
Some first config docs are available here: https://faq.octoprint.org/camera-streamer-config
And finally, this is the source tree used for the build: https://github.com/OctoPrint/OctoPi-UpToDate/tree/camera-streamer
> β **Please note**
>
> This image needs to be flashed to your SD card, wiping it in the process. So if you want to keep anything on there, make a backup first! You can also create an [OctoPrint backup](https://docs.octoprint.org/en/master/bundledplugins/backup.html), download that, flash, restore from backup. There's no way to update to the contents of this image without a full reflash.
I hope to be able to merge this into the OctoPi-UpToDate main branch ASAP, after which it will become part of the OctoPi image distributed on the download page and RPi Imager, but some testing from others would certainly help here π
Please provide feedback on your experience with this image in this ticket, whether things work for you or not. Make sure to *at least* include the following:
- Everything working?
- Pi model
- used cameras
- in case of issues: related logs (`journalctl -u camera-streamer\* | pb` and share the generated paste.octoprint.org URL)
It's progressing well so far, in my opinion.
1 Like
Hi All,
Is the Raspberry cam 3 now supported in octoprint ?
thanks
The testing image is here:
opened 01:11PM - 28 Mar 23 UTC
This is a ticket to collect feedback on the latest build of the new camera stack⦠(some background on that [here](https://github.com/OctoPrint/OctoPi-UpToDate/issues/2)) for OctoPi-UpToDate, **20230328122604**. Find the image here: https://github.com/OctoPrint/OctoPi-UpToDate/releases/tag/1.0.0-1.8.7-20230328122604
Changes compared to the previous version:
- camera-streamer is now built in [another repository](https://github.com/OctoPrint/camera-streamer-archive/), packaged as a `deb` and then published on https://apt.octoprint.org. The image build now installs from that apt repo and thus makes it possible to update `camera-streamer` to a later version as necessary, e.g. for bug fixes or if new backwards incompatible libcamera versions are being released.
- latest version of camera-streamer, arguments switched from `-` to `--` accordingly
- workaround for a kernel bug in the latest `raspberrypi-kernel` package
([Compare view](https://github.com/OctoPrint/OctoPi-UpToDate/compare/e6f79fefe5c04193f9a000b11b9f035a6dd5065d...16d04a1ca78c0b232a19d516d6b19dc9193c4b7d))
Some first config docs are available here: https://faq.octoprint.org/camera-streamer-config
The source tree used for the build is here: https://github.com/OctoPrint/OctoPi-UpToDate/tree/camera-streamer
> β **Please note**
>
> This image needs to be flashed to your SD card, wiping it in the process. So if you want to keep anything on there, make a backup first! You can also create an [OctoPrint backup](https://docs.octoprint.org/en/master/bundledplugins/backup.html), download that, flash, restore from backup. There's no way to update to the contents of this image without a full reflash.
Please provide feedback on your experience with this image in this ticket, whether things work for you or not. Make sure to *at least* include the following:
- Everything working?
- Pi model
- used cameras
- in case of issues: related logs (`journalctl -u camera-streamer\* | pb` and share the generated paste.octoprint.org URL)
## Known issues:
- `--camera-{v,h}flip` are currently broken in `camera-streamer` v0.1-16-gcdb62ef (cdb62ef), see ayufan/camera-streamer#51
## Common pitfalls:
- RPiV3 camera not auto-focusing? Make sure any kind of case you've added to it is not interfering with the lens & sensor
To actually answer your question, no, not yet but apparently soon. There are still issues being worked around in the testing image. You can follow the progress at that link.