📄 usage
字号:
=======================================================================graphical frame analyzer=======================================================================-grun MP3x, the graphical frame analyzer analysis on the inputfile. Theinputfile can be either an .mp3 file or uncompressed audio file. MP3xsupport must be compiled into LAME, and requires GTK 1.2.Documentation is under the About pull down menu.=======================================================================high quality=======================================================================-huse (maybe) some quality improvementsLAME 3.21 and up: -h enables specialized mid/side masking thresholds tobe used in jstereo mode. Will sound better in jstereo modebut is 20% slower. No effect for mono files.LAME 3.58beta and up: -h also enables a more accurate but slightlyslower quantization formula. =======================================================================sfb=21 cutoff=======================================================================-k keep all frequencies. (Disable all filters)Without -k, LAME will automatically apply various types of lowpassfilters. This is because the high frequency coefficients can take upa lot of bits that would be better used for lower, more importantfrequencies.=======================================================================Modes:=======================================================================-m m mono. -m s stereo-m j jstereo-m f forced mid/side stereomono is the default mode for mono input files. If "-m m" is specifiedfor a stereo input file, the two channels will be averaged into a monosignal. jstereo is the default mode for stereo files with fixed bitrates of128kbs or less. At higher fixed bitrates, the default is stereo.For VBR encoding, jstereo is the default for VBR_q >4, and stereois the default for VBR_q <=4. You can override all of these defaultsby specifing the mode on the command line. jstereo means the encoder can use (on a frame by frame bases) eitherregular stereo (just encode left and right channels independently)or mid/side stereo. In mid/side stereo, the mid (L+R) and side (L-R)channels are encoded, and more bits are allocated to the mid channelthan the side channel. This will effectively increase the bandwidthif the signal does not have too much stereo separation. Mid/side stereo is basically a trick to increase bandwidth. At 128kbs,it is clearly worth while. At higher bitrates it is less usefull. Using mid/side stereo inappropriately can result in audiblecompression artifacts. To much switching between mid/side and regularstereo can also sound bad. To determine when to switch to mid/sidestereo, LAME uses a much more sophisticated algorithm than thatdescribed in the ISO documentation.-m f forces all frames to be encoded mid/side stereo. It should only be used if you are sure every frame of the input filehas very little stereo seperation. =======================================================================MP3 input file=======================================================================--mp3inputAssume the input file is a MP3 file. Usefull for downsampling fromone mp3 to another. If the filename ends in ".mp3" LAME will assumeit is an MP3. For stdin or MP3 files which dont end in .mp3 you needto use this switch.=======================================================================disable historgram display=======================================================================--nohistBy default, LAME will display a bitrate histogram while producingVBR mp3 files. This will disable that feature.=======================================================================disable short blocks=======================================================================--noshortEncode all frames using long blocks.=======================================================================non-original=======================================================================-o mark the encoded file as a copy=======================================================================Ogg Vorbis encoding=======================================================================--oggEncode using the Ogg Vobis codec (using libvorbis) instead ofLAME's internal mp3 codec.Assume the input file is an Ogg Vorbis file. Mostly usefullwith --decode for playing back .ogg files. If the filename ends in ".ogg" LAME will assumeit is an Ogg. For stdin or files which dont end in .ogg you needto use this switch.=======================================================================Ogg Vorbis input file=======================================================================--ogginputAssume the input file is an Ogg Vorbis file. Mostly usefullwith --decode for playing back .ogg files, or convertingyour .ogg collection to MP3 :-)If the filename ends in ".ogg" LAME will assume it is Ogg. Forstdin or files which dont end in .ogg you need to use this switch.=======================================================================CRC error protection=======================================================================-p turn on CRC error protection. Yes this really does work correctly in LAME. However, it takes 16 bits per frame that would otherwise be used for encoding.=======================================================================input file is raw pcm=======================================================================-r Assume the input file is raw pcm. Sampling rate and mono/stereo/jstereomust be specified on the command line. Without -r, LAME will performseveral fseek()'s on the input file looking for WAV and AIFF headers.Not supported if LAME is compiled to use LIBSNDFILE.=======================================================================output sampling frequency in kHZ=======================================================================--resample nwhere n = 16, 22.05, 24, 32, 44.1, 48Output sampling frequency. Resample the input if necessary. If not specified, LAME may sometimes resample automatically when faced with extreme compression conditions (like encodinga 44.1khz input file at 16kbs). =======================================================================sampling frequency in kHZ=======================================================================-s nwhere n = sampling rate in kHz.Required for raw PCM input files. Otherwise it will be determinedfrom the header information in the input file.LAME will automatically resample the input file to one of thesupported MP3 samplerates if necessary.=======================================================================silent operation=======================================================================-Sdon't print progress report=======================================================================strict ISO complience=======================================================================--strictly-enforce-ISO With this option, LAME will enforce the 7680 bit limitation ontotal frame size. This results in many wasted bits forhigh bitrate encodings.=======================================================================disable Xing VBR tag=======================================================================-t Disable writing of the Xing VBR Tag (only valid if -v flag isspecified) This tag in embedded in frame 0 of the MP3 file. It letsVBR aware players correctly seek and compute playing times of VBRfiles.=======================================================================variable bit rate (VBR)=======================================================================-vTurn on VBR. There are several ways you can use VBR. I personallylike using VBR to get files slightly bigger than 128kbs files, wherethe extra bits are used for the occasional difficult-to-encode frame.For this, try specifying a minimum bitrate to use with VBR:lame -v -b 112 input.wav output.mp3If the file is too big, use -V n, where n=0..9lame -v -V n -b 112 input.wav output.mp3If you wan to use VBR to get the maximum compression possible,and for this, you can try: lame -v input.wav output.mp3lame -v -V n input.wav output.mp3 (to very quality/filesize)=======================================================================old variable bit rate (VBR)=======================================================================--vbr-oldsame as -v but turns on the old VBR routine=======================================================================VBR quality setting=======================================================================-V n n=0..9. Specifies the value of VBR_q. default=4. 0=highest quality.How is VBR_q used?OVER = number of scalefactor bands with distortion that exceeds theallowed distortion given by the masking thresholds. OVER is computedby outer_loop, and the masking thresholds are computed by thepsycho-acoustic model. VBR_q = the minimum value of OVER which is to be allowed.LAME will choose the smallest bitrate for which OVER <= VBR_q. (a minimum allowed bitrate can be set with -b. default=64kbs)If the frame contains short blocks, then the minimum bitrate is mademuch larger since the OVER does not adequately measure distortioncaused by pre-echo. LAME uses bitrates of at least 160kbs for shortblocks to make sure they sound good.*NOTE* No psy-model is perfect, so there can often be distortion whichis audible even though the psy-model claims it is not! Thus using asmall minimum bitrate can result in some aggressive compression andaudible distortion even with -V 0. Thus using -V 0 does not soundbetter than a fixed 256kbs encoding. For example: suppose in the 1kHzfrequency band the psy-model claims 20db of distortion will not bedetectable by the human ear, so LAME VBR-0 will compress thatfrequency band as much as possible and introduce at most 20db ofdistortion. Using a fixed 256kbit framesize, LAME could end upintroducing only 2db of distortion. If the psy-model was correct,they will both sound the same. If the psy-model was wrong, the VBR-0result can sound worse.=======================================================================voice encoding mode=======================================================================--voiceAn experimental voice encoding mode. Tuned for 44.1kHz input files.=======================================================================swapbytes =======================================================================-xswap bytes in the input file. for sorting out little endian/big endiantype problems. If your encodings sound like static, try this first.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -