How to install libmp3lame for ffmpeg

The link in the selected answer is now obsolete. On Kubuntu 11.04 (and above), do:

sudo apt-get install ffmpeg libavcodec-extra-53

The solution may be to compile ffmpeg manually:

The post suggests to compile x264 and ffmpeg yourself. But use x264 from Ubuntu and compile just ffmpeg is enough. So, here are the steps. Start by removing ffmpeg and making sure x264 is properly installed.

apt-get remove ffmpeg    
apt-get update
apt-get install libx264-106 libx264-dev x264 

Then, login as root, download, compile and install ffmpeg:

su -
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
make    
make install

First, I see this is on an Ubuntu machine, so let me first suggest you go to the Ubuntu wiki ffmpeg page.

Basically, what you want to do is compile ffmpeg from source so it includes libmp3lame. They tell you how to make your ffmpeg with more option on this page. When you commence the build with ./configure, you need to add --enable-libmp3lame

Tags:

Mp3

Ffmpeg

Lame