shithub: openh264

ref: 2ecbc51c2b030f84c6832696b1d465bfded932b7
dir: /testbin/layer2.cfg/

View raw version
# Layer Configuration File


#============================== OUTPUT ==============================
FrameWidth     320                     # Output  frame width
FrameHeight    192                     # Output  frame height
FrameRateOut    12                     # Output frame rate [Hz]
ReconFile       rec_layer2.yuv          # Reconstructed file

#============================== CODING ==============================
ProfileIdc      66          # value of profile_idc (or 0 for auto detection)

InitialQP       24			# Quantization parameters for base quality layer
#================================ RATE CONTROL ===============================
SpatialBitrate		600		# Unit: kbps, controled by DisableRC also
MaxSpatialBitrate   0     # Unit: kbps, max bitrate for current layer, 0 - unspecified
#============================== MultiSlice Slice Argument ==============================
# for S/M Slice(s) mode settings
SliceMode			0		# 0: sigle slice mode; >0: multiple slices mode, see below;
SliceSize			1500
SliceNum			1		# multiple slices number specified

SlicesAssign0		960		# count number of MBs in slice #0
SlicesAssign1		0		# count number of MBs in slice #1
SlicesAssign2		0		# count number of MBs in slice #2
SlicesAssign3		0		# count number of MBs in slice #3 -- seting here is for better testing
SlicesAssign4		0		# count number of MBs in slice #4
SlicesAssign5		0		# count number of MBs in slice #5
SlicesAssign6		0		# count number of MBs in slice #6
SlicesAssign7		0		# count number of MBs in slice #7

### DESIGN OF SLICE MODE ####
# 0 SM_SINGLE_SLICE         | SliceNum==1
# 1 SM_FIXEDSLCNUM_SLICE    | according to SliceNum        | enabled dynamic slicing for multi-thread
# 2 SM_RASTER_SLICE         | according to SlicesAssign    | need input of MB numbers each slice. In addition, if other constraint in SSliceArgument is presented, need to follow the constraints. Typically if MB num and slice size are both constrained, re-encoding may be involved.
# 3 SM_SIZELIMITED_SLICE    | according to SliceSize       | slicing according to size, the slicing will be dynamic(have no idea about slice_nums until encoding current frame)
# 4 SM_RESERVED             | reserved