我尝试使用 ffmpeg 将 img 转换为 mp4。我试着这样做:
ffmpeg -framerate 25 -f image2 -start_number 1 -i '/tmp/stream/_%09d.jpg' -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p output.mp4
Run Code Online (Sandbox Code Playgroud)
并得到一个错误:
[image2 @ 0xe74800] Could find no file with path '/tmp/stream/_%09d.jpg' and index in the range 1-5
/tmp/stream/_%09d.jpg: No such file or directory
Run Code Online (Sandbox Code Playgroud)
jpg 文件名格式为:
/tmp/stream/2017_11_20_08_48_30_picture_000000001.jpg
/tmp/stream/2017_11_20_08_48_35_picture_000000002.jpg
/tmp/stream/2017_11_20_08_48_40_picture_000000003.jpg
***
/tmp/stream/2017_11_20_08_56_30_picture_000000999.jpg
Run Code Online (Sandbox Code Playgroud)
任何人都可以提供帮助,错误在哪里?...谢谢!