What do I have to do to add a webcam e.g. Logitech HD5120 to an existing ad working octoprint installation on Linux Mint?
To be clear, Linux Mint is installed for month and running just fine.
octoprint is installed on this Linux Mint box and running.
Most of the videos and posting talking about to install octoprint incl. a webcam but I couldn't find any help how to install the webcam afterwards just o its own.
Are their specific plugins, a scripts I have to install/run?
To make it clear, I will not wipe the Linux box and install it fresh with octoprint.
I installed a jpg-streamer, but the one from the repo of John-clark, not from jacksonliam.
I proceeded with the setup up to the point running the script './install webcams install'.
That finished with an error
Blockquote fred@Ryzen3-3200:/usr/local/mjpg-streamer-setup$ ./installWebcams install
chmod: changing permissions of 'installWebcams': Operation not permitted
chmod: changing permissions of './bin/mjpgStart': Operation not permitted
chmod: changing permissions of './bin/startAllCams': Operation not permitted
cp: cannot create regular file '/etc/udev/rules.d/11-mjpg_streamer.rules': Permission denied
cp: cannot create regular file '/lib/systemd/system/mjpg_streamer.service': Permission denied
cp: cannot create regular file '/etc/sudoers.d/mjpg_streamer.sudo-perms': Permission denied
Failed to enable unit: Unit file mjpg_streamer.service does not exist.
Failed to start mjpg_streamer.service: Access denied
See system logs and 'systemctl status mjpg_streamer.service' for details.
As an additonal information, when I'm executing the command "ffplay /dev/video0" I can see a live stream of the cam.
I just have to get it into octoprint.
Thanks
Or, if you want to simplify the whole process. Make a backup if your octoprint instance, reinstall octoprint witih octoprint_install script, setup a camera, and restore your octoprint instance (you will have to manually adjust stream address)
I just wanted to say that in principle it works exactly as it is stated in the instructions and there is actually a reason to take the version from this repo and not the one from the os repo. Even if the questioner does not (yet) fail at the point that features are missing.
Of course you can do it differently, but then you should also deal with the issue.
mjpeg-streamer is not an octoprint package.
And of course there are more performant solutions e.g. using a generator to push the frames through a shared memory. .... in my opinion ...
Just wanted to say thanks to all, I grabbed an old Wyze v2, flashed it with the WebCam firmware the most difficult part was installing the SD card into the Wyze cam, oh and waiting for Amazon to deliver the USB A to USB A cable. I plugged it into my RPI3+ and rebooted, and its working perfectly, I didn't have to do any configurations or setup in Octo. I'm using OctoPi 1.0.0 with Octoprint 1.10.2.