How to Turn a Krita Recording into a Video with FFmpeg

Every now and then, I like to use the Recording feature in Krita to record the process of my drawings. This is far more ideal than recording the entire screen with OBS Studio, as running that program at the same time as other programs causes my laptop to heat up quite a bit. Seeing my laptop’s temperature going up to 80 degrees Celsius makes me nervous, so luckily, recording within Krita itself doesn’t cause this issue. The result of the Krita recording however, is a sequence of PNG files. So the next step is to know how to turn a Krita recording into a video with FFmpeg. I do this on a laptop running Linux by the way. Let me tell you how I do this! It’s very simple.

Convert a Krita Animation to Video with FFmpeg

When you record your drawing in Krita, it will export a sequence of PNG image files (e.g., 0000000.png, 0000001.png, 0000002.png, 0000003.png, 0000004.png, etc). To turn those separate images into a video of your drawing, you can use FFmpeg on Linux.

Krita names the files with 7-digit zero padding (like 0000000.png). To run FFmpeg on the PNG sequence, you can use this:


ffmpeg -framerate 30 -i %07d.png -c:v libx264 -crf 18 -pix_fmt yuv420p output.mp4

This sets the playback speed (frames per second) to 30. You can adjust that to your liking. “%07d.png” matches the matches the zero-padded filenames. Your file will be called output.mp4.

That’s it! A quick way to go from Krita PNG sequence to video in just one command. Now you can upload the video where you need it, or edit it further in a video editor such as CapCut.