While using Blackberry Video converter script on Ubuntu 11.04 I got ffmpeg Unknown encoder ‘libmp3lame’ error. While digging into google for understanding the issue I come to know that if your are installing FFmpeg from Ubuntu repository, by default MP3, MPEG4 and other encoders are disabled.

So the next question is how to enable. To solve this issue you can manually compile FFmpeg on your machine else add another repository in which you can get MP3, MPEG4 supported FFmpeg.

I choose the second one as it will be quite helpful at the time of system updation.

So here it goes:
You need to add Medibuntu repo, to add the same run,

sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update

Above command will install the repository information to your computer then update and authenticate the new repository.
Installing FFmpeg

On Ubuntu Maverick Meerkat 10.10, Ubuntu Lucid Lynx 10.04 & Ubuntu Karmic Koala 9.10 run,

sudo apt-get install ffmpeg libavcodec-extra-52

Ubuntu Hardy Heron 8.04 run,

sudo apt-get install ffmpeg

That’s it!

MP3, MPEG4, AAC support in FFmpeg
Tagged on:                                             

Leave a Reply

Your email address will not be published. Required fields are marked *