Trying to convert a video to watch and my blackberry and my perl script that has been working fine since the day I wrote it has decided mencoder doesn’t like the encoder mp3 and is giving me the error:

Audio LAVC, couldn't find encoder for codec mp3.

Simple solution though:

sudo apt-get install lame, lame-extras, liblame-dev

if you haven’t already got the LAME encoder installed then change the mencoder instruction to:

mencoder "$FILE" \
-o "${FILE%.*}_bb.avi" \
-of avi \
-ovc lavc \
-oac lavc \
-lavcopts vcodec=mpeg4:vbitrate=$VBR:acodec=libmp3lame:abitrate=$ABR \
-vf scale=$RES

Leave a Comment