[HEVC] HM软件使用

来源:互联网 发布:计算机及网络管理制度 编辑:程序博客网 时间:2024/04/29 18:15

编译成功后,命令行运行:

TAppEncoder.exe -c xx.cfg

xx.cfg就是配置文件,一般可以这样生成自己的cfg

以帧内编码为例,在HM/cfg/encoder_intra_main.cfg拷贝一个到TappEncoder.exe所在的目录,在最开始添加如下内容:

#======== File I/O ===============InputFile                     : F:\HEVE\HM-14.0\bin\vc10\Win32\Release\Traffic_2560x1600_30_crop_qp22.binInputBitDepth                 : 8           # Input bitdepthFrameRate                     : 30          # Frame Rate per secondFrameSkip                     : 0           # Number of frames to be skipped in inputSourceWidth                   : 2560        # Input  frame widthSourceHeight                  : 1600         # Input  frame heightFramesToBeEncoded             : 50         # Number of frames to be coded

InputFile是输入文件

修改一下,width和height等参数就可以了。

运行:第一条命令后,得到如下的运行状态:




以下给出我使用的帧内编码的cfg

#======== File I/O ===============InputFile                     : F:\HEVE\HM-14.0\bin\vc10\Win32\Release\Traffic_2560x1600_30_crop_qp22.binInputBitDepth                 : 8           # Input bitdepthFrameRate                     : 30          # Frame Rate per secondFrameSkip                     : 0           # Number of frames to be skipped in inputSourceWidth                   : 2560        # Input  frame widthSourceHeight                  : 1600         # Input  frame heightFramesToBeEncoded             : 50         # Number of frames to be coded#======== File I/O =====================BitstreamFile                 : str.binReconFile                     : rec.yuv#======== Profile ================Profile                       : main#======== Unit definition ================MaxCUWidth                    : 64          # Maximum coding unit width in pixelMaxCUHeight                   : 64          # Maximum coding unit height in pixelMaxPartitionDepth             : 4           # Maximum coding unit depthQuadtreeTULog2MaxSize         : 5           # Log2 of maximum transform size for                                            # quadtree-based TU coding (2...6)QuadtreeTULog2MinSize         : 2           # Log2 of minimum transform size for                                            # quadtree-based TU coding (2...6)QuadtreeTUMaxDepthInter       : 3QuadtreeTUMaxDepthIntra       : 3#======== Coding Structure =============IntraPeriod                   : 1           # Period of I-Frame ( -1 = only first)DecodingRefreshType           : 0           # Random Accesss 0:none, 1:CDR, 2:IDRGOPSize                       : 1           # GOP Size (number of B slice = GOPSize-1)#        Type POC QPoffset QPfactor tcOffsetDiv2 betaOffsetDiv2  temporal_id #ref_pics_active #ref_pics reference pictures #=========== Motion Search =============FastSearch                    : 1           # 0:Full search  1:TZ searchSearchRange                   : 64          # (0: Search range is a Full frame)HadamardME                    : 1           # Use of hadamard measure for fractional MEFEN                           : 1           # Fast encoder decisionFDM                           : 1           # Fast Decision for Merge RD cost#======== Quantization =============QP                            : 32          # Quantization parameter(0-51)MaxDeltaQP                    : 0           # CU-based multi-QP optimizationMaxCuDQPDepth                 : 0           # Max depth of a minimum CuDQP for sub-LCU-level delta QPDeltaQpRD                     : 0           # Slice-based multi-QP optimizationRDOQ                          : 1           # RDOQRDOQTS                        : 1           # RDOQ for transform skip#=========== Deblock Filter ============DeblockingFilterControlPresent: 0           # Dbl control params present (0=not present, 1=present)LoopFilterOffsetInPPS         : 0           # Dbl params: 0=varying params in SliceHeader, param = base_param + GOP_offset_param; 1=constant params in PPS, param = base_param)LoopFilterDisable             : 0           # Disable deblocking filter (0=Filter, 1=No Filter)LoopFilterBetaOffset_div2     : 0           # base_param: -6 ~ 6LoopFilterTcOffset_div2       : 0           # base_param: -6 ~ 6DeblockingFilterMetric        : 0           # blockiness metric (automatically configures deblocking parameters in bitstream)#=========== Misc. ============InternalBitDepth              : 8           # codec operating bit-depth#=========== Coding Tools =================SAO                           : 1           # Sample adaptive offset  (0: OFF, 1: ON)AMP                           : 1           # Asymmetric motion partitions (0: OFF, 1: ON)TransformSkip                 : 1           # Transform skipping (0: OFF, 1: ON)TransformSkipFast             : 1           # Fast Transform skipping (0: OFF, 1: ON)SAOLcuBoundary                : 0           # SAOLcuBoundary using non-deblocked pixels (0: OFF, 1: ON)#============ Slices ================SliceMode                : 0                # 0: Disable all slice options.                                            # 1: Enforce maximum number of LCU in an slice,                                            # 2: Enforce maximum number of bytes in an 'slice'                                            # 3: Enforce maximum number of tiles in a sliceSliceArgument            : 1500             # Argument for 'SliceMode'.                                            # If SliceMode==1 it represents max. SliceGranularity-sized blocks per slice.                                            # If SliceMode==2 it represents max. bytes per slice.                                            # If SliceMode==3 it represents max. tiles per slice.LFCrossSliceBoundaryFlag : 1                # In-loop filtering, including ALF and DB, is across or not across slice boundary.                                            # 0:not across, 1: across#============ PCM ================PCMEnabledFlag                      : 0                # 0: No PCM modePCMLog2MaxSize                      : 5                # Log2 of maximum PCM block size.PCMLog2MinSize                      : 3                # Log2 of minimum PCM block size.PCMInputBitDepthFlag                : 1                # 0: PCM bit-depth is internal bit-depth. 1: PCM bit-depth is input bit-depth.PCMFilterDisableFlag                : 0                # 0: Enable loop filtering on I_PCM samples. 1: Disable loop filtering on I_PCM samples.#============ Tiles ================UniformSpacingIdc                   : 0                # 0: the column boundaries are indicated by ColumnWidth array, the row boundaries are indicated by RowHeight array                                                       # 1: the column and row boundaries are distributed uniformlyNumTileColumnsMinus1                : 0                # Number of columns in a picture minus 1ColumnWidthArray                    : 2 3              # Array containing ColumnWidth values in units of LCU (from left to right in picture)   NumTileRowsMinus1                   : 0                # Number of rows in a picture minus 1RowHeightArray                      : 2                # Array containing RowHeight values in units of LCU (from top to bottom in picture)LFCrossTileBoundaryFlag           : 1                  # In-loop filtering is across or not across tile boundary.                                                       # 0:not across, 1: across #============ WaveFront ================WaveFrontSynchro                    : 0                # 0:  No WaveFront synchronisation (WaveFrontSubstreams must be 1 in this case).                                                       # >0: WaveFront synchronises with the LCU above and to the right by this many LCUs.#=========== Quantization Matrix =================ScalingList                   : 0                      # ScalingList 0 : off, 1 : default, 2 : file readScalingListFile               : scaling_list.txt       # Scaling List file name. If file is not exist, use Default Matrix.#============ Lossless ================TransquantBypassEnableFlag: 0  # Value of PPS flag.CUTransquantBypassFlagForce: 0 # Constant lossless-value signaling per CU, if TransquantBypassEnableFlag is 1.                                                       ### DO NOT ADD ANYTHING BELOW THIS LINE ###### DO NOT DELETE THE EMPTY LINE BELOW ###


0 0
原创粉丝点击