order with webcam persistence

Shupacabras

New Member
Hello,

I have 3 USB webcam connected to my computer with Ubuntu 20.04

but every time I turn on or restart the obs computer it doesn't take the assignment order and even to modify the assignments I have to close it again up to a couple of times because otherwise some of them won't work.

is this an obs problem?

or the assignment of the order of usb devices by the system?

Sorry my bad english.
 
this has been a problem forever and i don't think the suggested workaround (changing how the cameras were identified) was ever implemented if it was possible.

i worked around by getting a USB3 hub and leaving the cameras hooked into that. USB3 had sufficient bandwidth to support all the cameras and it didn't keep screwing around with the enumeration.
 
here was a suggested workaround from another thread...

or those who are trying to set a fixed device for each time the machine reboots and the USB ordering gets randomised; I found a way to force it;

Edit the json file in your scenes folder (in my case, Untitled.json) and where you see /dev/video0 (1, 2, 3 etc) replace it with the /dev/v4l/by-id/ name path instead, eg;

"name": "Facecam",
"private_settings": {},
"push-to-mute": false,
"push-to-mute-delay": 0,
"push-to-talk": false,
"push-to-talk-delay": 0,
"settings": {
"device_id": "/dev/v4l/by-id/usb-046d_C922_Pro_Stream_Webcam_424D78DF-video-index0",
"framerate": 65566,
"input": 0,
"pixelformat": 842094169,
"resolution": 125830200
},


if i recall correctly, i didn't know what to use for editing the JSON file, and the editors I tried ended up with everything in an unformatted text blob.
 
Top