MatLab and aviread



I am using Matlab7 student version.I have taken a long movie of
10030 frames with frame grabber.

1) aviinfo is

Filename: 'I52Sept11_Vid2.avi'
FileSize: 3.0865e+009
FileModDate: '11-Sep-2006 15:25:29'
NumFrames: 10030
FramesPerSecond: 30.0000
Width: 640
Height: 480
ImageType: 'indexed'
VideoCompression: 'none'
Quality: 0
NumColormapEntries: 256

2) When I try to read this .avi file in matlab, for example,

N = 3476;

mov = aviread('I52Sept11_Vid2',N);

mov =

cdata: [480x640 uint8]
colormap: [256x3 double]

it can only read up tp 3476 frames.When I try to read 3477th and
other higher frames,the error message is as follows

N = 3477;

mov = aviread('I52Sept11_Vid2',N);
??? Error getting frame data.

Error in ==> aviread at 65
X = readavi(info.Filename,index-1);

The movie can be played in Window media player and when I checked
with AVICodec, there is DIB Codec in the computer which supports this
file.

Does anybody have any idea why doesn't Matlab read this file ? Thanks
in advance for your help.

Gyanu
.



Relevant Pages

  • Re: Movie, help please
    ... Van PD Tri wrote: ... I am making a movie in Matlab by the following statement: ... mov = avifile; ...
    (comp.soft-sys.matlab)
  • Adding text to bitmaps
    ... I'm trying to add custom text to each frame of a movie, as made from within matlab using getframe; ... Loop through my movie, show each frame in a new figure. ...
    (comp.soft-sys.matlab)
  • Movie, help please
    ... I am making a movie in Matlab by the following statement: ... mov = avifile; ... Could you please help me sovle this problem? ...
    (comp.soft-sys.matlab)
  • Re: avifile under mac os 10.6 Snow Leopard
    ... I'm creating a movie in Matlab 2008b with ... mov = addframe); ... [end loop] ...
    (comp.soft-sys.matlab)
  • Re: Pass structure to MATLAB
    ... void ReadFromFile(const char *filename, int ArraySize) ... Frame* frame = new Frame; ... // pass frame structure to MATLAB ... Here is a complete working mex file that puts Frame and UShortFrame ...
    (comp.soft-sys.matlab)