Error in bringing an avi file(which was originally a .mov file and was converted by an online convertor) into MATLAB workspace.

1 visualización (últimos 30 días)
I tried bringing an avi file into the workspace.*Previously, I have brought others with no problem, but for this one(which was converted to avifile from .mov file by an online converter), I got an error which looks like this:
Error using aviread (line 81)
Unable to locate decompressor to decompress video stream
Error in importdata (line 175)
out = aviread(FileName);
Error in uiimport/runImportdata (line 428)
[datastruct, OTextDelimiter, OHeaderLines] = ...
Error in uiimport/gatherFilePreviewData (line 371)
[datastruct, textDelimiter, headerLines]= runImportdata(fileAbsolutePath, type);
Error in uiimport (line 191)
[ctorPreviewText, ctorHeaderLines, ctorDelim] = ...
Is there any standard .mov to .avi file converter I could use? What do I do to get out of this problem?

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Oct. de 2011
mov2avi() or avifile() or the newer VideoWriter class can convert mov to avi.
There are a lot of AVI compressors which aviread() cannot support, especially if you are using the 64 bit version of MATLAB.
  1 comentario
Yagnaseni Roy
Yagnaseni Roy el 17 de Oct. de 2011
*I put:*
obj = mmreader('cell.avi');
m=struct('cdata',o)
m =
cdata: [1x1 mmreader]
Now, I want to view the individual frames on imtool....using image function,
image(cell(1).cdata)
BUT I'M GETTING ERROR:
No appropriate method, property, or field cdata for class
mmreader.
*What is wrong? I've been able to load the movie, but now I can't split it into the frames using image function!!*

Iniciar sesión para comentar.

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by