How can I use camera-streamer in multiple instances? I have a 5001 and 5002 instance with both usb and raspicams. I tried using add-usb-camera and specifying those ports as well as trying to edit both configs in the camera-streamer folder.
its gone down for me . i have teh camera installed and reporting in but for the life of me i cant get octopi to recognise it. Does anyone ahve any suggestions ?
Command line output
libcamera-hello
Preview window unavailable
[0:02:43.520725994] [1522] INFO Camera camera_manager.cpp:299 libcamera v0.0.0+ 4225-74d023d8
[0:02:43.583033627] [1524] INFO RPI raspberrypi.cpp:1476 Registered camera /bas e/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media1 and ISP device /dev/m edia0
[0:02:43.584004987] [1522] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:02:43.584431077] [1524] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0m ux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected u nicam format: 2328x1748-pRAA #0 (0.00 fps) exp 32844.00 ag 8.00 dg 1.00 #1 (30.00 fps) exp 32844.00 ag 8.00 dg 1.00 #2 (30.00 fps) exp 32844.00 ag 8.00 dg 1.00
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.