home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / MediaCoder / MediaCoder2011-R8-5188.exe / codecs / jm / encoder_main.cfg < prev    next >
Text File  |  2010-03-06  |  37KB  |  486 lines

  1. # New Input File Format is as follows
  2. # <ParameterName> = <ParameterValue> # Comment
  3. #
  4. # See configfile.h for a list of supported ParameterNames
  5. #
  6. # For bug reporting and known issues see:
  7. # https://ipbt.hhi.de
  8.  
  9. ##########################################################################################
  10. # Encoder Control
  11. ##########################################################################################
  12. ProfileIDC            = 77  # Profile IDC (66=baseline, 77=main, 88=extended; FREXT Profiles: 100=High, 110=High 10, 122=High 4:2:2, 244=High 4:4:4, 44=CAVLC 4:4:4 Intra)
  13. IntraProfile          = 0   # Activate Intra Profile for FRExt (0: false, 1: true)
  14.                             # (e.g. ProfileIDC=110, IntraProfile=1  =>  High 10 Intra Profile)
  15. LevelIDC              = 40  # Level IDC   (e.g. 20 = level 2.0)
  16.  
  17. IntraPeriod           = 0   # Period of I-pictures   (0=only first)
  18. IDRPeriod             = 0   # Period of IDR pictures (0=only first)
  19. AdaptiveIntraPeriod   = 1   # Adaptive intra period
  20. AdaptiveIDRPeriod     = 0   # Adaptive IDR period
  21. IntraDelay            = 0   # Intra (IDR) picture delay (i.e. coding structure of PPIPPP... )
  22. EnableIDRGOP          = 0   # Support for IDR closed GOPs (0: disabled, 1: enabled)
  23. EnableOpenGOP         = 0   # Support for open GOPs (0: disabled, 1: enabled)
  24. QPISlice              = 28  # Quant. param for I Slices (0-51)
  25. QPPSlice              = 28  # Quant. param for P Slices (0-51)
  26. FrameSkip             = 0   # Number of frames to be skipped in input (e.g 2 will code every third frame). 
  27.                             # Note that this now excludes intermediate (i.e. B) coded pictures
  28. ChromaQPOffset        = 0   # Chroma QP offset (-51..51)
  29.  
  30. DisableSubpelME       = 0   # Disable Subpixel Motion Estimation (0=off/default, 1=on)
  31. SearchRange           = 16  # Max search range
  32.  
  33. MEDistortionFPel      = 0   # Select error metric for Full-Pel ME    (0: SAD, 1: SSE, 2: Hadamard SAD)
  34. MEDistortionHPel      = 2   # Select error metric for Half-Pel ME    (0: SAD, 1: SSE, 2: Hadamard SAD)
  35. MEDistortionQPel      = 2   # Select error metric for Quarter-Pel ME (0: SAD, 1: SSE, 2: Hadamard SAD)
  36. MDDistortion          = 2   # Select error metric for Mode Decision  (0: SAD, 1: SSE, 2: Hadamard SAD)
  37. SkipDeBlockNonRef     = 0   # Skip Deblocking (regardless of DFParametersFlag) for non-reference frames (0: off, 1: on)
  38. ChromaMCBuffer        = 1   # Calculate Color component interpolated values in advance and store them.
  39.                             # Provides a trade-off between memory and computational complexity
  40.                             # (0: disabled/default, 1: enabled)
  41. ChromaMEEnable        = 0   # Take into account Color component information during ME
  42.                             # (0: only first component/default, 
  43.                             #  1: All Color components - Integer refinement only
  44.                             #  2: All Color components - All refinements)
  45. ChromaMEWeight        = 1   # Weighting for chroma components. This parameter should have a relationship with color format.
  46.  
  47. NumberReferenceFrames = 5   # Number of previous frames used for inter motion search (0-16)
  48.  
  49. PList0References      = 0   # P slice List 0 reference override (0 disable, N <= NumberReferenceFrames)
  50. Log2MaxFNumMinus4     = 0   # Sets log2_max_frame_num_minus4 (-1 : based on FramesToBeEncoded/Auto, >=0 : Log2MaxFNumMinus4)
  51. Log2MaxPOCLsbMinus4   = -1  # Sets log2_max_pic_order_cnt_lsb_minus4 (-1 : Auto, >=0 : Log2MaxPOCLsbMinus4)
  52.  
  53. GenerateMultiplePPS   = 0   # Transmit multiple parameter sets. Currently parameters basically enable all WP modes (0: diabled, 1: enabled)
  54. ResendPPS             = 0   # Resend PPS (with pic_parameter_set_id 0) for every coded Frame/Field pair (0: disabled, 1: enabled)
  55.  
  56. MbLineIntraUpdate     = 0   # Error robustness(extra intra macro block updates)(0=off, N: One GOB every N frames are intra coded)
  57. RandomIntraMBRefresh  = 0   # Forced intra MBs per picture
  58.  
  59. ##########################################################################################
  60. # PSlice Mode types
  61. ##########################################################################################
  62. PSliceSkip            = 1   # P-Slice Skip mode consideration  (0=disable, 1=enable)
  63. PSliceSearch16x16     = 1   # P-Slice Inter block search 16x16 (0=disable, 1=enable)
  64. PSliceSearch16x8      = 1   # P-Slice Inter block search 16x8  (0=disable, 1=enable)
  65. PSliceSearch8x16      = 1   # P-Slice Inter block search  8x16 (0=disable, 1=enable)
  66. PSliceSearch8x8       = 1   # P-Slice Inter block search  8x8  (0=disable, 1=enable)
  67. PSliceSearch8x4       = 1   # P-Slice Inter block search  8x4  (0=disable, 1=enable)
  68. PSliceSearch4x8       = 1   # P-Slice Inter block search  4x8  (0=disable, 1=enable)
  69. PSliceSearch4x4       = 1   # P-Slice Inter block search  4x4  (0=disable, 1=enable)
  70.  
  71. ##########################################################################################
  72. # BSlice Mode types
  73. ##########################################################################################
  74.  
  75. BSliceDirect          = 1   # B-Slice Skip mode consideration  (0=disable, 1=enable)
  76. BSliceSearch16x16     = 1   # B-Slice Inter block search 16x16 (0=disable, 1=enable)
  77. BSliceSearch16x8      = 1   # B-Slice Inter block search 16x8  (0=disable, 1=enable)
  78. BSliceSearch8x16      = 1   # B-Slice Inter block search  8x16 (0=disable, 1=enable)
  79. BSliceSearch8x8       = 1   # B-Slice Inter block search  8x8  (0=disable, 1=enable)
  80. BSliceSearch8x4       = 1   # B-Slice Inter block search  8x4  (0=disable, 1=enable)
  81. BSliceSearch4x8       = 1   # B-Slice Inter block search  4x8  (0=disable, 1=enable)
  82. BSliceSearch4x4       = 1   # B-Slice Inter block search  4x4  (0=disable, 1=enable)
  83.  
  84. BiPredSearch16x16     = 1   # B-Slice Bi-prediction block search 16x16 (0=disable, 1=enable)
  85. BiPredSearch16x8      = 1   # B-Slice Bi-prediction block search 16x8  (0=disable, 1=enable)
  86. BiPredSearch8x16      = 1   # B-Slice Bi-prediction block search 8x16  (0=disable, 1=enable)
  87. BiPredSearch8x8       = 0   # B-Slice Bi-prediction block search 8x8   (0=disable, 1=enable)
  88.  
  89. DisableIntra4x4        = 0  # Disable Intra 4x4 modes
  90. DisableIntra16x16      = 0  # Disable Intra 16x16 modes
  91. DisableIntraInInter    = 0  # Disable Intra modes for inter slices
  92. IntraDisableInterOnly  = 0  # Apply Disabling Intra conditions only to Inter Slices (0:disable/default,1: enable)
  93. Intra4x4ParDisable     = 0  # Disable Vertical & Horizontal 4x4
  94. Intra4x4DiagDisable    = 0  # Disable Diagonal 45degree 4x4
  95. Intra4x4DirDisable     = 0  # Disable Other Diagonal 4x4
  96. Intra16x16ParDisable   = 0  # Disable Vertical & Horizontal 16x16
  97. Intra16x16PlaneDisable = 0  # Disable Planar 16x16
  98. ChromaIntraDisable     = 0  # Disable Intra Chroma modes other than DC
  99. EnableIPCM             = 1  # Enable IPCM macroblock mode
  100.  
  101. DisposableP            = 0  # Enable Disposable P slices in the primary layer (0: disable/default, 1: enable)
  102. DispPQPOffset          = 0  # Quantizer offset for disposable P slices (0: default)
  103.  
  104. PreferDispOrder        = 1  # Prefer display order when building the prediction structure as opposed to coding order (affects intra and IDR periodic insertion, among others)
  105. PreferPowerOfTwo       = 0  # Prefer prediction structures that have lengths expressed as powers of two
  106. FrmStructBufferLength  = 16 # Length of the frame structure unit buffer; it can be overriden for certain cases
  107.  
  108. ChangeQPFrame          = 0  # Frame in display order from which to apply the Change QP offsets
  109. ChangeQPI              = 0  # Change QP offset value for I_SLICE
  110. ChangeQPP              = 0  # Change QP offset value for P_SLICE
  111. ChangeQPB              = 0  # Change QP offset value for B_SLICE
  112. ChangeQPSI             = 0  # Change QP offset value for SI_SLICE
  113. ChangeQPSP             = 0  # Change QP offset value for SP_SLICE
  114.  
  115. NumberOfViews          = 1   # Number of views to encode (1=1 view, 2=2 views)
  116. MVCEnableInterViewFlag = 1   # enable inter view flag
  117. MVCInterViewReorder    = 0   # Reorder References according to interview pictures (0=off, 1=enable)
  118. View1QPOffset          = 0   # QP offset during rate control for View 1
  119. MVCInterViewForceB     = 0   # Force B coded pictures for Enhancement layer (assuming list order is as desired, this may be able to provide some coding gains)
  120.  
  121. ##########################################################################################
  122. # B Slices
  123. ##########################################################################################
  124.  
  125. NumberBFrames          = 1  # Number of B coded frames inserted (0=not used)
  126. PReplaceBSlice         = 0  # Replace B-coded slices with P-coded slices when NumberBFrames>0
  127. QPBSlice               = 30 # Quant. param for B slices (0-51)
  128. BRefPicQPOffset        = -1 # Quantization offset for reference B coded pictures (-51..51)
  129. DirectModeType         = 1  # Direct Mode Type (0:Temporal 1:Spatial)
  130. DirectInferenceFlag    = 1  # Direct Inference Flag (0: Disable 1: Enable)
  131. BList0References       = 0  # B slice List 0 reference override (0 disable, N <= NumberReferenceFrames)
  132. BList1References       = 1  # B slice List 1 reference override (0 disable, N <= NumberReferenceFrames)
  133.                             # 1 List1 reference is usually recommended for normal GOP Structures.
  134.                             # A larger value is usually more appropriate if a more flexible
  135.                             # structure is used (i.e. using HierarchicalCoding)
  136.  
  137. BReferencePictures    =  0  # Referenced B coded pictures (0=off, 1=B references for secondary layer, 2=B references for primary layer)
  138.  
  139. HierarchicalCoding      =  0  # B hierarchical coding (0= off, 1= 2 layers, 2= 2 full hierarchy, 3 = explicit)
  140. HierarchyLevelQPEnable  =  1  # Adjust QP based on hierarchy level (in increments of 1). Overrides BRefPicQPOffset behavior.(0=off, 1=on)
  141. ExplicitHierarchyFormat = "b1r0b3r0b2e2b0e2b4r2" # Explicit Enhancement GOP. Format is {FrameDisplay_orderReferenceQP}.
  142.                                                  # Valid values for reference type is r:reference, e:non reference.
  143. ExplicitSeqCoding     =  0    # Enable support for explicit sequence coding
  144. ExplicitSeqFile       =  "explicit_seq.cfg"
  145. LowDelay              =  0    # Apply HierarchicalCoding without delay (i.e., encode in the captured/display order)
  146. ReferenceReorder      =  1    # Reorder References according to Poc distance for HierarchicalCoding (0=off, 1=enable, 2=use when LowDelay is set)
  147. PocMemoryManagement   =  1    # Memory management based on Poc Distances for HierarchicalCoding (0=off, 1=on, 2=use when LowDelay is set)
  148. SetFirstAsLongTerm    =  0    # Set first frame as long term
  149.  
  150. BiPredMotionEstimation = 1   # Enable Bipredictive based Motion Estimation (0:disabled, 1:enabled)
  151. BiPredMERefinements    = 3   # Bipredictive ME extra refinements (0: single, N: N extra refinements (1 default)
  152. BiPredMESearchRange    = 16  # Bipredictive ME Search range (8 default). Note that range is halved for every extra refinement.
  153. BiPredMESubPel         = 2   # Bipredictive ME Subpixel Consideration (0: disabled, 1: single level, 2: dual level)
  154.  
  155.  
  156. ##########################################################################################
  157. # Output Control, NALs
  158. ##########################################################################################
  159.  
  160. SymbolMode             =  1  # Symbol mode (Entropy coding method: 0=UVLC, 1=CABAC)
  161. OutFileMode            =  0  # Output file mode, 0:Annex B, 1:RTP
  162.  
  163. ##########################################################################################
  164. # CABAC context initialization
  165. ##########################################################################################
  166.  
  167. ContextInitMethod        =  1     # Context init (0: fixed, 1: adaptive)
  168. FixedModelNumber         =  0     # model number for fixed decision for inter slices ( 0, 1, or 2 )
  169.  
  170. ##########################################################################################
  171. # Interlace Handling
  172. #########################################################################################
  173.  
  174. PicInterlace             =  0     # Picture AFF    (0: frame coding, 1: field coding, 2:adaptive frame/field coding)
  175. MbInterlace              =  0     # Macroblock AFF (0: frame coding, 1: field coding, 2:adaptive frame/field coding, 3: frame MB-only AFF)
  176. IntraBottom              =  0     # Force Intra Bottom at GOP Period
  177.  
  178. ##########################################################################################
  179. # Weighted Prediction
  180. #########################################################################################
  181.  
  182. WeightedPrediction       =  0     # P picture Weighted Prediction (0=off, 1=explicit mode)
  183. WeightedBiprediction     =  0     # B picture Weighted Prediciton (0=off, 1=explicit mode,  2=implicit mode)
  184. ChromaWeightSupport      =  1     # Enable consideration of weights for Chroma components
  185. UseWeightedReferenceME   =  1     # Use weighted reference for ME (0=off, 1=on)
  186. WPMethod                 =  1     # WP method (0: DC based, 1: LMS based)
  187. WPIterMC                 =  0     # Iterative Motion compensated based weighted prediction method
  188. EnhancedBWeightSupport   =  0     # Enhanced B Weight support (needs revisit if we wish to merge with WPMethod)
  189. WPMCPrecision            =  0     # Improved Motion Compensation Precision using WP based methods.
  190.                                   # Clones WP references with slightly modified rounding offsets (Requires RDPictureDecision and GenerateMultiplePPS) :
  191.                                   # 0: disabled (default) 
  192.                                   # 1: Up to one additional coding pass. Ref0 is 0, ref1 is 0 with a -1 offset
  193.                                   # 2: Up to two additional coding passes. (1) Ref0 is 0, ref1 is 0 with a -1 offset, (1) Ref0 is 0 with a -1 offset, ref1 is 0
  194. WPMCPrecFullRef          =  0     # Increases the number of references in the reference picture lists to account
  195.                                   # for the lost reference slot when reordering is used during a coding pass in WPMCPrecision for reference replication.
  196.                                   # The number of references in non-reordered passes stays unchanged
  197. WPMCPrecBSlice           =  1     # 2: Apply rounding on every B slice. This efectively disables the evaluation of alternative QPs during RDPictureDecision.
  198.                                   # 1: Disable rounding for non-reference B slices. Non-reference B slices are evaluated for alternative QPs during RDPictureDecision.
  199.                                   # 0: Disable rounding for B slices.
  200.  
  201. ##########################################################################################
  202. # Picture based Multi-pass encoding
  203. #########################################################################################
  204.  
  205. RDPictureDecision        =  0     # Perform multiple pass coding and make RD optimal decision among them
  206. RDPSliceBTest            =  0     # Perform Slice level RD decision between P and B slices. 
  207. RDPictureMaxPassISlice   =  1     # Max number of coding passes for I slices, valid values [1,3], default is 1 
  208. RDPictureMaxPassPSlice   =  2     # Max number of coding passes for P slices, valid values [1,6], default is 2
  209. RDPictureMaxPassBSlice   =  3     # Max number of coding passes for B slices, valid values [1,6], default is 3
  210. RDPictureFrameQPPSlice   =  0     # Perform additional frame level QP check (QP+/-1) for P slices, 0: disabled (default), 1: enabled
  211. RDPictureFrameQPBSlice   =  0     # Perform additional frame level QP check (QP+/-1) for B slices, 0: disabled, 1: enabled (default)
  212. RDPictureDeblocking      =  0     # Perform another coding pass to check non-deblocked picture, 0: disabled (default), 1: enabled
  213. RDPictureDirectMode      =  0     # Perform another coding pass to check the alternative direct mode for B slices, , 0: disabled (default), 1: enabled
  214.  
  215. ##########################################################################################
  216. # Deblocking filter parameters
  217. ##########################################################################################
  218.  
  219. DFParametersFlag         = 0      # Configure deblocking filter (0=parameters below ignored, 1=parameters sent)
  220.                                                                 # Note that for pictures with multiple slice types, 
  221.                                   # only the type of the first slice will be considered.
  222. DFDisableRefISlice       = 0      # Disable deblocking filter in reference I coded pictures (0=Filter, 1=No Filter). 
  223. DFAlphaRefISlice         = 0      # Reference I coded pictures Alpha offset div. 2, {-6, -5, ... 0, +1, .. +6}
  224. DFBetaRefISlice          = 0      # Reference I coded pictures Beta offset div. 2, {-6, -5, ... 0, +1, .. +6}
  225. DFDisableNRefISlice      = 0      # Disable deblocking filter in non reference I coded pictures (0=Filter, 1=No Filter). 
  226. DFAlphaNRefISlice        = 0      # Non Reference I coded pictures Alpha offset div. 2, {-6, -5, ... 0, +1, .. +6}
  227. DFBetaNRefISlice         = 0      # Non Reference I coded pictures Beta offset div. 2, {-6, -5, ... 0, +1, .. +6}
  228. DFDisableRefPSlice       = 0      # Disable deblocking filter in reference P coded pictures (0=Filter, 1=No Filter). 
  229. DFAlphaRefPSlice         = 0      # Reference P coded pictures Alpha offset div. 2, {-6, -5, ... 0, +1, .. +6}
  230. DFBetaRefPSlice          = 0      # Reference P coded pictures Beta offset div. 2, {-6, -5, ... 0, +1, .. +6}
  231. DFDisableNRefPSlice      = 0      # Disable deblocking filter in non reference P coded pictures (0=Filter, 1=No Filter). 
  232. DFAlphaNRefPSlice        = 0      # Non Reference P coded pictures Alpha offset div. 2, {-6, -5, ... 0, +1, .. +6}
  233. DFBetaNRefPSlice         = 0      # Non Reference P coded pictures Beta offset div. 2, {-6, -5, ... 0, +1, .. +6}
  234. DFDisableRefBSlice       = 0      # Disable deblocking filter in reference B coded pictures (0=Filter, 1=No Filter). 
  235. DFAlphaRefBSlice         = 0      # Reference B coded pictures Alpha offset div. 2, {-6, -5, ... 0, +1, .. +6}
  236. DFBetaRefBSlice          = 0      # Reference B coded pictures Beta offset div. 2, {-6, -5, ... 0, +1, .. +6}
  237. DFDisableNRefBSlice      = 0      # Disable deblocking filter in non reference B coded pictures (0=Filter, 1=No Filter). 
  238. DFAlphaNRefBSlice        = 0      # Non Reference B coded pictures Alpha offset div. 2, {-6, -5, ... 0, +1, .. +6}
  239. DFBetaNRefBSlice         = 0      # Non Reference B coded pictures Beta offset div. 2, {-6, -5, ... 0, +1, .. +6}
  240.  
  241. ##########################################################################################
  242. # Error Resilience / Slices
  243. ##########################################################################################
  244.  
  245. SliceMode             =  0   # Slice mode (0=off 1=fixed #mb in slice 2=fixed #bytes in slice 3=use callback)
  246. SliceArgument         = 50   # Slice argument (Arguments to modes 1 and 2 above)
  247.  
  248. UseRedundantPicture   = 0    # 0: not used, 1: enabled
  249. NumRedundantHierarchy = 1    # 0-4
  250. PrimaryGOPLength      = 10   # GOP length for redundant allocation (1-16)
  251.                              # NumberReferenceFrames must be no less than PrimaryGOPLength when redundant slice enabled
  252. NumRefPrimary         = 1    # Actually used number of references for primary slices (1-16)
  253.  
  254. ##########################################################################################
  255. # Search Range Restriction / RD Optimization
  256. ##########################################################################################
  257.  
  258. RestrictSearchRange    =  2  # restriction for (0: blocks and ref, 1: ref, 2: no restrictions)
  259. RDOptimization         =  0  # rd-optimized mode decision
  260.                              # 0: RD-off (Low complexity mode)
  261.                              # 1: RD-on (High complexity mode)
  262.                              # 2: RD-on (Fast high complexity mode - not work in FREX Profiles)
  263.                              # 3: with losses
  264. I16RDOpt               =  0  # perform rd-optimized mode decision for Intra 16x16 MB
  265.                              # 0: SAD-based mode decision for Intra 16x16 MB
  266.                              # 1: RD-based mode decision for Intra 16x16 MB                        
  267. SubMBCodingState       =  1  # submacroblock coding state
  268.                              # 0: lowest complexity, do not store or reset coding state during sub-MB mode decision
  269.                              # 1: medium complexity, reset to master coding state (for current mode) during sub-MB mode decision
  270.                              # 2: highest complexity, store and reset coding state during sub-MB mode decision
  271. DistortionSSIM         =  0  # Compute SSIM distortion. (0: disabled/default, 1: enabled)
  272. DistortionMS_SSIM      =  0  # Compute Multiscale SSIM distortion. (0: disabled/default, 1: enabled)
  273. SSIMOverlapSize        =  8  # Overlap size to calculate SSIM distortion (1: pixel by pixel, 8: no overlap)
  274. DistortionYUVtoRGB     =  0  # Calculate distortion in RGB domain after conversion from YCbCr (0:off, 1:on)
  275. CtxAdptLagrangeMult    =  0  # Context Adaptive Lagrange Multiplier
  276.                              # 0: disabled (default)
  277.                              # 1: enabled (works best when RDOptimization=0)
  278. FastCrIntraDecision    =  1  # Fast Chroma intra mode decision (0:off, 1:on)
  279. DisableThresholding    =  0  # Disable Thresholding of Transform Coefficients (0:off, 1:on)
  280. DisableBSkipRDO        =  0  # Disable B Skip Mode consideration from RDO Mode decision (0:off, 1:on)
  281. BiasSkipRDO            =  1  # Negative Bias for Skip/DirectSkip modes (0: off, 1: on)
  282. ForceTrueRateRDO       =  0  # Force true rate (even zero values) during RDO process
  283. SkipIntraInInterSlices =  0  # Skips Intra mode checking in inter slices if certain mode decisions are satisfied (0: off, 1: on)
  284. WeightY                =  1  # Luma weight for RDO
  285. WeightCb               =  1  # Cb weight for RDO
  286. WeightCr               =  1  # Cr weight for RDO
  287.  
  288. ##########################################################################################
  289. # Explicit Lambda Usage
  290. ##########################################################################################
  291. UseExplicitLambdaParams  =  0    # Use explicit lambda scaling parameters (0:disabled, 1:enable lambda weight, 2: use explicit lambda value)
  292. UpdateLambdaChromaME     =  0    # Update lambda given Chroma ME consideration
  293. FixedLambdaISlice        =  0.1  # Fixed Lambda value for I slices
  294. FixedLambdaPSlice        =  0.1  # Fixed Lambda value for P slices
  295. FixedLambdaBSlice        =  0.1  # Fixed Lambda value for B slices
  296. FixedLambdaRefBSlice     =  0.1  # Fixed Lambda value for Referenced B slices
  297. FixedLambdaSPSlice       =  0.1  # Fixed Lambda value for SP slices
  298. FixedLambdaSISlice       =  0.1  # Fixed Lambda value for SI slices
  299.  
  300. LambdaWeightISlice       =  0.65 # scaling param for I slices. This will be used as a multiplier i.e. lambda=LambdaWeightISlice * 2^((QP-12)/3)
  301. LambdaWeightPSlice       =  0.68 # scaling param for P slices. This will be used as a multiplier i.e. lambda=LambdaWeightPSlice * 2^((QP-12)/3)
  302. LambdaWeightBSlice       =  0.68 # scaling param for B slices. This will be used as a multiplier i.e. lambda=LambdaWeightBSlice * 2^((QP-12)/3)
  303. LambdaWeightRefBSlice    =  0.68 # scaling param for Referenced B slices. This will be used as a multiplier i.e. lambda=LambdaWeightRefBSlice * 2^((QP-12)/3)
  304. LambdaWeightSPSlice      =  0.68 # scaling param for SP slices. This will be used as a multiplier i.e. lambda=LambdaWeightSPSlice * 2^((QP-12)/3)
  305. LambdaWeightSISlice      =  0.65 # scaling param for SI slices. This will be used as a multiplier i.e. lambda=LambdaWeightSISlice * 2^((QP-12)/3)
  306.  
  307. LossRateA                =  5  # expected packet loss rate of the channel for the first partition, only valid if RDOptimization = 3
  308. LossRateB                =  0  # expected packet loss rate of the channel for the second partition, only valid if RDOptimization = 3
  309. LossRateC                =  0  # expected packet loss rate of the channel for the third partition, only valid if RDOptimization = 3
  310. FirstFrameCorrect         =  0  # If 1, the first frame is encoded under the assumption that it is always correctly received. 
  311. NumberOfDecoders         = 30  # Numbers of decoders used to simulate the channel, only valid if RDOptimization = 3
  312. RestrictRefFrames        =  0  # Doesnt allow reference to areas that have been intra updated in a later frame.
  313.  
  314. ##########################################################################################
  315. # Additional Stuff
  316. #########################################################################################
  317.  
  318. UseConstrainedIntraPred  =  0  # If 1, Inter pixels are not used for Intra macroblock prediction.
  319.  
  320. NumberofLeakyBuckets     =  8                      # Number of Leaky Bucket values
  321. LeakyBucketRateFile      =  "leakybucketrate.cfg"  # File from which encoder derives rate values
  322. LeakyBucketParamFile     =  "leakybucketparam.cfg" # File where encoder stores leakybucketparams
  323.  
  324. NumFramesInELayerSubSeq  = 0  # number of frames in the Enhanced Scalability Layer(0: no Enhanced Layer)
  325.  
  326. SparePictureOption        =  0   # (0: no spare picture info, 1: spare picture available)
  327. SparePictureDetectionThr  =  6   # Threshold for spare reference pictures detection
  328. SparePicturePercentageThr = 92   # Threshold for the spare macroblock percentage
  329.  
  330. PicOrderCntType           = 0    # (0: POC mode 0, 1: POC mode 1, 2: POC mode 2)
  331.  
  332. ########################################################################################
  333. #Rate control
  334. ########################################################################################
  335.  
  336. RateControlEnable       = 1     # 0 Disable, 1 Enable
  337. Bitrate                 = 45020 # Bitrate(bps)
  338. InitialQP               = 0     # Initial Quantization Parameter for the first I frame
  339.                                 # InitialQp depends on two values: Bits Per Picture,
  340.                                 # and the GOP length
  341. BasicUnit               = 0     # Number of MBs in the basic unit
  342.                                 # should be a fraction of the total number
  343.                                 # of MBs in a frame ("0" sets a BU equal to a frame)
  344. ChannelType             = 0     # type of channel( 1=time varying channel; 0=Constant channel)
  345. RCUpdateMode            = 0     # Rate Control type. Modes supported :
  346.                                 # 0 = original JM rate control,
  347.                                 # 1 = rate control that is applied to all frames regardless of the slice type,
  348.                                 # 2 = original plus intelligent QP selection for I and B slices (including Hierarchical),
  349.                                 # 3 = original + hybrid quadratic rate control for I and B slice using bit rate statistics
  350.                                 #
  351. RCISliceBitRatio        = 1.0   # target ratio of bits for I-coded pictures compared to P-coded Pictures (for RCUpdateMode=3)
  352. RCBSliceBitRatio0       = 0.5   # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 0 (for RCUpdateMode=3)
  353. RCBSliceBitRatio1       = 0.25  # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 1 (for RCUpdateMode=3)
  354. RCBSliceBitRatio2       = 0.25  # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 2 (for RCUpdateMode=3)
  355. RCBSliceBitRatio3       = 0.25  # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 3 (for RCUpdateMode=3)
  356. RCBSliceBitRatio4       = 0.25  # target ratio of bits for B-coded pictures compared to P-coded Pictures - temporal level 4 (for RCUpdateMode=3)
  357. 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)
  358. 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)
  359. RCMinQPPSlice           =  8    # minimum P Slice QP value for rate control
  360. RCMaxQPPSlice           = 42    # maximum P Slice QP value for rate control
  361. RCMinQPBSlice           =  8    # minimum B Slice QP value for rate control
  362. RCMaxQPBSlice           = 42    # maximum B Slice QP value for rate control
  363. RCMinQPISlice           =  8    # minimum I Slice QP value for rate control
  364. RCMaxQPISlice           = 42    # maximum I Slice QP value for rate control
  365. RCMinQPSPSlice          =  8    # minimum SP Slice QP value for rate control
  366. RCMaxQPSPSlice          = 40    # maximum SP Slice QP value for rate control
  367. RCMinQPSISlice          =  8    # minimum SI Slice QP value for rate control
  368. RCMaxQPSISlice          = 42    # maximum SI Slice QP value for rate control
  369. RCMaxQPChange           =  4    # maximum QP change for frames of the base layer
  370.  
  371. ########################################################################################
  372. #Fast Mode Decision
  373. ########################################################################################
  374. EarlySkipEnable         = 0     # Early skip detection (0: Disable 1: Enable)
  375. SelectiveIntraEnable    = 0     # Selective Intra mode decision (0: Disable 1: Enable)
  376.  
  377. ReportFrameStats        = 0     # (0:Disable Frame Statistics 1: Enable)
  378. DisplayEncParams        = 0     # (0:Disable Display of Encoder Params 1: Enable)
  379. Verbose                 = 1     # level of display verboseness 
  380.                                 # 0: short, 1: normal (default), 2: detailed, 3: detailed/nvb
  381.                                 # 4: with additional MB level lambda info
  382.  
  383. ########################################################################################
  384. #Rounding Offset control
  385. ########################################################################################
  386.  
  387. OffsetMatrixPresentFlag  = 0    # Enable Explicit Offset Quantization Matrices  (0: disable 1: enable)
  388. QOffsetMatrixFile        = "q_offset.cfg" # Explicit Quantization Matrices file
  389.  
  390. AdaptiveRounding         = 1    # Enable Adaptive Rounding based on JVT-N011 (0: disable, 1: enable)
  391. AdaptRoundingFixed       = 1    # Enable Global Adaptive rounding for all qps (0: disable, 1: enable - default/old)
  392. AdaptRndPeriod           = 16   # Period in terms of MBs for updating rounding offsets. 
  393.                                 # 0 performs update at the picture level. Default is 16. 1 is as in JVT-N011.
  394. AdaptRndChroma           = 1    # Enables coefficient rounding adaptation for chroma
  395.  
  396. AdaptRndWFactorIRef      = 4    # Adaptive Rounding Weight for I/SI slices in reference pictures /4096
  397. AdaptRndWFactorPRef      = 4    # Adaptive Rounding Weight for P/SP slices in reference pictures /4096
  398. AdaptRndWFactorBRef      = 4    # Adaptive Rounding Weight for B slices in reference pictures /4096
  399. AdaptRndWFactorINRef     = 4    # Adaptive Rounding Weight for I/SI slices in non reference pictures /4096
  400. AdaptRndWFactorPNRef     = 4    # Adaptive Rounding Weight for P/SP slices in non reference pictures /4096
  401. AdaptRndWFactorBNRef     = 4    # Adaptive Rounding Weight for B slices in non reference pictures /4096
  402.  
  403. AdaptRndCrWFactorIRef    = 4    # Chroma Adaptive Rounding Weight for I/SI slices in reference pictures /4096
  404. AdaptRndCrWFactorPRef    = 4    # Chroma Adaptive Rounding Weight for P/SP slices in reference pictures /4096
  405. AdaptRndCrWFactorBRef    = 4    # Chroma Adaptive Rounding Weight for B slices in reference pictures /4096
  406. AdaptRndCrWFactorINRef   = 4    # Chroma Adaptive Rounding Weight for I/SI slices in non reference pictures /4096
  407. AdaptRndCrWFactorPNRef   = 4    # Chroma Adaptive Rounding Weight for P/SP slices in non reference pictures /4096
  408. AdaptRndCrWFactorBNRef   = 4    # Chroma Adaptive Rounding Weight for B slices in non reference pictures /4096
  409.  
  410. ################################################################
  411. # Rate Distortion Optimized Quantization
  412. ################################################################
  413. UseRDOQuant              =  0 # Use Rate Distortion Optimized Quantization (0=disable, 1=enable)
  414. RDOQ_DC                  =  0 # Enable Rate Distortion Optimized Quantization for DC components (0=disable, 1=enable)
  415. RDOQ_CR                  =  0 # Enable Rate Distortion Optimized Quantization for Chroma components (0=disable, 1=enable)
  416. RDOQ_DC_CR               =  0 # Enable Rate Distortion Optimized Quantization for Chroma DC components (0=disable, 1=enable)
  417. RDOQ_QP_Num              =  1 # 1-5: Number of QP tested in RDO_Q (I/P/B slice)
  418. RDOQ_CP_Mode             =  1 # copy Mode from first QP tested
  419. RDOQ_CP_MV               =  1 # copy MV from first QP tested
  420. RDOQ_Fast                =  1 # Fast RDOQ decision method for multiple QPs
  421.  
  422.  
  423. ########################################################################################
  424. #Fast Motion Estimation Control Parameters
  425. ########################################################################################
  426.  
  427. SearchMode               = 2    # Motion estimation mode
  428.                                 # -1 = Full Search
  429.                                 #  0 = Fast Full Search (default)
  430.                                 #  1 = UMHexagon Search
  431.                                 #  2 = Simplified UMHexagon Search
  432.                                 #  3 = Enhanced Predictive Zonal Search (EPZS)
  433.                                 
  434. UMHexDSR                 = 1    # Use Search Range Prediction. Only for UMHexagonS method
  435.                                 # (0:disable, 1:enabled/default)
  436. UMHexScale               = 3    # Use Scale_factor for different image sizes. Only for UMHexagonS method
  437.                                 # (0:disable, 3:/default)
  438.                                 # Increasing value can speed up Motion Search.
  439.  
  440. EPZSPattern              = 2    # Select EPZS primary refinement pattern.
  441.                                 # (0: small diamond, 1: square, 2: extended diamond/default,
  442.                                 # 3: large diamond, 4: SBP Large Diamond,
  443.                                 # 5: PMVFAST )
  444. EPZSDualRefinement       = 3    # Enables secondary refinement pattern.
  445.                                 # (0:disabled, 1: small diamond, 2: square,
  446.                                 # 3: extended diamond/default, 4: large diamond,
  447.                                 # 5: SBP Large Diamond, 6: PMVFAST )
  448. EPZSFixedPredictors      = 2    # Enables Window based predictors
  449.                                 # (0:disabled, 1: P only, 2: P and B/default)
  450. EPZSTemporal             = 1    # Enables temporal predictors
  451.                                 # (0: disabled, 1: enabled/default)
  452. EPZSSpatialMem           = 1    # Enables spatial memory predictors
  453.                                 # (0: disabled, 1: enabled/default)
  454. EPZSBlockType            = 1    # Enables block type Predictors
  455.                                 # (0: disabled, 1: enabled/default)
  456. EPZSMinThresScale        = 0    # Scaler for EPZS minimum threshold (0 default).
  457.                                 # Increasing value can speed up encoding.
  458. EPZSMedThresScale        = 1    # Scaler for EPZS median threshold (1 default).
  459.                                 # Increasing value can speed up encoding.
  460. EPZSMaxThresScale        = 2    # Scaler for EPZS maximum threshold (1 default).
  461.                                 # Increasing value can speed up encoding.
  462. EPZSSubPelME             = 1    # EPZS Subpel ME consideration
  463. EPZSSubPelMEBiPred       = 1    # EPZS Subpel ME consideration for BiPred partitions
  464. EPZSSubPelThresScale     = 2    # EPZS Subpel ME Threshold scaler
  465. EPZSSubPelGrid           = 1    # Perform EPZS using a subpixel grid
  466.  
  467. ########################################################################################
  468. # SEI Parameters
  469. ########################################################################################
  470.  
  471. GenerateSEIMessage        = 0                    # Generate an SEI Text Message
  472. SEIMessageText            = "H.264/AVC Encoder"  # Text SEI Message
  473.  
  474. UseMVLimits               = 0                    # Use MV Limits
  475. SetMVXLimit               = 512                  # Horizontal MV Limit (in integer units)
  476. SetMVYLimit               = 512                  # Vertical MV Limit (in integer units)
  477.  
  478. ########################################################################################
  479. # VUI Parameters
  480. ########################################################################################
  481. # the variables below do not affect encoding and decoding
  482. # (many are dummy variables but others can be useful when supported by the decoder)
  483.  
  484. EnableVUISupport                                = 0      # Enable VUI Parameters
  485.  
  486.