You are on page 1of 4

ENCODING MP3 1.

VBR(Variable Bit Rate)


To encode VBR mp3 audio with ffmpeg , using libmp3lame library, we would specify a command like this: ffmpeg -i input.wav -q:a 2 out.mp3 Option -q:a needs a parameter, that tells ffmpeg something about expected "audio quality". This parameter has a different meaning for each audio encoder used, and we are now describing the libmp3lame encoder. The table for LAME option -V <number> is shown here (and that option is mapped to the -q:a option in ffmpeg ): VBR (variable bitrate) settings for LAME. Switch Kbit/s Bitrate range kbit/s -b 320 320 -V 0 -V 1 -V 2 -V 3 -V 4 -V 5 -V 6 -V 7 -V 8 -V 9 245 225 190 175 165 130 115 100 85 65 320 CBR 220...260 190...250 170...210 150...195 140...185 120...150 100...130 80...120 70...105 45...85

So, in our example above, we selected -q:a 2 , meaning we used LAME's option -V 2 , which gives a VBR mp3 audio in the approximate range of 170-210 kbit/s.

2. CBR(Constant Bit Rate)


3. MPEG Audio Layer III [9][30][31][32][47] available bit rates (kbit/s)

MPEG-1 Audio Layer III

MPEG-2 Audio Layer III

MPEG-2.5 Audio Layer III

16

16

3. MPEG Audio Layer III [9][30][31][32][47] available bit rates (kbit/s)

MPEG-1 Audio Layer III

MPEG-2 Audio Layer III

MPEG-2.5 Audio Layer III

24

24

32

32

32

40

40

40

48

48

48

56

56

56

64

64

64

80

80

96

96

112

112

128

128

144

144

160

160

3. MPEG Audio Layer III [9][30][31][32][47] available bit rates (kbit/s)

MPEG-1 Audio Layer III

MPEG-2 Audio Layer III

MPEG-2.5 Audio Layer III

192

224

256

320

Supported sampling rates [9][30][31][32] by MPEG Audio Format

MPEG-1 Audio Layer III

MPEG-2 Audio Layer III

MPEG-2.5 Audio Layer III

8000 Hz

11025 Hz

12000 Hz

16000 Hz

22050 Hz

Supported sampling rates [9][30][31][32] by MPEG Audio Format

MPEG-1 Audio Layer III

MPEG-2 Audio Layer III

MPEG-2.5 Audio Layer III

24000 Hz

32000 Hz

44100 Hz

48000 Hz

4. ABR (Average Bit Rate)

You might also like