MP3 Encoder



LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL. Latest LAME release: v3.100 (October 2017) LAME development started around mid-1998. Mike Cheng started it as a patch against the 8hz-MP3 encoder sources.

Mp3 Encoder Eac

The software patent on LAME encoding library has expired, so now the LAME library for MP3 export is built-in with Audacity for Windows and Mac. Linux users will still need to download and install the free and recommended LAME third-party encoder to export MP3 files from Audacity. MP3 Encoder is a lightweight tool which enables you to convert audio tracks from the WAV format to the MP3 extension. This is a portable application, so installing MP3 Encoder is not necessary. MP3 is a widely used compression technology that provides CD quality audio at significantly lower bit rates than the original CD data rate. The ADI MP3 encoder is a high performance encoder that is capable of delivering high quality compressed audio at fast encoding speeds – over 12x real-time encoding can be achieved on a 600MHz Blackfin processor. LAME is a great MP3-Encoder: it's very fast, it produces high-quality files, has many advanced features (like Variable Bitrates and Joint-Stereo), and it's open source. Unfortunately, it is a command line utility, and that is where RazorLame comes in: It provides an easy-to-use graphical user-interface which makes MP3-encoding even easier!

-->

The Microsoft Media Foundation MP3 audio encoder is a Media Foundation Transform (MFT) that encodes MPEG-1 layer 3 (MP3) audio.

Class Identifier

The class identifier (CLSID) of the MP3 encoder is CLSID_MP3ACMCodecWrapper, defined in the header file wmcodecdsp.h.

Media Types

The MP3 encoder supports the following media types. The output type must be set before the input type.

Output Types

Mp3 Encoder

Set the following attributes on the output media type.

AttributeDescriptionRemarks
MF_MT_MAJOR_TYPEMajor type.Must be MFMediaType_Audio.
MF_MT_SUBTYPEAudio subtype.Must be MFAudioFormat_MP3.
MF_MT_AUDIO_AVG_BYTES_PER_SECONDBit rate of the encoded MP3 stream, in bytes per second.The encoder supports all bit rates defined by the standard (32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, or 320 Kbps).
The default bit rates are 128 Kbps for mono and 320 Kbps for stereo.
Use this attribute to specify the encoded bit rate.
MF_MT_AUDIO_NUM_CHANNELSNumber of channels.The following values are supported:
  • 1 (mono)
  • 2 (stereo)
MF_MT_AUDIO_SAMPLES_PER_SECONDSamples per second.The following values are supported:
  • 48000 (48 KHz)
  • 44100 (44.1 KHz)
  • 32000 (32 KHz)
MF_MT_USER_DATAAdditional codec data.This attribute contains the 12 bytes of the MPEGLAYER3WAVEFORMAT structure that follow the wfx member of that structure.

Alternatively, you can fill in an MPEGLAYER3WAVEFORMAT structure and call MFInitMediaTypeFromWaveFormatEx to convert the structure to a Media Foundation media type.

MP3 Encoder

Input Types

Set the following attributes on the input media type.

AttributeDescriptionRemarks
MF_MT_MAJOR_TYPEMajor type.Must be MFMediaType_Audio.
MF_MT_SUBTYPESubtype.Must be MFAudioFormat_PCM.
MF_MT_AUDIO_BITS_PER_SAMPLEBits per sample.Must be 16.
MF_MT_AUDIO_SAMPLES_PER_SECONDSamples per second.Must match the output type.
MF_MT_AUDIO_NUM_CHANNELSNumber of channels.Must match the output type.

The encoder supports only 16-bit integer PCM input. It does not support 32-bit floating point input.

Media Formats

The MPEG-1 and MPEG-2 standard defines 252 layer 3 audio formats. The MP3 encoder supports the standard with some exceptions, as well as some additional formats, as described below. Layer 3 is defined as:

RequirementValue
Channelsmono or stereo
MPEG-1 sample rates in kHz44.1, 48, 32
MPEG-1 encoded bit rates in kbps32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320
MPEG-2 sample rates in kHz8, 11.025, 12, 16, 22.05, 24
MPEG-2 encoded bit rates in kbps8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 144, 160

The MP3 encoder also supports the following formats.

Sample RateBit RateChannel Number
800018000, 200002
1102518000, 200001 or 2
1200018000, 200001 or 2
1600018000, 200001
320001440001 or 2
441001440001 or 2
480001440001 or 2

The MP3 encoder does not support the following formats defined by the standard.

Sample RateBit RatesChannel Number
1200080000, 96000, 112000, 128000, 144000, 1600001 or 2
1102580000, 96000, 112000, 128000, 144000, 1600001 or 2
800080000, 96000, 112000, 128000, 144000, 1600001 or 2
80008000, 11025, 12000, 16000, 22050, 240002

Requirements

RequirementValue
Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]

See also

Errors related to lame_enc.dll can arise for a few different different reasons. For instance, a faulty application, lame_enc.dll has been deleted or misplaced, corrupted by malicious software present on your PC or a damaged Windows registry.

The most commonly occurring error messages are:

  • The program can't start because lame_enc.dll is missing from your computer. Try reinstalling the program to fix this problem.
  • There was a problem starting lame_enc.dll. The specified module could not be found.
  • Error loading lame_enc.dll. The specified module could not be found.
  • The code execution cannot proceed because lame_enc.dll was not found. Reinstalling the program may fix this problem.
  • lame_enc.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vender for support.

In the vast majority of cases, the solution is to properly reinstall lame_enc.dll on your PC, to the Windows system folder. Alternatively, some programs, notably PC games, require that the DLL file is placed in the game/application installation folder.

For detailed installation instructions, see our FAQ.

Additional details about lame_enc.dll

Lame_enc.dll is an MP3 encoder module, and it’s considered to be the best encoder at mid-high bitrates. The Lame_enc.dll module is also a standard for audio compression. This module converts a music file into any new multimedia format and with very little loss in sound quality. There are several popular open source applications that uses or supports the lame_enc.dll module, among them VideoLAN and Audacity.

If you are experiencing problems with lame_enc.dll one solution is to download the file and then reinstall it in its proper folder. This might help fix your problems.

How to use lame_enc.dll with Audacity 1.3:

- Open Audacity

- Go to Edit > Preferences...

- Click Libraries

- Click Locate... next to MP3 Library

- Click Browse... and browse to the folder that contains lame_enc.dll

- Mark the lame_enc.dll file and click Open

- Done!