Audacity 2.0.5 won't recognize Lame [SOLVED]

I am running Audacity 2.0.5 on Windows 7 (32-bit). I have installed Lame v.3.99.3 in C:Program FilesLame For Audacity but Audacity refuses to recognize it. If I try to export to MP3 it pops up the “Locate Lame” dialog and the .dll is exactly where Audacity expects it to be. But if select it, it still can’t locate it. Here’s the log file:

14:17:02: Audacity 2.0.5
2:17:11 PM: Trying to load FFmpeg libraries...
2:17:11 PM: Trying to load FFmpeg libraries from default path, 'C:Program FilesFfmpeg For Audacityavformat-52.dll'.
2:17:11 PM: Looking up PATH environment variable...
2:17:11 PM: PATH = 'C:PROGRAM FILESCOMMON FILESMICROSOFT SHAREDWINDOWS LIVE;C:WINDOWSSYSTEM32;C:WINDOWS;C:WINDOWSSYSTEM32WBEM;C:WINDOWSSYSTEM32WINDOWSPOWERSHELLV1.0;C:PROGRAM FILESORACLEINSTANTCLIENT_10_2;C:PROGRAM FILESGNUGNUPGPUB;C:PROGRAM FILESCOMMON FILESROXIO SHAREDDLLSHARED;C:PROGRAM FILESCOMMON FILESROXIO SHAREDOEMDLLSHARED;C:PROGRAM FILESCOMMON FILESROXIO SHAREDOEMDLLSHARED;C:PROGRAM FILESCOMMON FILESROXIO SHAREDOEM12.0DLLSHARED;C:PROGRAM FILESROXIOOEMAUDIOCORE;C:PROGRAM FILESMIKTEX 2.9MIKTEXBIN;C:PROGRAM FILESCALIBRE2;C:PROGRAM FILESMICROSOFT SQL SERVER110TOOLSBINN;C:PROGRAM FILESTORTOISESVNBIN;C:PROGRAM FILESWINDOWS LIVESHARED;C:PROGRAM FILESQUICKTIMEQTSYSTEM;C:PROGRAM FILESGNUGNUPGPUB;C:Program FilesWIDCOMMBluetooth Software;C:FPC2.6.4bini386-Win32'
2:17:11 PM: Checking that 'C:Program FilesFfmpeg For Audacity' is in PATH...
2:17:11 PM: Warning: FFmpeg directory is not in PATH.
2:17:11 PM: Temporarily appending ';C:Program FilesFfmpeg For Audacity' to PATH...
2:17:11 PM: Checking for monolithic avformat from 'C:Program FilesFfmpeg For Audacityavformat-52.dll'.
2:17:11 PM: Error: Couldn't find symbol 'avutil_version' in a dynamic library (error 127: the specified procedure could not be found.)
2:17:11 PM: avformat not monolithic
2:17:11 PM: Loading avutil from 'C:Program FilesFfmpeg For Audacityavutil-50.dll'.
2:17:11 PM: Loading avcodec from 'C:Program FilesFfmpeg For Audacityavcodec-52.dll'.
2:17:12 PM: Loading avformat from 'C:Program FilesFfmpeg For Audacityavformat-52.dll'.
2:17:12 PM: Returning PATH to previous setting...
2:17:12 PM: Actual avutil path C:Program FilesFfmpeg For Audacityavutil-50.dll
2:17:12 PM: Actual avcodec path C:Program FilesFfmpeg For Audacityavcodec-52.dll
2:17:12 PM: Actual avformat path C:Program FilesFfmpeg For Audacityavformat-52.dll
2:17:12 PM: Importing symbols...
2:17:12 PM: All symbols loaded successfully. Initializing the library.
2:17:12 PM: Retrieving FFmpeg library version numbers:
2:17:12 PM:    AVCodec version 0x344802 - 52.72.2 (built against 0x344802 - 52.72.2)
2:17:12 PM:    AVFormat version 0x344002 - 52.64.2 (built against 0x344002 - 52.64.2)
2:17:12 PM:    AVUtil version 0x320f01 - 50.15.1 (built against 0x320f01 - 50.15.1)
2:17:12 PM: FFmpeg libraries loaded successfully.
2:17:16 PM: File name is C:UsersUS991217Desktop\06_WATERFALLS.wav
2:17:16 PM: Mime type is *
2:17:16 PM: Opening with libsndfile
2:17:16 PM: Open(C:UsersUS991217Desktop\06_WATERFALLS.wav) succeeded
2:17:28 PM: Attempting to load LAME from previously defined path
2:17:28 PM: Loading LAME from C:Program FilesLame For Audacitylame_enc.dll
2:17:28 PM: Error: Failed to load shared library 'C:Program FilesLame For Audacitylame_enc.dll' (error 1114: a dynamic link library (DLL) initialization routine failed.)
2:17:28 PM: load failed
2:17:28 PM: Attempting to load LAME from system search paths
2:17:28 PM: Loading LAME from lame_enc.dll
2:17:28 PM: Error: Failed to load shared library 'lame_enc.dll' (error 126: the specified module could not be found.)
2:17:28 PM: load failed
2:17:28 PM: Attempting to load LAME from builtin path
2:17:28 PM: LAME registry key exists.
2:17:28 PM: Library path is: C:Program FilesLame For Audacity
2:17:28 PM: Loading LAME from C:Program FilesLame For Audacitylame_enc.dll
2:17:28 PM: Error: Failed to load shared library 'C:Program FilesLame For Audacitylame_enc.dll' (error 1114: a dynamic link library (DLL) initialization routine failed.)
2:17:28 PM: load failed
2:17:28 PM: (Maybe) ask user for library
2:18:52 PM: Failed to locate LAME library

I’ve followed all of the advice on the Wiki but nothing changes. Any ideas?

I would guess that a copy of lame_enc.dll used by Roxio is conflicting with Audacity’s copy of lame_enc.dll (you have ROXIO in your PATH according to the Audacity log).

Try renaming lame_enc.dll in C:Program FilesLame For Audacity to “libmp3lame.dll” (without quotes). If Audacity still asks where LAME is, press “Browse…” in the “Locate LAME” dialogue, navigate to C:Program FilesLame For Audacity, then change the “Files of type:” selector to the (*.dll) choice then select and open libmp3lame.dll.

If that does not work you may need to remove the Roxio lame_enc.dll, or take those ROXIO values out of PATH. Removing Roxio from PATH may mean you could not encode MP3 using Roxio unless you opened the program directly.

Another solution you could try would be to export from Audacity using “(external program)”, click “Options…” then choose the lame - “%f” command and click OK. When you type your file name you will need to add the “.mp3” extension (without quotes) to the end of the file name. Using (external program) with a pathless “lame” command uses the installed copy of lame.exe in C:Program FilesLame For Audacity.


Gale

I didn’t want to remove the Roxio entries in PATH so I tried renaming the file but that didn’t work. Invoking Lame by using it as an external program did work fine. I just need to read up on the command line options to get what I want. Thanks.

If you haven’t found them yet: http://lame.cvs.sourceforge.net/viewvc/lame/lame/USAGE .


Gale