writevideo skipping last frame
Mostrar comentarios más antiguos
I am using writevideo to make a movie while creating the images. I have gotten it to work before however, this time it is skipping the last frame although I haven't changed the code. the code is:
if true
narr_anim(7) = struct('cdata',[],'colormap',[]);
myVideo = VideoWriter('dove_anim.avi');
myVideo.FrameRate = 1;
open(myVideo);
for m = 1 : 7
narr_anim(m) = getframe(gcf)
writeVideo(myVideo, narr_anim);
end
close(myVideo);
end
Am I missing something?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Audio and Video Data 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!