I have a problem using VideoCapture class with OpenCV 2.4.2 under windows XP 32bits. It doesn\'t open any file or camera and fixing it\'s being a pain. Im using visual studi
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.