📄 encoder.cfg
字号:
# New Input File Format is as follows
# <ParameterName> = <ParameterValue> # Comment
# See configfile.h for a list of supported ParameterNames
##########################################################################################
# Files
##########################################################################################
InputFile = "G:\video_sequences\avs-s\D1\cloverleaf_junction.yuv" # Input sequence, YUV 4:2:0
InputHeaderLength = 0 # If the inputfile has a header, state it's length in byte here
FramesToBeEncoded = 2 # Number of frames to be coded
SourceWidth = 720 # Image width in Pels, must be multiple of 16
SourceHeight = 576 # Image height in Pels, must be multiple of 16
TraceFile = "trace_enc.txt"
ReconFile = "test_rec.yuv"
OutputFile = "test.avs"
##########################################################################################
# Encoder Control
##########################################################################################
ProfileID = 18 # Profile ID (32: Jizhun Profile 18: -S Profile)
LevelID = 64 # Level ID (8: 1.0; 16: 2.0; 32: 4.0; 34: 4.2; 64: 6.0; 66: 6.2)
IntraPeriod = 16 # Period of I-Frames (0=only first)
VECPeriod = 16 # Period of VEC, distance between two sequence headers (0=doesn't exist at the bitstream)
SeqHeaderPeriod = 16 # Period of Sequence Header, Number of IntraPeriod (0=only first)
QPFirstFrame = 30 # Quant. param for first frame (intra) (0-63)
QPRemainingFrame = 30 # Quant. param for remaining frames (0-63)
QPBPicture = 30 # Quant. param for B frames (0-63)
UseHadamard = 1 # Hadamard transform (0=not used, 1=used)
SearchRange = 64 # Max search range
NumberReferenceFrames = 2 # Number of previous frames used for inter motion search (1-5)
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)
##########################################################################################
# B Frames
##########################################################################################
NumberBFrames = 2 # Number of B frames inserted (0=not used)
FrameSkip = 2 # Number of frames to be skipped in input (e.g 2 will code every third frame)
##########################################################################################
# RD Optimization
##########################################################################################
RDOptimization = 1 # rd-optimized mode decision (0:off, 1:on)
##########################################################################################
# Additional Stuff
#########################################################################################
Progressive_frame = 0 # (0: Interlace, 1: Progressive)
InterlaceCodingOption = 1 # (0: frame coding, 1: Field coding)
repeat_first_field = 0
top_field_first = 1
##########################################################################################
# Loop filter parameters
##########################################################################################
LoopFilterDisable = 0 # Disable loop filter in picture header (0=Filter, 1=No Filter)
LoopFilterParameter = 0 # Send loop filter parameter (0= No parameter, 1= Send Parameter)
LoopFilterAlphaOffset = 0 # Aplha offset in loop filter
LoopFilterBetaOffset = 0 # Beta offset in loop filter
##########################################################################################
# Slice parameters
##########################################################################################
NumberOfRowsInSlice = 0 # number of MB rows in one Slice (0: one slice per frame)
PicHeadProtectEnable = 0 # protect picture header in Slice (0 = disable , 1 = enable)
##########################################################################################
# Slice set
##########################################################################################
SliceSetEnable = 0 # Enable slice set (0 = disable, 1 = enable)
SliceSetConfig = "slice_set.cfg" # Configure file of SliceSet Structure
##########################################################################################
# Weighting Prediction parameters
##########################################################################################
WeightEnable = 0 # Weighting Prediction ( 0 = disable , 1 = enable)
##########################################################################################
#frame rate
###########################################################################################
FrameRate = 3 # (1: 24000/1001,2: 24,3: 25,4: 30000/1001,5: 30,6: 50,7: 60000/1001,8: 60; 15:not limited)######
###########################################################################################
#chroma format parameter
###########################################################################################
ChromaFormat = 1 # (0=4:0:0,1=4:2:0,2=4:2:2)
InputChromaFormat = 1 # (0=4:0:0, 1=4:2:0)
###########################################################################################
#Core frame
###########################################################################################
CoreFrameFlag = 0 # coreframe enable flag (0=disable, 1=enable)
Log2CoreFrameBufSize = 4 # log2 coreframe buffer size (1--4)
CoreFramePeriod = 2 # Period of CoreFramePeriod(only replace I P )
LossPack = 0 # Loss Pack(0=disable, 1=enable)
###########################################################################################
#Background-predictive picture
###########################################################################################
BackgroundEnable = 0 # (0 = Disable, 1 = Enable)
BackgroundOutput = 1 # (0 = Not display background, 1 = Display background)
###########################################################################################
#Region extension
###########################################################################################
RegionPresentFlag = 0 # (0 = Disable, 1 = Enable)
RegionFile = "region.cfg" #Region configuring file
########################################################################################
#Rate control
########################################################################################
RateControlEnable = 0 # 0 Disable, 1 Enable
Bitrate = 768000 # Bitrate(bps)
InitialQP = 40 # Initial Quantization Parameter for the first I frame
# InitialQp depends on two values: Bits Per Picture,
# and the GOP length
BasicUnit = 1620 # Number of MBs in the basic unit
# should be a fractor of the total number
# of MBs in a frame
ChannelType = 0 # type of channel( 1=time varying channel; 0=Constant channel)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -