How to loop images using for loop and making it run on mp4
Show older comments
I want to loop 4 images onto a mp4 player as a result im stuck on the looping using for loop may anyone help me.
My Code:
x = VideoWriter('myAnimation','MPEG-4');
x.FrameRate = 0.5;
x.VideoCompressionMethod
open(x);
for B = 1:5;
Bimread('mob.jpg'); %inputting images here!
C = imresize(B, .25);
end
writeVideo(x,C);
close(x);
*Im not sure where the
Answers (2)
Image Analyst
on 9 Nov 2016
0 votes
After you've created the video, use movie() to play it.
James Chang
on 9 Nov 2016
Edited: James Chang
on 9 Nov 2016
1 Comment
Image Analyst
on 9 Nov 2016
Again, did you call movie()?
Categories
Find more on Image Arithmetic 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!