📄 encoder_tonemapping.cfg
字号:
# 3: with losses
CtxAdptLagrangeMult = 0 # Context Adaptive Lagrange Multiplier
# 0: disabled (default)
# 1: enabled (works best when RDOptimization=0)
FastCrIntraDecision = 1 # Fast Chroma intra mode decision (0:off, 1:on)
DisableThresholding = 0 # Disable Thresholding of Transform Coefficients (0:off, 1:on)
DisableBSkipRDO = 0 # Disable B Skip Mode consideration from RDO Mode decision (0:off, 1:on)
SkipIntraInInterSlices = 0 # Skips Intra mode checking in inter slices if certain mode decisions are satisfied (0: off, 1: on)
# Explicit Lambda Usage
UseExplicitLambdaParams = 0 # Use explicit lambda scaling parameters (0:disabled, 1:enable lambda weight, 2: use explicit lambda value)
FixedLambdaIslice = 0.1 # Fixed Lambda value for I slices
FixedLambdaPslice = 0.1 # Fixed Lambda value for P slices
FixedLambdaBslice = 0.1 # Fixed Lambda value for B slices
FixedLambdaRefBslice = 0.1 # Fixed Lambda value for Referenced B slices
FixedLambdaSPslice = 0.1 # Fixed Lambda value for SP slices
FixedLambdaSIslice = 0.1 # Fixed Lambda value for SI slices
LambdaWeightIslice = 0.65 # scaling param for I slices. This will be used as a multiplier i.e. lambda=LambdaWeightISlice * 2^((QP-12)/3)
LambdaWeightPslice = 0.68 # scaling param for P slices. This will be used as a multiplier i.e. lambda=LambdaWeightPSlice * 2^((QP-12)/3)
LambdaWeightBslice = 2.00 # scaling param for B slices. This will be used as a multiplier i.e. lambda=LambdaWeightBSlice * 2^((QP-12)/3)
LambdaWeightRefBslice = 1.50 # scaling param for Referenced B slices. This will be used as a multiplier i.e. lambda=LambdaWeightRefBSlice * 2^((QP-12)/3)
LambdaWeightSPslice = 1.50 # scaling param for SP slices. This will be used as a multiplier i.e. lambda=LambdaWeightSPSlice * 2^((QP-12)/3)
LambdaWeightSIslice = 0.65 # scaling param for SI slices. This will be used as a multiplier i.e. lambda=LambdaWeightSISlice * 2^((QP-12)/3)
LossRateA = 5 # expected packet loss rate of the channel for the first partition, only valid if RDOptimization = 3
LossRateB = 0 # expected packet loss rate of the channel for the second partition, only valid if RDOptimization = 3
LossRateC = 0 # expected packet loss rate of the channel for the third partition, only valid if RDOptimization = 3
NumberOfDecoders = 30 # Numbers of decoders used to simulate the channel, only valid if RDOptimization = 3
RestrictRefFrames = 0 # Doesnt allow reference to areas that have been intra updated in a later frame.
##########################################################################################
# Additional Stuff
#########################################################################################
UseConstrainedIntraPred = 0 # If 1, Inter pixels are not used for Intra macroblock prediction.
LastFrameNumber = 0 # Last frame number that have to be coded (0: no effect)
ChangeQPI = 16 # QP (I-slices) for second part of sequence (0-51)
ChangeQPP = 16 # QP (P-slices) for second part of sequence (0-51)
ChangeQPB = 18 # QP (B-slices) for second part of sequence (0-51)
ChangeQPBSRefOffset = 2 # QP offset (stored B-slices) for second part of sequence (-51..51)
ChangeQPStart = 0 # Frame no. for second part of sequence (0: no second part)
NumberofLeakyBuckets = 8 # Number of Leaky Bucket values
LeakyBucketRateFile = "leakybucketrate.cfg" # File from which encoder derives rate values
LeakyBucketParamFile = "leakybucketparam.cfg" # File where encoder stores leakybucketparams
NumberFramesInEnhancementLayerSubSequence = 0 # number of frames in the Enhanced Scalability Layer(0: no Enhanced Layer)
SparePictureOption = 0 # (0: no spare picture info, 1: spare picture available)
SparePictureDetectionThr = 6 # Threshold for spare reference pictures detection
SparePicturePercentageThr = 92 # Threshold for the spare macroblock percentage
PicOrderCntType = 0 # (0: POC mode 0, 1: POC mode 1, 2: POC mode 2)
########################################################################################
#Rate control
########################################################################################
RateControlEnable = 0 # 0 Disable, 1 Enable
Bitrate = 45020 # Bitrate(bps)
InitialQP = 0 # Initial Quantization Parameter for the first I frame
# InitialQp depends on two values: Bits Per Picture,
# and the GOP length
BasicUnit = 11 # 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)
RCUpdateMode = 0 # Rate Control type. Modes supported :
# 0 = original JM rate control,
# 1 = rate control that is applied to all frames regardless of the slice type,
# 2 = original plus intelligent QP selection for I and B slices (including Hierarchical),
# 3 = original + hybrid quadratic rate control for I and B slice using bit rate statistics
#
RCISliceBitRatio = 1.0 # target ratio of bits for I-coded pictures compared to P-coded Pictures (for RCUpdateMode=3)
RCBSliceBitRatio0 = 0.5 # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 0 (for RCUpdateMode=3)
RCBSliceBitRatio1 = 0.25 # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 1 (for RCUpdateMode=3)
RCBSliceBitRatio2 = 0.25 # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 2 (for RCUpdateMode=3)
RCBSliceBitRatio3 = 0.25 # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 3 (for RCUpdateMode=3)
RCBSliceBitRatio4 = 0.25 # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 4 (for RCUpdateMode=3)
RCBoverPRatio = 0.45 # ratio of bit rate usage of a B-coded picture over a P-coded picture for the SAME QP (for RCUpdateMode=3)
RCIoverPRatio = 3.80 # ratio of bit rate usage of an I-coded picture over a P-coded picture for the SAME QP (for RCUpdateMode=3)
RCMinQP = 12 # minimum QP value for rate control
RCMaxQP = 36 # maximum QP value for rate control
########################################################################################
#Fast Mode Decision
########################################################################################
EarlySkipEnable = 0 # Early skip detection (0: Disable 1: Enable)
SelectiveIntraEnable = 0 # Selective Intra mode decision (0: Disable 1: Enable)
########################################################################################
#FREXT stuff
########################################################################################
YUVFormat = 3 # YUV format (0=4:0:0, 1=4:2:0, 2=4:2:2, 3=4:4:4)
RGBInput = 1 # 1=RGB input, 0=GBR or YUV input
BitDepthLuma = 10 # Bit Depth for Luminance (8...12 bits)
BitDepthChroma = 10 # Bit Depth for Chrominance (8...12 bits)
CbQPOffset = 0 # Chroma QP offset for Cb-part (-51..51)
CrQPOffset = 0 # Chroma QP offset for Cr-part (-51..51)
Transform8x8Mode = 1 # (0: only 4x4 transform, 1: allow using 8x8 transform additionally, 2: only 8x8 transform)
ReportFrameStats = 0 # (0:Disable Frame Statistics 1: Enable)
DisplayEncParams = 0 # (0:Disable Display of Encoder Params 1: Enable)
Verbose = 1 # level of display verboseness (0:short, 1:normal, 2:detailed)
########################################################################################
#Q-Matrix (FREXT)
########################################################################################
QmatrixFile = "q_matrix.cfg"
ScalingMatrixPresentFlag = 0 # Enable Q_Matrix (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
ScalingListPresentFlag0 = 3 # Intra4x4_Luma (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
ScalingListPresentFlag1 = 3 # Intra4x4_ChromaU (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
ScalingListPresentFlag2 = 3 # Intra4x4_chromaV (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
ScalingListPresentFlag3 = 3 # Inter4x4_Luma (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
ScalingListPresentFlag4 = 3 # Inter4x4_ChromaU (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
ScalingListPresentFlag5 = 3 # Inter4x4_ChromaV (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
ScalingListPresentFlag6 = 3 # Intra8x8_Luma (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
ScalingListPresentFlag7 = 3 # Inter8x8_Luma (0 Not present, 1 Present in SPS, 2 Present in PPS, 3 Present in both SPS & PPS)
########################################################################################
#Rounding Offset control
########################################################################################
OffsetMatrixPresentFlag = 0 # Enable Explicit Offset Quantization Matrices (0: disable 1: enable)
QOffsetMatrixFile = "q_offset.cfg" # Explicit Quantization Matrices file
AdaptiveRounding = 1 # Enable Adaptive Rounding based on JVT-N011 (0: disable, 1: enable)
AdaptRoundingFixed = 1 # Enable Global Adaptive rounding for all qps (0: disable, 1: enable - default/old)
AdaptRndPeriod = 1 # Period in terms of MBs for updating rounding offsets.
# 0 performs update at the picture level. Default is 16. 1 is as in JVT-N011.
AdaptRndChroma = 1 # Enables coefficient rounding adaptation for chroma
AdaptRndWFactorIRef = 4 # Adaptive Rounding Weight for I/SI slices in reference pictures /4096
AdaptRndWFactorPRef = 4 # Adaptive Rounding Weight for P/SP slices in reference pictures /4096
AdaptRndWFactorBRef = 4 # Adaptive Rounding Weight for B slices in reference pictures /4096
AdaptRndWFactorINRef = 4 # Adaptive Rounding Weight for I/SI slices in non reference pictures /4096
AdaptRndWFactorPNRef = 4 # Adaptive Rounding Weight for P/SP slices in non reference pictures /4096
AdaptRndWFactorBNRef = 4 # Adaptive Rounding Weight for B slices in non reference pictures /4096
AdaptRndCrWFactorIRef = 4 # Chroma Adaptive Rounding Weight for I/SI slices in reference pictures /4096
AdaptRndCrWFactorPRef = 4 # Chroma Adaptive Rounding Weight for P/SP slices in reference pictures /4096
AdaptRndCrWFactorBRef = 4 # Chroma Adaptive Rounding Weight for B slices in reference pictures /4096
AdaptRndCrWFactorINRef = 4 # Chroma Adaptive Rounding Weight for I/SI slices in non reference pictures /4096
AdaptRndCrWFactorPNRef = 4 # Chroma Adaptive Rounding Weight for P/SP slices in non reference pictures /4096
AdaptRndCrWFactorBNRef = 4 # Chroma Adaptive Rounding Weight for B slices in non reference pictures /4096
########################################################################################
#Lossless Coding (FREXT)
########################################################################################
QPPrimeYZeroTransformBypassFlag = 0 # Enable lossless coding when qpprime_y is zero (0 Disabled, 1 Enabled)
########################################################################################
#Fast Motion Estimation Control Parameters
########################################################################################
SearchMode = 0 # Use fast motion estimation (0=disable/default, 1=UMHexagonS,
# 2=Simplified UMHexagonS, 3=EPZS patterns)
UMHexDSR = 1 # Use Search Range Prediction. Only for UMHexagonS method
# (0:disable, 1:enabled/default)
UMHexScale = 3 # Use Scale_factor for different image sizes. Only for UMHexagonS method
# (0:disable, 3:/default)
# Increasing value can speed up Motion Search.
EPZSPattern = 2 # Select EPZS primary refinement pattern.
# (0: small diamond, 1: square, 2: extended diamond/default,
# 3: large diamond, 4: SBP Large Diamond,
# 5: PMVFAST )
EPZSDualRefinement = 3 # Enables secondary refinement pattern.
# (0:disabled, 1: small diamond, 2: square,
# 3: extended diamond/default, 4: large diamond,
# 5: SBP Large Diamond, 6: PMVFAST )
EPZSFixedPredictors = 2 # Enables Window based predictors
# (0:disabled, 1: P only, 2: P and B/default)
EPZSTemporal = 1 # Enables temporal predictors
# (0: disabled, 1: enabled/default)
EPZSSpatialMem = 1 # Enables spatial memory predictors
# (0: disabled, 1: enabled/default)
EPZSMinThresScale = 0 # Scaler for EPZS minimum threshold (0 default).
# Increasing value can speed up encoding.
EPZSMedThresScale = 1 # Scaler for EPZS median threshold (1 default).
# Increasing value can speed up encoding.
EPZSMaxThresScale = 2 # Scaler for EPZS maximum threshold (1 default).
# Increasing value can speed up encoding.
EPZSSubPelME = 1 # EPZS Subpel ME consideration
EPZSSubPelMEBiPred = 1 # EPZS Subpel ME consideration for BiPred partitions
EPZSSubPelThresScale = 2 # EPZS Subpel ME Threshold scaler
EPZSSubPelGrid = 0 # Perform EPZS using a subpixel grid
########################################################################################
# SEI Parameters
########################################################################################
ToneMappingSEIPresentFlag = 1 # Enable Tone mapping SEI (0 Not present, 1 Present)
ToneMappingFile = "ToneMapping.cfg"
GenerateSEIMessage = 0 # Generate an SEI Text Message
SEIMessageText = "H.264/AVC Encoder" # Text SEI Message
################################################################
# VUI Parameters
################################################################
# the variables below do not affect encoding and decoding
# (many are dummy variables but others can be useful
# when supported by the decoder)
EnableVUISupport = 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -