

The images have to be all of the same dimension.įilename numbering įfmpeg expects the numbering to start at 0 (or 000 in this example). The video width and height is taken from the images. The encoding of the images and of the video is inferred from the extensions. This will create a video with the filename video.webm from the image files named image-000.png, image-001.png, image-002.png, up to the last sequentially numbered three digit image file.

Making a video from an Image Sequence ffmpeg -i image-%03d.png video.webm The canonical form to work with image sequences is to use the -f image2 argument like this:įfmpeg -f image2 -i image-%03d.png video.webmįfmpeg -i video.webm -f image2 image-%03d.pngīut ffmpeg is very good with inferring that information so this chapter will omit that argument in all examples unless absolutely necessary. There is more to know about filename patterns which will explained in a later section. The " %03d" represents a sequence of three, zero-padded, decimal digits. This particular pattern corresponds to image-000.png, image-001.png, image-002.png up to image-999.png. The image-%03d.png part is a filename pattern. For example the framerate will be 25 and the encoding will be inferred from the filenames. When no further arguments are given a set of defaults will be used. 3 Making an Image Sequence from a video.2.4 Slideshow with crossfading between the pictures.2 Making a video from an Image Sequence.
