Note: This guide isn’t supported anymore, but it will probably still work.
1. Make sure the Ubuntu universe and multiverse repositories are enabled. For help doing this, refer to Adding the Universe and Multiverse Repositories on the Ubuntu Wiki.
2. Uninstall x264-bin, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following:
sudo apt-get remove ffmpeg x264-bin libx264-dev
3. Next, get all of the packages you will need to install ffmpeg and x264:
sudo apt-get update sudo apt-get install build-essential subversion git-core checkinstall texi2html libfaac-dev liblame-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore4-dev zlib1g-dev
4. Install yasm:
cd wget http://www.tortall.net/projects/yasm/releases/yasm-1.0.1.tar.gz tar xzvf yasm-1.0.1.tar.gz cd yasm-1.0.1 ./configure make sudo checkinstall --pkgname=yasm --pkgversion "1.0.1" --backup=no --default
5. Install x264:
cd git clone git://git.videolan.org/x264.git cd ~/x264 ./configure make sudo checkinstall --pkgversion "1:0.cvs`date +%Y%m%d`-0.0ubuntu1" --default
6. Install libopencore-amr. This will allow you to decode and encode AMR audio:
cd wget http://transact.dl.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz tar xvf opencore-amr-0.1.2.tar.gz cd opencore-amr-0.1.2 ./configure -disable-shared make sudo checkinstall --pkgname="libopencore-amr" --pkgversion="0.1.2" --backup=no --default
7. Install libtheora to encode to Theora, the video type usually found in OGG files. The repository libtheora is too old, so it must be compiled. Alternatively, you could skip this step and omit –enable-libtheora in step 8 if you don’t plan on encoding to Theora video:
sudo apt-get install libogg-dev cd wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz tar xzvf libtheora-1.1.1.tar.gz cd libtheora-1.1.1 ./configure --disable-shared make sudo checkinstall --pkgname=libtheora --pkgversion "1.1.1" --backup=no --default
8. Install ffmpeg:
cd svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg cd ~/ffmpeg ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab make sudo checkinstall --pkgversion "3:0.cvs`date +%Y%m%d`-5ubuntu1.2" --default hash x264 ffmpeg
That’s it! Now head back to the FFmpeg guide for usage instructions and more.
To Revert Changes Made by This Guide
sudo apt-get remove build-essential subversion git-core checkinstall texi2html libfaac-dev liblam
Sign up for our daily email newsletter:
You must log in to post a comment.