Issue with Logitech Quickcam Pro 4000

Hello,

Can anyone assist me with an issue I am having tryihng to attach and use my Logitech Quickcam Pro 4000 with my Octoprint running on a Raspberry Pi.

The webcam is detected as shown in the output from the lsusb command:

Bus 001 Device 009: ID 046d:08b2 Logitech, Inc. QuickCam Pro 4000
Bus 001 Device 008: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter
Bus 001 Device 007: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 006: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

When I browse to http://<raspberry_pi_ip_address/webcam/control.htm it says that the webcam server is not currently running.

If I run the command service webcamd restart the following is output in the Syslog:

Jan 4 12:22:39 octopi webcamd[13750]: Done bring up all configured video device
Jan 4 12:22:39 octopi webcamd[13750]: Goodbye...
Jan 4 12:22:39 octopi systemd[1]: webcamd.service: Succeeded.
Jan 4 12:22:39 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:39 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Jan 4 12:22:39 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 5.
Jan 4 12:22:39 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:39 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jan 4 12:22:39 octopi webcamd[13776]: Starting up webcamDaemon...
Jan 4 12:22:39 octopi webcamd[13776]: --- Configuration: ----------------------------
Jan 4 12:22:39 octopi webcamd[13776]: cfg_file: /boot/octopi.txt
Jan 4 12:22:39 octopi webcamd[13776]: camera: usb
Jan 4 12:22:39 octopi webcamd[13776]: usb options: -r 640x480 -f 10
Jan 4 12:22:39 octopi webcamd[13776]: raspi options: -fps 10
Jan 4 12:22:39 octopi webcamd[13776]: http options: -w ./www-octopi -n
Jan 4 12:22:39 octopi webcamd[13776]: Explicitly USB device:
Jan 4 12:22:39 octopi webcamd[13776]: -----------------------------------------------
Jan 4 12:22:39 octopi webcamd[13776]: Found video devices:
Jan 4 12:22:39 octopi webcamd[13776]: /dev/video0
Jan 4 12:22:39 octopi webcamd[13776]: /dev/video10
Jan 4 12:22:39 octopi webcamd[13776]: /dev/video11
Jan 4 12:22:39 octopi webcamd[13776]: /dev/video12
Jan 4 12:22:39 octopi webcamd[13776]: config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
Jan 4 12:22:39 octopi root: Starting USB webcam
Jan 4 12:22:39 octopi webcamd[13776]: <13>Jan 4 12:22:39 root: Starting USB webcam
Jan 4 12:22:39 octopi webcamd[13776]: Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
Jan 4 12:22:39 octopi MJPG-streamer [13800]: starting application
Jan 4 12:22:39 octopi MJPG-streamer [13800]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:39 octopi webcamd[13776]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:39 octopi webcamd[13776]: i: Using V4L2 device.: /dev/video0
Jan 4 12:22:39 octopi MJPG-streamer [13800]: Using V4L2 device.: /dev/video0
Jan 4 12:22:39 octopi webcamd[13776]: i: Desired Resolution: 640 x 480
Jan 4 12:22:39 octopi webcamd[13776]: i: Frames Per Second.: 10
Jan 4 12:22:39 octopi webcamd[13776]: i: Format............: JPEG
Jan 4 12:22:39 octopi webcamd[13776]: i: TV-Norm...........: DEFAULT
Jan 4 12:22:39 octopi webcamd[13776]: i: Could not obtain the requested pixelformat: MJPG , driver gave us: YU12
Jan 4 12:22:39 octopi webcamd[13776]: ... will try to handle this by checking against supported formats.
Jan 4 12:22:39 octopi webcamd[13776]: Init v4L2 failed !! exit fatal
Jan 4 12:22:39 octopi webcamd[13776]: i: init_VideoIn failed
Jan 4 12:22:39 octopi MJPG-streamer [13800]: Desired Resolution: 640 x 480
Jan 4 12:22:39 octopi MJPG-streamer [13800]: Frames Per Second.: 10
Jan 4 12:22:39 octopi MJPG-streamer [13800]: Format............: JPEG
Jan 4 12:22:39 octopi MJPG-streamer [13800]: TV-Norm...........: DEFAULT
Jan 4 12:22:39 octopi MJPG-streamer [13800]: init_VideoIn failed
Jan 4 12:22:40 octopi webcamd[13776]: Done bring up all configured video device
Jan 4 12:22:40 octopi webcamd[13776]: Goodbye...
Jan 4 12:22:40 octopi systemd[1]: webcamd.service: Succeeded.
Jan 4 12:22:40 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:41 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Jan 4 12:22:41 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 6.
Jan 4 12:22:41 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:41 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jan 4 12:22:41 octopi webcamd[13802]: Starting up webcamDaemon...
Jan 4 12:22:41 octopi webcamd[13802]: --- Configuration: ----------------------------
Jan 4 12:22:41 octopi webcamd[13802]: cfg_file: /boot/octopi.txt
Jan 4 12:22:41 octopi webcamd[13802]: camera: usb
Jan 4 12:22:41 octopi webcamd[13802]: usb options: -r 640x480 -f 10
Jan 4 12:22:41 octopi webcamd[13802]: raspi options: -fps 10
Jan 4 12:22:41 octopi webcamd[13802]: http options: -w ./www-octopi -n
Jan 4 12:22:41 octopi webcamd[13802]: Explicitly USB device:
Jan 4 12:22:41 octopi webcamd[13802]: -----------------------------------------------
Jan 4 12:22:41 octopi webcamd[13802]: Found video devices:
Jan 4 12:22:41 octopi webcamd[13802]: /dev/video0
Jan 4 12:22:41 octopi webcamd[13802]: /dev/video10
Jan 4 12:22:41 octopi webcamd[13802]: /dev/video11
Jan 4 12:22:41 octopi webcamd[13802]: /dev/video12
Jan 4 12:22:41 octopi webcamd[13802]: config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
Jan 4 12:22:41 octopi root: Starting USB webcam
Jan 4 12:22:41 octopi webcamd[13802]: <13>Jan 4 12:22:41 root: Starting USB webcam
Jan 4 12:22:41 octopi webcamd[13802]: Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
Jan 4 12:22:41 octopi MJPG-streamer [13826]: starting application
Jan 4 12:22:41 octopi MJPG-streamer [13826]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:41 octopi webcamd[13802]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:41 octopi webcamd[13802]: i: Using V4L2 device.: /dev/video0
Jan 4 12:22:41 octopi MJPG-streamer [13826]: Using V4L2 device.: /dev/video0
Jan 4 12:22:41 octopi webcamd[13802]: i: Desired Resolution: 640 x 480
Jan 4 12:22:41 octopi webcamd[13802]: i: Frames Per Second.: 10
Jan 4 12:22:41 octopi webcamd[13802]: i: Format............: JPEG
Jan 4 12:22:41 octopi webcamd[13802]: i: TV-Norm...........: DEFAULT
Jan 4 12:22:41 octopi MJPG-streamer [13826]: Desired Resolution: 640 x 480
Jan 4 12:22:41 octopi webcamd[13802]: i: Could not obtain the requested pixelformat: MJPG , driver gave us: YU12
Jan 4 12:22:41 octopi webcamd[13802]: ... will try to handle this by checking against supported formats.
Jan 4 12:22:41 octopi webcamd[13802]: Init v4L2 failed !! exit fatal
Jan 4 12:22:41 octopi webcamd[13802]: i: init_VideoIn failed
Jan 4 12:22:41 octopi MJPG-streamer [13826]: Frames Per Second.: 10
Jan 4 12:22:41 octopi MJPG-streamer [13826]: Format............: JPEG
Jan 4 12:22:41 octopi MJPG-streamer [13826]: TV-Norm...........: DEFAULT
Jan 4 12:22:41 octopi MJPG-streamer [13826]: init_VideoIn failed
Jan 4 12:22:42 octopi webcamd[13802]: Done bring up all configured video device
Jan 4 12:22:42 octopi webcamd[13802]: Goodbye...
Jan 4 12:22:42 octopi systemd[1]: webcamd.service: Succeeded.
Jan 4 12:22:42 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:42 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Jan 4 12:22:42 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 7.
Jan 4 12:22:42 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:43 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jan 4 12:22:43 octopi webcamd[13828]: Starting up webcamDaemon...
Jan 4 12:22:43 octopi webcamd[13828]: --- Configuration: ----------------------------
Jan 4 12:22:43 octopi webcamd[13828]: cfg_file: /boot/octopi.txt
Jan 4 12:22:43 octopi webcamd[13828]: camera: usb
Jan 4 12:22:43 octopi webcamd[13828]: usb options: -r 640x480 -f 10
Jan 4 12:22:43 octopi webcamd[13828]: raspi options: -fps 10
Jan 4 12:22:43 octopi webcamd[13828]: http options: -w ./www-octopi -n
Jan 4 12:22:43 octopi webcamd[13828]: Explicitly USB device:
Jan 4 12:22:43 octopi webcamd[13828]: -----------------------------------------------
Jan 4 12:22:43 octopi webcamd[13828]: Found video devices:
Jan 4 12:22:43 octopi webcamd[13828]: /dev/video0
Jan 4 12:22:43 octopi webcamd[13828]: /dev/video10
Jan 4 12:22:43 octopi webcamd[13828]: /dev/video11
Jan 4 12:22:43 octopi webcamd[13828]: /dev/video12
Jan 4 12:22:43 octopi webcamd[13828]: config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
Jan 4 12:22:43 octopi root: Starting USB webcam
Jan 4 12:22:43 octopi webcamd[13828]: <13>Jan 4 12:22:43 root: Starting USB webcam
Jan 4 12:22:43 octopi webcamd[13828]: Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
Jan 4 12:22:43 octopi MJPG-streamer [13861]: starting application
Jan 4 12:22:43 octopi webcamd[13828]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:43 octopi MJPG-streamer [13861]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:43 octopi webcamd[13828]: i: Using V4L2 device.: /dev/video0
Jan 4 12:22:43 octopi MJPG-streamer [13861]: Using V4L2 device.: /dev/video0
Jan 4 12:22:43 octopi MJPG-streamer [13861]: Desired Resolution: 640 x 480
Jan 4 12:22:43 octopi webcamd[13828]: i: Desired Resolution: 640 x 480
Jan 4 12:22:43 octopi webcamd[13828]: i: Frames Per Second.: 10
Jan 4 12:22:43 octopi webcamd[13828]: i: Format............: JPEG
Jan 4 12:22:43 octopi webcamd[13828]: i: TV-Norm...........: DEFAULT
Jan 4 12:22:44 octopi MJPG-streamer [13861]: Frames Per Second.: 10
Jan 4 12:22:44 octopi webcamd[13828]: i: Could not obtain the requested pixelformat: MJPG , driver gave us: YU12
Jan 4 12:22:44 octopi webcamd[13828]: ... will try to handle this by checking against supported formats.
Jan 4 12:22:44 octopi webcamd[13828]: Init v4L2 failed !! exit fatal
Jan 4 12:22:44 octopi webcamd[13828]: i: init_VideoIn failed
Jan 4 12:22:44 octopi MJPG-streamer [13861]: Format............: JPEG
Jan 4 12:22:44 octopi MJPG-streamer [13861]: TV-Norm...........: DEFAULT
Jan 4 12:22:44 octopi MJPG-streamer [13861]: init_VideoIn failed
Jan 4 12:22:44 octopi webcamd[13828]: Done bring up all configured video device
Jan 4 12:22:44 octopi webcamd[13828]: Goodbye...
Jan 4 12:22:44 octopi systemd[1]: webcamd.service: Succeeded.
Jan 4 12:22:44 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:45 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Jan 4 12:22:45 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 8.
Jan 4 12:22:45 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:45 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jan 4 12:22:45 octopi webcamd[13867]: Starting up webcamDaemon...
Jan 4 12:22:45 octopi webcamd[13867]: --- Configuration: ----------------------------
Jan 4 12:22:45 octopi webcamd[13867]: cfg_file: /boot/octopi.txt
Jan 4 12:22:45 octopi webcamd[13867]: camera: usb
Jan 4 12:22:45 octopi webcamd[13867]: usb options: -r 640x480 -f 10
Jan 4 12:22:45 octopi webcamd[13867]: raspi options: -fps 10
Jan 4 12:22:45 octopi webcamd[13867]: http options: -w ./www-octopi -n
Jan 4 12:22:45 octopi webcamd[13867]: Explicitly USB device:
Jan 4 12:22:45 octopi webcamd[13867]: -----------------------------------------------
Jan 4 12:22:45 octopi webcamd[13867]: Found video devices:
Jan 4 12:22:45 octopi webcamd[13867]: /dev/video0
Jan 4 12:22:45 octopi webcamd[13867]: /dev/video10
Jan 4 12:22:45 octopi webcamd[13867]: /dev/video11
Jan 4 12:22:45 octopi webcamd[13867]: /dev/video12
Jan 4 12:22:45 octopi webcamd[13867]: config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
Jan 4 12:22:45 octopi root: Starting USB webcam
Jan 4 12:22:45 octopi webcamd[13867]: <13>Jan 4 12:22:45 root: Starting USB webcam
Jan 4 12:22:45 octopi webcamd[13867]: Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
Jan 4 12:22:45 octopi MJPG-streamer [13891]: starting application
Jan 4 12:22:45 octopi MJPG-streamer [13891]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:45 octopi webcamd[13867]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:45 octopi webcamd[13867]: i: Using V4L2 device.: /dev/video0
Jan 4 12:22:45 octopi webcamd[13867]: i: Desired Resolution: 640 x 480
Jan 4 12:22:45 octopi webcamd[13867]: i: Frames Per Second.: 10
Jan 4 12:22:45 octopi webcamd[13867]: i: Format............: JPEG
Jan 4 12:22:45 octopi webcamd[13867]: i: TV-Norm...........: DEFAULT
Jan 4 12:22:45 octopi MJPG-streamer [13891]: Using V4L2 device.: /dev/video0
Jan 4 12:22:45 octopi MJPG-streamer [13891]: Desired Resolution: 640 x 480
Jan 4 12:22:45 octopi MJPG-streamer [13891]: Frames Per Second.: 10
Jan 4 12:22:45 octopi webcamd[13867]: i: Could not obtain the requested pixelformat: MJPG , driver gave us: YU12
Jan 4 12:22:45 octopi webcamd[13867]: ... will try to handle this by checking against supported formats.
Jan 4 12:22:45 octopi webcamd[13867]: Init v4L2 failed !! exit fatal
Jan 4 12:22:45 octopi webcamd[13867]: i: init_VideoIn failed
Jan 4 12:22:45 octopi MJPG-streamer [13891]: Format............: JPEG
Jan 4 12:22:45 octopi MJPG-streamer [13891]: TV-Norm...........: DEFAULT
Jan 4 12:22:45 octopi MJPG-streamer [13891]: init_VideoIn failed
Jan 4 12:22:46 octopi webcamd[13867]: Done bring up all configured video device
Jan 4 12:22:46 octopi webcamd[13867]: Goodbye...
Jan 4 12:22:46 octopi systemd[1]: webcamd.service: Succeeded.
Jan 4 12:22:46 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:46 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Jan 4 12:22:46 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 9.
Jan 4 12:22:46 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:47 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jan 4 12:22:47 octopi webcamd[13893]: Starting up webcamDaemon...
Jan 4 12:22:47 octopi webcamd[13893]: --- Configuration: ----------------------------
Jan 4 12:22:47 octopi webcamd[13893]: cfg_file: /boot/octopi.txt
Jan 4 12:22:47 octopi webcamd[13893]: camera: usb
Jan 4 12:22:47 octopi webcamd[13893]: usb options: -r 640x480 -f 10
Jan 4 12:22:47 octopi webcamd[13893]: raspi options: -fps 10
Jan 4 12:22:47 octopi webcamd[13893]: http options: -w ./www-octopi -n
Jan 4 12:22:47 octopi webcamd[13893]: Explicitly USB device:
Jan 4 12:22:47 octopi webcamd[13893]: -----------------------------------------------
Jan 4 12:22:47 octopi webcamd[13893]: Found video devices:
Jan 4 12:22:47 octopi webcamd[13893]: /dev/video0
Jan 4 12:22:47 octopi webcamd[13893]: /dev/video10
Jan 4 12:22:47 octopi webcamd[13893]: /dev/video11
Jan 4 12:22:47 octopi webcamd[13893]: /dev/video12
Jan 4 12:22:47 octopi webcamd[13893]: config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
Jan 4 12:22:47 octopi root: Starting USB webcam
Jan 4 12:22:47 octopi webcamd[13893]: <13>Jan 4 12:22:47 root: Starting USB webcam
Jan 4 12:22:47 octopi webcamd[13893]: Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
Jan 4 12:22:47 octopi MJPG-streamer [13917]: starting application
Jan 4 12:22:47 octopi MJPG-streamer [13917]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:47 octopi webcamd[13893]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 4 12:22:47 octopi webcamd[13893]: i: Using V4L2 device.: /dev/video0
Jan 4 12:22:47 octopi webcamd[13893]: i: Desired Resolution: 640 x 480
Jan 4 12:22:47 octopi webcamd[13893]: i: Frames Per Second.: 10
Jan 4 12:22:47 octopi webcamd[13893]: i: Format............: JPEG
Jan 4 12:22:47 octopi webcamd[13893]: i: TV-Norm...........: DEFAULT
Jan 4 12:22:47 octopi MJPG-streamer [13917]: Using V4L2 device.: /dev/video0
Jan 4 12:22:47 octopi webcamd[13893]: i: Could not obtain the requested pixelformat: MJPG , driver gave us: YU12
Jan 4 12:22:47 octopi webcamd[13893]: ... will try to handle this by checking against supported formats.
Jan 4 12:22:47 octopi webcamd[13893]: Init v4L2 failed !! exit fatal
Jan 4 12:22:47 octopi webcamd[13893]: i: init_VideoIn failed
Jan 4 12:22:47 octopi MJPG-streamer [13917]: Desired Resolution: 640 x 480
Jan 4 12:22:47 octopi MJPG-streamer [13917]: Frames Per Second.: 10
Jan 4 12:22:47 octopi MJPG-streamer [13917]: Format............: JPEG
Jan 4 12:22:47 octopi MJPG-streamer [13917]: TV-Norm...........: DEFAULT
Jan 4 12:22:47 octopi MJPG-streamer [13917]: init_VideoIn failed
Jan 4 12:22:48 octopi webcamd[13893]: Done bring up all configured video device
Jan 4 12:22:48 octopi webcamd[13893]: Goodbye...
Jan 4 12:22:48 octopi systemd[1]: webcamd.service: Succeeded.
Jan 4 12:22:48 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:48 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Jan 4 12:22:48 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 10.
Jan 4 12:22:48 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jan 4 12:22:48 octopi systemd[1]: webcamd.service: Start request repeated too quickly.
Jan 4 12:22:48 octopi systemd[1]: webcamd.service: Failed with result 'start-limit-hit'.
Jan 4 12:22:48 octopi systemd[1]: Failed to start the OctoPi webcam daemon with the user specified config.

