无论我在哪里看,我都试图将电影从 .avi 转换为iphone可读格式,人们建议ffmpeg使用以下选项
ffmpeg -s 320x240 -aspect 320:240 [...]
这对于具有不同纵横比的视频来说不是一个好兆头!
如何保持纵横比不变?有没有办法动态设置大小?
例如,高度为 240 且宽度可变?
无论我在哪里看,我都试图将电影从 .avi 转换为iphone可读格式,人们建议ffmpeg使用以下选项
ffmpeg -s 320x240 -aspect 320:240 [...]
这对于具有不同纵横比的视频来说不是一个好兆头!
如何保持纵横比不变?有没有办法动态设置大小?
例如,高度为 240 且宽度可变?
来自此处找到的丰富文章的摘要:http ://www.frasq.org/en/transcoding-an-audio-or-a-video-file
要适合特定显示的视频,请使用以下公式重新计算其宽度和高度:
aspect_ratio_of_display = width_of_display / height_of_display
aspect_ratio_of_video = width_of_video / height_of_video
if aspect_ratio_of_video > aspect_ratio_of_display
then
height = (height_of_video / aspect_ratio_of_video) and width = width_of_display
else
width = (height_of_display x aspect_ratio_of_video) and height = height_of_display
请记住将视频的宽度和高度四舍五入为 16 的倍数。
使用任何语言的简单脚本并获取视频详细信息,并根据目标大小进行相应调整,您还可以“信箱”或填充顶部和底部以获得更好的纵横比。
http://ubuntuforums.org/showthread.php?t=702188 http://stream0.org/2008/01/find-and-extract-video-file-de.html http://www.mythtv.org/维基/iPod_export