How to extract frames from a vedio file in avi format?
    10 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    krishna Chauhan
 el 20 de Jul. de 2022
  
    
    
    
    
    Comentada: krishna Chauhan
 el 20 de Jul. de 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.
Thanks
0 comentarios
Respuesta aceptada
  vishweshwar samba
      
 el 20 de Jul. de 2022
        Try this
frameNo = 10;
videoReader = VideoReader('k.avi');
for i = 1:frameNo
    frame = readFrame(videoReader); % read the next video frame
end
figure;
imshow(frame); 
title('Video Frame 10');
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

