Controlling the frame rate in a MATLAB video
Ältere Kommentare anzeigen
HI, I am creating a avi video with matlab, the problem is that the video is too fast, how can i do slower?
aviobj = avifile('example');
fig=figure(20);
for i=1:14
for k=1:8
im(:,:,:)=a(i,:,:,:);
imshow(im);
axis off
F = getframe(fig);
aviobj = addframe(aviobj,F);
end
end
close(fig);
aviobj = close(aviobj);
thank you very much
Antworten (1)
Doug Hull
am 16 Jul. 2012
0 Stimmen
Use the frame rate option.
1 Kommentar
Thomas Dixon
am 6 Jul. 2021
this has lost its usefulness as it now diverts to here: https://uk.mathworks.com/help/doc-archives.html
Kategorien
Mehr zu Audio and Video Data finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!