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?
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 ?