Skip to content

Find a way to identify each camera instead of managing them by linux device path #139

@joaoantoniocardoso

Description

@joaoantoniocardoso

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions