Read .avi file on Matlab
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!