wiki:

How to quickly compile FFmpeg with mp3, aac+ and x264

Follow these steps before you attempt to compile your FFmpeg:

  1. Compile/install libmp3lame
  2. See How to quickly compile libfdk-aac
  3. See How to quickly compile libx264

In order to quickly compile your FFmpeg with the support for libraries libmp3lame, libfdk-aac and libx264, you can type the following commands in your shell:

# cd /my/path/where/i/keep/compiled/stuff
# git clone git://source.ffmpeg.org/ffmpeg.git
# cd ffmpeg
# ./configure --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-libfdk-aac
# make
# make install

P.S. If you are using Ubuntu, you'll most probably have to use sudo for the last 2 commands, like:

# sudo make install
# sudo ldconfig
Last modified 21 months ago Last modified on Jan 30, 2016, 9:10:57 AM