Ask Your Question
0

Debug assertion failure + warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:361)

asked 2013-07-04 08:34:05 -0600

updated 2013-10-02 02:04:54 -0600

berak gravatar image

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.

edit retag flag offensive close merge delete

Comments

1

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.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-07-04 08:45:24 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
-1

answered 2013-10-02 01:52:50 -0600

Hi there, i also get same problems, I try to read all document on internet but i can't fix it. I'm using 2.4.6 and I try to use low version as 2.3.1 but don't success. I test on Opencv 2.2, it's work,i can load a video, but then i try to test with my my webcam not work Please help me. Thanks.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-04 08:34:05 -0600

Seen: 1,338 times

Last updated: Oct 02 '13