1# Cisco Scalable H.264/AVC Extension Encoder Configuration File
2
3#============================== GENERAL ==============================
4UsageType        0            #0: camera video 1:screen content
5SourceWidth      160         #input video width
6SourceHeight     96          #input video height
7InputFile       CiscoVT2people_160x96_6fps.yuv # Input  file
8OutputFile              test.264               # Bitstream file
9MaxFrameRate            30                     # Maximum frame rate [Hz]
10FramesToBeEncoded       - 1                    # Number of frames (at input frame rate)
11
12TemporalLayerNum       2                     # temporal layer number(1--4)
13IntraPeriod            0                    # Intra Period ( multipler of GoP size or -1)
14EnableSpsPpsIDAddition  1
15
16EnableFrameCropping     1                # enable frame cropping flag
17EntropyCodingModeFlag   0                #0:cavlc 1:cabac
18MaxNalSize            0            # Unit:Byte, Maximum Nal size
19#============================== LOOP FILTER ==============================
20LoopFilterDisableIDC       0                   # Loop filter idc (0: on, 1: off,
21# 2: on except for slice boundaries,
22# 3: two stage. slice boundries on in second stage
23# 4: Luma on but Chroma off (w.r.t. idc=0)
24# 5: Luma on except on slice boundaries, but Chroma off in enh. layer (w.r.t. idc=2)
25# 6: Luma on in two stage. slice boundries on in second stage, but Chroma off (w.r.t. idc=3)
26    LoopFilterAlphaC0Offset	0                      # AlphaOffset(-6..+6): valid range
27    LoopFilterBetaOffset	0                      # BetaOffset (-6..+6): valid range
28#============================== SOFTWARE IMPLEMENTATION ==============================
29    MultipleThreadIdc			    1
30# 0: auto(dynamic imp. internal encoder); 1: multiple threads imp. disabled; > 1: count number of threads;
31
32#============================== RATE CONTROL ==============================
33    RCMode			        0
34# 0: quality mode;  1: bitrate mode;                                             # 2: buffer based mode,can't control bitrate; -1: rc off mode;
35    TargetBitrate			5000				    # Unit: kbps, controled by EnableRC also
36    MaxOverallBitrate       6000                    # Unit: kbps, max bitrate overall
37    EnableFrameSkip			1		#Enable Frame Skip
38
39#============================== DENOISE CONTROL ==============================
40    EnableDenoise                   0              # Enable Denoise (1: enable, 0: disable)
41
42#============================== SCENE CHANGE DETECTION CONTROL =======================
43    EnableSceneChangeDetection			1			# Enable Scene Change Detection (1: enable, 0: disable)
44
45#============================== BACKGROUND DETECTION CONTROL ==============================
46    EnableBackgroundDetection		 1     # BGD control(1: enable, 0: disable)
47
48#============================== ADAPTIVE QUANTIZATION CONTROL =======================
49    EnableAdaptiveQuantization			1			# Enable Adaptive Quantization (1: enable, 0: disable)
50
51#============================== LONG TERM REFERENCE CONTROL ==============================
52    EnableLongTermReference             1              # Enable Long Term Reference (1: enable, 0: disable)
53    LtrMarkPeriod                       30             # Long Term Reference Marking Period
54
55#============================== LAYER DEFINITION ==============================
56    PrefixNALAddingCtrl		0						# Control flag of adding prefix unit (0: off, 1: on)
57# It shall always be on in SVC contexts (i.e. when there are CGS/MGS/spatial enhancement layers)
58# Can be disabled when no inter spatial layer prediction in case of its value as 0
59    NumLayers              1                      # Number of layers
60    //LayerCfg                layer0.cfg		# Layer 0 configuration file
61    //LayerCfg                layer1.cfg		# Layer 1 configuration file
62    LayerCfg                layer2.cfg		# Layer 2 configuration file
63