how can make video from images.......

hello........suppose i have my 50 image......how i can play these image as video..........

Answers (4)

Image Analyst
Image Analyst on 30 Jan 2013
Have you looked at the FAQ?

7 Comments

There's a new FAQ entry I added a few weeks ago: http://matlab.wikia.com/wiki/FAQ?&cb=6123#How_do_I_build_a_movie_from_individual_frames.3F. It has a full demo with all the source code.
A Video is created with just as movie not as avi or mp4
Correct. That wasn't asked. If you want to create a movie from a collection of still images and create a video file on disk, then see the attached code.
How do we cite you sir...after using the MakeMovie GUI...
Just say "Using code provided by Image Analyst on the Answers forum on the MATLAB Central web site........"
@ImageAnalyst
Have you added to a newer version of your GUI a way to add the time stamp from each photo and a title too? =)
@Craig Ulrich, I believe my new code on my File Exchange time stamps the frame as an option.

Sign in to comment.

Youssef  Khmou
Youssef Khmou on 31 Jan 2013
Edited: Youssef Khmou on 31 Jan 2013
HI, take a look at the links they sent you . As an alternative answer here is how :
Your fifty images must be labeled in order, per example in the database coil-100 , an object starts from obj1__0 until obj1__355 with step 5 .
Suppose your images are like : image1.jpg, image2.jpg,....., image50.jpg then :
Manifold=zeros(n,p,3,50); % (n,p) height and width of the image, all with same.
for x=1:50
filename=strcat('image',num2str(x),'.jpg');
Manifold(:,:,:,x)=imread(filename);
end
Next wether you create Gif file (imwrite),avifile or any other way, just follow the steps that you can find in the MAT doc .
i Hope this helps .

2 Comments

i am trying to use this approach , but i am getting error in the line ' Manifold=zeros(n,p,3,50);' . i dont know what the error is and how can i resolve it
We don't know what it is either because you forgot to paste the actual error message here.
However, you can use my code, which works.

Sign in to comment.

Clay Jensen
Clay Jensen on 24 Jul 2021
To do this, you need a lot of images and a high-quality video editor. Personally, I would recommend movavi's video editor https://www.movavi.com/videoeditor/ . Just drop all the images and glue them. That's all.

Asked:

on 30 Jan 2013

Commented:

on 24 Jul 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!