New install, no printer yet, webcam not working

Camera model
Logitech Webcam Pro 9000 and Logitech C922 (tried both, both are on the list of ones that work)

What is the problem?
NOTE: I DO NOT HAVE MY 3D PRINTER YET It's on order and has not arrived yet. I assume that doesn't matter but mentioning it just in case.

root@octopi:~# service webcamd status
● webcamd.service - the OctoPi webcam daemon with the user specified config
   Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-09-24 05:06:59 BST; 45min ago
  Process: 323 ExecStart=/root/bin/webcamd (code=exited, status=0/SUCCESS)
 Main PID: 415 (mjpg_streamer)
    Tasks: 15 (limit: 2077)
   Memory: 3.8M
   CGroup: /system.slice/webcamd.service
           └─415 ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 960x720 -f 10 -d /dev/video0

mjpg_streamer[415]: MJPG-streamer [415]: commands.............: disabled
mjpg_streamer[415]: MJPG-streamer [415]: starting input plugin input_uvc.so
mjpg_streamer[415]: MJPG-streamer [415]: starting output plugin: output_http.so (ID: 00)
webcamd[323]: Done bring up all configured video device
webcamd[323]: Goodbye...
systemd[1]: Started the OctoPi webcam daemon with the user specified config.
**webcamd[323]:  i: select() timeout**
**webcamd[323]:  i: cleaning up resources allocated by input thread**
**mjpg_streamer[415]: MJPG-streamer [415]: select() timeout**
**mjpg_streamer[415]: MJPG-streamer [415]: cleaning up resources allocated by input thread**
root@octopi:~# 
root@octopi:~# ps -elf | egrep '(webcam|mjpg)'
0 S root       415     1  0  80   0 - 31842 sys_pa 05:13 ?        00:00:00 ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 960x720 -f 10 -d /dev/video0
0 S root       989   729  0  80   0 -  1837 pipe_w 05:53 pts/0    00:00:00 grep -E (webcam|mjpg)

What did you already try to solve it?
I update octopi.txt with

  • camera=usb
  • camera_usb_options="-r 960x720 -f 10"

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)
Relevant lines from /var/log/syslog (/var/log/webcamd.log does not exist):

