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

Kugutsumen picture Kugutsumen · Jun 27, 2012 · Viewed 29.7k times · Source

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.

Answer

Kugutsumen picture Kugutsumen · Jun 28, 2012

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