How to extract frames from a vedio file in avi format?
2 views (last 30 days)
krishna Chauhan on 20 Jul 2022
I tried the code below in both mp4 and avi files. The obj.NumFrames file is blank. There is not error messgae the object is created but the parameters are 0.
obj = VideoReader('k.avi');
vid = read(obj);
Can any one guide here.
vishweshwar samba on 20 Jul 2022
frameNo = 10;
videoReader = VideoReader('k.avi');
for i = 1:frameNo
frame = readFrame(videoReader); % read the next video frame
title('Video Frame 10');