File Exchange

image thumbnail

AviRead

version 1.0 (4.84 KB) by

Reads AVI-files and processes position of pixel maximum per frame

2 Downloads

Updated

No License

Reads AVI-files and processes position of pixel maximum per frame

NOTE: supports only uncompressed plain avi(RIFF) files

Tested under MATLAB 5.2

Comments and Ratings (4)

Cedric

Cedric (view profile)

Check of nargin must be reversed: first check if nargin <2, then <3, then <4 (otherwise, option2 is not defined)

David

David (view profile)

i dunno if it's me, but I'm continuously getting this error:

dat=aviread2('video7.avi',100,10);
??? Index exceeds matrix dimensions.

Error in ==> AviRead2 at 117
if min(xx(h:(h+3))'==MOVI); %check for ID: 'movi'

Reza Zahiri

The function actually reads the avi file and shows the specified frames on separate figures. But it doesn't export the frames! It would have been more appropriate if you could call the function like:

frames = AviRead('tst.avi',20);

where size(frame) = [row col frames]

rather than

AviRead('tst.avi',20);

What is the point of reading the data without providing access to them?

J. Larsen

This function doesn't work.

MATLAB Release
MATLAB 5.2 (R10)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video