Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use soft link as device path #396

Open
turboc1208 opened this issue Oct 7, 2023 · 0 comments
Open

use soft link as device path #396

turboc1208 opened this issue Oct 7, 2023 · 0 comments

Comments

@turboc1208
Copy link

When I reboot my system sometimes my cameras end up on different video ports in the dev directory. In other systems I am able to go a sub directory under dev to find a link with the actual devices name. The applications are evidently able to use that link to get back to the correct device name. When I do this with mjpg-streamer, it does not work. for example in my case
/dev/input/by_id/283_webcam1_whatever actually points to /dev/video2. and
/dev/input/by_id/847_somethinelse actually points to /dev/video3.
by using the links under the by_id directory I don't have to worry about the video# changing when I reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant