problem in mmreader command

조회 수: 1 (최근 30일)
Max
Max 2012년 3월 3일
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

답변 (2개)

Walter Roberson
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.)
You should be able to find information about the codec that was used by using aviinfo()
  댓글 수: 1
Walter Roberson
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

댓글을 달려면 로그인하십시오.


Max
Max 2012년 3월 3일
following information came on implementing fileinfo=aviinfo('kumar.avi')
>>fileinfo
Filename: 'E:\project works\FGseg\kumar.avi'
FileSize: 1294656
FileModDate: '03-Mar-2012 11:55:47'
NumFrames: 165
FramesPerSecond: 29.9700
Width: 640
Height: 480
ImageType: 'truecolor'
VideoCompression: 'H264'
Quality: 4.2950e+007
NumColormapEntries: 0
AudioFormat: 'Format # 0x55'
AudioRate: 24000
NumAudioChannels: 1

카테고리

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