Setting up multiple webcams in OctoPi the right way

Thank u! This is exactly as I was looking for! You're the man!

Hey, great guide!

Disclaimer: im a total noob with raspberry..

HW: Raspberry pi4 4gb ram, with 3A powersuply.

I tried it to get my octoprint working with 2 usb camera's
Camera #1: WebcamJPL Vision mini (stole it from gf after working from home was over)
Camera #2: Endoscope camera that it got from aliexpress a year ago

Tested both camera's on my mac and they work.

In Octoprint however the webcam works fine after putting octopi.txt to usb and removing the10fps part.

The enscope camera doesn't seem to work at all. I even get the " The webcam server is currently not running" screen.

lsusb with both cam's connected:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0c45:636b Microdia
Bus 001 Device 003: ID 2c99:0002
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb with no cam's connected:

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

lsusb with only webcam connected:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0c45:636b Microdia
Bus 001 Device 003: ID 2c99:0002
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb with only endoscope cam connected:

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

The ls /dev/v4l/by-id command gives me this:

pi@octopi:/boot $ ls /dev/v4l/by-id
usb-JPL_Vision_Mini_JPL_Vision_Mini_JPL_Vision_Mini-video-index0
usb-JPL_Vision_Mini_JPL_Vision_Mini_JPL_Vision_Mini-video-index1

So as far as i can see my endoscope camera is not getting recognized, the powersuply should strong enough.

Device paths:

pi@octopi:/boot $ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
        /dev/video10
        /dev/video11
        /dev/video12

bcm2835-isp (platform:bcm2835-isp):
        /dev/video13
        /dev/video14
        /dev/video15
        /dev/video16

JPL Vision Mini: JPL Vision Min (usb-0000:01:00.0-1.3):
        /dev/video1
        /dev/video2

Cannot open device /dev/video0, exiting.

So i have no idea if this is the info you guys need to see or if i can give more information.
But any help is welcome.

EDIT: new generic endoscope (looks the same) solved the problem.. It's working now.

From the command outputs you've shown the endoscope isn't recognized. Perhaps it requires a specific driver to be used under linux. Also, another thing to see whether, or rather how the endoscope camera is recognized would be to unplug it, run dmesg -w, plug it in, and then pasting the output. You can then exit dmesg by pressing ctrl+c.

Thanks for your help, i thought the same, but I am new to raspberry and have no idea how the drivers work.

I didnt see anything happening if i put the endoscope camera in so i asume THIS is what you wanted to see?

Actually I made a typo in the command I've given you, it should have been dmesg -W (uppercase W instead of lowercase), could you retry with this command, and post the output here? With the output you've given it's hard to find out what happens, sorry to make you do this twice...

No you had it right the first time, -W doesnt work and -h tells me -w is follow. when i plug my endoscope in it doesnt do anything. With my webcam it is giving me information I expected.
edit:
I ordered an other endoscoop camera, to see if that one works.

distribution differences, I'm used to Fedora, not Raspberry Pi OS or Debian...