Giter Club home page Giter Club logo

Comments (11)

vStone avatar vStone commented on June 16, 2024 1

You could resolve this by creating a fixed symlink using udev matching the camera\#\description with ENV{ID_V4L_PRODUCT}

from akvcam.

hipersayanX avatar hipersayanX commented on June 16, 2024 1

@fangfufu

How comes?

I need the devices to be predictable so I can simplify my waitForDevices function, instead of waiting for all v4l2 devices created by all drivers and then waiting for the same number of devices to appear, I can wait for the specific devices to appear. I did not figured out at beginning 😅

from akvcam.

hipersayanX avatar hipersayanX commented on June 16, 2024

No, I prefer to let the kernel decide which number corresponds to each device, this way it avoids collisions with other drivers.

from akvcam.

fangfufu avatar fangfufu commented on June 16, 2024

But that way it messes up the order of my webcams. :(

from akvcam.

hipersayanX avatar hipersayanX commented on June 16, 2024

Not sure if I want to do that way, I think it will cause more problems than solutions, let me think it.

from akvcam.

fangfufu avatar fangfufu commented on June 16, 2024

Personally, I think it is would be a nice to give users the option to specify things. You can leave the default behaviour as it is.

The only reason I opened this ticket is because I hardcoded the webcam path in some of my scripts... lol.

from akvcam.

hipersayanX avatar hipersayanX commented on June 16, 2024

At the end I'll have to implement this, this could be useful in the future.

from akvcam.

fangfufu avatar fangfufu commented on June 16, 2024

At the end I'll have to implement this, this could be useful in the future.

How comes?

from akvcam.

hipersayanX avatar hipersayanX commented on June 16, 2024

I've implemented this in the latest commit.

from akvcam.

fangfufu avatar fangfufu commented on June 16, 2024

Cool! I will close the issue for now. :)

from akvcam.

StefanBruens avatar StefanBruens commented on June 16, 2024

instead of polling for the devices, you should listen to the relevant udev "ADD" events.

from akvcam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.