Access of time stamps in .avi files

17 views (last 30 days)
Matt
Matt on 31 Aug 2012
From what I've read, most .avi files lack timestamps for each frame. Yet .avi files can contain timestamps for each frame which are not simply the frame number divided by the frame rate. I have .avi files created by Plexon's Cineplex software which do contain the time stamps within the files. They're in the application for viewing the .avi files supplied by Plexon. I would like to find a way to access these timestamps within MATLAB, but I can't seem to find anyway to do this. aviinfo only provides a preset list of fields. Does anyone have any idea how to access metadata from an .avi file if this data is not within the scope of aviinfo?
Thanks!
Matt

Answers (1)

Walter Roberson
Walter Roberson on 31 Aug 2012
AVI can be fixed frame rate or variable frame rate.
Fixed frame rate can have time offsets calculated by knowing the frame rate and frame number.
Variable bit rate are a bit of a nuisance to work with, as you cannot seek to a particular frame using MATLAB's readers. You can, however, read a frame at a time and get() the time property from the avi object.
  1 Comment
Matt
Matt on 4 Sep 2012
Thank you for the reply. I've been using mmreader to create an object of the .avi file. mmreader has properties framerate and duration of the video file but there is no timestamp information. I tried creating a video object by setting the number of frames to 2 but you cannot do this with mmreader. What function would I use to create an object that in which I can access the time property?

Sign in to comment.

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!