📄 lame.1
字号:
.TH lame 1 "August 03, 2005" "" "LAME audio compressor".SH NAMElame \- create mp3 audio files.SH SYNOPSISlame [options] <infile> <outfile>.SH DESCRIPTION.PPLAME is a program which can be used to create compressed audio files.(Lame ain't an MP3 encoder).These audio files can be played back by popular MP3 players such asmpg123 or madplay.To read from stdin, use "\-" for <infile>.To write to stdout, use a "\-" for <outfile>..SH OPTIONSInput options:.TP.B \-rAssume the input file is raw pcm.Sampling rate and mono/stereo/jstereo must be specified on the command line.Without.B \-r,LAME will perform several.I fseek()'son the input file looking for WAV and AIFF headers..brMight not be available on your release. .TP.B \-xSwap bytes in the input file or output file when using.B \-\-decode..brFor sorting out little endian/big endian type problems.If your encodings sounds like static,try this first..brWithout using.B \-x,LAME will treat input file as native endian..TP.BI \-s " sfreq".I sfreq= 8/11.025/12/16/22.05/24/32/44.1/48Required only for raw PCM input files.Otherwise it will be determined from the header of the input file.LAME will automatically resample the input file to one of the supportedMP3 samplerates if necessary..TP.BI \-\-bitwidth " n"Input bit width per sample..br.I n= 8, 16, 24, 32 (default 16)Required only for raw PCM input files.Otherwise it will be determined from the header of the input file..TP.BI \-\-signedInstructs LAME that the samples from the input are signed (the default).Required only for raw PCM input filesand only available if LAME was compiled with libsndfile..TP.BI \-\-unsignedInstructs LAME that the samples from the input are unsigned.Required only for raw PCM input filesand only available if LAME was compiled with libsndfile..TP.BI \-\-little-endianInstructs LAME that the samples from the input are in little-endian form.Required only for raw PCM input filesand only available if LAME was compiled with libsndfile..TP.BI \-\-big-endianInstructs LAME that the samples from the input are in big-endian form.Required only for raw PCM input filesand only available if LAME was compiled with libsndfile..TP.B \-\-mp2inputAssume the input file is a MPEG Layer II (ie MP2) file..brIf the filename ends in ".mp2" LAME will assume it is a MPEG Layer II file.For stdin or Layer II files which do not end in .mp2 you need to usethis switch. .TP.B \-\-mp3inputAssume the input file is a MP3 file..brUseful for downsampling from one mp3 to another.As an example,it can be useful for streaming through an IceCast server..brIf the filename ends in ".mp3" LAME will assume it is an MP3.For stdin or MP3 files which do not end in .mp3 you need to use this switch. .TP.BI \-\-nogap " file1 file2 ..."gapless encoding for a set of contiguous files.TP.BI \-\-nogapout " dir"output dir for gapless encoding (must precede \-\-nogap).PPOperational options:.TP.BI \-m " mode".I mode= s, j, f, d, mJoint-stereo is the default mode for stereo files with VBR when.B \-Vis more than 4 or fixed bitrates of 160kbs or less.At higher fixed bitrates or higher VBR settings,the default is stereo. .B (s)tereo .brIn this mode,the encoder makes no use of potentially existing correlations betweenthe two input channels.It can,however,negotiate the bit demand between both channel,i.e. give one channel more bits if the other contains silence or needsless bits because of a lower complexity..B (j)oint stereo.brIn this mode,the encoder will make use of a correlation between both channels.The signal will be matrixed into a sum ("mid"),computed by L+R,and difference ("side") signal,computed by L\-R,and more bits are allocated to the mid channel.This will effectively increase the bandwidth if the signal does nothave too much stereo separation,thus giving a significant gain in encoding quality.Using mid/side stereo inappropriately can result in audiblecompression artifacts.To much switching between mid/side and regular stereo can alsosound bad.To determine when to switch to mid/side stereo,LAME uses a much more sophisticated algorithm than that describedin the ISO documentation, and thus is safe to use in jointstereo mode..B (f)orced joint stereo .brThis mode will force MS joint stereo on all frames.It is slightly faster than joint stereo,but it should be used only if you are sure that every frame of theinput file has very little stereo separation..B (d)ual channels.brIn this mode,the 2 channels will be totally independently encoded.Each channel will have exactly half of the bitrate.This mode is designed for applications like dual languagesencoding (for example: English in one channel and French in the other).Using this encoding mode for regular stereo files will result in alower quality encoding..B (m)ono.brThe input will be encoded as a mono signal.If it was a stereo signal,it will be downsampled to mono.The downmix is calculated as the sum of the left and right channel,attenuated by 6 dB..TP.B \-aMix the stereo input file to mono and encode as mono..brThe downmix is calculated as the sum of the left and right channel,attenuated by 6 dB. This option is only needed in the case of raw PCM stereo input(because LAME cannot determine the number of channels in the input file).To encode a stereo PCM input file as mono,use.B lame \-m.I s.B \-a.For WAV and AIFF input files,using.B \-mwill always produce a mono .mp3 file from both mono and stereo input. .TP.B \-dAllows the left and right channels to use different block size types. .TP.B \-\-freeformatProduces a free format bitstream.With this option,you can use.B \-bwith any bitrate higher than 8 kbps.However,even if an mp3 decoder is required to support free bitrates atleast up to 320 kbps,many players are unable to deal with it.Tests have shown that the following decoders support free format:.br.B FreeAmpup to 440 kbps.br.B in_mpg123up to 560 kbps.br.B l3decup to 310 kbps.br.B LAMEup to 560 kbps.br.B MADup to 640 kbps.TP.B \-\-decodeUses LAME for decoding to a wav file.The input file can be any input type supported by encoding,including layer II files.LAME uses a bugfixed version of mpglib for decoding.If.B \-tis used (disable wav header),LAME will output raw pcm in native endian format.You can use.B \-xto swap bytes order.This option is not usable if the MP3 decoder was.B explicitlydisabled in the build of LAME..TP.BI \-tDisable writing of the INFO Tag on encoding..brThis tag in embedded in frame 0 of the MP3 file.It includes some information about the encoding options of the file,and in VBR it lets VBR aware players correctly seek and computeplaying times of VBR files.When.B \-\-decodeis specified (decode to WAV),this flag will disable writing of the WAV header.The output will be raw pcm,native endian format.Use.B \-xto swap bytes..TP.BI \-\-comp " arg"Instead of choosing bitrate,using this option,user can choose compression ratio to achieve..TP.BI \-\-scale " n".PD 0.TP.BI \-\-scale\-l " n".TP.BI \-\-scale\-r " n"Scales input (every channel, only left channel or only right channel) by.I n.This just multiplies the PCM data (after it has been converted to floatingpoint) by.I n. .I n> 1: increase volume.br.I n= 1: no effect.br.I n< 1: reduce volumeUse with care,since most MP3 decoders will truncate data which decodes to valuesgreater than 32768..PD.TP.B \-\-replaygain\-fastCompute ReplayGain fast but slightly inaccurately.This computes "Radio" ReplayGain on the input data stream afteruser\(hyspecified volume\(hyscaling and/or resampling.The ReplayGain analysis does.I notaffect the content of a compressed data stream itself,it is a value stored in the header of a sound file.Information on the purpose of ReplayGain and the algorithms used isavailable from.B http://www.replaygain.org/.Only the "RadioGain" Replaygain value is computed,it is stored in the LAME tag.The analysis is performed with the referencevolume equal to 89dB.Note: the reference volume has been changed from 83dB on transition fromversion 3.95 to 3.95.1.This switch is enabled by default.See also:.B \-\-replaygain\-accurate, \-\-noreplaygain.TP.B \-\-replaygain\-accurateCompute ReplayGain more accurately and find the peak sample.This enables decoding on the fly, computes "Radio" ReplayGain on thedecoded data stream,finds the peak sample of the decoded data stream and stores it in the file. The ReplayGain analysis does.I notaffect the content of a compressed data stream itself,it is a value stored in the header of a sound file.Information on the purpose of ReplayGain and the algorithms used isavailable from.B http://www.replaygain.org/. By default, LAME performs ReplayGain analysis on the input data(after the user\(hyspecified volume scaling).This behavior might give slightly inaccurate resultsbecause the data on the output of a lossy compression/decompression sequencediffers from the initial input data.When.B \-\-replaygain-accurateis specified the mp3 stream gets decoded on the fly and the analysis isperformed on the decoded data stream.Although theoretically this method gives more accurate results,it has several disadvantages:.RS 8.IP "*" 4tests have shown that the difference between the ReplayGain values computedon the input data and decoded data is usually not greater than 0.5dB,although the minimum volume difference the human ear can perceive isabout 1.0dB.IP "*" 4decoding on the fly significantly slows down the encoding process.RE.RS 7The apparent advantage is that:.RE.RS 8.IP "*" 4with.B \-\-replaygain-accuratethe real peak sample is determined and stored in the file.The knowledge of the peak sample can be useful to decoders (players)to prevent a negative effect called 'clipping' that introduces distortioninto the sound..RE.RS 7 Only the "RadioGain" ReplayGain value is computed,it is stored in the LAME tag.The analysis is performed with the referencevolume equal to 89dB.Note: the reference volume has been changed from 83dB on transition fromversion 3.95 to 3.95.1. This option is not usable if the MP3 decoder was.B explicitlydisabled in the build of LAME.(Note: if LAME is compiled without the MP3 decoder,ReplayGain analysis is performed on the input data after user-specifiedvolume scaling). See also:.B \-\-replaygain-fast, \-\-noreplaygain \-\-clipdetect.RE.TP.B \-\-noreplaygainDisable ReplayGain analysis.By default ReplayGain analysis is enabled. This switch disables it.See also:.B \-\-replaygain-fast, \-\-replaygain-accurate.TP.B \-\-clipdetectClipping detection.Enable.B \-\-replaygain-accurateand print a message whether clipping occurs and how far in dB the waveformis from full scale. This option is not usable if the MP3 decoder was.B explicitlydisabled in the build of LAME.See also:.B \-\-replaygain-accurate.TP.B \-\-preset " [fast] type | [cbr] kbps"Use one of the built-in presets.Have a look at the PRESETS section below..B Warning:with the current version fast presets might result in too high bitratecompared to regular presets..B \-\-preset helpgives more infos about the the used options in these presets..TP.B \-\-alt-preset " [fast] type | [cbr] kbps"Use one of the built-in presets.This option is deprecated and offers the same as the.B \-\-presetoption above. Do not use it anymore, it will go away in a later version..TP.B \-\-r3mixUses r3mix VBR preset..brSee http://www.r3mix.net/ for more details. .TP.B \-\-noasm " type"Disable specific assembly optimizations (.B mmx/.B 3dnow/.B sse).Quality will not increase, only speed will be reduced.If you have problems running Lame on a Cyrix/Via processor,disabling mmx optimizations might solve your problem..PPVerbosity:.TP.BI \-\-disptime " n"Set the delay in seconds between two display updates. .TP.B \-\-nohistBy default,LAME will display a bitrate histogram while producing VBR mp3 files.This will disable that feature..brHistogram display might not be available on your release. .TP.B -S.PD 0.TP.B \-\-silent.TP.B \-\-quietDo not print anything on the screen..PD.TP.B \-\-verbosePrint a lot of information on the screen..TP.B \-\-helpDisplay a list of available options..PPNoise shaping & psycho acoustic algorithms:.TP.BI -q " qual"0 <=.I qual<= 9Bitrate is of course the main influence on quality.The higher the bitrate,the higher the quality.But for a given bitrate,we have a choice of algorithms to determine the best scalefactorsand Huffman encoding (noise shaping)..B -q 0:.bruse slowest & best possible version of all algorithms..B -q 0and.B -q 1are slow and may not produce significantly higher quality..B -q 2:.brrecommended.Same as.B -h..B -q 5:.brdefault value.Good speed,reasonable quality..B -q 7:.brsame as.B -f.Very fast,ok quality.Psycho acoustics are used for pre-echo & M/S,but no noise shaping is done..B -q 9:.brdisables almost all algorithms including psy-model.Poor quality..TP.B -hUse some quality improvements.Encoding will be slower,but the result will be of higher quality.The behavior is the same as the.B -q 2switch..brThis switch is always enabled when using VBR. .TP.B -fThis switch forces the encoder to use a faster encoding mode,but with a lower quality.The behavior is the same as the.B -q 7switch.Noise shaping will be disabled,but psycho acoustics will still be computed for bit allocationand pre-echo detection. .PPCBR (constant bitrate, the default) options:.TP.BI -b " n"For MPEG1 (sampling frequencies of 32, 44.1 and 48 kHz).br.I n= 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320For MPEG2 (sampling frequencies of 16, 22.05 and 24 kHz).br.I n= 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160Default is 128 for MPEG1 and 64 for MPEG2. .TP.BI \-\-cbrenforce use of constant bitrate.PPABR (average bitrate) options:.TP.BI \-\-abr " n"Turns on encoding with a targeted average bitrate of n kbits,allowing to use frames of different sizes.The allowed range of.I nis 8 - 310,you can use any integer value within that range.It can be combined with the.B -band.B -Bswitches like:.B lame \-\-abr.I 123.B -b.I 64.B -B.I 192 a.wav a.mp3which would limit the allowed frame sizes between 64 and 192 kbits.The use of.B -Bis NOT RECOMMENDED.A 128 kbps CBR bitstream,because of the bit reservoir,can actually have frames which use as many bits as a 320 kbps frame.VBR modes minimize the use of the bit reservoir,and thus need to allow 320 kbps frames to get the same flexibilityas CBR streams. .PPVBR (variable bitrate) options:.TP.B -vuse variable bitrate.B (\-\-vbr-old).TP.B \-\-vbr-oldInvokes the oldest,most tested VBR algorithm.It produces very good quality files,though is not very fast.This has,up through v3.89,been considered the "workhorse" VBR algorithm..TP.B \-\-vbr-newInvokes the newest VBR algorithm.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -