通过管道使用jpegtran与ffmpeg?


2

我使用ffmpeg生成大量的jpeg图像。但是,ffmpeg没有对这些jpegs进行优化。平均而言,当我通过jpegtran运行时,图像无损压缩另外10-20%。

我不想生成所有这些图像,将每个图像写入磁盘,然后通过jpegtran后记来运行它们,因为它效率低下。我宁愿使用ffmpeg中的image2pipe格式来管道它们。

假设我想每秒拍摄1帧并将每个帧转换为jpeg。理想情况下,我想生成一个命令,如:

ffmpeg -i video.mpg -q 10 -r 1 -f image2pipe - | [something] | jpegtran -copy none -optimize

显然这本身不会起作用(出于很多原因),但我该如何做这样的事呢?


什么[something else]代表?这些文件的最终目标是什么?
llogan 2013年

最终的目标是优化jpeg图像,也许[其他东西]在中间变得更好。
Marty 2013年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.