我有一堆名为pic1.png, pic2,png, pic24.png,... 等的图像。如何使用 ffmpeg 从它们创建视频?我试过了
ffmpeg -f image2 -r $FRAMERATE -pattern_type glob -i "*.png" output.mp4
Run Code Online (Sandbox Code Playgroud)
但它没有按正确的顺序对图像进行排序。是不是因为我使用的命名约定?(pic2.png而不是pic002.png)
我很少写Perl,也不知道如何表达问题。我使用Perl作为浏览文件的“过滤器”。
echo "this is a test" | perl -pe 's/(this).*(test)?/\1 \2/'
Run Code Online (Sandbox Code Playgroud)
仅返回
this
Run Code Online (Sandbox Code Playgroud)
我在寻找
this test
Run Code Online (Sandbox Code Playgroud)