Labits camera not working

Camera model LABISTS Cámara Oficial para Raspberry Pi 5MP
** Raspberry Pi ** Pi 4 Modelo B / 4 GB
** Octopi ** 0.17.0

What is the problem?
Message "Webcam Stream loading" when I go to control

What did you already try to solve it?
checked the cables multiple times.
altered file octopi
uncommented camera="auto"
uncommented camera_raspi_options="-fps 10"
and changed last 2 lines
camera_http_rebroot="./www"
camera_http_options=""

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)
vcgencmd get_camera
supported=1 detected=1

lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1eaf:0029
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

-- Logs begin at Thu 2020-12-31 21:55:41 GMT, end at Fri 2021-01-01 17:16:27 GMT
Dec 31 22:00:24 octopi systemd[1]: Starting the OctoPi webcam daemon with the us
Dec 31 22:00:24 octopi webcamd[341]: Starting up webcamDaemon...
Dec 31 22:00:24 octopi webcamd[341]: --- Configuration: ------------------------
Dec 31 22:00:24 octopi webcamd[341]: cfg_file: /boot/octopi.txt
Dec 31 22:00:24 octopi webcamd[341]: camera: auto
Dec 31 22:00:24 octopi webcamd[341]: usb options: -r 640x480 -f 10
Dec 31 22:00:24 octopi webcamd[341]: raspi options: -fps 15
Dec 31 22:00:24 octopi webcamd[341]: http options: -w ./www
Dec 31 22:00:24 octopi webcamd[341]: Explicitly USB device:
Dec 31 22:00:24 octopi webcamd[341]: -------------------------------------------
Dec 31 22:00:25 octopi webcamd[341]: Found video devices:
Dec 31 22:00:25 octopi webcamd[341]: raspi
Dec 31 22:00:25 octopi webcamd[341]: config file='/boot/octopi.txt':Start MJPG-s
Dec 31 22:00:25 octopi root[436]: Starting Raspberry Pi camera
Dec 31 22:00:25 octopi webcamd[341]: <13>Dec 31 22:00:25 root: Starting Raspberr
Dec 31 22:00:25 octopi webcamd[341]: Running ./mjpg_streamer -o output_http.so -
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: starting applica
Dec 31 22:00:25 octopi webcamd[341]: MJPG Streamer Version: git rev: 501f6362c5a
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: MJPG Streamer Ve
Dec 31 22:00:25 octopi webcamd[341]: i: fps.............: 15
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: fps.............
Dec 31 22:00:25 octopi webcamd[341]: i: resolution........: 640 x 480
lines 1-23...skipping...
-- Logs begin at Thu 2020-12-31 21:55:41 GMT, end at Fri 2021-01-01 17:16:27 GMT
Dec 31 22:00:24 octopi systemd[1]: Starting the OctoPi webcam daemon with the us
Dec 31 22:00:24 octopi webcamd[341]: Starting up webcamDaemon...
Dec 31 22:00:24 octopi webcamd[341]: --- Configuration: ------------------------
Dec 31 22:00:24 octopi webcamd[341]: cfg_file: /boot/octopi.txt
Dec 31 22:00:24 octopi webcamd[341]: camera: auto
Dec 31 22:00:24 octopi webcamd[341]: usb options: -r 640x480 -f 10
Dec 31 22:00:24 octopi webcamd[341]: raspi options: -fps 15
Dec 31 22:00:24 octopi webcamd[341]: http options: -w ./www
Dec 31 22:00:24 octopi webcamd[341]: Explicitly USB device:
Dec 31 22:00:24 octopi webcamd[341]: -------------------------------------------
Dec 31 22:00:25 octopi webcamd[341]: Found video devices:
Dec 31 22:00:25 octopi webcamd[341]: raspi
Dec 31 22:00:25 octopi webcamd[341]: config file='/boot/octopi.txt':Start MJPG-s
Dec 31 22:00:25 octopi root[436]: Starting Raspberry Pi camera
Dec 31 22:00:25 octopi webcamd[341]: <13>Dec 31 22:00:25 root: Starting Raspberr
Dec 31 22:00:25 octopi webcamd[341]: Running ./mjpg_streamer -o output_http.so -
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: starting applica
Dec 31 22:00:25 octopi webcamd[341]: MJPG Streamer Version: git rev: 501f6362c5a
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: MJPG Streamer Ve
Dec 31 22:00:25 octopi webcamd[341]: i: fps.............: 15
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: fps.............
Dec 31 22:00:25 octopi webcamd[341]: i: resolution........: 640 x 480
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: resolution......
Dec 31 22:00:25 octopi webcamd[341]: i: camera parameters..............:
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: camera parameter
Dec 31 22:00:25 octopi webcamd[341]: Sharpness 0, Contrast 0, Brightness 50
Dec 31 22:00:25 octopi webcamd[341]: Saturation 0, ISO 0, Video Stabilisation No
Dec 31 22:00:25 octopi webcamd[341]: Exposure Mode 'auto', AWB Mode 'auto', Imag
Dec 31 22:00:25 octopi webcamd[341]: Metering Mode 'average', Colour Effect Enab
Dec 31 22:00:25 octopi webcamd[341]: Rotation 0, hflip No, vflip No
Dec 31 22:00:25 octopi webcamd[341]: ROI x 0.000000, y 0.000000, w 1.000000 h 1.
Dec 31 22:00:25 octopi webcamd[341]: o: www-folder-path......: ./www/
Dec 31 22:00:25 octopi mjpg_streamer[437]: MJPG-streamer [437]: www-folder-path.
lines 1-34

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="auto"

Additional options to supply to MJPG Streamer for the USB camera

See https://faq.octoprint.org/mjpg-streamer-config for available options

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

#camera_usb_options="-r 640x480 -f 10"

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 https://faq.octoprint.org/mjpg-streamer-config for available options

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=""

Issue fixed, the problem was with the camera. New camera fixed the issue.

1 Like