将输入为640*480的修改为320*249
ffmpeg -i input -vf scale=iw/2:-1 output
iw:输入帧宽,此处为640,640/2=320。
-1告诉scale filter保持纵横比,所以scale filter计算出值240.
https://blog.csdn.net/dotphoenix/article/details/80428228
https://ffmpeg.org/ffmpeg-filters.html#scale-1
将输入为640*480的修改为320*249
ffmpeg -i input -vf scale=iw/2:-1 output
iw:输入帧宽,此处为640,640/2=320。
-1告诉scale filter保持纵横比,所以scale filter计算出值240.
https://blog.csdn.net/dotphoenix/article/details/80428228
https://ffmpeg.org/ffmpeg-filters.html#scale-1
本文标题:ffmpeg 修改视频的分辨率
本文链接:https://www.haomeiwen.com/subject/ncvzdqtx.html
网友评论