How can I segment a video to frames?
Mostrar comentarios más antiguos
Hello,
i have a problem with segmentation of the video...below is a part of the code for segment a video to each segment and each segment to frames:
startIRFrame = floor(usage_history(i,1) * fps);
if i<numberOfPhotos+1
endIRFrame = floor(usage_history(i+1,1) * fps);
else
endIRFrame = FileInformation.NumberOfFrames;
end
indexvideo = [startIRFrame:endIRFrame]; %from 1. to last frame
mov = aviread(filename,indexvideo);
but there is an error about an "aviread" function:
"??? Error using ==> aviread at 84
Unable to locate decompressor to decompress video stream."
Can anyone explain what is the issue here and how to solve this?
Thanks,
Luka
Respuestas (2)
Image Analyst
el 3 de Jul. de 2012
0 votos
See this thread for solutions: http://www.mathworks.com/matlabcentral/answers/25557-mmread-and-aviread-don-t-work
Walter Roberson
el 3 de Jul. de 2012
0 votos
Are you using a 64 bit version of MATLAB on MS Windows? And was the AVI created with Indeo5 ? If so, then there is no way to obtain the decompressor for it (the company that owns the rights has indicated that they will not be creating a 64 bit version of Indeo5.)
In the situation, either create the file with a different codec, or use the 32 bit version of MATLAB to read it (after installing the codec.)
1 comentario
Categorías
Más información sobre Video Formats and Interfaces en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!