FFMPEG An Intermediate Guide/AVCodecContext AVOptions
-b
[edit | edit source]FFMPEG: Encode, Video
Full Name: Video Bitrate
Variables: integer (bits/s)
Codecs: all
Web sites:
Description: Used to set video bitrate, in bits per second.
-ab
[edit | edit source]FFMPEG: Encode, Audio
Full Name: Audio Bitrate
Variables: integer (bits/s)
Codecs: all
Web sites:
Description: Used to set audio bitrate, in bits per second.
-bt
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer (in bits/s)
Codecs: all
Web sites:
Description: set videos o bitrate tolerance
your bitrate x 10 = bt
def - 4M
-g
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set the group of picture size
-cutoff
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set cutoff bandwidth
-frame_size
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-qcomp
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: video quantizer scale compression (VBR)
-qblur
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: video quantizer scale blur (VBR)
-qmin
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: min video quantizer scale (VBR)
-qmax
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: max video quantizer scale (VBR)
-qdiff
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: max difference between the quantizer scale (VBR)
-bf
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: use 'frames' B frames
-b_qfactor
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: qp factor between p and b frames
-rc_strategy
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: ratecontrol method
-b_strategy
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: strategy to choose between I/P/B-frames
-hurry_up
[edit | edit source]FFMPEG: Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-ps
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: rtp payload size in bytes
-luma_elim_threshold
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: single coefficient elimination threshold for luminance (negative values also consider dc coefficient)
-chroma_elim_threshold
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: single coefficient elimination threshold for chrominance (negative values also consider dc coefficient)
-b_qoffset
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: qp offset between P and B frames
-mpeg_quant
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: use MPEG quantizers instead of H.263
-qsquish
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: how to keep quantizer between qmin and qmax (0 = clip, 1 = use differentiable function)
-rc_qmod_amp
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: experimental quantizer modulation
-rc_qmod_freq
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: experimental quantizer modulation
-rc_eq
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: String
Codecs: all
Web sites:
Description: set rate control equation
-maxrate
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set max video bitrate tolerance (in bits/s)
-minrate
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set min video bitrate tolerance (in bits/s)
-bufsize
[edit | edit source]FFMPEG: Encode, Video, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set ratecontrol buffer size (in bits)
-rc_buf_aggressivity
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables:
Codecs: allFloat
Web sites:
Description: currently useless
-i_qfactor
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: qp factor between P and I frames
-i_qoffset
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: qp offset between P and I frames
-rc_init_cplx
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: initial complexity for 1-pass encoding
recommended value - 100
-lumi_mask
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: compresses bright areas stronger than medium ones
-tcplx_mask
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: temporal complexity masking
-scplx_mask
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: spatial complexity masking
-p_mask
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: inter masking
-dark_mask
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: compresses dark areas stronger than medium ones
-aspect
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Rational
Codecs: all
Web sites:
Description: sample aspect ratio
-mb_qmin
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: obsolete, use qmin
-mb_qmax
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: obsolete, use qmax
-dia_size
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: diamond type & size for motion estimation
-last_pred
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: amount of motion predictors from the previous frame
-preme
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: pre motion estimation
-precmp
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: pre motion estimation compare function
-pre_dia_size
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: diamond type & size for motion estimation pre-pass
-subq
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: sub pel motion estimation quality
-me_range
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: limit motion vectors range (1023 for DivX player)
-ibias
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: intra quant bias
-pbias
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: inter quant bias
-context
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: context model
-sc_threshold
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: scene change threshold
-lmin
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: min lagrange factor (VBR)
-lmax
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: max lagrange factor (VBR)
-noise_reduction
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: noise reduction
recommended value - 250
-rc_init_occupancy
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: number of bits which should be loaded into the rc buffer before decoding starts
-inter_threshold
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-error
[edit | edit source]FFMPEG:
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: Encode, Video
-quantizer_noise_shaping
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: quantizer noise shaping
-threads
[edit | edit source]FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-mb_threshold
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: macroblock threshold
-dc
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: intra_dc_precision
-nssew
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: nsse weight
-skip_top
[edit | edit source]FFMPEG: Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: number of macroblock rows at the top which are skipped
-skip_bottom
[edit | edit source]FFMPEG: Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: number of macroblock rows at the bottom which are skipped
-lowres
[edit | edit source]FFMPEG: Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: decode at 1= 1/2, 2=1/4, 3=1/8 resolutions
-skip_threshold
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: frame skip threshold
-skip_factor
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: frame skip factor
-skip_exp
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: frame skip exponent
-border_mask
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: increases the quantizer for macroblocks close to borders
-mblmin
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: min macroblock lagrange factor (VBR)
-mblmax
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: max macroblock lagrange factor (VBR)
-mepc
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: motion estimation bitrate penalty compensation (1.0 = 256)
-bidir_refine
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: refine the two motion vectors used in bidirectional macroblocks
-brd_scale
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: downscales frames for dynamic B-frame decision
-crf
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: x264
Web sites:
Description: enables constant quality mode, and selects the quality
-cqp
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: constant quantization parameter rate control method
-keyint_min
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: x264
Web sites:
Description: minimum interval between IDR-frames
-refs
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: Snow
Web sites:
Description: reference frames to consider for motion compensation
-chromaoffset
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: chroma qp offset from luma
-bframebias
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: influences how often B-frames are used
-trellis
[edit | edit source]FFMPEG: Encode, Video, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: rate-distortion optimal quantization
- In lavc:
- trellis 0 = no trellis
- trellis 1 = trellis on final encode
- In x264:
- trellis 0 = no trellis
- trellis 1 = trellis on final encode
- trellis 2 = trellis on all RD calls (slow)
-directpred
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: direct mv prediction mode - 0 (none), 1 (spatial), 2 (temporal), 3 (auto)
-complexityblur
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: reduce fluctuations in qp (before curve compression)
-deblockalpha
[edit | edit source]FFMPEG: Integer
Full Name:
Variables: Encode, Video
Codecs: all
Web sites:
Description: in-loop deblocking filter alphac0 parameter
-deblockbeta
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: in-loop deblocking filter beta parameter
-sc_factor
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: multiplied by qscale for each frame and added to scene_change_score
-mv0_threshold
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-b_sensitivity
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: adjusts sensitivity of b_frame_strategy 1
-compression_level
[edit | edit source]FFMPEG: Encode, Video, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-use_lpc
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: sets whether to use LPC mode (FLAC)
-lpc_coeff_precision
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: LPC coefficient precision (FLAC)
-min_prediction_order
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-max_prediction_order
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-prediction_order_method
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: search method for selecting prediction order
-min_partition_order
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-max_partition_order
[edit | edit source]FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-timecode_frame_start
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Integer 64bit
Codecs: all
Web sites:
Description: GOP timecode frame start number, in non drop frame format
-request_channels
[edit | edit source]FFMPEG: Decode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set desired number of audio channels
-drc_scale
[edit | edit source]FFMPEG: Decode, Audio
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: percentage of dynamic range compression to apply
-channel_layout
[edit | edit source]FFMPEG: Encode, Decode, Audio
Full Name:
Variables: Integer 64bit
Codecs: all
Web sites:
Description:
-request_channel_layout
[edit | edit source]FFMPEG: Decode, Audio
Full Name:
Variables: Integer 64bit
Codecs: all
Web sites:
Description:
-rc_max_vbv_use
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description:
-rc_min_vbv_use
[edit | edit source]FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description:
-ticks_per_frame
[edit | edit source]FFMPEG: Encode, Decode, Video, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-color_primaries
[edit | edit source]FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-color_trc
[edit | edit source]FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-colorspace
[edit | edit source]FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-color_range
[edit | edit source]FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:
-chroma_sample_location
[edit | edit source]FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: