Could not open MP3 encoding library

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
Chiwah
Posts: 4
Joined: Thu Feb 21, 2013 2:24 am
Operating System: Please select

Could not open MP3 encoding library

Post by Chiwah » Thu Feb 21, 2013 8:22 am

Hi, I am using Audacity 2.0.3 for Mac on system 10.6.8. I recorded a 1-minute audio with voice and music. I exported it but I get a message saying it can't open the MP3 encoding library. I have Lame and the Lame Librar v3.98.2 for Audacity pkg, is it too old? I was able to encode one last week on the older Audacity version I had, but it wouldn't work today, so I upgraded to the new version and it still doesn't work.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Could not open MP3 encoding library

Post by Gale Andrews » Thu Feb 21, 2013 10:23 pm

I suggest forgetting the DMG package of Audacity, as Apple sometimes locks the folder to which the package installs LAME. This stops Audacity using LAME.

Try the zip instead, following these instructions:
http://manual.audacityteam.org/o/man/fa ... aclame_zip .

If you extract libmp3lame.dylib to the folder the Audacity application is in, then restart Audacity, you may not need to open the Libraries preferences to browse for the dylib file.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Chiwah
Posts: 4
Joined: Thu Feb 21, 2013 2:24 am
Operating System: Please select

Re: Could not open MP3 encoding library

Post by Chiwah » Fri Feb 22, 2013 4:42 am

Thanks, Gale. But that didn't do it.

I tried following your instructions at http://manual.audacityteam.org/o/man/fa ... aclame_zip

I followed the directions until the last step, ie, I clicked Audacity>Preferences and then chose "Libraries" on the left; I clicked "Locate…" under "MP3 Export Library," then "Browse…" in the "Locate Lame" dialog. The "Where is libmp3lame.dylib?" window opened; however, the instructions say that it will open at /usr/local/lib/audacity but what came up in that window ("Where is libmp3lame.dylib?") was "Aucacity 1.0.3" and the only choices were "install.txt" (grayed out, unavailable) and the Audacity folder. This seems to be an infinite loop.

Then I tried your suggestion of extracting the contents of the zip to the folder the application is in, which is the drive for Audcity 2.0.3. (The earlier version of Audacity was in my Applications folder; this one did not go there when I installed it; instead it is on the left side of the finder window under Devices.) But it will not go in there. I can't put it in. So that's not going to work.

So I tried the Alternative zip download method on the page of instructions you sent me to. Again, I got to the last step, ie, I downloaded http://lame1.buanzo.com.ar/Lame_Library ... on_OSX.zip and extracted the contents of the zip to a folder called "Lame_Library_v3.98.2_for_Audacity_on_OSX" on my desktop; I clicked Audacity>Preferences and chose "Libraries" on the left; I clicked "Locate…" under "MP3 Export Library," then "Browse…" in the "Locate Lame" dialog; I navigated to my desktop and opened the folder I extracted the zip to, and selected "libmp3lame.dylib", and clicked "open." But there was no option to click "OK" and "OK." Instead, a window titled "Terminal — 80x24 opened, with the following dialog in it:

"Last login: Thu Feb 21 19:35:27 on ttys000
/Users/macbookmacbbok/Desktop/Lame_Library_v3.98.2_for_Audacity_on_OSX/libmp3lame.dylib ; exit;
macbook-macbboks-MacBook:~ macbookmacbbok$ /Users/macbookmacbbok/Desktop/Lame_Library_v3.98.2_for_Audacity_on_OSX/libmp3lame.dylib ; exit;
-bash: /Users/macbookmacbbok/Desktop/Lame_Library_v3.98.2_for_Audacity_on_OSX/libmp3lame.dylib: cannot execute binary file
logout

[Process completed]"

So, it didn't work. Just to be sure, I went to Audacity and tried once again to export as MP3. Results were the same as before I did all this, I got that same message: "Could not open the MP3 encoding library."

What should I do now?
Last edited by Chiwah on Fri Apr 24, 2015 4:13 pm, edited 2 times in total.
Reason: Fix link

waxcylinder
Forum Staff
Posts: 14585
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Could not open MP3 encoding library

