FFMPEG An Intermediate Guide/AVCodecContext AVOptions

From Wikibooks, open books for an open world
Jump to: navigation, search

Contents

[edit] -b

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.

[edit] -ab

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.

[edit] -bt

FFMPEG: Encode, Video
Full Name:
Variables: Integer (in bits/s)
Codecs: all
Web sites:
Description: set video bitrate tolerance

[edit] -g

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set the group of picture size

[edit] -cutoff

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set cutoff bandwidth

[edit] -frame_size

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -qcomp

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: video quantizer scale compression (VBR)

[edit] -qblur

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: video quantizer scale blur (VBR)

[edit] -qmin

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: min video quantizer scale (VBR)

[edit] -qmax

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: max video quantizer scale (VBR)

[edit] -qdiff

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: max difference between the quantizer scale (VBR)

[edit] -bf

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: use 'frames' B frames

[edit] -b_qfactor

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: qp factor between p and b frames

[edit] -rc_strategy

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: ratecontrol method

[edit] -b_strategy

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: strategy to choose between I/P/B-frames

[edit] -hurry_up

FFMPEG: Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -ps

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: rtp payload size in bytes

[edit] -lelim

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: single coefficient elimination threshold for luminance (negative values also consider dc coefficient)

[edit] -celim

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: single coefficient elimination threshold for chrominance (negative values also consider dc coefficient)

[edit] -b_qoffset

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: qp offset between P and B frames

[edit] -mpeg_quant

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: use MPEG quantizers instead of H.263

[edit] -qsquish

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)

[edit] -rc_qmod_amp

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: experimental quantizer modulation

[edit] -rc_qmod_freq

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: experimental quantizer modulation

[edit] -rc_eq

FFMPEG: Encode, Video
Full Name:
Variables: String
Codecs: all
Web sites:
Description: set rate control equation

[edit] -maxrate

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set max video bitrate tolerance (in bits/s)

[edit] -minrate

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set min video bitrate tolerance (in bits/s)

[edit] -bufsize

FFMPEG: Encode, Video, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set ratecontrol buffer size (in bits)

[edit] -rc_buf_aggressivity

FFMPEG: Encode, Video
Full Name:
Variables:
Codecs: allFloat
Web sites:
Description: currently useless

[edit] -i_qfactor

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: qp factor between P and I frames

[edit] -i_qoffset

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: qp offset between P and I frames

[edit] -rc_init_cplx

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: initial complexity for 1-pass encoding

[edit] -lumi_mask

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: compresses bright areas stronger than medium ones

[edit] -tcplx_mask

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: temporal complexity masking

[edit] -scplx_mask

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: spatial complexity masking

[edit] -p_mask

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: inter masking

[edit] -dark_mask

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: compresses dark areas stronger than medium ones

[edit] -aspect

FFMPEG: Encode, Video
Full Name:
Variables: Rational
Codecs: all
Web sites:
Description: sample aspect ratio

[edit] -mb_qmin

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: obsolete, use qmin

[edit] -mb_qmax

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: obsolete, use qmax

[edit] -dia_size

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: diamond type & size for motion estimation

[edit] -last_pred

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: amount of motion predictors from the previous frame

[edit] -preme

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: pre motion estimation

[edit] -precmp

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: pre motion estimation compare function

[edit] -pre_dia_size

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: diamond type & size for motion estimation pre-pass

[edit] -subq

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: sub pel motion estimation quality

[edit] -me_range

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: limit motion vectors range (1023 for DivX player)

[edit] -ibias

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: intra quant bias

[edit] -pbias

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: inter quant bias

[edit] -context

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: context model

[edit] -sc_threshold

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: scene change threshold

[edit] -lmin

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: min lagrange factor (VBR)

[edit] -lmax

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: max lagrange factor (VBR)

[edit] -nr

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: noise reduction

[edit] -rc_init_occupancy

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

[edit] -inter_threshold

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -error

FFMPEG:
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: Encode, Video

[edit] -qns

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: quantizer noise shaping

[edit] -threads

FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -mb_threshold

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: macroblock threshold

[edit] -dc

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: intra_dc_precision

[edit] -nssew

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: nsse weight

[edit] -skip_top

FFMPEG: Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: number of macroblock rows at the top which are skipped

[edit] -skip_bottom

FFMPEG: Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: number of macroblock rows at the bottom which are skipped

[edit] -lowres

FFMPEG: Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: decode at 1= 1/2, 2=1/4, 3=1/8 resolutions

[edit] -skip_threshold

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: frame skip threshold

[edit] -skip_factor

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: frame skip factor

[edit] -skip_exp

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: frame skip exponent

[edit] -border_mask

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: increases the quantizer for macroblocks close to borders

[edit] -mblmin

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: min macroblock lagrange factor (VBR)

[edit] -mblmax

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: max macroblock lagrange factor (VBR)

[edit] -mepc

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: motion estimation bitrate penalty compensation (1.0 = 256)

[edit] -bidir_refine

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: refine the two motion vectors used in bidirectional macroblocks

[edit] -brd_scale

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: downscales frames for dynamic B-frame decision

[edit] -crf

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: x264
Web sites:
Description: enables constant quality mode, and selects the quality

[edit] -cqp

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: constant quantization parameter rate control method

[edit] -keyint_min

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: x264
Web sites:
Description: minimum interval between IDR-frames

[edit] -refs

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: Snow
Web sites:
Description: reference frames to consider for motion compensation

[edit] -chromaoffset

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: chroma qp offset from luma

[edit] -bframebias

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: influences how often B-frames are used

[edit] -trellis

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)


[edit] -directpred

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: direct mv prediction mode - 0 (none), 1 (spatial), 2 (temporal), 3 (auto)

[edit] -complexityblur

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: reduce fluctuations in qp (before curve compression)

[edit] -deblockalpha

FFMPEG: Integer
Full Name:
Variables: Encode, Video
Codecs: all
Web sites:
Description: in-loop deblocking filter alphac0 parameter

[edit] -deblockbeta

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: in-loop deblocking filter beta parameter

[edit] -sc_factor

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: multiplied by qscale for each frame and added to scene_change_score

[edit] -mv0_threshold

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -b_sensitivity

FFMPEG: Encode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: adjusts sensitivity of b_frame_strategy 1

[edit] -compression_level

FFMPEG: Encode, Video, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -use_lpc

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: sets whether to use LPC mode (FLAC)

[edit] -lpc_coeff_precision

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: LPC coefficient precision (FLAC)

[edit] -min_prediction_order

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -max_prediction_order

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -prediction_order_method

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: search method for selecting prediction order

[edit] -min_partition_order

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -max_partition_order

FFMPEG: Encode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -timecode_frame_start

FFMPEG: Encode, Video
Full Name:
Variables: Integer 64bit
Codecs: all
Web sites:
Description: GOP timecode frame start number, in non drop frame format

[edit] -request_channels

FFMPEG: Decode, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description: set desired number of audio channels

[edit] -drc_scale

FFMPEG: Decode, Audio
Full Name:
Variables: Float
Codecs: all
Web sites:
Description: percentage of dynamic range compression to apply

[edit] -channel_layout

FFMPEG: Encode, Decode, Audio
Full Name:
Variables: Integer 64bit
Codecs: all
Web sites:
Description:

[edit] -request_channel_layout

FFMPEG: Decode, Audio
Full Name:
Variables: Integer 64bit
Codecs: all
Web sites:
Description:

[edit] -rc_max_vbv_use

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description:

[edit] -rc_min_vbv_use

FFMPEG: Encode, Video
Full Name:
Variables: Float
Codecs: all
Web sites:
Description:

[edit] -ticks_per_frame

FFMPEG: Encode, Decode, Video, Audio
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -color_primaries

FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -color_trc

FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -colorspace

FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -color_range

FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

[edit] -chroma_sample_location

FFMPEG: Encode, Decode, Video
Full Name:
Variables: Integer
Codecs: all
Web sites:
Description:

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export