Can anyone provide some advise on what I need to do to get the webcam working?

Thanks in advance

Not to sound like a "me too" person. However I too am having difficulty getting octoprint to recognize my Logitech Quick Cam 400 M/n U-VJ16

I ran lsusb and it does show up and I tried another USB port. I'll check see if powered hub helps
lsusb out
Bus 001 Device 004: ID 046d:08b2 Logitech, Inc. QuickCam Pro 4000

I'm surprised this was never answered, actually....

Based on:

I'd bet this camera needs the -y switch for mjpg_streamer. You can add that to camera_usb_options in octopi.txt:

these two options lead with a #.

#camera="auto"
#camera_usb_options="-r 640x480 -f 10 -y"

Does that mean they are commented out like every other Liniux config file? It is confusing as All lines in this file start with a #

Yes, they are commented. You can remove the # to activate them, otherwise it uses the default configurations.

ok I have left the other lines alone and un commented those two. I will reboot and check. What is the next thing to look at if it does not recognize the Logitech Pro 4000 webcam?

If it doesn't work at that point, log into ssh, grab the last output from journalctl -u webcamd it should look similar to the log in the first post of this thread.

Also, take a look at the output of v4l2-ctl --list-formats-ext. You should see several groups of formats, each with a list of resultion and fps combos. Ideal would be to have a mode under 'MJPG' or 'JPG', but you may need to use 'YUV12' or similar, which is what the -y switch is for.

