VideoCapture OpenCV 2.4.2 error in windows

In my case, the same problem was resolved after deleting all opencv_***.dll files in C:\Windows\System32. So, I use the dll files just through the path like "%PATH%;C: \Program Files \OpenCV2.4.2\build\x86\vc10/bin". Please try it.


I also faced with this problem and solved it by correct the path of the function:

VideoCapture cap(videoName);

If the AVI file of videoName does't exist, it will be an error:

(../../modules/highgui/src/cap_ffmpeg_impl.hpp:XXX)

where XXX represents the line number.

Tags:

Opencv