Home > Suggestions > Ability to store accurate time stamps in the encoded video file.

Ability to store accurate time stamps in the encoded video file.

Avatar image
Aug 24, 2015
Archive Agent wrote
This may already exist but I will ask anyway.
I am evaluating VisioForge Video Capture SDK for use in an application were it is important to be able to match the times of events in the video with other logged events. Is it possible to extract time stamp information from encoded video file? I would prefer not to have to rely on on inferred times based on recording start times and frame counts since there may be dropped frames, recording start delays,e tc.

Steve Anger on September 01, 2013 19:04
Started
1
Vote
Reply
11 Answers
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Currently it's not possible but we are working on this feature.

on September 04, 2013 10:41
Aug 24, 2015
Archive Agent agent wrote
Jim Little

Has this been added yet?

on March 25, 2014 03:57
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Is it still interesting? Please describe all what you need in this area to implement it.

on July 05, 2015 22:30
Jan 17, 2016
Steve Anger wrote
I am still interested in this feature. When playing back the video file we need to be able to determine the exact time stamp of when each video frame was captured. The most common uses for this would be to display an overlayed time on top of the video as it is played back or to seek to the frame closest to a specified time.
Jan 18, 2016
Roman Minyaylov agent wrote
Hi Steve

Your task looks like frame timestamp, so, you can use OnVideoFrameBuffer/OnVideoFrameBitmap event, that returns each frame data including timestamp.
Jan 18, 2016
Steve Anger wrote
Is the time stamp returned an absolute time or is it a time relative to the start of the video. If it is relative is there a way to determine the exact start time of the recording? I recall from working with a previous evaluation version that when commanding the SDK to start recording that sometimes it would start recording immediately and sometimes it would start recording after 3 or 4 seconds. Without knowing exactly when the recording started it was not possible to determine the exact time of each frame.
Jan 19, 2016
Roman Minyaylov agent wrote
It's relative time. For your task you can use text logo effect in date/time mode to write current actual data on realtime. Do you need it as some other form?
Jan 19, 2016
Steve Anger wrote
What we really need is the ability to queue the video to a specific absolute time. We will be detecting external events and recording the exact time of those events and we need the ability to go back and automatically queue the video to the same absolute time as selected events. I hope this clarifies what we are trying to do.
Jan 19, 2016
Roman Minyaylov agent wrote
I suggest you to use Delayed Start option in Video Capture SDK .Net, this feature allows to connect to camera and made other actions, but real capture start will be made in another API call. So, not 1-2-3-4 seconds, just 1-4 seconds + waiting required time + start on your event. So, you can be sure about correct start time.
Jan 19, 2016
Steve Anger wrote
We will try that. Ideally we would like to get 1-frame accuracy on the timing. I believe that some video encoding formats allow the absolute time to be encoded along with each frame of the video. That would be a beneficial option for us if it was possible.
Jan 19, 2016
Roman Minyaylov agent wrote
OK. But webcams is not frame or time accurate. Facevision gives good results, Logitech not so good, MS too.