Camera model
1st camera - picam, working fine
2nd camera - logitech c920
What is the problem?
I followed the Setting up multiple webcams in OctoPi the right way guide. first camera, the raspi cam, works fine. But I can't get the second camera to stream at all.
Raspi cam streams perfect at http://192.168.1.189:8080/?action=stream
In theory, logi cam should be streaming at http://192.168.1.189:8081/?action=stream but getting the generic "site cannot be reached" error
What did you already try to solve it?
Ensured the camera shows up under both lsusb
and ls /dev/v4l/by-id
, it does:
usb-046d_HD_Pro_Webcam_C920_B596D2EF-video-index0
usb-046d_HD_Pro_Webcam_C920_B596D2EF-video-index1
Tweaked the octopi.txt and octopi.conf.d/webcam2.txt files according to a few other forum posts (change www-octopi to www, etc)
Made sure TSD was fully uninstalled using this guide: I installed a broken plugin, how do I uninstall it again?. No change
Logs
webcamd.log attached
webcamd.log (73.3 KB)
Additional information about your setup (OctoPrint version, OctoPi version, ...)
OctoPrint version : 1.6.1
OctoPi version : 0.18.0
octopi.txt and octopi.conf.d/webcam2.txt files
octopi.txt:
### Configure which camera to use
#
camera="usb"
### Additional options to supply to MJPG Streamer for the USB camera
#
#camera_usb_options="-r 1920x1080 -f 24"
camera_usb_options="-d /dev/video0 -r 1920x1080 -f 24"
### Configuration of camera HTTP output
#
camera_http_webroot="./www"
camera_http_options="-n"
octopi.conf.d/webcam2.txt:
### 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
#
#camera_usb_options="-r 1280x720 -f 10"
camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_B596D2EF-video-index0 -y"
#camera_usb_options="-r 640x480 -f 10 -d /dev/video0"
### Configuration of camera HTTP output
#
camera_http_webroot="./www"
camera_http_options="-p 8081"