How to compile avconv with libx264 on Ubuntu 12.04 LTS (Precise Pangolin)?

孤者浪人 提交于 2019-12-03 02:51:36

问题


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

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


回答1:


I finally found out how,

1.) Make a directory avconv-source

mkdir avconv-source

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.) 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

and now you can execute

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



回答2:


This worked for me on Ubuntu 13.04 and Ubuntu 12.04.3 LTS.

apt-get install libavcodec-extra-53



回答3:


It worked great for me on Ubuntu 12.04, except that it complained that assembler was missing.

The minimum version is yasm-1.2.0. If you really want to compile without asm, configure with --disable-asm.

Thanks to HOWTO: Install and use the latest FFmpeg and x264, I did the following as well, and it was OK beyond that.

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


来源:https://stackoverflow.com/questions/11234662/how-to-compile-avconv-with-libx264-on-ubuntu-12-04-lts-precise-pangolin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!