Lame encoder Parameter Analysis
Lame Command Format
Lame [Options] inputfile [outputfile] // output file of the parameter input file
(1) CBR
Lame -- freeformat-B <n (128 Kbps)> sample.wav/sample.pdf // whether the input is a WAV file or an MP3 file, it can be encoded into an MP3 file with a fixed bit rate.
Lame sample.wav sampleps // The default value is 32 Kbps.
Lame-H sample.wav sample.pdf // high quality encoding, kbps combined with stereo (-H equivalent to-q2) (-q0 -->-Q9)
Lame-F sample.wav sample.pdf // fast encoding, low quality, no noise (-F is equivalent to-Q7) (not recommended)
Lame-B n sample.wav sample.mp3 // encoded at N Bit Rate
(2) ABR
Lame-h -- ABR <n (128 Kbps)> sample.wav sample // encode the average bit rate around n
(3) VBR
Lame-V2 sample.wav sample.pdf // V0 has the lowest compression ratio, which is equivalent to the highest quality (the quality is about 256 kbps of CBR quality), and V9 has the highest compression ratio, which is equivalent to the lowest quality.
-V // encoded in VBR
-V n // VBR quality setting N from 0 to 9
-B n // specify the minimum bit rate, for example, lame-v-B 112 input.wav output.mp3. If the file is too large, then lame-v N-B 112 input.wav output.mp3 (N from 0 to 9 ),
If you want to use the largest possible compression ratio, try lame-V input.wav outputratio or lame-v N input.wav outputratio
-B N // specify the maximum bit rate (not recommended)
-- VBR-old // use the old VBR route
-- VBR-new // encode with the New VBR
(4) MP3 Decoding
-- Decode // decompress the MP3 file into a WAV file. The input can be any format recognized in any encoding and the output is a PCM signal without a WAV header.
(5) encoding Mode
-M mono Single Channel
-M s stereo
-M j joint stereo combined with stereo
-M f forced mid/side stereo
-M d dual (independent) channels independent dual channel
-M I intensity stereo strong stereo
-M a Auto conversion
If the input is a stereo PCM signal and is encoded as a single channel, lame-m s-
If the input is a source file in WAV or AIFF format and encoded as a single channel, then lame-M. With this parameter, even the dual channel will become a single channel
(6) Other parameters
-S n // input sampling frequency
-- Resample N // output sampling frequency
-- Replaygain-fast // fast playback Gain Analysis
-R // assume that the input is an unprocessed PCM signal. Without this parameter, how can we find the corresponding parameter from the WAV or AIFF file header?
-Q n // quantization selection, where n ranges from 0 to 9
-P // CRC correction. this parameter is only applicable to lame encoders.
-O // use the encoded file as a copy
-- Noreplaygain // cancel Gain Analysis and -- replaygain-accurate, -- replaygain-fast
-- Nohist // in VBR, the encoder automatically generates a histogram. This parameter indicates that the histogram is not generated.
-- Mp3input // indicates that the input is an MP3 file, and the encoder will first decode it.
-- Clipdetect // cut detection
-C // encoding Copyright
-X // input file, swap bits
Source: http://www.cnblogs.com/macong/archive/2012/11/15/2771413.html