我想将我的一些视频从 .wmv 转换为 .mp4。不仅如此,我还想缩短视频的大小。
谁能推荐我一些软件?
(Ubuntu 12.4 + 内存 1 GB)
我将非常感激...
答案1
安装 ffmpeg
sudo apt-get install ffmpeg
像这样转换文件
ffmpeg -i input.wmv -s size output.mp4
可以识别以下尺寸缩写(来自手册页)
-s size
Set frame size. The format is wxh (avserver default = 160x128, ffmpeg default = same as source). The following abbreviations are recognized:
sqcif
128x96
qcif
176x144
cif 352x288
4cif
704x576
16cif
1408x1152
qqvga
160x120
qvga
320x240
vga 640x480
svga
800x600
xga 1024x768
uxga
1600x1200
qxga
2048x1536
sxga
1280x1024
qsxga
2560x2048
hsxga
5120x4096
wvga
852x480
wxga
1366x768
wsxga
1600x1024
wuxga
1920x1200
woxga
2560x1600
wqsxga
3200x2048
wquxga
3840x2400
whsxga
6400x4096
whuxga
7680x4800
cga 320x200
ega 640x350
hd480
852x480
hd720
1280x720
hd1080
1920x1080
答案2
包‘ffmpeg’没有安装候选项??
这是解决方案。(我已从上面提供的链接粘贴了此解决方案,以节省一些时间。)
sudo add-apt-repository ppa:mc3man/trusty-media
Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades
More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media
Press [ENTER] to continue or ctrl-c to cancel adding it
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg
软件包安装完成后
ffmpeg -i input.wmv -c:v libx264 -crf 23 -c:a aac -strict -2 -q:a 100 output.mp4