Lame encoder Parameter Analysis

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.