H.264 encoder.cfg的解析

encoder.cfg的解析
2010-05-16 14:04

# New Input File Format is as follows
# <ParameterName> = <ParameterValue> # Comment
# See configfile.h for a list of supported ParameterNames

##########################################################################################
# Files
##########################################################################################
InputFile              = "F:/sequence/cif/football.cif"    # Input sequence, YUV 4:2:0
InputHeaderLength      = 0    # If the inputfile has a header, state it's length in byte here
FramesToBeEncoded      = 5    # 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"//调试时候需要的TRACE文件
ReconFile              = "test_rec.yuv"//重建的文件,以便进行SNR的检查
OutputFile             = "test.avs"

##########################################################################################
# Encoder Control
##########################################################################################
ProfileID             = 32 # Profile ID (32: Jizhun Profile)//只有基准的档次为32
LevelID               = 64 # Level ID   (16: 2.0; 32: 4.0; 34: 4.2; 64: 6.0; 66: 6.2)

IntraPeriod             = 15   # 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     = 0 # 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实际的应该是一个65X65的一个块
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)SKIP模式里包括B帧,也就是说B帧是一种SKIP模式,然后SKIP模式就和B帧一起算。SKIP模式什么也不穿,但是DIREct模式

##########################################################################################
# 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, 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 channe

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值