Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

hi vbopencv, please use the c++ api in the 'next' version of your code ;)

cv::VideoCapture cap(some_stream);

if (!cap.isOpened())  // check if we succeeded
    cerr << "Can't open Capture" << endl;

double pos = cap.get(CV_CAP_PROP_POS_FRAMES);
bool ok = cap.set(CV_CAP_PROP_PROP_POS_FRAMES, pos); // please check return value..

then, not all properties might be supported by your capture/device or the src you're using.

i.e you can't cue the stream from a webcam, also some video formats don't support that.