⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 encoder.cfg

📁 avs源代码
💻 CFG
字号:
    # New Input File Format is as follows
# <ParameterName> = <ParameterValue> # Comment
# See configfile.h for a list of supported ParameterNames

##########################################################################################
# Files
##########################################################################################
InputFile              = "F:\sequence\cif\foreman.cif"			# Input sequence, YUV 4:2:0
InputHeaderLength      = 0    # If the inputfile has a header, state it's length in byte here 
FramesToBeEncoded      = 10   # Number of frames to be coded
SourceWidth            = 352  # Image width  in Pels, must be multiple of 16
SourceHeight           = 288  # Image height in Pels, must be multiple of 16
TraceFile              = "trace_enc.txt"
ReconFile              = "test_rec.yuv"
OutputFile             = "test.avs"

##########################################################################################
# Encoder Control
##########################################################################################
ProfileID             = 32  # Profile ID (32: Jizhun Profile)
LevelID               = 64  # Level ID   (16: 2.0;  32: 4.0;  34: 4.2;  64: 6.0;  66: 6.2)

IntraPeriod           = 2   # Period of I-Frames (0=only first)
VECPeriod             = 0   # Period of VEC, distance between two sequence headers   (0=doesn't exist at the bitstream)
SeqHeaderPeriod		  = 2   # Period of Sequence Header, Number of IntraPeriod  (0=only first)
QPFirstFrame          = 28  # Quant. param for first frame (intra) (0-63)
QPRemainingFrame      = 28  # Quant. param for remaining frames (0-63)
QPBPicture            = 28  # Quant. param for B frames (0-63)
UseHadamard           =  1  # Hadamard transform (0=not used, 1=used)
SearchRange           = 32  # 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 =  2  # (0: frame coding, 1: Field coding, 2: PAFF)
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     =  5  # number of MB rows in one Slice  (0: one slice per frame)

##########################################################################################
# Weighting Prediction parameters
##########################################################################################
WeightEnable            =  0  # Weighting Prediction ( 0 = disable , 1 = enable)
##########################################################################################
#frame rate
###########################################################################################
FrameRate               =  5  # (1: 24000/1001,2: 24,3: 25,4: 30000/1001,5: 30,6: 50,7: 60000/1001,8: 60)######
###########################################################################################
#chroma format parameter
###########################################################################################
ChromaFormat            =  1  # (1=4:2:0,2=4:2:2)   

########################################################################################
#Rate control
########################################################################################
RateControlEnable    =     0    # 0 Disable, 1 Enable
Bitrate              =     6000000   # Bitrate(bps)
InitialQP            =     36   # Initial Quantization Parameter for the first I frame
                                # InitialQp depends on two values: Bits Per Picture,
                                # and the GOP length
BasicUnit            =    8160  # 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 + -