Precise sych playback of video using activex control

1 view (last 30 days)
Hi,everyone. I recently came into this problem. I have a file that recorded the time-frame information when the video was captured through webcam. At the same time, data was recorded. When I tried to playback the video with data using matlab activex control either Windows Media Player or VLC, I cannot retrieve the current frame number. I tried to use currentposition(WMP) or time(VLC) to synch the video with data. Apparently when the video was captured, there were some kind of jitters. And the jitter accumulated and ruined my synchronization. I assumed that when playing back the video, the 'time' of the video from Activex is not the 'timestamp' when the video was recorded. Activex simply play back the video frame by frame with a constant interval(maybe according to fps). At last, I tried the relative position (0-1) to estimate the current frame number as I already have the total frame numbers stored before (you cannot find the total frame number information in activex control). Through this estimated frame number, I can query for the precise 'time' through time-frame file. This worked pretty well. But I am not comfortable with this estimated frame number. I am just curious why these video playing component does not implement the this simply frame number information? Or is there any other video playing tool I can use to get this information?

Answers (0)

Community Treasure Hunt

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

Start Hunting!