mmread 1.0

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : Freeware
CreatedCreated : Oct 5, 2007
Size downloadDownloads : 4
Program licensing
Thank you for voting...

function [video, audio] = mmread(filename, frames, ...

function [video, audio] = mmread by Micah Richert(filename, frames, time, disableVideo, disableAudio, matlabCommand)
mmread 1.0 reads virtually any media file. If Windows Media Play can play it, so should mmread [mmread1.0.exe], this includes URLs. It uses the Window's DirectX infrastructure to render the media, so other OSs are out of luck.
filename input file to read (mpg, avi, wmv, asf, wav, mp3, gif, jpg, . . . ) frames specifies which video frames to capture, default [] for all or to specify time
time [startTime stopTime], default [] for all
disableVideo disables ALL video capturing, to save memory or time
disableAudio disables ALL audio capturing, to save memory or time
matlabCommand Do not return the video structure, but call the function specified by matlabCommand. The function definition must match that of processFrame. m. See processFrame. m for more information.
trySeeking [true] set to false to disable this if when using time ranges or frames, and between subsequent reads the data doesn't match.
video is a struct with the following fields:
width width of the video frames height height of the video frames rate the frame rate of the video, if it can't be determined it will be 1.
nrFramesTotal the total number of frames in the movie regardless of how many were captured. Unfortunately, this can not always be determined. If it is negative then it is an estimate based upon the duration and rate
(normally accurate to within . 1%). It can be 0, in which case it could not be determined at all. If it is a possitive number then it should always be accurate.
totalDuration the total length of the video in seconds.
frames a struct array with the following fields:
cdata [height X width X 3] uint8 matricies
colormap always empty
times the corresponding time stamps for the frames (in milliseconds)
audio is a struct with the following fields:
nrChannels the number of channels in the audio stream (1 or 2)
rate sampling rate of the audio, ex. 44100. If it can't be determined then it will be 1.
bits bit depth of the samples (8 or 16)
data the real data of the whole audio stream. This can be played using wavplay. If time ranges are specified,
the length of the data may not correspond to the total time. This normally happens with movies. The issue is
that the start of the audio stream is generally counted at the END of the first frame. So, time is shifted by
nrFramesTotal Audio comes in packets or frames when captured, the division of the audio into frames may or may not make sense.
totalDuration the total length of the audio in seconds.
frames cell array of uint8s. Probably not of great use.
times the corresponding time stamps for the frames (in milliseconds)
If there is no video or audio stream the corresponding structure will be empty.
Specifying frames does not effect audio capturing. If you want only a subsection of the audio use the 3rd parameter "time". Specifying time effects both audio and video. Time is specified in seconds (subsecond
resolution is supported with fractional numbers ex. 1. 125), starting at 0.
Time is defined as startTime (inclusive) to stopTime (exclusive), or using set notation [startTime stopTime).
If there are multiple video or audio streams, then the structure will be of length > 1. For example: audio(1). data and audio(2). data.
[video, audio] = mmread - 0MB('chimes. wav'); % read whole wav file
wavplay(audio. data, audio. rate);
video = mmread 1.0('mymovie. mpg'); % read whole movie
movie(video. frames);
video = mmread('mymovie. mpg', 1:10); %get only the first 10 frames
video = mmread('mymovie. mpg', [], [0 3. 5]); %read the first 3. 5 seconds of the video
[video, audio] = mmread('chimes. wav', [], [0 0. 25]); %read the first 0. 25 seconds of the wav
[video, audio] = mmread('chimes. wav', [], [0. 25 0. 5]); %read 0. 25 to 0. 5 seconds of the wav, there is no overlap with the previous example.
video = mmread('mymovie. mpg', [], [], false, true); %read all frames, disable audio
• MATLAB Release: R13

mmread 1.0 scripting tags: development tools, seconds, mmread, audio, mmread tools, frames, matlab mmread, video. What is new in mmread 1.0 software script? - Unable to find mmread 1.0 news. What is improvements are expecting? Newly-made mmread 1.1 will be downloaded from here. You may download directly. Please write the reviews of the mmread. License limitations are unspecified.