Webcam not recognized (Newbie user)

What is the problem?

I'm lost :sob:
Webcam stream is not loaded. Camera Xiaomi 1080-360 is connected on USB (and normally work correctly as a surveillance camera at home)

What did you already try to solve it?

lots of things at my level. I tried to change the settings each time on the microSD in octoprint.txt :
this : camera_usb_options="-r 1920x1080 -f 30"
and this : camera_usb_options="-r 1920x1080 -f 15"
and this : camera_usb_options="-r 1920x1080 -f 30 -y"

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

No

Complete Logs

octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support! Not log excerpts, complete logs.)

octoprint.filemanager.storage._list_folder(<octoprint.filemanager.storage.LocalFileStorage object at 0xb28e4510>,'/home/pi/.octoprint/uploads',base='',force_refresh=False) took 0.18ms
2021-04-15 00:19:30,827 - octoprint.server.api.files.timings - DEBUG - octoprint.server.api.files._getFileList('local',filter=False,recursive=True,allow_from_cache=True) took 1.45ms
2021-04-15 00:19:30,827 - octoprint.server.api.files.timings - DEBUG - octoprint.server.api.files._getFileList('sdcard',) took 0.01ms
2021-04-15 00:20:20,000 - octoprint.server.util.flask - INFO - Passively logging in user jeanjak from ::ffff:192.168.1.20
2021-04-15 00:20:20,001 - octoprint.access.users - INFO - Logged in user: jeanjak
2021-04-15 00:20:20,009 - octoprint.plugin - DEBUG - Calling on_event on action_command_notification
2021-04-15 00:20:20,010 - octoprint.plugin - DEBUG - Calling on_event on action_command_prompt
2021-04-15 00:20:20,010 - octoprint.plugin - DEBUG - Calling on_event on announcements
2021-04-15 00:20:20,010 - octoprint.plugin - DEBUG - Calling on_event on file_check
2021-04-15 00:20:20,010 - octoprint.plugin - DEBUG - Calling on_event on firmware_check
2021-04-15 00:20:20,010 - octoprint.plugin - DEBUG - Calling on_event on pluginmanager
2021-04-15 00:20:20,011 - octoprint.plugin - DEBUG - Calling on_event on softwareupdate
2021-04-15 00:20:20,011 - octoprint.plugin - DEBUG - Calling on_event on tracking
2021-04-15 00:20:20,011 - octoprint.plugin - DEBUG - Calling on_event on octoeverywhere
2021-04-15 00:20:20,138 - octoprint.server.util.flask - DEBUG - No cache entry or refreshing cache for / (key: ui:_default:https://192.168.1.28/:en), calling wrapped function
2021-04-15 00:20:25,228 - octoprint.server.util.flask - DEBUG - Needed 5.09s to render / (key: ui:_default:https://192.168.1.28/:en)
2021-04-15 00:20:25,260 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.1.20
2021-04-15 00:20:25,262 - octoprint.plugin - DEBUG - Calling on_event on action_command_notification
2021-04-15 00:20:25,262 - octoprint.plugin - DEBUG - Calling on_event on action_command_prompt
2021-04-15 00:20:25,262 - octoprint.plugin - DEBUG - Calling on_event on announcements
2021-04-15 00:20:25,262 - octoprint.plugin - DEBUG - Calling on_event on file_check
2021-04-15 00:20:25,262 - octoprint.plugin - DEBUG - Calling on_event on firmware_check
2021-04-15 00:20:25,263 - octoprint.plugin - DEBUG - Calling on_event on pluginmanager
2021-04-15 00:20:25,263 - octoprint.plugin - DEBUG - Calling on_event on softwareupdate
2021-04-15 00:20:25,263 - octoprint.plugin - DEBUG - Calling on_event on tracking
2021-04-15 00:20:25,263 - octoprint.plugin - DEBUG - Calling on_event on octoeverywhere
2021-04-15 00:20:25,470 - octoprint.plugins.octoeverywhere - INFO - SetFrontendLocalPort API called. Port:443
2021-04-15 00:20:25,550 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.1.20
2021-04-15 00:20:25,573 - octoprint.plugin - DEBUG - Calling on_event on action_command_notification
2021-04-15 00:20:25,574 - octoprint.plugin - DEBUG - Calling on_event on action_command_prompt
2021-04-15 00:20:25,574 - octoprint.plugin - DEBUG - Calling on_event on announcements
2021-04-15 00:20:25,574 - octoprint.plugin - DEBUG - Calling on_event on file_check
2021-04-15 00:20:25,574 - octoprint.plugin - DEBUG - Calling on_event on firmware_check
2021-04-15 00:20:25,574 - octoprint.plugin - DEBUG - Calling on_event on pluginmanager
2021-04-15 00:20:25,574 - octoprint.plugin - DEBUG - Calling on_event on softwareupdate
2021-04-15 00:20:25,575 - octoprint.plugin - DEBUG - Calling on_event on tracking
2021-04-15 00:20:25,575 - octoprint.plugin - DEBUG - Calling on_event on octoeverywhere
2021-04-15 00:20:25,588 - tornado.access - WARNING - 404 GET /favicon.ico (::ffff:192.168.1.20) 6.93ms
2021-04-15 00:20:25,596 - octoprint.server.util.flask - INFO - Passively logging in user jeanjak from ::ffff:192.168.1.20
2021-04-15 00:20:25,597 - octoprint.access.users - INFO - Logged in user: jeanjak
2021-04-15 00:20:25,602 - octoprint.plugin - DEBUG - Calling on_event on action_command_notification
2021-04-15 00:20:25,605 - octoprint.plugin - DEBUG - Calling on_event on action_command_prompt
2021-04-15 00:20:25,605 - octoprint.plugin - DEBUG - Calling on_event on announcements
2021-04-15 00:20:25,605 - octoprint.plugin - DEBUG - Calling on_event on file_check
2021-04-15 00:20:25,606 - octoprint.plugin - DEBUG - Calling on_event on firmware_check
2021-04-15 00:20:25,606 - octoprint.plugin - DEBUG - Calling on_event on pluginmanager
2021-04-15 00:20:25,606 - octoprint.plugin - DEBUG - Calling on_event on softwareupdate
2021-04-15 00:20:25,607 - octoprint.plugin - DEBUG - Calling on_event on tracking
2021-04-15 00:20:25,607 - octoprint.plugin - DEBUG - Calling on_event on octoeverywhere
2021-04-15 00:20:26,791 - octoprint.server.api.files.timings - DEBUG - octoprint.server.api.files._getFileList('local',filter=False,recursive=True,allow_from_cache=True) took 0.17ms
2021-04-15 00:20:26,792 - octoprint.server.api.files.timings - DEBUG - octoprint.server.api.files._getFileList('sdcard',) took 0.03ms
2021-04-15 00:20:26,862 - octoprint.server.util.sockjs - INFO - User jeanjak logged in on the socket from client ::ffff:192.168.1.20
2021-04-15 00:20:26,865 - octoprint.plugin - DEBUG - Calling on_event on action_command_notification
2021-04-15 00:20:26,865 - octoprint.plugin - DEBUG - Calling on_event on action_command_prompt
2021-04-15 00:20:26,865 - octoprint.plugin - DEBUG - Calling on_event on announcements
2021-04-15 00:20:26,865 - octoprint.plugin - DEBUG - Calling on_event on file_check
2021-04-15 00:20:26,866 - octoprint.plugin - DEBUG - Calling on_event on firmware_check
2021-04-15 00:20:26,866 - octoprint.plugin - DEBUG - Calling on_event on pluginmanager
2021-04-15 00:20:26,866 - octoprint.plugin - DEBUG - Calling on_event on softwareupdate
2021-04-15 00:20:26,866 - octoprint.plugin - DEBUG - Calling on_event on tracking
2021-04-15 00:20:26,866 - octoprint.plugin - DEBUG - Calling on_event on octoeverywhere

Additional information about your setup

OctoPrint version : 1.5.3
OctoPi version : 0.18.0
Mac Os 11.2.1

I tried since 2 days to make it work and I'm going crazy now...
I tried this in SSH because i read it the guide session but i must admit I'm very begining :
pi@octopi : ~ $ lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@octopi : ~ $ /var/log/webcamd.log

-bash: /var/log/webcamd.log: Permission denied

Thank you in advance !

I have also found this with "journalctl -u webcamd"

-- Logs begin at Thu 2021-04-15 00:19:08 CEST, end at Thu 2021-04-15 00:24:50 CEST. --

Apr 15 00:19:12 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...

Apr 15 00:19:12 octopi root[495]: Starting USB webcam

Apr 15 00:19:12 octopi mjpg_streamer[496]: MJPG-streamer [496]: starting application

Apr 15 00:19:12 octopi mjpg_streamer[496]: MJPG-streamer [496]: MJPG Streamer Version: git rev: 5554f42c352ecfa7e

Apr 15 00:19:12 octopi mjpg_streamer[496]: MJPG-streamer [496]: Using V4L2 device.: /dev/video10

Apr 15 00:19:12 octopi mjpg_streamer[496]: MJPG-streamer [496]: Desired Resolution: 1920 x 1080

Apr 15 00:19:12 octopi mjpg_streamer[496]: MJPG-streamer [496]: Frames Per Second.: 30

Apr 15 00:19:12 octopi mjpg_streamer[496]: MJPG-streamer [496]: Format............: JPEG

Apr 15 00:19:12 octopi mjpg_streamer[496]: MJPG-streamer [496]: TV-Norm...........: DEFAULT

Apr 15 00:19:12 octopi mjpg_streamer[496]: MJPG-streamer [496]: init_VideoIn failed

Apr 15 00:19:13 octopi systemd[1]: webcamd.service: Succeeded.

Apr 15 00:19:13 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.

Apr 15 00:19:14 octopi systemd[1]: webcamd.service: Service RestartSec=1s expired, scheduling restart.

Apr 15 00:19:14 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 1.

Apr 15 00:19:14 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.

Apr 15 00:19:14 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...

Apr 15 00:19:14 octopi root[554]: Starting USB webcam

Apr 15 00:19:14 octopi mjpg_streamer[555]: MJPG-streamer [555]: starting application

Apr 15 00:19:14 octopi mjpg_streamer[555]: MJPG-streamer [555]: MJPG Streamer Version: git rev: 5554f42c352ecfa7e

Apr 15 00:19:14 octopi mjpg_streamer[555]: MJPG-streamer [555]: Using V4L2 device.: /dev/video10

Apr 15 00:19:14 octopi mjpg_streamer[555]: MJPG-streamer [555]: Desired Resolution: 1920 x 1080

Apr 15 00:19:14 octopi mjpg_streamer[555]: MJPG-streamer [555]: Frames Per Second.: 30

Apr 15 00:19:14 octopi mjpg_streamer[555]: MJPG-streamer [555]: Format............: JPEG

Apr 15 00:19:14 octopi mjpg_streamer[555]: MJPG-streamer [555]: TV-Norm...........: DEFAULT

Apr 15 00:19:14 octopi mjpg_streamer[555]: MJPG-streamer [555]: init_VideoIn failed

Apr 15 00:19:15 octopi systemd[1]: webcamd.service: Succeeded.

Apr 15 00:19:15 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.

Apr 15 00:19:16 octopi systemd[1]: webcamd.service: Service RestartSec=1s expired, scheduling restart.

Apr 15 00:19:16 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 2.

Apr 15 00:19:16 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.

Apr 15 00:19:17 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...

Apr 15 00:19:17 octopi root[580]: Starting USB webcam

Apr 15 00:19:17 octopi mjpg_streamer[581]: MJPG-streamer [581]: starting application

Apr 15 00:19:17 octopi mjpg_streamer[581]: MJPG-streamer [581]: MJPG Streamer Version: git rev: 5554f42c352ecfa7e

Apr 15 00:19:17 octopi mjpg_streamer[581]: MJPG-streamer [581]: Using V4L2 device.: /dev/video10

Apr 15 00:19:17 octopi mjpg_streamer[581]: MJPG-streamer [581]: Desired Resolution: 1920 x 1080

Apr 15 00:19:17 octopi mjpg_streamer[581]: MJPG-streamer [581]: Frames Per Second.: 30

Apr 15 00:19:17 octopi mjpg_streamer[581]: MJPG-streamer [581]: Format............: JPEG

Apr 15 00:19:17 octopi mjpg_streamer[581]: MJPG-streamer [581]: TV-Norm...........: DEFAULT

Apr 15 00:19:17 octopi mjpg_streamer[581]: MJPG-streamer [581]: init_VideoIn failed

Apr 15 00:19:18 octopi systemd[1]: webcamd.service: Succeeded.

Apr 15 00:19:18 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.

Apr 15 00:19:19 octopi systemd[1]: webcamd.service: Service RestartSec=1s expired, scheduling restart.

Apr 15 00:19:19 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 3.

Apr 15 00:19:19 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.

Apr 15 00:19:19 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...

Apr 15 00:19:19 octopi root[643]: Starting USB webcam

lines 1-48

From now I tried :
camera_usb_options="-r 1920x1080 -f 30 -d /dev/video10
But the problem is the same
:tired_face: :tired_face:

From your lsusb command, you can see there is no USB camera recognised. If this is not recognised, it will not be stream-able.

Suggestion is to unplug the camera, re plug it in, then run dmesg | tail -n 20 to see if maybe there is an error recognising the camera.

Hello, thank you for the answer. Here is the result :

dmesg | tail -n 20
[ 7.439492] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[ 7.439689] bcmgenet fd580000.ethernet eth0: Link is Down
[ 12.724306] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 13.622761] Bluetooth: Core ver 2.22
[ 13.622849] NET: Registered protocol family 31
[ 13.622863] Bluetooth: HCI device and connection manager initialized
[ 13.623225] Bluetooth: HCI socket layer initialized
[ 13.623246] Bluetooth: L2CAP socket layer initialized
[ 13.623280] Bluetooth: SCO socket layer initialized
[ 13.638558] Bluetooth: HCI UART driver ver 2.3
[ 13.638577] Bluetooth: HCI UART protocol H4 registered
[ 13.638668] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 13.638991] Bluetooth: HCI UART protocol Broadcom registered
[ 13.830330] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 13.830337] Bluetooth: BNEP filters: protocol multicast
[ 13.830355] Bluetooth: BNEP socket layer initialized
[ 14.633730] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
[ 18.074542] Bluetooth: hci0: command 0x1003 tx timeout
[ 20.154526] Bluetooth: hci0: command 0x1001 tx timeout
[ 22.234540] Bluetooth: hci0: command 0x1009 tx timeout

Looks like the camera is not being recognised at all by the Pi - there's no messages generated when you plugin the USB camera in. Not even an 'unsupported' issue, or bad drivers, it is not finding a thing.

Ok :thinking: :confused:
Any idea for going forward ? Is there something else to do ? These afternoon I tried to reset the cam and disconnect from the initial wifi, starting as a new webcam but it doesn't work either !

Does the camera work with other devices via USB?

Hello, I know I can't use it on my mac... does it mean i can't use it as a webcam ? Maybe I can only use it for security cam or maybe there is a way to transform it in a webcam ?

That would be my guess, that it does not work as a USB camera.

Is the camera USB 2 or 3 and what model pi?? Pi 4's have both USB 2 and 3 ports and I read it's common for them to not work on USB3.
So try both of the USB2 ports. I have a 3 Pi4+'s and 4 different USB cameras. On one of the pi's any of the USB cameras will only work on one of the USB2 ports. That solved my problem.