Webcam problem, it doesn´t work

Camera model
Logitech C922

What is the problem?
I doesn´t work

What did you already try to solve it?
I´m pretty new in all of this, i tried to edit octopi.txt, install updates and nothing
I also tried to change resolution, tried -y option, uncomment
#camera="usb"

#camera_http_webroot="./www"
#camera_http_options=""

nothing works, i plug the webcam in my pc and it detect it, but i try to use windows webcam program and fails, also when i plug the cam to my pc 2 lights of the cam bright for a second, when i plug it to de raspberry pi nothing happens, maybe a power supply problem?, im using a 5v/2,4a adapter

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)
lsusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
in this capture i have my printer disconnected

--- 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
/dev/video18
config file='/boot/octopi.txt':USB device was not set in options, start MJPG-st$
/root/bin/webcamd: line 184: printf: 0x: invalid hex number
/root/bin/webcamd: line 184: printf: 0x: invalid hex number
<13>Dec 2 12:56:08 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$
    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
    /root/bin/webcamd: line 103: kill: (426) - No such process

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

- usb: only tries usb webcam

- raspi: only tries raspi cam

Defaults to auto

#camera="usb"

Additional options to supply to MJPG Streamer for the USB camera

Windows users: To edit this file use Notepad++, VSCode, Atom or SublimeText.

Do not use Notepad or WordPad.

MacOSX users: If you use Textedit to edit this file make sure to use

"plain text format" and "disable smart quotes" in "Textedit > Preferences"

Configure which camera to use

Available options are:

- auto: tries first usb webcam, if that's not available tries raspi cam

- usb: only tries usb webcam

- raspi: only tries raspi cam

Defaults to auto

#camera="usb"

Additional options to supply to MJPG Streamer for the USB camera

See Available mjpg-streamer configuration options - Guides - OctoPrint Community Forum for available options

Defaults to a resolution of 640x480 px and a framerate of 10 fps

camera_usb_options="-r 1920x1080 -f 30"

Additional webcam devices known to cause problems with -f

Apparently there a some devices out there that with the current

mjpg_streamer release do not support the -f parameter (for specifying

the capturing framerate) and will just refuse to output an image if it

is supplied.

The webcam daemon will detect those devices by their USB Vendor and Product

ID and remove the -f parameter from the options provided to mjpg_streamer.

By default, this is done for the following devices:

Logitech C170 (046d:082b)

GEMBIRD (1908:2310)

Genius F100 (0458:708c)

Cubeternet GL-UPC822 UVC WebCam (1e4e:0102)

Using the following option it is possible to add additional devices. If

your webcam happens to show above symptoms, try determining your cam's

vendor and product id via lsusb, activating the line below by removing # and

adding it, e.g. for two broken cameras "aabb:ccdd" and "aabb:eeff"

additional_brokenfps_usb_devices=("aabb:ccdd" "aabb:eeff")

If this fixes your problem, please report it back so we can include the device

out of the box: https://github.com/guysoft/OctoPi/issues

#additional_brokenfps_usb_devices=()

Additional options to supply to MJPG Streamer for the RasPi Cam

See Available mjpg-streamer configuration options - Guides - OctoPrint Community Forum for available options.

NOTE: Newer raspi cam modules are reporting as usb devices causing these

options to be ignored. Set camera="raspi" to avoid these issues.

Defaults to 10fps

#camera_raspi_options="-fps 10"

Configuration of camera HTTP output

Usually you should NOT need to change this at all! Only touch if you

know what you are doing and what the parameters mean.

Below settings are used in the mjpg-streamer call like this:

-o "output_http.so -w $camera_http_webroot $camera_http_options"

Current working directory is the mjpg-streamer base directory.

#camera_http_webroot="./www"
#camera_http_options=""

EXPERIMENTAL

Support for different streamer types.

Available options:

mjpeg [default] - stable MJPG-streamer

hls - experimental FFMPEG HLS streamer

#camera_streamer=mjpeg

Well when the cam also doesn't work on your pc I would say the cam is broken

The cam works well, i installed logitech app in my pc and works fine, the problem is only in the raspberry, im goong to reinstall octoprint

I have reinstaled octoprint and i changed the charged for one with 5v/3.1a, when i plug the cam to my pc or my labtop a light from the camera turn on for a second, that doesn´t happen when i plug it to the raspberry pi.

this is my lsusb

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

this is my new log
Starting up webcamDaemon...

--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: usb
usb options: -r 1280x720 -f 60
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
/dev/video18
config file='/boot/octopi.txt':USB device was not set in options, start MJPG-st$
/root/bin/webcamd: line 184: printf: 0x: invalid hex number
/root/bin/webcamd: line 184: printf: 0x: invalid hex number
<13>Dec 2 12:56:19 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$
    MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
    Done bring up all configured video device

Goodbye...

i: Using V4L2 device.: /dev/video10
i: Desired Resolution: 1280 x 720
i: Frames Per Second.: 60
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
Starting up webcamDaemon...

--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: usb
usb options: -r 1280x720 -f 60
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
/dev/video18
config file='/boot/octopi.txt':USB device was not set in options, start MJPG-st$
/root/bin/webcamd: line 184: printf: 0x: invalid hex number
/root/bin/webcamd: line 184: printf: 0x: invalid hex number
<13>Dec 2 12:56:26 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$
    MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
    i: Using V4L2 device.: /dev/video10
    i: Desired Resolution: 1280 x 720
    i: Frames Per Second.: 60
    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...

This means that the Raspberry Pi does not detect your webcam. It probably means that it needs a special driver (that for Windows may be included in the app you installed). You might struggle to get it to work on Linux unless you can find somewhere on the internet with instructions for this camera.

It’s a logitech c922 pro, it appears in the compatible webcams list, i have bought today a new charcer 5,25v/3a i think thats the problem, when amazon arrive i’ll post the result, i hope it works

it doesnt works with the new charger

A charger is not a (decent) power supply.

i bought this one

5.25v 3a, does´t work, i just tried a C920s and doesn´t wok either, but i plug my printer and lsusb detect it, but the cams don´t
Bus 001 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sorry for so many post, but i´m updating my problem xDD. A friend of mine has lend me other raspberry pi 3 model b, the webcam works perfectly and with my sd card, so the problem is in my raspberry pi 3 model b, any idea about that problem and how to solve it?, if it´s no a physical problem, thanks in advance