Making libmp3lame work with ffmpeg on OS X

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
sudo port install

Voila! ffmpeg can now generate mp3s without errors.

3 responses to this post.

  1. Posted by Chuck on November 19, 2009 at 18:01

    Thanks, worked like a charm! :)


  2. Posted by divineforest on December 16, 2009 at 10:22

    Thanks! It just works!


  3. Thanks. I’m sure upgrading to Lion would fix me up, too, but this was quick and fixed me right up.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: