From: raid on
hi there
please help me
I have large avi files in matlabe about 2083frames the matlab cannot display because the memary not enough to display,how can I do that.
this is my program:-
ubbleObj = mmreader('C:\Documents and Settings\All Users\Documents\My Videos\FR2.5_Q75W_All.avi');
get(BubbleObj)

frameRate=get(BubbleObj,'FrameRate');

video=read(BubbleObj);

implay(video,frameRate);
General Properties:
Duration = 69.5028
Name = FR2.5_Q75W_All.avi
Path = C:\Documents and Settings\All Users\Documents\My Videos
Tag =
Type = mmreader
UserData = []

Video Properties:
BitsPerPixel = 24
FrameRate = 29.9701
Height = 480
NumberOfFrames = 2083
VideoFormat = RGB24
Width = 720

??? Not enough memory available for 2083 frames.

Error in ==> mmreader.read at 69
videoFrames = read(uddobj)

please help me as soon as possible

cheers

Raid
From: Sourav Chatterjee on
Use aviread ('filename.avi',n) to read the n_th frame. This way, MATLAB will read only one frame at a time, and there will be no memory overload.

Sourav



"raid " <raid2005shaker(a)yahoo.com> wrote in message <i0560p$a6u$1(a)fred.mathworks.com>...
> hi there
> please help me
> I have large avi files in matlabe about 2083frames the matlab cannot display because the memary not enough to display,how can I do that.
> this is my program:-
> ubbleObj = mmreader('C:\Documents and Settings\All Users\Documents\My Videos\FR2.5_Q75W_All.avi');
> get(BubbleObj)
>
> frameRate=get(BubbleObj,'FrameRate');
>
> video=read(BubbleObj);
>
> implay(video,frameRate);
> General Properties:
> Duration = 69.5028
> Name = FR2.5_Q75W_All.avi
> Path = C:\Documents and Settings\All Users\Documents\My Videos
> Tag =
> Type = mmreader
> UserData = []
>
> Video Properties:
> BitsPerPixel = 24
> FrameRate = 29.9701
> Height = 480
> NumberOfFrames = 2083
> VideoFormat = RGB24
> Width = 720
>
> ??? Not enough memory available for 2083 frames.
>
> Error in ==> mmreader.read at 69
> videoFrames = read(uddobj)
>
> please help me as soon as possible
>
> cheers
>
> Raid