Highgui V4L error when using MJPEG for OpenCV

571 views Asked by At

I am running OpenCV on an ARM A9 processor. I am trying to use MJPEG so my C920 webcam runs a lot faster. The beginning of my program is as follows:

VideoCapture cap(CV_CAP_ANY);
cap.set(CV_CAP_PROP_FOURCC, CV_FOURCC('M', 'J', 'P', 'G'));
cap.set(CV_CAP_PROP_FRAME_WIDTH, 640);
cap.set(CV_CAP_PROP_FRAME_HEIGHT, 480);

The programs compiles, however, the following error appears when I run it:

HIGHGUI ERROR: V4L: Property <unkown property string>(6) not supported by device

I am completely clueless on what to do. Does anyone have an idea of why this error is occurring?

0

There are 0 answers