Camera model
Raspberry Pi Camera Rev 1.3
What is the problem?
OctoPrint webcam stream test shows no images; /var/log/webcamd.log seems to indicate that using a Raspberry Pi webcam is only supported on Raspberry Pi 4, but has this been reviewed/tested for the new Raspberry Pi Zero 2 W (Zero2W)?
What did you already try to solve it?
- Verify all cables are properly connected
- Enable webcam interface via rasp-config
- Update /boot/octopi.txt with the following options and reboot:
camera="raspi"
camera_raspi_options="-fps 10 -x 2592 -y 1944"
- Review /var/log/webcamd.log (see below)
- Searched forum and did not find any applicable threads related to Raspberry Pi Zero 2 W (only found previous thread re: older Raspberry Pi Zero W)
- Searched Internet for solutions, but this seems to be a new issue due to Zero2W only being recently released
Logs (/var/log/webcamd.log
, syslog, dmesg, ... no logs, no support)
/var/log/webcamd.log entries BEFORE /boot/octopi.txt updates:
Starting up webcamDaemon...
--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: auto
usb options: -r 640x480 -f 10
raspi options: -fps 10
http options: -w ./www-octopi -n --listen 127.0.0.1
Explicitly USB device:
-----------------------------------------------
Found video devices:
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video10
/root/bin/webcamd: line 184: printf: 0x: invalid hex number
/root/bin/webcamd: line 184: printf: 0x: invalid hex number
<13>Nov 30 21:10:48 root: Starting USB webcam
Checking for VL805 (Raspberry Pi 4)...
- It seems that you don't have VL805 (Raspberry Pi 4).
There should be no problems with USB (a.k.a. select() timeout)
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n --listen 127.0.0.1 -i input_uvc.so -r 640x480 -f 10 -d /dev/video10
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
i: Using V4L2 device.: /dev/video10
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 10
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
Error opening device /dev/video10: video capture not supported.
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
Done bring up all configured video device
Goodbye...
/var/log/webcamd.log entries AFTER /boot/octopi.txt updates:
Starting up webcamDaemon...
--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: raspi
usb options: -r 640x480 -f 10
raspi options: -fps 10 -x 2592 -y 1944
http options: -w ./www-octopi -n --listen 127.0.0.1
Explicitly USB device:
-----------------------------------------------
Found video devices:
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
Scan again in two minutes
Additional information about your setup (OctoPrint version, OctoPi version, ...)
OctoPrint version 1.7.2
OctoPi version 0.18.0
Running on Raspberry Pi Zero 2 Rev 1.0
Please let me know if any additional information is needed. Thank you!