problem in mmreader command
1 次查看(过去 30 天)
显示 更早的评论
when i am trying to read an .avi file .. ...The name of the file is 'kumar.avi"
here are the codes
video1=mmreader('kumar.avi');
get(video1)
nFrames = video1.NumberOfFrames;
vidHeight = video1.Height;
vidWidth = video1.Width;
% Preallocate movie structure.
mov(1:nFrames) = ...
struct('cdata', zeros(vidHeight, vidWidth, 3, 'uint8'),...
'colormap', []);
Following errors are coming ??? Error using ==> mmreader at 84 Unable to locate decompressor to decompress video stream
Error in ==> tryvidext at 3 video1=mmreader('kumar.avi');
kindly tell the possible reasons for it
0 个评论
回答(2 个)
Walter Roberson
2012-3-3
The .avi has been encoded with a codec that your system does not currently have.
If you are running the 64 bit version of MATLAB, then there are some codec (Indeo5 is one) that will never be supported on the 64 bit version (this is a decision by the codec manufacturers, not by MathWorks.)
1 个评论
Walter Roberson
2012-3-3
R2011b or later is needed to support H.264 and MPEG-4.
You might be able to use the following work-around:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/252119
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!