I wanted to convert some youtube footage to mp3 by using the Firefox addon DownloadHelper together with ffmpeg.
Ok, installed ffmpeg on OS X using MacPorts:
sudo port install ffmpeg +gpl +lame +x264 +xvid
Tried to convert a file. Got this error:
[libmp3lame @ 0x1804600]lame: output buffer too small (buffer index: 8360, free bytes: 1432)
Turns out this is a known bug with version 3.98.2 of libmp3lame, which, incidentally is the latest version on MacPorts.
I tried version 3.98 and it seems to work.
This guide tells how to install an older version of a port.
To save you some trouble, these are the steps I took to make it work:
cd /tmp curl -O http://trac.macports.org/export/38059/trunk/dports/audio/lame/Portfile sudo port install
Voila! ffmpeg can now generate mp3s without errors.