Home > ffmpeg, ubuntu > Installing libx264 and ffmpeg on Ubuntu 11.10 – 64 bits

Installing libx264 and ffmpeg on Ubuntu 11.10 – 64 bits

The main goal to compile and install libx264 and ffmpeg is try to make work vlc and ffmpeg at the same time.

First remove old installation

sudo apt-get remove ffmpeg x264 libx264-dev

Install all the packages you will need

sudo apt-get update
sudo apt-get install build-essential checkinstall git libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev

Install X264

Install x264 packages getting the source code using git
Install git with:

sudo apt-get install git
git clone git://git.videolan.org/x264
cd x264/
./configure --enable-shared
make
sudo make install

Install ffmpeg

Install ffmpeg packages getting the source code using git

git clone git://git.videolan.org/ffmpeg
cd ffmpeg/
./configure --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-version3 --enable-nonfree --enable-avfilter --enable-pthreads
make
sudo make install

Configure global variables:

export LD_LIBRARY_PATH=/usr/local/lib
sudo gedit /etc/ld.so.conf

//add this –> /usr/local/lib at the end of the file

sudo ldconfig
hash x264 ffmpeg ffplay ffprobe or
hash x264 ffmpeg ffprobe</p>
Advertisements
Categories: ffmpeg, ubuntu Tags: , , ,
  1. January 8, 2012 at 2:49 pm

    Works fine. Thank you. The only thing is that when I copied and pasted the commands from the article to terminal (lazy me) I had to change all [–] into [–]. Not a big problem really, unless for a complete newbie 🙂

  2. Guine
    January 18, 2012 at 4:47 am

    Excellent sauf à l’étape de configuration de ffmpeg il faut mettre les options avec — et non –

    ./configure –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libfaac –enable-libmp3lame –enable-libtheora –enable-libvorbis –enable-libx264 –enable-libxvid –disable-ffplay –enable-shared –enable-gpl –enable-postproc –enable-version3 –enable-nonfree –enable-avfilter –enable-pthreads

  3. Fahad Khalil
  4. May 15, 2013 at 11:14 pm

    I am sorry I will check it out this weekend but one reason could be that ffmpeg is looking for libx264 with another name, perhaps you can create a lnk to your library installed with the name ffmpeg is looking for.

  5. June 7, 2013 at 1:49 pm

    I already installed ffmpeg and libx264 on Ubuntu 13.04 following the instructions from this post and everything worked fine for me. Did you remove both libraries first before installing ?

  6. January 21, 2014 at 3:22 pm

    Or, you can just add all those commands together and add && behind each command. Saves the waiting B)

  7. August 21, 2014 at 3:21 pm

    Hi, I have followed your tutorial, and it does intall a nice version of ffmpeg. But I had one issue. I have my nginx server executing commands. But now it can’t execute ffmpeg. The other version I had of ffmpeg, nginx could execute with no problem
    How can I solve this? Do u know?

  1. May 15, 2013 at 6:54 am
  2. June 7, 2013 at 1:32 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: