-
-
Notifications
You must be signed in to change notification settings - Fork 97
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 open / write video file / stream on Linux #55
Comments
See comments in openpnp/openpnp#774. ffmpeg is not included for legal reasons, and because I haven't found a way to statically link it. You can install it manually and it should work. |
FFmpeg is already installed on my system and it does not work. I had to rebuild opencv to be able to use videos with it. I understand the license issue, but at this state, the linux version is almost useless without video support. Maybe you have to warn about it. |
👍 I also just discovered this today while trying to port an old OpenCV project to use this. This kills the usefulness of this library because the application revolves around |
I think I also ran into the same problem. The VideoCapture capture = new VideoCapture();
capture.open(path); I'm using this version on debian linux (x86_64)
|
Short update: I was able to solve my issue by using the lib from the I load the lib via @vonnieda |
I am having the same issue on windows. Is it also not included there? |
I have also not yet been able to find a way to get this to work. Tried -Djava.library.path and -Djna.library.path, but neither seems to work |
@Jotschi Hi, thank you for sharing your answer, however, are you still using this Maven package in addition to |
@deanbrok I have not changed my setup and it works with /usr/lib/jni and debian package opencv4.2-jni (4.2.0+dfsg-6+b4). |
@Jotschi Thanks for such a quick reply! So you are no longer using Openpnp's Maven package? And I'm planning to deploy the app on a Docker image, I imagine your solution would work fine there too? |
@deanbrok I'm still using
If you provide the same libopencv4.2-jni package in your container image it should work. I'm not aware of any other working solution. |
@Jotschi Thank you for the help! I will try out your solution. |
Closing as a duplicate of #74. Please assist with that issue. |
The Linux lib is not built using video framework when looking at the cmake.log, resulting no video can be used:
You should build with ffmpeg, gstreamer and DC1394 support (like this on Ubuntu 18.04):
The text was updated successfully, but these errors were encountered: