ffmpeg调整大小的视频将其分辨率错误 [英] ffmpeg resizing video puts it at wrong resolution

查看:1440
本文介绍了ffmpeg调整大小的视频将其分辨率错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个1080p视频,我正在尝试调整iOS应用上传的大小。所以我试着将其缩放到1334x750的iPhone 6分辨率:

I have a 1080p video that i'm trying to resize for an iOS app upload. So i tried scaling it to the iPhone 6 resolution of 1334x750:

ffmpeg -i WrathTrailer.mp4 -strict -2 -vf scale=1334:750 WrathTrailer1334x750.mp4

输出文件达到1333x750。 iTunes连接不会接受。任何想法?

The output file comes to 1333x750. iTunes connect won't accept it. Any ideas?

推荐答案

这是一种没有黑色填充的方法。注意方面1.779的力量:

Here's a way to do it without the black padding. Note the force to aspect 1.779:

ffmpeg -i input.mp4 -strict -2 -vf scale=1334x750 -aspect 1.779 output.mp4

这篇关于ffmpeg调整大小的视频将其分辨率错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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