Camera model
Logitec C270
What is the problem?
I can't get the webcam to work with Octoprint or to display in the browser window.
What did you already try to solve it?
I have several days into working on this. I used the Klipper image from BTT github site and was eventually able to make the webcam work with that Klipper installation. The webcam works with the CB1.
While I do want to use the CB1 with Klipper, I have several other MarlinFW based printers and would like to use Octoprint on the CB1. Since the cost is reasonable, it was my plan to use one CB1 per printer.
It all works and communicates to the printer, except for the webcam.
Logs (/var/log/webcamd.log
, syslog, dmesg, ... no logs, no support)
There is no webcamd.log in the file structure.
Additional information about your setup (OctoPrint version, OctoPi version, ...)
I started with the minimal image and manually installed everything. Like I said, everything works except for the webcam.
I'm confident I am doing something incorrectly, but need a shove in the right direction. I would be grateful for some help.
Brad
Have you installed any webcam streaming software? If so, what and how?
Thank you for responding.
Yes, I have mjpg-streamer-experimental installed and I followed a guide I found online. The guide was on the community.octoprint.org website under Optional:Webcam. Everything related to the guide worked minus the webcam portion.
The below is what I get when starting the webcam server using:
(venv) biqu@BTT-CB1:~/mjpg-streamer/mjpg-streamer-experimental$ ./mjpg_streamer -i "./input_uvc.so" -o "./output_http .so"
MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: -1
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)
o: www-folder-path......: disabled
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled
When in OctoPrint, I can see the snapshot, but the video stream is not working. It worked one time and that was it.
Now when I do the same command
biqu@BTT-CB1:~/mjpg-streamer/mjpg-streamer-experimental$ ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so"
MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: -1
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
libv4l2: error setting pixformat: Device or resource busy
Unable to set format: 1196444237 res: 640x480
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
I changed power supplies to a RPi 4B one rated for 4Amps and the webcam started working.
Pretty happy at this point. I have two separate images I can use for a CB1 for either Klipper/Mainsail and MarlinFW/Octoprint. Now I feel like I can buy a couple more, as I have a path forward with this hardware solution that works for all my printers.