Code covered by the BSD License  

Highlights from
mmcount.m

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 1.88 KB File ID: #33885

mmcount.m

by Kevin Bartlett

 

22 Nov 2011 (Updated 09 Dec 2011)

Uses the mmread utility to count the number of frames in a .asf video file.

| Watch this File

File Information
Description

If you want to read in the last frame of a .asf file using mmread(), you can read in the entire file, but this can be very slow or cause Matlab to run out of memory.

You can read in only the last frame using mmread(), but to do this, you need to know the number of frames in the file.

mmcount() counts the number of frames in the file, after which mmread() can be used to read in the final frame. The time taken to count the frames and read in the final frame is much less than the time taken to read in the entire file with mmread().

mmcount() makes use of mmread() itself to do the counting.

Required Products MATLAB
MATLAB release MATLAB 7.12 (2011a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
09 Dec 2011

Changed algorithm for locating final frame. At suggestion of Micah Richert, author of the mmread program, now use the estimated number of frames returned by mmread as an initial guess.

Tag Activity for this File
Tag Applied By Date/Time
mmread Kevin Bartlett 23 Nov 2011 10:32:11
media Kevin Bartlett 23 Nov 2011 10:32:12
video Kevin Bartlett 23 Nov 2011 10:32:12
multimedia Kevin Bartlett 23 Nov 2011 10:32:12
asf Kevin Bartlett 23 Nov 2011 10:32:12

Contact us at files@mathworks.com