For Programmers: Free Programming Magazines  


Home > Archive > Matlab > June 2007 > reading an avi file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author reading an avi file
Rishu Tripathi

2007-06-11, 4:21 am

Hi
I am new in matlab. when I call this function
aviread(<filename> ), i am getting an error

??? Unable to locate decompressor to decompress video stream

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

I have downloaded DivX codec after finding the compressor name by
aviinfo and media player started to run that file. But matlab is not
reading. Plz tell me solution. Should I install codec in some
specified location with some specified name for matlab?

Thanx
Rishu
Nick Haddad

2007-06-11, 7:13 pm

Rishu,

Unfortunately aviread does not support reading DivX compressed AVI files.

As a workaround you can convert the file to an uncompressed AVI using a
tool such as AVS Video Tools:

http://www.avsmedia.com/VideoTools/index.aspx

After the conversion it should import into MATLAB properly.

-Nick


Rishu Tripathi wrote:
> Hi
> I am new in matlab. when I call this function
> aviread(<filename> ), i am getting an error
>
> ??? Unable to locate decompressor to decompress video stream
>
> Error in ==> aviread at 63
> X = readavi(info.Filename,-1);
>
> I have downloaded DivX codec after finding the compressor name by
> aviinfo and media player started to run that file. But matlab is not
> reading. Plz tell me solution. Should I install codec in some
> specified location with some specified name for matlab?
>
> Thanx
> Rishu

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com