
so files.įirst of all, let's get the latest ffmpeg source: My advice is to remove all existing copies of libav* ( libavcodec and so on) which may be present in /usr/lib, either by uninstalling them with APT or by deleting the. Let's take care of it:ĭone! One final note before we start building: if you have an existing installation of ffmpeg, you may run into linking issues caused by conflicting library versions. The x264 build requires a recent version of the yasm assembler. Just create a temporary directory anywhere you like (you'll need about 150MB). Now would be a good time to decide where you're going to build all those sources. $ sudo apt-get install build-essential nasm pkg-config Let's also add some mandatory build tools: Then, we need to make sure that git and svn are installed. This procedure was successfully performed on a vanilla Ubuntu 12.04 system.įirst, we need to enable the 'multiverse" repository in /etc/apt/sources.list, because that's where some of our external libraries live. All you have to do is uncomment the line similar to:Īdd deb precise multiverse sudo apt-get update The purpose of this article is to show you how you can build a fresh, up to date version of ffmpeg supporting (almost) all major codecs. Unfortunately, the default build included in Ubuntu is usually quite outdated, as well as lacking support for many codecs.

Enjoy :)įfmpeg is THE audio/video conversion tool. By popular demand (according to page view stats), I've decided to refresh the Dec'2008 post ( "HOWTO: compiling ffmpeg + x264 + MP3 + Xvid + AMR on Ubuntu 8.x") for Ubuntu 12.04.
