How to use ffmpeg

Ffmpeg is an open source video editing program that runs in the command line.

You can change nearly all values of the video with ffmpeg, however, to do so, you must know how to use it well.

Below is the base command I use to make most of my videos that don’t need more customization. It just takes frames in the current directory named “0000.png” through “9999.png” and turns them into a mp4 video.

ffmpeg -framerate 60 -i "%04d.png" -c:v libx265 -pix_fmt yuv420p out.mp4

A few easy settings to change there would be the framerate, just change the number after “-framerate” in the command above, the frame file name, for example, change it to “frame%04d.png” to get files named “frame0000.png” through “frame9999.png”, or change “out.mp4” to something else to change the output file name. There are also a lot more options you can add to change your output video, read the ffmpeg docs to learn more about them.