-
Notifications
You must be signed in to change notification settings - Fork 8
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
macOS M1: Issues loading BridJ in webcam-capture
even though webcam-capture-driver-native
doesn't need it.
#9
Comments
It's strange, I did not find any problem with Bridj given that the correct driver is set up very early in the program. But I agree with the 2 referenced issues, no default driver should be bundled with the core jar. And bridj should be removed altogether. |
Even setting the driver very early there was a call to BridJ to determine the OS which was causing a failure at class initialization time due to no aarch64 native lib for Mac. |
Oh I see, thanks for sharing that information! I could only test it with Intel x64 Mac |
It will be difficult to introduce changes to https://github.com/sarxos/webcam-capture, maybe I can have a fork and create a pull request until they accept the changes. |
Yes, I made a fork of sarxos (and BridJ) a few years ago. I'm planning on updating it. |
I removed the default driver, bridj, bundled natives and many things from my fork in order to use it for my app without problems. You might find it useful. I was looking at the code of webcam-capture but I was surprised by how many things it does. Not sure at this point if it's better to update the library or create a new very lightweight library that does only the fundamentals:
Everything else looks unnecessary. Maybe a way to notify connected/disconnected cameras. But that's it. Also, there should be no reason to use OpenCV driver, for example, or any other driver, now that we have drivers that use OS native APIs. Actually I created them because I found out that none of the drivers reported a correct list of supported resolutions, device ids or worked correctly and with acceptable performance. Maybe the raspberry pi one is necessary too. |
I will check it out!
That'a a good question.
I'm not sure what the use cases are, but there might be some.
Even if we decide to create a "new very lightweight library", it might be a good idea to make it API compatible with (or with easy migration from) @johanvos what do you think? |
I took a quick look at the fork and I noticed you deleted the entire I see the reasons for doing this:
However, all we really need is for the dependencies/binaries for BridJ and IMAJ to be removed from the core So the answer to whether to remove the |
For the moment I was only making it work for my app, I agree that a proper fix for the upstream should not remove as many things, at least in a first PR |
I would still separate the drivers from the processing. I am personally mainly interested in the drivers itself, which are typically small files with C-code, but then with a Java API (which should only need 2 or 3 methods imho). |
I just released version |
See:
WebcamDefaultDriver
from corewebcam-capture
module. sarxos/webcam-capture#888master
branch fails trying to load BridJ. sarxos/webcam-capture#889This is an upstream issue, but I thought it would be helpful to note it here. (We should push for sarxos/webcam-capture#888 upstream and/or create a fork)
The text was updated successfully, but these errors were encountered: