libmp3lame
LAME (Lame Ain't an MP3 Encoder) MP3 encoder wrapper.
Requires the presence of the libmp3lame headers and library during configuration. You need to explicitly configure the build with --enable-libmp3lame
.
See libshine for a fixed-point MP3 encoder, although with a lower quality.
Options
The following options are supported by the libmp3lame wrapper. The lame
-equivalent of the options are listed in parentheses.
- 'b (-b)'
-
Set bitrate expressed in bits/s for CBR or ABR. LAME
bitrate
is expressed in kilobits/s. - 'q (-V)'
-
Set constant quality setting for VBR. This option is valid only using the
ffmpeg
command-line tool. For library interface users, use 'global_quality'. - 'compression_level (-q)'
-
Set algorithm quality. Valid arguments are integers in the 0-9 range, with 0 meaning highest quality but slowest, and 9 meaning fastest while producing the worst quality.
- 'cutoff (--lowpass)'
-
Set lowpass cutoff frequency. If unspecified, the encoder dynamically adjusts the cutoff.
- 'reservoir'
-
Enable use of bit reservoir when set to 1. Default value is 1. LAME has this enabled by default, but can be overridden by use '--nores' option.
- 'joint_stereo (-m j)'
-
Enable the encoder to use (on a frame by frame basis) either L/R stereo or mid/side stereo. Default value is 1.
- 'abr (--abr)'
-
Enable the encoder to use ABR when set to 1. The
lame
'--abr' sets the target bitrate, while this options only tells FFmpeg to use ABR still relies on 'b' to set bitrate.