ok so currently the arducam scripts remove camera-streamer
After some further testing it looks like if you don't want to use the autofocus ability of the Arducam 16mp AF camera then this works OOTB. You just need to remember to add in the config.txt entries and hash out the AF setting in the camera streamer conf file.
To use AF then my option above works until the arducam libcamera PDAF/CDAF changes are reflected upstream to the PI libcamera implementation
Thank you so much for sharing your research!
So wait, you are saying the camera works out of the box without AF?! What version of OctoPi do I need to be running? Do I need octopi-uptodate? And what do I need to add/comment out of the config.txt?
@flipside
Update: I tried it out and the stream was there. But for some reason it was black.
I for some reason decided to try it with a newer version. After downloading I noticed, that there was no camera-streamer folder in there. Now I'm trying with the build from March 28th. What version are you using?
Do you have any idea why it could have been black?
Putting a "#" in front of something, makes it a comment. Comments don't get read by the system.
Write out the file by pressing "Ctrl+O" and then "Enter". Exit the file with "Ctrl+X".
In your camera settings in Octoprint you should have:
/webcam/?action=stream
Everything should be working and you should be up and running.
I've got my imx519 camera working following the instructions here, and commented out the OPTIONS line in the libcamera.conf. However, my camera is out of focus (yes it is autofocus). How can I get the camera focused?
I tried two different plugins, the one called "Camera Settings", and another "ArduCamFocus". Camera Settings did not give me the option to focus my camera. I went through the possible setup options on the setup page, but still did not see any option for Focus.
The ArduCamFocus plugin did have a focus feature, but it was disabled (red circle/slash symbol, so would not let me focus. It hasn't been maintained for a few years, so likely not updated to work with the latest stuff.
I've got a new camera coming that is not autofocus, so hoping that gets me to where I want to be.
On the Camera Settings Plugin you see a camera stream and right under there there is a slider. It is not labelled as focus, but it changes the focus. Just try it out.
This plugin technically only works with motorized manual focus arducam cameras. I had it working at one point but think something probably changed in Bullseye that broke the plugin.
I just installed camera-streamer on a new Bookworm PI4 to have a my new printer with latest stuff. The cam is a PI Camera Module v3. I compiled and installed it because I followed the wiki guide and missed the .deb releases.
For the moment it runs well. I still didn't play with parameters, it is too new.
I just wonder why camera-streamer was chosen over ustreamer for OctoPI?
One of the big benefits of camera-streamer over ustreamer is the webrtc protocol. It's much less bandwidth intense as mjpeg streams on the network and as such should perform better overall.
OK. I just tried it as I saw a reference in IP/webcam/ and IP/webcam/control. I will then configure my Octoprints to use webrtc.
I didn't know ustreamer didn't have that feature.
For the moment I stick to mjpeg as I didn't find a way to make /webcam/webrtc working in Octoprint. Seems related to Iframe not supported.
My config: PI4 / Bookworm / CMv3 / camera-streamer (compiled > 2023/10/14) / Octoprint 1.9.3