且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Linux上将AVI帧转换为JPG

更新时间:2023-11-11 21:16:40

使用ffmpeg。

ffmpeg -i infile.avi -f image2 image-%03d.jpg

查看这个答案

我还发现这篇文章名为在Linux上创建动画屏幕截图详细介绍了使用mencoder捕获顺序屏幕截图的过程。 (文章的最后讨论了拍摄这些截图并将其编码为另一种格式,但您可以忽略该部分。)

I also found this article entitled "Creating Animated Screenshots on Linux" which details the process of using mencoder to capture sequential screenshots. (The end of the article discusses taking those screenshots and encoding them into another format, but you can disregard that part.)