Access of time stamps in .avi files

23 次查看(过去 30 天)
Matt
Matt 2012-8-31
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

回答(1 个)

Walter Roberson
Walter Roberson 2012-8-31
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 个评论
Matt
Matt 2012-9-4
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by