【发布时间】:2015-11-02 10:35:31
【问题描述】:
我正在生成这样的缩略图:
exec(ffmpeg -itsoffset -4 -i '.$path.' -vcodec mjpeg -vframes 1 -an -f rawvideo -s 300x300 '.$other_path);
是否可以不指定输出图像的确切大小并将其设置为 100%?
【问题讨论】:
-
是的。只需删除
-s 300x300。此外,您可能应该使用-f image2而不是-f rawvideo,并且您不需要-an。