📄 encoder.cfg
字号:
#Automatically generated encoder.cfg - Perl Batch - J. Jung
# New Input File Format is as follows
# <ParameterName> = <ParameterValue> # Comment
#
# See configfile.h for a list of supported ParameterNames
#
# Known bug: Empty strings, i.e. to signal a non-existent trace file must be coded as
#
##########################################################################################
# Files
##########################################################################################
InputFile = "foreman_part_qcif.yuv" # Input sequence
InputHeaderLength = 0 # If the inputfile has a header, state it's length in byte here
StartFrame = 0 # Start frame for encoding. (0-N)
FramesToBeEncoded = 2 # Number of frames to be coded
FrameRate = 30.0 # Frame Rate per second (0.1-100.0)
SourceWidth = 176 # Frame width
SourceHeight = 144 # Frame height
TraceFile = "trace_enc.txt"
ReconFile = "test_rec.yuv"
OutputFile = "test.264"
##########################################################################################
# Encoder Control
##########################################################################################
ProfileIDC = 100 # Profile IDC (66=baseline, 77=main, 88=extended; FREXT Profiles: 100=High, 110=High 10, 122=High 4:2:2, 144=High 4:4:4, for params see below)
LevelIDC = 40 # Level IDC (e.g. 20 = level 2.0)
IntraPeriod = 0 # Period of I-Frames (0=only first)
EnableOpenGOP = 0 # Support for open GOPs (0: disabled, 1: enabled)
IDRIntraEnable = 0 # Force IDR Intra (0=disable 1=enable)
QPISlice = 22 # Quant. param for I Slices (0-51)
QPPSlice = 23 # Quant. param for P Slices (0-51)
FrameSkip = 1 # Number of frames to be skipped in input (e.g 2 will code every third frame)
ChromaQPOffset = 0 # Chroma QP offset (-51..51)
UseHadamard = 1 # Hadamard transform (0=not used, 1=used)
DisableSubpelME = 0 # Use quarter pel
SearchRange = 32 # Max search range
NumberReferenceFrames = 4 # Number of previous frames used for inter motion search (1-16)
PList0References = 0 # P slice List 0 reference override (0 disable, N <= NumberReferenceFrames)
Log2MaxFNumMinus4 = 0 # Sets log2_max_frame_num_minus4 (0-3 : based on FramesToBeEncoded, >3 : Log2MaxFrameNum - 4)
Log2MaxPOCLsbMinus4 = -1 # Sets log2_max_pic_order_cnt_lsb_minus4 (-1 : Auto, >=0 : Log2MaxPOCLsbMinus4)
GenerateMultiplePPS = 0 # Transmit multiple parameter sets. Currently parameters basically enable all WP modes (0: diabled, 1: enabled)
ResendPPS = 0 # Resend PPS (with pic_parameter_set_id 0) for every coded Frame/Field pair (0: disabled, 1: enabled)
MbLineIntraUpdate = 0 # Error robustness(extra intra macro block updates)(0=off, N: One GOB every N frames are intra coded)
RandomIntraMBRefresh = 0 # Forced intra MBs per picture
InterSearch16x16 = 1 # Inter block search 16x16 (0=disable, 1=enable)
InterSearch16x8 = 1 # Inter block search 16x8 (0=disable, 1=enable)
InterSearch8x16 = 1 # Inter block search 8x16 (0=disable, 1=enable)
InterSearch8x8 = 1 # Inter block search 8x8 (0=disable, 1=enable)
InterSearch8x4 = 1 # Inter block search 8x4 (0=disable, 1=enable)
InterSearch4x8 = 1 # Inter block search 4x8 (0=disable, 1=enable)
InterSearch4x4 = 1 # Inter block search 4x4 (0=disable, 1=enable)
IntraDisableInterOnly = 0 # Disable Intra modes for Non I-Slices
Intra4x4ParDisable = 0 # Disable Vertical & Horizontal 4x4
Intra4x4DiagDisable = 0 # Disable Diagonal 45degree 4x4
Intra4x4DirDisable = 0 # Disable Other Diagonal 4x4
Intra16x16ParDisable = 0 # Disable Vertical & Horizontal 16x16
Intra16x16PlaneDisable = 0 # Disable Planar 16x16
ChromaIntraDisable = 0 # Disable Intra Chroma modes other than DC
EnableIPCM = 1 # Enable IPCM macroblock mode
DisposableP = 0 # Enable Disposable P slices in the primary layer (0: disable/default, 1: enable)
DispPQPOffset = 0 # Quantizer offset for disposable P slices (0: default)
##########################################################################################
# KTA STUFF
##########################################################################################
UseAdaptiveFilter = 0 # Use adaptive interpolation filter
# (0=disable, 1=2D Filter, 2=Separable Filter, 3=Directional Interpolation Filter 4=Enhanced DAIF)
ImpType = 0 # Use of 16-bit implementation of DAIF (0=disable, 1=enable)
AdaptiveFilterDecision = 0 # Decision Rule for Adaptive Filter (0=RDO based, 1=Fast Decision)
MVResolution = 0 # (0=1/4-pel , 1=1/8-pel)
APEC_in_FD_and_SD = 0 # Use Adaptive Prediction error coding in the Frequency and Spatial Domain (0=disable, 1=enable)
SD_Quantizer = 1 # (0:Subjectively weighted quantization error optimization, 1:Mean squared quantization error optimization)
MVCompetition = 0 # Use competition for motion vector prediction
# (0=disabled,
# 1=enabled with default parameters (lines below ignored),
# 2=enabled with user parameters)
Predictors_skip = '01000010' # H.264 Median - ExtendedSpatial - a - b - c - 0 - Collocated - Empty
Predictors_MVp = '10000010' # H.264 Median - Empty - a - b - c - 0 - Collocated - Empty
Predictors_MVb = '10000010' # H.264 Median - Empty - a - b - c - 0 - Collocated - Empty
UseAdaptiveQuantMatrix = 0 # Use Adaptive Qunatization Matrix Selection (0=disable, 1=enable (Improved AQMS))
UseIntraMDDT = 0 # Use Mode Dependent Directional Transform for intra blocks (0=disable, 1=enable)
UseHPFilter = 0 # Use high precision filtering
# (0=disable, 1=High Precision H.264 filter, 2=Enhanced Fixed Directional Filter, 3=Switched Filters)
UsePostFilter = 0 # Use post filtering (0=disable, 1=enable)
##########################################################################################
# KTA Reference Tools
##########################################################################################
InputBitDepth = 8 # InputBitDepth for internal bit depth increase. (<= Min(BitDepthLuma, BitDepthChroma))
# InputBitDepth defines the bit depth of input video source.
# BitDepthLuma and BitDepthChroma define the internal bit depth in codec.
UseRDO_Q = 0 # Use Rate Distortion Optimized Quantization (0=disable, 1=enable)
UseNewOffset = 0 # Use new offset for wetihed prediction (0=disable, 1=enable)
##########################################################################################
# B Slices
##########################################################################################
NumberBFrames = 1 # Number of B coded frames inserted (0=not used)
QPBSlice = 24 # Quant. param for B slices (0-51)
BRefPicQPOffset = 0 # Quantization offset for reference B coded pictures (-51..51)
DirectModeType = 1 # Direct Mode Type (0:Temporal 1:Spatial)
DirectInferenceFlag = 1 # Direct Inference Flag (0: Disable 1: Enable)
BList0References = 2 # B slice List 0 reference override (0 disable, N <= NumberReferenceFrames)
BList1References = 1 # B slice List 1 reference override (0 disable, N <= NumberReferenceFrames)
# 1 List1 reference is usually recommended for normal GOP Structures.
# A larger value is usually more appropriate if a more flexible
# structure is used (i.e. using PyramidCoding)
BReferencePictures = 0 # Referenced B coded pictures (0=off, 1=on)
HierarchicalCoding = 0 # B hierarchical coding (0= off, 1= 2 layers, 2= 2 full hierarchy, 3 = explicit)
HierarchyLevelQPEnable = 1 # Adjust QP based on Pyramid Level (in increments of 1). Overrides BRefPicQPOffset behavior.(0=off, 1=on)
ExplicitHierarchyFormat = 'b2r28b0e30b1e30b3e30b4e30' # Explicit Enhancement GOP. Format is {FrameDisplay_orderReferenceQP}
# Valid values for reference type is r:reference, e:non reference.
ReferenceReorder = 1 # Reorder References according to Poc distance for PyramidCoding (0=off, 1=enable)
PocMemoryManagement = 1 # Memory management based on Poc Distances for PyramidCoding (0=off, 1=on)
BiPredMotionEstimation = 1 # Enable Bipredictive based Motion Estimation (0:disabled, 1:enabled)
BiPredMERefinements = 3 # Bipredictive ME extra refinements (0: single, N: N extra refinements (1 default)
BiPredMESearchRange = 32 # Bipredictive ME Search range (8 default). Note that range is halved for every extra refinement.
BiPredMESubPel = 1 # Bipredictive ME Subpixel Consideration (0: disabled, 1: single level, 2: dual level)
##########################################################################################
# SP Frames
##########################################################################################
SPPicturePeriodicity = 0 # SP-Picture Periodicity (0=not used)
QPSPSlice = 32 # Quant. param of SP-Slices for Prediction Error (0-51)
QPSP2Slice = 32 # Quant. param of SP-Slices for Predicted Blocks (0-51)
SI_FRAMES = 0 # SI frame encoding flag (0=not used, 1=used)
SP_output = 0 # Controls whether coefficients will be output to encode switching SP frames (0=no, 1=yes)
SP_output_name = 'low_quality.dat' # Filename for SP output coefficients
SP2_FRAMES = 0 # switching SP frame encoding flag (0=not used, 1=used)
SP2_input_name1 = 'high_quality.dat' # Filename for the first swithed bitstream coefficients
SP2_input_name2 = 'low_quality.dat' # Filename for the second switched bitstream coefficients
##########################################################################################
# Output Control, NALs
##########################################################################################
SymbolMode = 1 # Symbol mode (Entropy coding method: 0=UVLC, 1=CABAC)
OutFileMode = 0 # Output file mode, 0:Annex B, 1:RTP
PartitionMode = 0 # Partition Mode, 0: no DP, 1: 3 Partitions per Slice
##########################################################################################
# CABAC context initialization
##########################################################################################
ContextInitMethod = 1 # Context init (0: fixed, 1: adaptive)
FixedModelNumber = 0 # model number for fixed decision for inter slices ( 0, 1, or 2 )
##########################################################################################
# Interlace Handling
#########################################################################################
PicInterlace = 0 # Picture AFF (0: frame coding, 1: field coding, 2:adaptive frame/field coding)
MbInterlace = 0 # Macroblock AFF (0: frame coding, 1: field coding, 2:adaptive frame/field coding, 3:combined with PicInterlace=0, to do frame MBAFF))
IntraBottom = 0 # Force Intra Bottom at GOP Period
##########################################################################################
# Weighted Prediction
#########################################################################################
WeightedPrediction = 0 # P picture Weighted Prediction (0=off, 1=explicit mode)
WeightedBiprediction = 0 # B picture Weighted Prediciton (0=off, 1=explicit mode, 2=implicit mode)
UseWeightedReferenceME = 0 # Use weighted reference for ME (0=off, 1=on)
##########################################################################################
# Picture based Multi-pass encoding
#########################################################################################
RDPictureDecision = 1 # Perform RD optimal decision between different coded picture versions.
# If GenerateMultiplePPS is enabled then this will test different WP methods.
# Otherwise it will test QP +-1 (0: disabled, 1: enabled)
RDPictureIntra = 0 # Perform RD optimal decision also for intra coded pictures (0: disabled (default), 1: enabled).
RDPSliceWeightOnly = 1 # Only consider Weighted Prediction for P slices in Picture RD decision. (0: disabled, 1: enabled (default))
RDBSliceWeightOnly = 0 # Only consider Weighted Prediction for B slices in Picture RD decision. (0: disabled (default), 1: enabled )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -