MULTICAM with 2 identical logitech cameras

Camera model

LOGITECH QUICKCAM

What is the problem?

I'm trying to install two logitech quickcam . If I set the first one (wedcam2.txt) up with port 8081 and the second (webcam3.txt) with port 8082 the second doesn't work, but if I unplug webcam2 and reboot webcam3 works but on the webcam2 button

What did you already try to solve it?

the line of code i've changed in ssh
WEBCAM2.txt
camera="usb"
camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/usb-046d_0991_803151F5-video-index0"
camera_http_options="-n -p 8081"
WEBCAM3.txt
camera="usb"
camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/usb-046d_0991_803151F5-video-index0"
camera_http_options="-n -p 8082"

Have you tried running in safe mode?

WRITE HERE

Did running in safe mode solve the problem?

WRITE HERE

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

WRITE HERE

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

WRITE HERE

Hi,

I have encountered the same problem.
Instead of using: /dev/v4l/by-id in the path, use: /dev/v4l/by-path

To do this, start by listing your hardware as follows:
ls /dev/v4l/by-path

ls /dev/v4l/by-path

platform-bcm2835-codec-video-index0
platform-bcm2835-isp-video-index0
platform-bcm2835-isp-video-index1
platform-bcm2835-isp-video-index2
platform-bcm2835-isp-video-index3
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-video-index0
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-video-index1
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0
platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index1

Usb cameras can be identified :

  • platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-video-index0
  • platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-video-index1
  • platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0
  • platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index1

Use device paths ending in "-video-index0".

Edit your configuration files webcam2, webcam3, ...
And use the paths you've previously copied.
Don't forget to add "/dev/v4l/by-path/" before, and the -d parameter.

Configuration example for my webcam2 configuration file:

camera="usb"
camera_usb_options="-r 1920x1080 -f 10 -d /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0"

After modifying your various configuration files, reboot your pi

sudo reboot -n

I hope this solves your problem. It worked for me.

Enjoy !

Here is the topic where my problem was discussed:
https://community.octoprint.org/t/impossible-to-operate-two-identical-cameras-solved/52803

You can also try the script provided by @paukstelis (See the content of the discussion thread - link above)

(Thanks to @paukstelis for the help)