The following command will show each image 5 seconds long:įfmpeg -framerate 1/5 -i image-%03d.png video.webm If you want to have a slideshow then you have to lower the input framerate. If you still want more frames per second then use the -framerate argument:įfmpeg -framerate 60 -i image-%03d.png video.webm This is a speed which creates the illusion of a smooth animation for most humans eyes. That means each image is shown 1/25 of a second. If you have missing numbers you can use a glob pattern or rename all the remaining files to close the gap. Then ffmpeg will only process the first three and ignore the last file. Ffmpeg will stop at the last consecutive numbered filename. The same argument can be used to skip over a number of files and start at a certain number. If your files do not start at 000 then use the argument -start_number to tell ffmpeg the first number of your files:įfmpeg -start_number 100 -i image-%03d.png video.webm The images have to be all of the same dimension.į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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |