Ask Your Question

us62's profile - activity

2019-06-30 08:29:17 -0600 received badge  Notable Question (source)
2017-05-13 22:35:01 -0600 received badge  Popular Question (source)
2014-03-26 12:32:12 -0600 received badge  Editor (source)
2014-03-26 12:29:35 -0600 asked a question 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 ?

2014-03-23 17:40:01 -0600 received badge  Supporter (source)
2014-03-21 13:00:02 -0600 commented answer Use VideoWriter class to save video in mp4 container.

I am using C++ and a microsoft HD webcam...i need some way to have timestamps for each frame that i capture

2014-03-19 13:10:35 -0600 commented answer Use VideoWriter class to save video in mp4 container.

My problem is that the video captured from the camera, if stored in an avi container, will lose the timestamp information since avi format does not support it. I need presentation timestamps for each frame.

2014-03-19 12:48:41 -0600 asked a question Use VideoWriter class to save video in mp4 container.

From the openCV documentation i found out that it only supports avi container to store video captured from the webcam. Is there a way where I can use an mp4 container?