Raspberry Pi Camera is not working with Raspberry Pi Zero 2 W

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?

  1. Verify all cables are properly connected
  2. Enable webcam interface via rasp-config
  3. Update /boot/octopi.txt with the following options and reboot:
camera="raspi"
camera_raspi_options="-fps 10 -x 2592 -y 1944"
  1. Review /var/log/webcamd.log (see below)
  2. 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)
  3. 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!

Well, I tried a second camera and it seemed to work! The video is available in OctoPrint Webcam Steam Test, so there must be some incompatibility with the Raspberry Pi Camera Rev 1.3? Both cameras use the same "P5V04A SUNNY" sensors.

Camera model
ArduCam OV5647 Mini Camera Module (UC-346 Rev.C)

Logs

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/video0
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
raspi
config file='/boot/octopi.txt':Start MJPG-streamer with video device: raspi
<13>Nov 30 21:42:07 root: Starting Raspberry Pi camera

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_raspicam.so -fps 10 -x 2592 -y 1944
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
 i: fps.............: 10
 i: resolution........: 2592 x 1944
 i: camera parameters..............:

Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
 o: www-folder-path......: ./www-octopi/
 o: HTTP TCP port........: 8080
 o: HTTP Listen Address..: 127.0.0.1
 o: username:password....: disabled
 o: commands.............: disabled
 i: Starting Camera
Encoder Buffer Size 81920
Done bring up all configured video device

Goodbye...

Check if the camera module is correctly connected to the camera board

grafik

I have verified that it is properly connected and tried it again with no luck. Perhaps it's just a bad camera then?

You can check if the Pi sees the camera by running vcgencmd get_camera. It should indicated a 1 for both supported and detected.

It sees the camera, but the webcamDaemon still shows "video capture not supported." I have given up on it and just ordered another ArduCam since that one works. Thanks for the suggestions though Take care!