Rate This Document
Findability
Accuracy
Completeness
Readability

Verifying HW265Enc

Check whether HW265Enc has been integrated.

  1. Configure the dynamic library search path.

    After the decompression, the default path is ~/dependency/. Therefore, you need to manually configure the corresponding environment variable.

    export LD_LIBRARY_PATH=~/dependency/lib:$LD_LIBRARY_PATH
  2. Check whether HW265Enc has been integrated.
    ./bin/CloudHw265App -h

    Information similar to the following is displayed:

    H265 Encoder
    Syntax: Encoder.exe -c ConfigFile [options] 
    
    Options:
    
      -h                     List all options
    
      -v                     Get HW265 encoder version info.
      -i <string>            Input YUV4:2:0 file.
      -b <string>            Output Bitstream file.
      -c <string>            Configuration file.
      -preset <integer>            Set the encoding quality level in the configuration file, support 2,3,5,6, default 3.
      -frames <integer>      Number of frames to be encoded.
      -channel <integer>     Channel ID for encoder .
      -w <integer>           Image iWidth in pixels.
      -h <integer>           Image iHeight in pixels.
      -keyInt <integer>      Key interval.must between [0, 65535]. 0: Only first. 1:All IDR frames. 
      -rc <integer>          Rate control mode. 0:constQP.
      -br <integer>          Target Bitrate(kbps), [40kbps, 300000kbps]. 
      -crf <integer>         CRF mode control level, only effective in CRF mode. Support [0, 51], default 23. 
      -delay <integer>       Number of frames to be cached for time-domain analysis, [0, 150] 
      -sar_width <integer>   Sample Aspect Ratio, [0, 65535].
      -sar_height <integer>  Sample Aspect Ratio, [0, 65535].
      -qual_enh_mode <integer>         Quality enhance mode, [0, 4].
      -qual_enh_level <integer>        Quality enhance level, [1, 8].
      -qual_enh_thread_num <integer>   Quality enhance thread number.
      -pass <integer>     Multi-pass encoding
                                - 0: off.
                                - 1: first pass.
                                - 2: second pass.
      -fps_num <integer>      Numerator of the frame rate.
      -fps_den <integer>      Denominator of the frame rate.
      -FrmThreadNum <integer> Number of frame-level encoding threads, [1, 38].
      -WppThreadNum <integer> Number of WPP row-level encoding threads, [1, 20].
      -LookAheadThreads <integer> Number of lookahead pre-analysis threads, [1, 48].
      -timebase_num <integer> Numerator of the time base.
      -timebase_den <integer> Denominator of the time base.
      -adap_i <integer>   Insert I-frames on scene changes
                                - 0: off.
                                - 1: on.
      -bframes <integer>  Maximum consecutive B-frames, [0,7].
      -repeatHeaders <bool>  Whether repeat VPS SPS PPS SEI before each IDR. 1:no, 0:yes. default: 0.
      -hdrMode <bool>        hdr mode. 0: OFF, 1:hdr 10. default: 0.
      -max-cll <integer>      Max Content Light Level (nits), [0, 65535].
      -max-fall <integer>  Max Picture Average Light Level (nits), [0, 65535].
      -primaries-x0 <integer>         Display Primaries X0 Chromaticity Coordinate, [0, 65535].
      -primaries-y0 <integer>         Display Primaries Y0 Chromaticity Coordinate, [0, 65535].
      -primaries-x1 <integer>         Display Primaries X1 Chromaticity Coordinate, [0, 65535].
      -primaries-y1 <integer>         Display Primaries Y1 Chromaticity Coordinate, [0, 65535].
      -primaries-x2 <integer>         Display Primaries X2 Chromaticity Coordinate, [0, 65535].
      -primaries-y2 <integer>         Display Primaries Y2 Chromaticity Coordinate, [0, 65535].
      -white-x <integer>                White Point X Chromaticity Coordinate, [0, 65535].
      -white-y <integer>                White Point Y Chromaticity Coordinate, [0, 65535].
      -max-luminance <integer>  Max Display Mastering Luminance (nits), [0, 4294967295].
      -min-luminance <integer>  Min Display Mastering Luminance (nits), [0, 4294967295].
      -atc-sei <integer>  Preferred transfer characteristics. [0, 255].
  3. Check the HW265Enc version.
    ./bin/CloudHw265App -v

    Information similar to the following is displayed:

    Product Name: Kunpeng BoostKit
    Product Version: 26.1.RC1
    Component Name: BoostKit-boostmedia-hw265enc
    Component Version: 1.2.0
    Component AppendInfo: ffmpeg-7.0.1