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

Unable to get webcam image on Raspberry Pi (Arch Linux) #244

Closed
ashiishsharma opened this issue Jul 31, 2014 · 3 comments
Closed

Unable to get webcam image on Raspberry Pi (Arch Linux) #244

ashiishsharma opened this issue Jul 31, 2014 · 3 comments

Comments

@ashiishsharma
Copy link

Hi,

I am using Raspberry pi (Arch Linux) to get webcam image with webcam-capture (0.3.9) library with Java (1.8.0_06), but my application fails with the following stack trace:

http://pastebin.com/FB7Z1gvQ

The JVM heap log referred in the stack trace above are here:

http://pastebin.com/pFNYRk81

Please help.

Thanks in advance
Ashish

@camilog
Copy link

camilog commented Nov 12, 2014

Any progress with this?
I have a similar problem.

@sarxos
Copy link
Owner

sarxos commented Nov 13, 2014

@camilog, this problem is caused by a bug in BridJ. I'm not sure when it will be resolved. For the time you can try to compile v4l4j on RasPi and use driver-v4l4j for Webcam Capture API to use it under the hood. The API remains the same, you just need to set driver before your code is invoked (I usually do this in static block). Example can be found here:

https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-drivers/driver-v4l4j/src/example/java/TakePictureExample2.java

@camilog
Copy link

camilog commented Nov 13, 2014

Thanks a lot @sarxos ;)

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

4 participants