我有一个文件夹,里面装满了从 0 到任意数字的图像,我需要将这些图像转换为视频。它们都是 .PNG 文件。这是我正在使用的命令:
ffmpeg.exe -f image2 -framerate 30 -pattern_type sequence -start_number 1 -r 30 -i "img%%04d.jpg" -s 1280x720 test.avi
Run Code Online (Sandbox Code Playgroud)
当我运行它时,我收到此错误:
[image2 @ 002be580] Could find no file with path 'img%04d.jpg' and index in the range 1-5
img%04d.jpg: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我可以更改什么才能使其正常工作?