Cameras Randomly Allocated to USB Ports

Graham2709

New Member
Hi All

I have two Logitec Cameras on one machine. The problem is that they are being randomly allocated to the USB's. It works okay most times, but not always. This affects my scenes, and swaps the cameras in several scenes. I wish to avoid this situation and wish to specify which camera is allocated to which USB.

How can I control which USB a camera is allocated to?

See OBS and OS versions and dmesg below.

I look forward to your help. Thank you
Graham2709

OBS and OS versions:
Code:
OBS Studio 26.1.0 (64 bit)
Platform: Memory: 11.7 GB; Processor: Intel Xeon(R) CPU X550@2.67GHzx4; Graphics: AMD Caicos; OS: Fedora 33 (Workstation), 64 bit, Gnome 3.38.2; X11.

Dmesg filter:
Code:
$ dmesg | grep "usb 2" | awk -F "]" '{print $NF}' ]
 usb 2-5: new high-speed USB device number 3 using ehci-pci
 usb 2-5: New USB device found, idVendor=046d, idProduct=082d, bcdDevice= 0.11
 usb 2-5: New USB device strings: Mfr=0, Product=2, SerialNumber=1
 usb 2-5: Product: HD Pro Webcam C920
 usb 2-5: SerialNumber: F71A22EF

 usb 2-6: new high-speed USB device number 4 using ehci-pci
 usb 2-6: New USB device found, idVendor=046d, idProduct=082d, bcdDevice= 0.11
 usb 2-6: New USB device strings: Mfr=0, Product=2, SerialNumber=1
 usb 2-6: Product: HD Pro Webcam C920
 usb 2-6: SerialNumber: D22CD4EF

 usb 2-5: reset high-speed USB device number 3 using ehci-pci
 usb 2-6: reset high-speed USB device number 4 using ehci-pci
 

Tuna

Member
I think there is a PR about that making it more controllable. It isn't merged yet as far as i know.

Besides that. Linux's udev rules system does has a mechanism to identify and controlling devices in its tree. With that should also be able to map devices to a unique name all the time.
 
Top