Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture::get(CV_CAP_PROP_POS_MSEC) returns -1

I am trying to get the timestamp at which the frame was captured using VideoCapture::get(CV_CAP_PROP_POS_MSEC) but i get the value -1. Am i doing something wrong or is there another way of retrieving the timestamp at which a particular frame was captured from the camera?

VideoCapture::get(CV_CAP_PROP_POS_MSEC) returns -1

  1. I am trying to get the timestamp at which the frame was captured using VideoCapture::get(CV_CAP_PROP_POS_MSEC) but i get the value -1. Am i doing something wrong or is there another way of retrieving the timestamp at which a particular frame was captured from the camera?

  2. If i just take the millisecond count using GetTickCount() function from windows API just before capturing a frame, will it represent an accurate timestamp for the captured frame ?