MacPorts lame: output buffer too small
I've run into a small problem working with MacPorts ffmpeg port.
Trying to convert a file I get the error:
lame: output buffer too small
Now this isn't a problem with ffmpeg, but more specifically the MacPorts lame port.
As of today, the latest version of lame in MacPorts is v3.98.2. I needed to easily rollback to a previous version of lame, one which worked.
I scoured the MacPorts for the previous version of the lame Portfile. I found one for lame v3.98.0, and decided to give it a try.
Installing Older Port
Inside the command line I had to enter the following:
svn checkout -r 39480 http://svn.macports.org/repository/macports/trunk/dports/audio/lame
This would checkout the revision of lame I wanted. I entered the directory and executed:
cd lame sudo port install
After installation, I gave it a try and everything worked!
Prevent lame From Being Upgraded
Now if you generally update your MacPorts via port upgrade outdated or port -u upgrade, you'll have to becareful.
Running those two commands will upgrade your lame to the current revision, which may break your setup again.
Instead you are required to upgrade your MacPorts like so:
sudo port upgrade outdated and not lame
There you have it! Hope you enjoy your lame!

May 2nd, 2010 - 04:50
Great, worked like a charm for me. Had the same problem with ffmpeg.
May 16th, 2010 - 05:42
Thx a ton, you made my day!