How to Convert Images to Video Easily in Linux

convert images to video

Sometimes, whether for a presentation of a project, or to send something special to a person, surely you have the need to convert images to format video as an image slide. In these cases, surely you have had to install some heavy programs, such as video editors, that you do not know very well how to use or that you only use once and are taking up too much space.

Well, in GNU / Linux there is a much simpler and lighter alternative, in addition, it is very likely that you already have it installed, so you will not have to take up extra space to convert your images into a video quickly and on time. That alternative is powerful and versatile ffmpeg tool.

To create a time-lapse in video and stop-motion of photographs, you can use a series of images that you have on your computer. Once you have the images in a directory (from which you will have to execute the command), for example ~ / img, you can start working with ffmpeg to pass them to a video from the command line.

Also, I would advise you, to facilitate work, to rename all the images the same, but with numbering to determine the order. For example, imagine you have image-1.jpg, image-2.jpg, image.3.jpg, etc. You can refer to all of them with a wild card. For example, with image-% d.jpg the ffmpeg command would treat all images from image-1.jpg to image-9.jpg. Another example if you have hundreds of images, it could be to use image-% 03d.jpg as a wildcard to go from 001 to 999.

Well let's see the final ffmpeg command to transform images to video easily. Continuing with the names that I put as an example, it would be like this:

cd ~/img

ffmpeg -framerate 10 -i filename-%d.jpg nombre-video.mp4

Now, after finishing the process, you will have in the directory a video called video-name.mp4 with the sequence of images. Remember to change the parameters and names according to your case...


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

A comment, leave yours

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Miguel Rodríguez said

    Extraordinarily useful, although now that I think about it, precisely because there are many alternatives in which to do things like this in Linux it is preferred to use the terminal, it is that many Windows users do not end up migrating.

bool (true)