Have you ever wondered how to create large resolution WebM videos from your own static images? There are some easy solutions for short time-frame videos (up to 15 seconds) and smaller video resolutions (up to 852×600 pixels).
If you are able to limit yourself to these parameters, simply create an animated GIF and use gfycat.com to convert it to a WebM video.
However, for longer and larger videos, you will have to make it all work manually. Let me show you how.
Prepare the Images
First, you need to make multiple copies of each image you wish to use in your WebM video.
For example, if you have an image file called
img.png, you need to create 25 copies of this file, so that your WebM video has 25 frames per second.
You can do this manually, but in case you have lots of images, the time it takes to create hundreds or even thousands of copies will quickly add up.
That’s why I created a small batch file called
Then run the
So in the case of a file called
img.png, with the starting and ending numbers being 1 and 25, MultiCopy will create a new folder called
dir-img and within it 25 files called
Repeat the same process for all the images you wish to include in your WebM video.
For the sake of simplicity, rename each of your input image files before making multiple copies of them using the same file name, for example
img.png. The copies of the first input file will be numbered
img00025.png, as per above. But when creating copies of the second input file, you will select the numbers 26 to 50. With the third input file, you will choose 51 to 75, and so on.
This way all your copies will share a uniform file name and will be differentiated only by their numbers.
Stitch Them All Together
To create a WebM video from all the separate image files you created, you need to download the free and open-source FFmpeg software package.
When downloaded, use 7-zip or a similar software tool to uncompress the packaged files.
You will need the executable file called
ffmpeg.exe located in the
ffmpeg/bin/ subfolder. Copy this file to the folder where all the multiple copies of your image files are located.
Then launch Command Prompt via
ffmpeg -f image2 -i img%05d.png -vf fps output.webm
Creating the WebM output file will take a while, depending on how many image files are being fed into FFmpeg.
You can watch one of my WebM videos created using the described method in this post.
Liked this post?
Subscribe to our newsletter to receive early notification of new posts and deals: