cvGrabFrame returns false [closed]

asked 2020-01-22 02:17:00 -0500

The cvGrabFrame in the following lines of code always returns false. I have checked the capture is not NULL, and the file path is correct.

CvCapture *capture;
capture = cvCaptureFromAVI(mVideoInfo.fileName.toLocal8Bit().data());
cvGrabFrame(capture)

I am using QtCreator 4.11.0 (based on Qt 5.14.0), on Mac OS Catalina 10.15.2. The OpenCV I am using is 2.4.10.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by berak
close date 2020-01-22 02:38:25.530117

Comments

1

opencv 2.4.10 is obsolete. may be you can update your code to opencv 3.4.9 or opencv 4.2.0

LBerger gravatar imageLBerger ( 2020-01-22 02:32:30 -0500 )edit
1

@mick609 please do no more use the opencv1.0 C-api, it is no more maintained

berak gravatar imageberak ( 2020-01-22 02:39:33 -0500 )edit