Map LAME VBR Settings to FFmpeg libmp3lame -q:a
When encoding MP3 audio, transitioning from the native LAME encoder
to FFmpeg requires translating command-line arguments to achieve
identical audio quality. This guide provides a direct, one-to-one
mapping of native LAME -V variable bitrate (VBR) settings
to FFmpeg’s libmp3lame -q:a parameter,
complete with code examples and target bitrate expectations.
The Direct Mapping Rule
The mapping between native LAME -V settings and FFmpeg’s
-q:a (or -qscale:a) parameter is
exactly 1:1. The value you use for LAME’s
-V flag is the exact same integer you pass to FFmpeg’s
-q:a option.
In both systems, the scale runs from 0 to 9, where 0 represents the highest quality (largest file size) and 9 represents the lowest quality (smallest file size).
Mapping Reference Table
| LAME VBR Option | FFmpeg Equivalent | Average Bitrate Range | Quality Description |
|---|---|---|---|
-V 0 |
-q:a 0 |
220–260 kbps | Maximum Quality |
-V 1 |
-q:a 1 |
190–250 kbps | Very High Quality |
-V 2 |
-q:a 2 |
170–210 kbps | Standard/Recommended (Transparent) |
-V 3 |
-q:a 3 |
150–195 kbps | Good Quality |
-V 4 |
-q:a 4 |
140–185 kbps | Acceptable Quality |
-V 5 |
-q:a 5 |
120–150 kbps | Medium Quality |
-V 6 |
-q:a 6 |
100–130 kbps | Low Quality |
-V 7 |
-q:a 7 |
80–120 kbps | Very Low Quality |
-V 8 |
-q:a 8 |
70–105 kbps | Voice/Amateur Quality |
-V 9 |
-q:a 9 |
45–85 kbps | Minimal Quality |
Command Examples
To illustrate the direct transition, here is how you write the same encoding command in both tools.
Native LAME Command
To encode a WAV file to an MP3 using LAME’s standard high-quality VBR
setting (-V 2):
lame -V 2 input.wav output.mp3FFmpeg Equivalent Command
To achieve the exact same encoding profile using FFmpeg, specify the
libmp3lame codec and the mapped -q:a 2
parameter:
ffmpeg -i input.wav -c:a libmp3lame -q:a 2 output.mp3(Note: You can also use -qscale:a 2 in FFmpeg, as
-q:a is simply a shorthand alias for the audio quality
scale parameter).