📄 ffmpeg-doc.texi
字号:
Set DCT algorithm to @var{algo}. Available values are:@table @samp@item 0FF_DCT_AUTO (default)@item 1FF_DCT_FASTINT@item 2FF_DCT_INT@item 3FF_DCT_MMX@item 4FF_DCT_MLIB@item 5FF_DCT_ALTIVEC@end table@item -idct_algo algoSet IDCT algorithm to @var{algo}. Available values are:@table @samp@item 0FF_IDCT_AUTO (default)@item 1FF_IDCT_INT@item 2FF_IDCT_SIMPLE@item 3FF_IDCT_SIMPLEMMX@item 4FF_IDCT_LIBMPEG2MMX@item 5FF_IDCT_PS2@item 6FF_IDCT_MLIB@item 7FF_IDCT_ARM@item 8FF_IDCT_ALTIVEC@item 9FF_IDCT_SH4@item 10FF_IDCT_SIMPLEARM@end table@item -er nSet error resilience to @var{n}.@table @samp@item 1FF_ER_CAREFUL (default)@item 2FF_ER_COMPLIANT@item 3FF_ER_AGGRESSIVE@item 4FF_ER_VERY_AGGRESSIVE@end table@item -ec bit_maskSet error concealment to @var{bit_mask}. @var{bit_mask} is a bit mask ofthe following values:@table @samp@item 1FF_EC_GUESS_MVS (default = enabled)@item 2FF_EC_DEBLOCK (default = enabled)@end table@item -bf framesUse 'frames' B-frames (supported for MPEG-1, MPEG-2 and MPEG-4).@item -mbd modemacroblock decision@table @samp@item 0FF_MB_DECISION_SIMPLE: Use mb_cmp (cannot change it yet in FFmpeg).@item 1FF_MB_DECISION_BITS: Choose the one which needs the fewest bits.@item 2FF_MB_DECISION_RD: rate distortion@end table@item -4mvUse four motion vector by macroblock (MPEG-4 only).@item -partUse data partitioning (MPEG-4 only).@item -bug paramWork around encoder bugs that are not auto-detected.@item -strict strictnessHow strictly to follow the standards.@item -aicEnable Advanced intra coding (h263+).@item -umvEnable Unlimited Motion Vector (h263+)@item -deinterlaceDeinterlace pictures.@item -interlaceForce interlacing support in encoder (MPEG-2 and MPEG-4 only).Use this option if your input file is interlaced and you wantto keep the interlaced format for minimum losses.The alternative is to deinterlace the input stream with@option{-deinterlace}, but deinterlacing introduces losses.@item -psnrCalculate PSNR of compressed frames.@item -vstatsDump video coding statistics to @file{vstats_HHMMSS.log}.@item -vhook moduleInsert video processing @var{module}. @var{module} contains the modulename and its parameters separated by spaces.@end table@section Audio Options@table @option@item -ar freqSet the audio sampling frequency (default = 44100 Hz).@item -ab bitrateSet the audio bitrate in kbit/s (default = 64).@item -ac channelsSet the number of audio channels (default = 1).@item -anDisable audio recording.@item -acodec codecForce audio codec to @var{codec}. Use the @code{copy} special value tospecify that the raw codec data must be copied as is.@end table@section Audio/Video grab options@table @option@item -vd devicesEt video grab device (e.g. @file{/dev/video0}).@item -vc channelSet video grab channel (DV1394 only).@item -tvstd standardSet television standard (NTSC, PAL (SECAM)).@item -dv1394Set DV1394 grab.@item -ad deviceSet audio device (e.g. @file{/dev/dsp}).@end table@section Advanced options@table @option@item -map file:streamSet input stream mapping.@item -debugPrint specific debug info.@item -benchmarkAdd timings for benchmarking.@item -hexDump each input packet.@item -bitexactOnly use bit exact algorithms (for codec testing).@item -ps sizeSet packet size in bits.@item -reRead input at native frame rate. Mainly used to simulate a grab device.@item -loopLoop over the input stream. Currently it works only for imagestreams. This option is used for automatic FFserver testing.@item -loop_output number_of_timesRepeatedly loop output for formats that support looping such as animated GIF(0 will loop the output infinitely).@end table@node FFmpeg formula evaluator@section FFmpeg formula evaluatorWhen evaluating a rate control string, FFmpeg uses an internal formulaevaluator.The following binary operators are available: @code{+}, @code{-},@code{*}, @code{/}, @code{^}.The following unary operators are available: @code{+}, @code{-},@code{(...)}.The following functions are available:@table @var@item sinh(x)@item cosh(x)@item tanh(x)@item sin(x)@item cos(x)@item tan(x)@item exp(x)@item log(x)@item squish(x)@item gauss(x)@item abs(x)@item max(x, y)@item min(x, y)@item gt(x, y)@item lt(x, y)@item eq(x, y)@item bits2qp(bits)@item qp2bits(qp)@end tableThe following constants are available:@table @var@item PI@item E@item iTex@item pTex@item tex@item mv@item fCode@item iCount@item mcVar@item var@item isI@item isP@item isB@item avgQP@item qComp@item avgIITex@item avgPITex@item avgPPTex@item avgBPTex@item avgTex@end table@c man end@ignore@setfilename ffmpeg@settitle FFmpeg video converter@c man begin SEEALSOffserver(1), ffplay(1) and the HTML documentation of @file{ffmpeg}.@c man end@c man begin AUTHORFabrice Bellard@c man end@end ignore@section ProtocolsThe filename can be @file{-} to read from standard input or to writeto standard output.FFmpeg also handles many protocols specified with an URL syntax.Use 'ffmpeg -formats' to see a list of the supported protocols.The protocol @code{http:} is currently used only to communicate withFFserver (see the FFserver documentation). When FFmpeg will be avideo player it will also be used for streaming :-)@chapter Tips@itemize@item For streaming at very low bitrate application, use a low frame rateand a small GOP size. This is especially true for RealVideo wherethe Linux player does not seem to be very fast, so it can missframes. An example is:@exampleffmpeg -g 3 -r 3 -t 10 -b 50 -s qcif -f rv10 /tmp/b.rm@end example@item The parameter 'q' which is displayed while encoding is the currentquantizer. The value 1 indicates that a very good quality couldbe achieved. The value 31 indicates the worst quality. If q=31 appearstoo often, it means that the encoder cannot compress enough to meetyour bitrate. You must either increase the bitrate, decrease theframe rate or decrease the frame size.@item If your computer is not fast enough, you can speed up thecompression at the expense of the compression ratio. You can use'-me zero' to speed up motion estimation, and '-intra' to disablemotion estimation completely (you have only I-frames, which means itis about as good as JPEG compression).@item To have very low audio bitrates, reduce the sampling frequency(down to 22050 kHz for MPEG audio, 22050 or 11025 for AC3).@item To have a constant quality (but a variable bitrate), use the option'-qscale n' when 'n' is between 1 (excellent quality) and 31 (worstquality).@item When converting video files, you can use the '-sameq' option whichuses the same quality factor in the encoder as in the decoder.It allows almost lossless encoding.@end itemize@chapter Supported File Formats and CodecsYou can use the @code{-formats} option to have an exhaustive list.@section File FormatsFFmpeg supports the following file formats through the @code{libavformat}library:@multitable @columnfractions .4 .1 .1 .4@item Supported File Format @tab Encoding @tab Decoding @tab Comments@item MPEG audio @tab X @tab X@item MPEG-1 systems @tab X @tab X@tab muxed audio and video@item MPEG-2 PS @tab X @tab X@tab also known as @code{VOB} file@item MPEG-2 TS @tab @tab X@tab also known as DVB Transport Stream@item ASF@tab X @tab X@item AVI@tab X @tab X@item WAV@tab X @tab X@item Macromedia Flash@tab X @tab X@tab Only embedded audio is decoded.@item FLV @tab X @tab X@tab Macromedia Flash video files@item Real Audio and Video @tab X @tab X@item Raw AC3 @tab X @tab X@item Raw MJPEG @tab X @tab X@item Raw MPEG video @tab X @tab X@item Raw PCM8/16 bits, mulaw/Alaw@tab X @tab X@item Raw CRI ADX audio @tab X @tab X@item Raw Shorten audio @tab @tab X@item SUN AU format @tab X @tab X@item NUT @tab X @tab X @tab NUT Open Container Format@item QuickTime @tab X @tab X@item MPEG-4 @tab X @tab X@tab MPEG-4 is a variant of QuickTime.@item Raw MPEG4 video @tab X @tab X@item DV @tab X @tab X@item 4xm @tab @tab X@tab 4X Technologies format, used in some games.@item Playstation STR @tab @tab X@item Id RoQ @tab @tab X@tab Used in Quake III, Jedi Knight 2, other computer games.@item Interplay MVE @tab @tab X@tab Format used in various Interplay computer games.@item WC3 Movie @tab @tab X@tab Multimedia format used in Origin's Wing Commander III computer game.@item Sega FILM/CPK @tab @tab X@tab Used in many Sega Saturn console games.@item Westwood Studios VQA/AUD @tab @tab X@tab Multimedia formats used in Westwood Studios games.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -