FFmpeg using syntax

Source: Internet
Author: User
Tags add time benchmark

# # FFmpeg using Syntax

ffmpeg [[options]['-i ' input_file] ... {[options] output_file} ...

If you do not have an input file, visual audio capture will work.

As a general rule, options are typically used for the next specific file. If you give the –B 64 option, the re-election will set the next video rate. For the original input file, the format option may be required.

By default, FFmpeg attempts to convert as much as possible, using the same audio video parameters as the input output.

3. Options

A) General Options

-L License

-H Help

-fromats display available formats, codecs, protocols ...

-F FMT forced to use format FMT

-I. FileName input file

-Y Overwrite output file

-T duration set record time HH:MM:SS[.XXX] format is also supported

-ss position search to the specified time [-]HH:MM:SS[.XXX] format also supports

-title String Setting Caption

-author String Setting author

-copyright string Setting Copyright

-comment String Setting Comment

-target type Sets the target file type (VCD,SVCD,DVD) for all formatting options (bitrate, codec, and buffer size) to be set automatically, just enter the following:
Ffmpeg-i Myfile.avi-target Vcd/tmp/vcd.mpg

-HQ activating high-quality settings

-itsoffset offset sets the time offset in seconds, which affects all subsequent input files. The offset is added to the timestamp of the input file, and defining a positive offset means that the corresponding stream is delayed by offset seconds. The [-]HH:MM:SS[.XXX] format also supports

b) Video Options

-B bitrate Set bit rate, default 200kb/s

-R fps Set frame rate default 25

-S size sets the frame size format to WxH default 160x128. The following abbreviations can also be used directly:
SQCIF 128x96 qcif 176X144 CIF 252x288 4CIF 704X576

-aspect aspect set aspect ratio 4:3 16:9 or 1.3333 1.7777

-croptop size Sets the top cut-out band-sized pixel units

-cropbottom size–cropleft size–cropright Size

-padtop size Set the top-padded sized pixel units

-padbottom size–padleft size–padright Size–padcolor Color Set the completion bar color (hex,6 16 binary number, red: Green: Blue arrangement, such as 000000 for Black)

-VN don't do video recording.

-BT tolerance Set video bitrate tolerance kbit/s

-maxrate bitrate set maximum video bitrate tolerance

-minrate bitreate set minimum video bitrate tolerance

-bufsize Size setting code rate control buffer sizes

-VCODEC codec enforces the use of codec codecs. If you use copy to indicate that the original codec data must be copied.

-sameq using the same video quality as the source (VBR)

-pass N selects the number of processing passes (1 or 2). Two times encoding is very useful. Generate statistics for the first time, and second time generate exact request bitrate

-passlogfile file is selected two times.


c) Advanced video options

-G gop_size set image Group size

-intra only for in-frame encoding

-qscale q using fixed video quantization scale (VBR)

-qmin q Minimum Video quantization scale (VBR)

-qmax q Maximum Video quantization scale (VBR)

Maximum deviation (VBR) between-qdiff Q quantization scales

-qblur Blur Video Quantization scale softening (VBR)

-qcomp Compression Video quantization scale compression (VBR)

-RC_INIT_CPLX complexity The initial complexity of the code once

The QP factor of-b_qfactor factor between p and B frames

The QP factor of-i_qfactor factor between p and I frames

QP deviation of-b_qoffset offset between p and B frames

QP deviation of-i_qoffset offset between p and I frames

-rc_eq equation Set code rate control equation default Tex^qcomp

-rc_override override rate control overload at specific intervals

-me method to set motion estimation methods available methods are zero phods log x1 EPZs (default) full

-dct_algo Algo set DCT algorithm available with 0 ff_dct_auto default DCT 1 ff_dct_fastint 2 ff_dct_int 3 ff_dct_mmx 4 ff_dct_mlib 5 ff_dct_altive C

-idct_algo Algo sets the IDCT algorithm. Available with 0 ff_idct_auto default IDCT 1 ff_idct_int 2 ff_idct_simple 3 ff_idct_simplemmx 4 ff_idct_libmpeg2mmx 5 ff_idct_ps2 6 FF_ID Ct_mlib 7 Ff_idct_arm 8 Ff_idct_altivec 9 Ff_idct_sh4 ff_idct_simplearm

-er N Set Error residue is n 1 ff_er_carefull default 2 ff_er_compliant 3 ff_er_aggressive 4 ff_er_very_aggressive

-ec Bit_mask set error masking to Bit_mask, this value is the bitmask of the following values 1 Ff_ec_guess_mvs (default=enabled) 2 Ff_ec_deblock (default=enabled)

-BF Frames uses frames B-frames to support MPEG1,MPEG2,MPEG4

-MBD mode macro Block decision 0 Ff_mb_decision_simple using mb_cmp 1 ff_mb_decision_bits 2 ff_mb_decision_rd

-4MV uses 4 motion vectors for MPEG4 only

-part use data partitioning only for MPEG4

-bug param bypass The problem of not being automatically monitored for encoders

-strict strictness with standard rigor

-aic enable advanced in-frame encoding h263+

-UMV enable infinite motion vector h263+

-deinterlace does not use interleaving methods

-interlace forced interleaving encoding is only valid for MPEG2 and MPEG4. This option is used when your input is interlaced and you want to keep it intertwined with minimal image loss. Optional method is not interwoven, but the loss is greater

-psnr calculating the Psnr of compressed frames

-vstats output video encoding statistics to Vstats_hhmmss.log

The-vhook module inserts the module name and parameters into the video processing module, separated by a space

D) Audio Options

-ab bitrate Set Audio bitrate

-ar freq Set Audio sample rate

-AC channels set channel defaults to 1

-an not enable audio recording

-ACODEC codec using codec codec

E) Audio/video capture options

-VD device to set up video capture devices. Like/dev/video0.

-VC Channel set video capture channel DV1394 dedicated

-TVSTD standard SET TV standards NTSC PAL (SECAM)

-dv1394 setting DV1394 Capture

-av Device settings Audio devices such as/DEV/DSP


F) Advanced Options

-map file:stream Setting the input stream mapping

-debug Printing specific Debug information

-benchmark add time to benchmark test

-hex dumping each input package

-bitexact only uses bit-accurate algorithms for codec testing

-ps size Sets the package sizes, in bits

-re with local frame frequency reading data, mainly used for analog capture devices

-loop the loop input stream. Works only with image streams for ffserver testing

FFmpeg using syntax

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.