-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback for the latest camera-streamer based webcam stack build (20230504122418) #5
Comments
Installed on an RPi 4B with an RPi camera V3. Updated to 1.9.0rc5 successfully. Some strangeness with the camera view on the Control tab that I need to investigate more carefully. |
After investigating more carefully, the camera view issue has been resolved. It may have been operator error regarding the hflip and vflip checkboxes due to the fact that they moved from the Webcam & Timelapse settings on 1.8.7 to the Classic Webcam plugin settings on 1.9.0rc5. |
Installed on both my test system (Pi4B 4GB + RasPi CamV3 +HyperPixel 4 rectangle) and my main system (Pi4B 2GB + RasPi CamV3 +HyperPixel 4 square) Everything working? Pi model + used cameras Ruhel™ |
Everything working - Not OOTB if you want Autofocus
Did i do anything weird? Update: Arducam confirmed that the AF updates to libcamera are not planned to be upstreamed to pi/libcamera anytime soon They so confirmed the install of their libcamera removed camera-streamer so the recompile/symlink looks like it's needed for AF to function. |
@flipside101 recompiling camera-streamer pretty much nuked the whole test I fear. The goal here is to figure out if stuff on the image works as it is, so if you start replacing parts with custom builds, especially the core of the camera stack that this is all about, it's a bit unhelpful 😅 In any case, from the looks of it the current version on the master branch of camera-streamer is still the very same that's packaged up here and installed on the image, and from the looks of your logs, that version started up fine on May 7th at 14:29, but earlier indeed the binary seems to have gotten lost, possibly due to your recompile? For comparison, this is from a fresh flash of the image, with an RPiCam v3 module:
The binary is sitting where it's expected, |
@foosel I'll restart again and document the steps better but as i said it didn't seem to work OOTB even with the drivers installed and dtoverlay entry whilst I good get a picture off the camera and all the needed devices looked to be working it was only after recompiling camera-streamer that it worked. Oh and I only thought about doing that as it was suggested in an earlier post by ayufan with ref to using teh AF https://github.com/OctoPrint/OctoPi-UpToDate/issues/2#issuecomment-1486638369 |
@flipside101, Didn't you post that the camera is an Arducam 16mp AF? @foosel's reply referenced the RPi camera V3. Are there are extra steps involved to get the Arducam working? |
@b-morgan I believe so yes and ive listed them in the discussion thread- https://community.octoprint.org/t/discussing-the-new-camera-streamer-based-webcam-stack-for-octopi-currently-in-development/50866/25. Im going to restest and ill document there so not to clog up here. |
Not sure if this is relevant feedback as the camera itself seems to be working just fine, but I thought I'd share regardless.
|
Everything working - Yes for manual focus updates needed to enable /boot/camera-streamer/libcamera.conf |
Everything working: yes |
This issue has been mentioned on OctoPrint Community Forum. There might be relevant details there: |
Everything working: seems to work fine on first tests. Setup:
|
Everything working? in /boot/config.txt I put: and in /boot/camera-streamer/libcamera.conf I uncommented: Octoprint says: "Webcam Stream not loaded" Pi model used cameras Issue log How do I fix this? |
You still have AF active so Camera-S treamer isn't starting, you need to hash out the AF lines so they are not active |
This is what my libcamera.conf looks like: ###Options for libcamera based cameras (PiCam, Arducam, ...) #The port on which the webcam server for the camera should listen on. If you have only #The resolution to request on the camera sensor. Defaults to 1280x720. #The height to use for the video stream. Defaults to 720. #The height to use for the snapshots. Defaults to 1080. #The framerate to set on the camera. Defaults to 15fps. #Additional options. By default enables continuous auto focus (if possible). What do I need to change? |
Just to confirm, the instructions from @flipside101 work for me on a Pi4 and an Arducam 16MP AF with manual focus. |
What am I doing wrong? |
In case you removed the "#" from the second line, you need to put it back and reboot. |
To clarify, this is in another file, not /boot/config.txt, but /boot/camera-streamer/libcamera.conf |
In the /boot/config.txt I put the stuff in, and /boot/camera-streamer/libcamera.conf I uncommented it. |
Uncommenting is removing the "#", adding a "#" in front of a line is called making the line a comment. |
It worked!!!! I think I didn't write it out properly. It's still a little slow, can I change the fps somehow? |
#The framerate to set on the camera. Defaults to 15fps. |
Does 20 work without issues? |
Try and you shall learn! :-) |
So, here we go again: Everything working?Yes! 🥳🥳 Pi modelRaspberry Pi 3b+ used cameras16MP Arducam Autofocus IMX 519 Tutorial for everyone who needs it:To make it work I did these two steps described by @flipside101: In the root directory of the Pi type: Then put the following unter the header "[all]": dtoverlay=vc4-kms-v3d,cma-128 Write out the file by pressing "Ctrl+O" and then "Enter". You can exit the file with "Ctrl+X". Next, open the "libcamera.conf" file by pasting the following commands into the terminal: Put a "#" in front of the following: OPTIONS='--camera-options="AfMode=2" --camera-options="AfRange=2"' Putting a "#" in front of something, makes it a comment. Comments don't get read by the system. In your camera settings in Octoprint you should have: /webcam/?action=stream Everything should be working and you should be up and running. |
For some reason, the libcamera / PiCam sometimes (I think only after a cold boot) does not come up, either restarting the service or a warm reboot help. The journalctl (before I restart the service) only logs:
After the service restart it logs quite a lot:
Could there be an (timing) issue with boot/initialization? |
None that I'm aware of, but that "Stale detected" looks like something I've seen in the past as well, with similar symptoms. @ayufan Any ideas what could cause this? Since the feedback in general looked promising enough regarding stability now, I've gone forward and decided on doing a soft launch. RPi imager now allows to install the latest build, but the standard one is still there as well and marked as "stable". That should hopefully lead to some more testing yet. |
New OctoPrint released today, 1.9.0, therefore new image and thus new feedback ticket, see #6 |
👉 Latest image & feedback ticket can be found here 👈
This is a ticket to collect feedback on the latest build of the new camera stack (some background on that here) for OctoPi-UpToDate, 20230504122418. Find the image here: https://github.com/OctoPrint/OctoPi-UpToDate/releases/tag/1.0.0-1.8.7-20230504122418
Changes compared to the previous version:
--camera-{v,h}flip
, see--camera-{v,h}flip
throw an error now when they used to work with the same camera ayufan/camera-streamer#51)This should hopefully now cover all pain points reported on past iterations.
(Compare view)
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 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:
journalctl -u camera-streamer\* | pb
and share the generated paste.octoprint.org URL)Known issues:
Currently none.
Common pitfalls:
The text was updated successfully, but these errors were encountered: