使用ffmpeg调整图像大小 [英] Use ffmpeg to resize image

查看:214
本文介绍了使用ffmpeg调整图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用FFMPEG调整图像大小?

Is it possible to resize an image using FFMPEG?

我到目前为止有这个:

ffmpeg. -i 1.jpg -vf scale=360:240 > 2.jpg

我收到错误消息,必须指定至少一个输出文件"

I get the error message that 'At least one output file must be specified'

有可能吗?

推荐答案

您可以尝试以下操作:

ffmpeg -i input.jpg -vf scale=320:240 output_320x240.png

我从来源

注意:比例过滤器还可以在保留宽高比的同时自动计算尺寸:scale=320:-1scale=-1:240

Note: The scale filter can also automatically calculate a dimension while preserving the aspect ratio: scale=320:-1, or scale=-1:240

这篇关于使用ffmpeg调整图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