How To Create Video From Sequence of Images Using MATLAB? Last Updated : 28 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report MATLAB stands for Matrix Laboratory. It is a high-performance language that is used for technical computing. In this article, we will see how to add subtitles to videos in MATLAB. In the First step We will read the image after that we convert it to a movie frame and then write each frame one by one to the video file in this section. we take a example for creating video from sequence of images. Example 1: Matlab % Create Video with Image Sequence clear all clc % Designate the path below as the current folder. CD('E:\Documents and Settings\APPEX\My Documents\MATLAB\Images'); % Get all of the files in the current % folder that are in JPEG format. Files = dir('*.jpg'); % The current folder's number of JPEG files NumFiles= size(Files,1); % To write Video File VideoObj = VideoWriter('Create_Video.avi'); % Number of Seconds Between Frames VideoObj.FrameRate = 6; % Define the Quality of the Video [ 0 to 100 ] VideoObj.Quality = 70; % Open the File 'Create_video.avi' open(VideoObj); for i = 1 : NumFiles % Take a Look at the Image in the Present Folder. I = imread(Files(i).name); % Resize Image ResizeImg = imresize(I,[500 900]); % Convert a picture into a movie frame frame = im2frame(ResizeImg); % Six times are written on each Frame. for j = 1 : 6 % Write a frame writeVideo(VideoObj, frame); end end % Close the File 'Create_Video.avi close(VideoObj); Output: Use the "im2frame" function to convert the image to a movie frame after reading the image from the current folder. Until the last image has been processed and written, write the frame to the file, read the next image, and repeat the process. Comment More infoAdvertise with us Next Article How To Create Video From Sequence of Images Using MATLAB? S sudarshandixit29 Follow Improve Article Tags : Software Engineering Technical Scripter 2022 MATLAB-GUI Similar Reads How To Create Video From An Image Using MATLAB? MATLAB is a high-performance language that is used for manipulating matrices, performing technical computations, graph plottings, etc. It stands for Matrix Laboratory. With the help of this software, we can create videos from images. STEPS:Step 1. Bring the images to the folder where we are writing 2 min read How To Detect Face in Image Processing Using MATLAB? MATLAB  is a programming platform that is mainly used by engineers and scientists to analyze and design systems. Image processing is a process to perform some operations on an image to get an enhanced image or to extract some useful information from it. Each picture is stored as an array and each pi 5 min read How to vertically flip an Image using MATLAB Prerequisite: Image representation in MATLAB In MATLAB, Images are stored in matrices, in which each element of the matrix corresponds to a single discrete pixel of the image. We can flip the given image vertically (along the x-axis), if we reverse the order of the pixels (elements of the matrix) in 2 min read Extract Video Frames from Webcam and Save to Images using Python There are two libraries you can use: OpenCV and ImageIO. Which one to choose is situation-dependent and it is usually best to use the one you are already more familiar with. If you are new to both then ImageIO is easier to learn, so it could be a good starting point. Whichever one you choose, you ca 2 min read Python - Process images of a video using OpenCV Processing a video means, performing operations on the video frame by frame. Frames are nothing but just the particular instance of the video in a single point of time. We may have multiple frames even in a single second. Frames can be treated as similar to an image.So, whatever operations we can pe 4 min read Like