有没有关于如何在Ubuntu中编译avconv的分步指南?如何在Ubuntu 12.04 LTS(Precise Pangolin)上使用libx264编译avconv?
与ffmpeg相比,似乎很难搜索任何教程。
有没有关于如何在Ubuntu中编译avconv的分步指南?如何在Ubuntu 12.04 LTS(Precise Pangolin)上使用libx264编译avconv?
与ffmpeg相比,似乎很难搜索任何教程。
我终于找到了
1)如何建立一个目录avconv源
mkdir avconv-source
2)下载并安装的x264库
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来源
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 伟大的工作,但它抱怨汇编失踪。
最低版本是yasm-1.2.0。 如果你真的想编译没有asm,使用--disable-asm进行配置。
感谢HOWTO: Install and use the latest FFmpeg and x264,我也做了以下事情,而且超出了这个范围。
sudo apt-get install build-essential checkinstall
sudo apt-get build-dep yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz && \
tar -xf yasm-1.2.0.tar.gz && cd yasm-1.2.0 && ./configure
make
sudo checkinstall --pakdir "$HOME/Desktop" --pkgname yasm --pkgversion 1.2.0 \
--backup=no --default
当运行'须藤的./configure --enable-GPL --enable-libx264'收到错误:'avconv - 源极/ avconv/libavcodec的/ libx264.c:412:未定义参照“x264_encoder_open_125 '' – JJD
@JJD您可能同时安装了两个不同版本的x264(这包括libx264-dev软件包)。尝试设置LD_LIBRARY_PATH到libx264应该是的目录,从http://stackoverflow.com/questions/11838456/undefined-reference-to-x264-encoder-open-125 – Kugutsumen
得到这个答案谢谢。我遵循了[如何在Ubuntu Precise上安装FFmpeg]的指南(http://delicious.com/redirect?url=http%3A//ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide),它对我有用。我使用这个命令:'ffmpeg -i in.mts -vcodec libx264 -filter:v yadif -s hd1080 -ab 128k -strict -2 -threads 0。/ out_x264.mp4' – JJD