journalctl -u webcamd is

Dec 29 18:47:58 octopi root[605]: Starting USB webcam
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: starting application
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: MJPG Streamer Version: git rev: 5554f42
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: Using V4L2 device.: /dev/video0
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: Desired Resolution: 640 x 480
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: Frames Per Second.: 10
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: Format............: YUYV
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: JPEG Quality......: 80
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: TV-Norm...........: DEFAULT
Dec 29 18:47:58 octopi mjpg_streamer[606]: MJPG-streamer [606]: init_VideoIn failed

v4l2-ctl --list-formats-ext

            Size: Discrete 160x120
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 320x240
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 640x480
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)

Ok, so -y is being used but it's still not working.

What was the header above those sizes? It should have started with something like:

ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'MJPG' (Motion-JPEG, compressed)
           ...
    [1]: 'H264' (H.264, compressed)
           ...

sorry, it got truncated

pi@octopi:~ $ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

    [0]: 'PWC2' (Raw Philips Webcam Type (New), compressed)
            Size: Discrete 160x120
            Size: Discrete 320x240
            Size: Discrete 640x480
    [1]: 'YU12' (Planar YUV 4:2:0)
            Size: Discrete 160x120
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 320x240
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 640x480
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)

That looks like it doesn't have a format that mjpg_streamer can use. YU12 isn't quite the same as the YUYV format it's expecting from what I can tell.

ok. so, perhaps at this point i should acquire a new 720p Logitech cam.
Walmart has a webcam called Onn model 100028731 That I can pickup tonight. I will try that we shall see
I'll order a pi cam too.

Update: The Onn brand camera worked. The only changes made are those that I made already, and apt-get update/ apt-get upgrade. I had to fix the release with the below command as well.

source: Debian โ€“ How to configure apt in Debian Buster after release โ€“ iTecTec