Use ffmpeg to convert pictures to videos under windows system

First, refer to this link to install. You only need to add an environment variable. Let’s
insert image description here
do the specific operation below. First, you need to ensure that the names of the pictures in your folder are arranged in numerical order. Generally, the pictures exported in batches will be automatically named. So there is generally no need for other operations here. For example, the pictures in my folder are named according to 11.xxxx, the first picture is 11.0000, the second is 11.0001, and so on.

Step 1
Open the cmd interface
insert image description here
Step 2
Enter the command

ffmpeg -r 5 -i 11.%04d.jpg output2.mp4

Only the most basic commands are used here. If you need other more advanced operations, please Baidu yourself.
The following introduces the meaning of each character in the command
ffmpeg is the program name
-r 5 means the frame rate is 5, that is, five pictures are played per second
11.%04d.jpg Obviously this is the index of the picture name, note that here %04d means four The single-digit integer is sorted, and the previous 11 represents the prefix
output2.mp4 output file name and format

After running the above command, we get
insert image description here

Sometimes you encounter errors, you can refer to this article .

over

Guess you like

Origin blog.csdn.net/ambu1230/article/details/129452027