kernel: [    6.531118] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0809)
kernel: [    6.588662] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 4 was not initialized!
kernel: [    6.588682] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 8 was not initialized!
kernel: [    6.588694] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 10 was not initialized!
kernel: [    6.588706] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 9 was not initialized!
kernel: [    6.588717] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 12 was not initialized!
kernel: [    6.588730] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 11 was not initialized!
kernel: [    6.588741] uvcvideo 1-1.1.2:1.0: Entity type for entity Processing 2 was not initialized!
kernel: [    6.588753] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 13 was not initialized!
kernel: [    6.588765] uvcvideo 1-1.1.2:1.0: Entity type for entity Camera 1 was not initialized!
kernel: [    6.588776] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 14 was not initialized!
kernel: [    6.589243] input: UVC Camera (046d:0809) as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/input/input0
kernel: [    6.589535] usbcore: registered new interface driver uvcvideo
kernel: [    6.589543] USB Video Class driver (1.1.1)
webcamd[323]: Starting up webcamDaemon...
webcamd[323]: --- Configuration: ----------------------------
dphys-swapfile[320]: want /var/swap=100MByte, checking existing: keeping it
webcamd[323]: cfg_file:      /boot/octopi.txt
webcamd[323]: camera:        usb
webcamd[323]: usb options:   -r 960x720 -f 10
webcamd[323]: raspi options: -fps 10
webcamd[323]: http options:  -w ./www-octopi -n
webcamd[323]: Explicitly USB device:
webcamd[323]: -----------------------------------------------
kernel: [   10.024521] 8021q: 802.1Q VLAN Support v1.8
webcamd[323]: Found video devices:
webcamd[323]: /dev/video0
webcamd[323]: /dev/video1
webcamd[323]: /dev/video10
webcamd[323]: /dev/video11
webcamd[323]: /dev/video12
webcamd[323]: config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
MJPG-streamer [415]: starting application
webcamd[323]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
MJPG-streamer [415]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
dhcpcd[322]: wlan0: starting wpa_supplicant
dhcpcd-run-hooks[421]: wlan0: starting wpa_supplicant
webcamd[323]:  i: Using V4L2 device.: /dev/video0
MJPG-streamer [415]: Using V4L2 device.: /dev/video0
webcamd[323]:  i: Desired Resolution: 960 x 720
MJPG-streamer [415]: Desired Resolution: 960 x 720
webcamd[323]:  i: Frames Per Second.: 10
MJPG-streamer [415]: Frames Per Second.: 10
kernel: [   10.390736] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
webcamd[323]:  i: Format............: JPEG
MJPG-streamer [415]: Format............: JPEG
webcamd[323]:  i: TV-Norm...........: DEFAULT
MJPG-streamer [415]: TV-Norm...........: DEFAULT
webcamd[323]:  o: www-folder-path......: ./www-octopi/
webcamd[323]:  o: HTTP TCP port........: 8080
webcamd[323]:  o: HTTP Listen Address..: (null)
webcamd[323]:  o: username:password....: disabled
webcamd[323]:  o: commands.............: disabled
MJPG-streamer [415]: www-folder-path......: ./www-octopi/
MJPG-streamer [415]: HTTP TCP port........: 8080
MJPG-streamer [415]: HTTP Listen Address..: (null)
MJPG-streamer [415]: username:password....: disabled
MJPG-streamer [415]: commands.............: disabled
MJPG-streamer [415]: starting input plugin input_uvc.so
MJPG-streamer [415]: starting output plugin: output_http.so (ID: 00)
webcamd[323]: Done bring up all configured video device
webcamd[323]: Goodbye...
systemd[1]: Started the OctoPi webcam daemon with the user specified config.
thd[304]: Error reading device '/dev/input/event0'
kernel: [ 1467.193271] usb 1-1.1.2: new high-speed USB device number 6 using dwc_otg
kernel: [ 1467.325034] usb 1-1.1.2: New USB device found, idVendor=046d, idProduct=085c, bcdDevice= 0.16
kernel: [ 1467.325050] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=1
kernel: [ 1467.325060] usb 1-1.1.2: Product: C922 Pro Stream Webcam
kernel: [ 1467.325070] usb 1-1.1.2: SerialNumber: A75AE0EF
kernel: [ 1467.325948] uvcvideo: Found UVC 1.00 device C922 Pro Stream Webcam (046d:085c)
kernel: [ 1467.328626] uvcvideo 1-1.1.2:1.0: Entity type for entity Processing 3 was not initialized!
kernel: [ 1467.328656] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 6 was not initialized!
kernel: [ 1467.328677] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 12 was not initialized!
kernel: [ 1467.328693] uvcvideo 1-1.1.2:1.0: Entity type for entity Camera 1 was not initialized!
kernel: [ 1467.328705] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 8 was not initialized!
kernel: [ 1467.328716] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 9 was not initialized!
kernel: [ 1467.328728] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 10 was not initialized!
kernel: [ 1467.328740] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 11 was not initialized!

Additional information about your setup (OctoPrint version, OctoPi version, ...)

  • OctoPrint 1.4.2
  • Python 2.7.16
  • OctoPi 0.17.0
  • Raspberry Pi 3 B+

I just set up a device with USB webcam and I had to do a bit different process to get it working. I am on a different board but this information might be useful.
First I verified that the camera was detected and worked by installing cheese and running it.

Next I followed the info at this link
https://www.acmesystems.it/video_streaming

Finally I used this command to run the streamer
I used this command
./mjpg_streamer -i "./input_uvc.so -y -d /dev/video4" -o "./output_http.so -w ./www"
or
./mjpg_streamer -i "./input_uvc.so -y -d /dev/video4 -r 1280x720" -o "./output_http.so -w ./www"

now the difference might be in whether your usb device mounts to video4 or some other video.
I hope some of this might be useful to you.

1 Like

Thanks. Finally got and assembled the printer. Following the links you sent I learned how the webcam service starts up and was abet to start it, and it appears to be working.

It (or the whole pi, haven't figured that out yet) seems to freeze up sometimes, but I'll post separately about that if it happens again.
Thanks again!