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

1 次查看(过去 30 天)
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?

回答(1 个)

Walter Roberson
Walter Roberson 2011-10-17
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 个评论
Yagnaseni Roy
Yagnaseni Roy 2011-10-17
*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!!*

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by