Read .avi file on Matlab
이전 댓글 표시
Dear community,
I am running Matlab R2019a and I have tried the following commands to read .avi files but neither work. Specifically:
1) Command: vision.VideoFileReader
workspace;
matlab.video.read.UseHardwareAcceleration('on');
filename='Droplet1_Route1_6.0V_16.12.avi';
videoFReader = vision.VideoFileReader(filename);
videoPlayer = vision.VideoPlayer;
while ~isDone(videoFReader)
videoFrame = videoFReader();
videoPlayer(videoFrame);
pause(0.1)
end
release(videoofReader);
release(videoPlayer);
Error:
>> trial_video_read
Error using vision.VideoFileReader
Invalid input file.
2) Command: videoReader
fontSize = 22;
video_input= VideoReader('Droplet1_Route1_6.0V_16.12.avi');
Error:
Error using VideoReader/initReader (line 729)
The file requires the following codec(s) to be installed on your system:
cvid
Error in audiovideo.internal.IVideoReader (line 148)
initReader(obj, fileName, currentTime);
Error in VideoReader (line 98)
obj@audiovideo.internal.IVideoReader(varargin{:});
Error in video_frames (line 2)
video_input= VideoReader('Droplet1_Route1_6.0V_16.12.avi');
VideoReader works with .mp4 files but why doesn't it work with .avi?
I would appreciate any help.
Thank you in advance for your time,
Best regards
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!