You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that cameras may change from one USB port to another, and even when they are in the same USB port, there is no guarantee that their sub-devices will be created in the same order, resulting in /dev/video0 with H264 format on one boot, and maybe /dev/video0 with YUYV on the next boot.
One idea to identify each camera and coherently keep the settings per camera (even when swapping between USB ports), is to not create streams based on the Linux device path when loading them from the settings file. Instead, we should use some UID like ID_SERIAL from udevadm info --name=/dev/video0 combined with the device's format options, like H264, YUYV, etc.