OpenCV 3.0 VideoCapture doesn't open video fil

2019-02-19 20:39发布

OpenCV 3.0 with Java cannot open video file, but it woks with camera. Before I was using OpenCV 3.0-beta it was working well in both, but in OpenCV 3.0 which is released on 2015-04-24 doesn't work with video file.

If anyone know about this problem of OpenCV 3, please tell me the reason and how to solve this.

标签: opencv3.0
2条回答
太酷不给撩
2楼-- · 2019-02-19 21:09

Even after adding C:\opencv\build\x64\vc12\bin to SYSTEM path, if you cannot open VideoCapture then you could also try coping opencv_ffmpegXXX_64.dll from opencv/build/java/x64 or from opencv\build\x64\vc14\bin. I don't know why this works but it worked for me after trying:

https://stackoverflow.com/a/29920295/677185 and https://github.com/opencv/opencv/issues/4974

查看更多
我只想做你的唯一
3楼-- · 2019-02-19 21:16

I solved my problem like this: Copy the C:\opencv\build\x64\vc12\bin to the system path and restart the Eclipse.

Hope this help someone that may has this problem with OpenCV 3.0.

查看更多
登录 后发表回答