CurrentTime property of VideoReader object

14 views (last 30 days)
Daniel Barboza
Daniel Barboza on 25 Jun 2019
The VideoReader object mentions that its property CurrentTime gives the timestamp for each frame in seconds from the start of the video file.
Statement (A) : It is not mentioned if this is the way MATLAB predicts it by using the average frame rate value and then using the average time difference between consecutive frames to generate this timestamp? (Average time difference = 1 / Average frame rate)
Statement (B) : Is the timestamp given by CurrentTime the actual position in time of the specific frame when the video was recorded?
I need to confirm this beacause I need to extract timestamped video frames and the time has to be the one recorded when the frame was captured. I do have the start and stop time of the video. But as a camera can never provide the exact frame rate, I cannot depend on merely using the formula to calculate the timestamps based on the start/stop times. If Statement (B) is true, I can use the timestamps provided by MATLAB to calculate when the corresponding frames were captured by adding this time to the video start time.
Any help will be appreciated.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by