Post by waxcylinder » Fri Feb 22, 2013 12:14 pm

Chiwah wrote:What should I do now?
Personally if I were on a MAC I would be using iTunes to do the MP3 conversions for me.

You can import WAV or AIFF into iTunes and then convert them to MP3 or AAC or whatever (you'll need to fiddle with your import settings). Note that iTunes makes an MP3/AAC copy leaving the WAV/AIFF intact.

Even as a PC user on Windows I do this as:
a) it avoids having to add the extra libraries (LAME, FFMpeg) to Audacity,
b) it keeps me strictly legal (I assume Apple is handling the Frauenhoffer licensing for MP3 conversion),
c) iTunes does it quicker tha Audacity,
4) it provides me with a WAV file to back up and archive.

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Could not open MP3 encoding library

Post by Gale Andrews » Fri Feb 22, 2013 10:08 pm

Chiwah wrote:I tried following your instructions at http://manual.audacityteam.org/o/man/fa ... aclame_zip

I followed the directions until the last step, ie, I clicked Audacity>Preferences and then chose "Libraries" on the left; I clicked "Locate…" under "MP3 Export Library," then "Browse…" in the "Locate Lame" dialog. The "Where is libmp3lame.dylib?" window opened; however, the instructions say that it will open at /usr/local/lib/audacity but what came up in that window ("Where is libmp3lame.dylib?") was "Aucacity 1.0.3" and the only choices were "install.txt" (grayed out, unavailable) and the Audacity folder.
That description suggests you are running Audacity from the DMG installer, so the "Browse" window opened in the DMG.

If so you will need to install Audacity properly according to those instructions in install.txt before you can use it properly.

1 Double-click the downloaded .dmg to mount it (if it is not already mounted)
2 Then to install Audacity, copy the "Audacity" folder from the newly mounted DMG to /Applications
3 Unmount the DMG
4 To launch Audacity, double-click its icon in the /Applications/Audacity folder.

Chiwah wrote:Then I tried your suggestion of extracting the contents of the zip to the folder the application is in, which is the drive for Audcity 2.0.3. (The earlier version of Audacity was in my Applications folder; this one did not go there when I installed it; instead it is on the left side of the finder window under Devices.) But it will not go in there. I can't put it in. So that's not going to work.
If the old version of Audacity is still in /Applications, drag its entire "Audacity" folder to Trash.

Then install Audacity as above from the DMG (and apparently as you did before).
Chiwah wrote:So I tried the Alternative zip download method on the page of instructions you sent me to. Again, I got to the last step, ie, I downloaded http://lame1.buanzo.com.ar/Lame_Library ... on_OSX.zip and extracted the contents of the zip to a folder called "Lame_Library_v3.98.2_for_Audacity_on_OSX" on my desktop; I clicked Audacity>Preferences and chose "Libraries" on the left; I clicked "Locate…" under "MP3 Export Library," then "Browse…" in the "Locate Lame" dialog; I navigated to my desktop and opened the folder I extracted the zip to, and selected "libmp3lame.dylib", and clicked "open." But there was no option to click "OK" and "OK." Instead, a window titled "Terminal — 80x24 opened, with the following dialog in it:

"Last login: Thu Feb 21 19:35:27 on ttys000
/Users/macbookmacbbok/Desktop/Lame_Library_v3.98.2_for_Audacity_on_OSX/libmp3lame.dylib ; exit;
macbook-macbboks-MacBook:~ macbookmacbbok$ /Users/macbookmacbbok/Desktop/Lame_Library_v3.98.2_for_Audacity_on_OSX/libmp3lame.dylib ; exit;
-bash: /Users/macbookmacbbok/Desktop/Lame_Library_v3.98.2_for_Audacity_on_OSX/libmp3lame.dylib: cannot execute binary file
logout

[Process completed]"
Please install Audacity properly as above. I think the Terminal window opened because Audacity cannot open LAME when you are running Audacity from inside its installer.

If there are still problems opening LAME from ~/Desktop/Lame_Library_v3.98.2_for_Audacity_on_OSX when you are running Audacity 2.0.3 from /Applications/Audacity, try copying the libmp3lame.dylib file into /Audacity/Applications then restart Audacity.



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply