Error: Could not open MP3 encoding library!

• Dec 26, 2014 - 02:14
Type
Functional
Severity
S4 - Minor
Status
closed
Project

That's the message that comes up when attempting to use libmp3lame.dylib to export to MP3 audio in MuseScore 2.0 Beta 2.

1. From the File menu, select Export.
2. Choose MP3 as the file format.
3. Dialog box appears, explaining that MuseScore needs to use the LAME library to export to MP3, it needs to be acquired separately, but that if you have it then you just need to tell MuseScore where to find it. Do you want to locate it now? Click Yes.
4. Locate libmp3lame.dylib, which you downloaded a while ago for use with Audacity. Find it, select it, and click Open.
5.
Error message.png

This is on Mac OS X 10.9.

In the meantime, if anyone really wants an MP3, you can export to OGG and use VLC's Streaming/Export Wizard to convert it.

Attachment Size
Error message.png 31.37 KB

Comments

FWIW, on all threee of my systems (one Ubunut Studio with Audacity already installed, one vanilla Ubuntu without Audacity installed, one Windows with Audacity already installed), I was *not* prompted to download any library in order to export MP3. I remember doing this for Audacity on my Windows systems years ago, I guess MuseScore was able to find it in a default location. On my Ubuntu systems, I guess the library was pre-installed in some sort of standard location and MuseScore was able to find it with no prompting.

Did you install the library somewhere unusual? From the code, it appears MuseScore to find to library along the system, search path, so if you installed LAME in any of those folders, MuseScore should find it with no prompting (which is apparently how it has worked for me). Then if that fails, on Mac, it looks in /usr/local/lib/audacity. Only if all of that fails does it need to prompt the user. So I guess you must have installed the library somewhere unusual. It *appears* from the code that this should still work if you specify a valid location, and it would load the library from the location you specify. And if it were to fail, it would fail the same way on any OS.

Confirmed. It's actually in my Documents folder. (Yes, I know that's wrong.) Where should I move it so MuseScore can find it? I'm afraid I don't know where the "library along the system, search path" is, and I can't figure out how to get to /usr/local/lib/audacity. (Is "usr" short for User? I'm clueless.)

Unfortunately, I'm no Mac expert, so hopefully others will chime in. But as far as I know, Mac systems are Unix based, meaning they should have a "/usr" folder, and underneath that a "local" folder (as well as others. Using Finder, if you navigate to the top level (root) folder of your hard drive, you should see folders named "usr", "tmp", "etc", "users", and probably a few others. If you have trouble, maybe look on a general Mac support forum or tutorial to learn more about how your file system is structured.

Found "/usr" (it was a hidden folder). There's no "local" folder inside it, but there is a "lib" folder with a lot of .dylib libraries in it. I put libmp3lame.dylib in there. I'll have to locate it again next time I use Audacity, but it made no difference at all to MuseScore.

This time I used the installer package, which created that /usr/local/lib folder and presumably placed the LAME library there, though I'm unable to open the folder to see. Does resetting MuseScore to factory settings entail something other than clicking "Reset All Preferences to Default" in the Preferences? Because if not, I hate to say it, but that failed.

I ran /Applications/MuseScore\ 2.app/Contents/MacOS/mscore -F (I know this is the correct path because I dragged-and-dropped)

Then, as the app launched, the Terminal window displayed:

in stat: : No such file or directory
in stat: : No such file or directory
Init midi driver failed
QSslSocket: cannot resolve TLSv1_1_client_method
QSslSocket: cannot resolve TLSv1_2_client_method
QSslSocket: cannot resolve TLSv1_1_server_method
QSslSocket: cannot resolve TLSv1_2_server_method
QSslSocket: cannot resolve SSL_select_next_proto
QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
QSslSocket: cannot resolve SSL_get0_next_proto_negotiated

When MuseScore 2 opened, I guessed by the fact that the Start Center showed only the option to create a new score that the factory reset had worked. But when it came time to attempt an MP3 export, up came the darned window asking me to locate the LAME library, which I know is in the place it's supposed to be found by default.

Thanks to all who responded. I downloaded LAME /Audacity and Musescore immediately found it and everything worked perfectly; I didn't even have to tell it where I put it! I am using the 2.0 beta.
Scottw

Status (old) active duplicate

Yes. In a separate communication with lasconic, who I'm hoping can help figure this out, he asked "Can you open a new forum post and explain from scratch what you are doing (especially which lame package you downloaded), which error message you see etc...", so I did.