forked from PatternConsulting/opencv
-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
videoCapture.isOpened() always is false! #101
Comments
ok, it need install ffmpeg; |
Hello, ffmpeg has been installed for centos7 in my system. But still report this error
ffmpeg version info
|
Hi, This opencv was built with ffmpeg disabled. |
Hi, could be re-builded with ffmpeg enabled? (or can you suggest how to build with ffmpeg?) best regards |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Information
// example for java user
OpenCV version: 4.7.0
Operating System / Platform: Centos7 or Centos8 已安装ffmpeg
Compiler & compiler version: GLIBC 2.28
JAVA 1.8
Detailed description
videoCapture.isOpened() always is false!
使用centos8,videoCapture.isOpened()一直返回false,用centos7,报错defaultException异常:Handler dispatch failed; nested exception is java.lang.UnsatisfiedLinkError: /tmp/opencv_openpnp3982757882420087236/nu/pattern/opencv/linux/x86_64/libopencv_java460.so: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /tmp/opencv_openpnp3982757882420087236/nu/pattern/opencv/linux/x86_64/libopencv_java460.so)
代码:
OpenCV.loadLocally();
videoCapture = new VideoCapture(downFilePath); //downFilePath文件的绝对路径
videoCapture.open(downFilePath);
if (!videoCapture.isOpened()) {
return;
}
maven config:
Steps to reproduce
Issue submission checklist
The text was updated successfully, but these errors were encountered: