Debug assertion failure + warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:361)
Hey everybody,
I am using an old project with visual studio that used to run correctly before, but now im facing this fatal error "debug assertion failure" with a warning msg in my console saying
Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:361)
I did the debug and my program stops running and shows an exception on line:
static IplImage* tempImage = cvCreateImage(cvGetSize(frames[frameShown]), frames[frameShown]->depth, frames[frameShown]->nChannels);
I've try to put the dll files into the same folder as .exe but in vain! please help i couldn't progress in my work due to this error.
First of all, OpenCV has had tons of ffmpeg problems, which have been fixed in latest releases, so be sure to use OpenCV 2.4.6 which is the latest stable release. Next to that, please use the C++ style API if possible, which is newer and helps people make way less errors with the pointer handling and object creation/deletion.