Вопрос

I am trying to open an AVI file using OpenCV, Here is the code line which i used to read the video file.

CvCapture* capture = cvCaptureFromAVI(video_file_name);

But it returns a cvCapture ponter which points to an address of 0x00000000 (hence an invalid pointer)

Can this be a codec related issue? missing ffmpeg?

Это было полезно?

Решение

Problem must be with the ffmpeg codec. there must be a mismatch between the binaries that causes a variable called icvCreateFileCapture_FFMPEG_p to be null, and logical check on this variable terminates the function before trying to read the avi file

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top