如何在Ubuntu 12.04 LTS(精确穿山甲)上使用libx264编译avconv? [英] How to compile avconv with libx264 on Ubuntu 12.04 LTS (Precise Pangolin)?

查看:199
本文介绍了如何在Ubuntu 12.04 LTS(精确穿山甲)上使用libx264编译avconv?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有关于如何在Ubuntu中编译avconv 的分步指南?

Is there a step-by-step guide on how to compile avconv in Ubuntu?

似乎很难搜索任何教程与 avconv 相比 ffmpeg

It seems hard to search for any tutorial with avconv compared to ffmpeg.

推荐答案

我终于找到了,

1。)制作一个目录avconv-source

1.) Make a directory avconv-source

mkdir avconv-source

2。)下载并安装x264库

2.) Download and install the x264 library

cd ~/avconv-source
git clone git://git.videolan.org/x264.git x264
cd x264
sudo ./configure --enable-static
sudo make
sudo make install

3。)下载avconv源

3.) Download the avconv source

cd ~/avconv-source
git clone git://git.libav.org/libav.git avconv
cd avconv
sudo ./configure
sudo ./configure --enable-gpl --enable-libx264
sudo make
sudo make install

现在你可以执行

avconv -i test.mov -c:v libx264 -c:a copy test.mp4

这篇关于如何在Ubuntu 12.04 LTS(精确穿山甲)上使用libx264编译avconv?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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