我要评分
获取效率
正确性
完整性
易理解

Recommended Encoding Parameters

The following parameters are recommended for various purposes in CBR encoding (frame rate: $fps; bit rate: $bitrate) when the input file test.yuv is 1080p.

  • Low latency
    ./bin/CloudHw265App -c ~/dependency/lib/cfg/hw265_encoder.cfg -preset 6 -w 1920 -h 1080 -rc 0 -br $bitrate -pass 0 -fps_num $fps -fps_den 1 -timebase_den $fps -timebase_num 1 -keyInt $fps*2 -adap_i 0 -bframes 0 -delay 1 -FrmThreadNum 4 -WppThreadNum 4 -LookAheadThreads 3 -i test.yuv -b test.265
  • High definition
    ./bin/CloudHw265App -c ~/dependency/lib/cfg/hw265_encoder.cfg -preset 6 -w 1920 -h 1080 -rc 0 -br $bitrate -pass 0 -fps_num $fps -fps_den 1 -timebase_den $fps -timebase_num 1 -keyInt $fps*2 -adap_i 0 -bframes 3 -delay 4 -FrmThreadNum 4 -WppThreadNum 4 -LookAheadThreads 3 -i test.yuv -b test.265
  • Video on demand
    ./bin/CloudHw265App -c ~/dependency/lib/cfg/hw265_encoder.cfg -preset 2 -w 1920 -h 1080 -rc 0 -br $bitrate -pass 0 -fps_num $fps -fps_den 1 -timebase_den $fps -timebase_num 1 -keyInt $fps*2 -adap_i 1 -bframes 7 -delay 25 -FrmThreadNum 4 -WppThreadNum 4 -LookAheadThreads 3 -i test.yuv -b test.265
  • No special encoding requirements
    ./bin/CloudHw265App -c ~/dependency/lib/cfg/hw265_encoder.cfg -preset 6 -w 1920 -h 1080 -rc 0 -br $bitrate -pass 0 -fps_num $fps -fps_den 1 -timebase_den $fps -timebase_num 1 -keyInt $fps*2 -adap_i 0 -bframes 3 -delay 4 -FrmThreadNum 4 -WppThreadNum 4 -LookAheadThreads 3 -i test.yuv -b test.265
  • Enabling HDR10 (HDR Vivid not supported)
    ./bin/CloudHw265App_10bit -c ~/dependency/lib/cfg/hw265_encoder.cfg -preset 6 -w 1920 -h 1080 -rc 0 -br $bitrate -pass 0 -fps_num $fps -fps_den 1 -timebase_den $fps -timebase_num 1 -keyInt $fps*2 -adap_i 0 -bframes 3 -delay 4 -FrmThreadNum 4 -WppThreadNum 4 -LookAheadThreads 3 -hdrMode 1 -max-cll 1000 -max-fall 300 -primaries-x0 8500 -primaries-y0 39850 -primaries-x1 6550 -primaries-y1 2300 -primaries-x2 35400 -primaries-y2 14600 -white-x 15630 -white-y 16450 -max-luminance 10000000 -min-luminance 1 -atc-sei 2  -color_p 9  -transfer 16 -col_matrix 9 -fullrange 1 -i test.yuv -b test.265

    To encode videos based on the HDR10 standard, set the parameters based on Table 1.

    Table 1 Parameter description

    Parameter

    Description

    Fixed Standard Value

    -atc-sei 2

    transfer

    2

    -transfer 16

    Transfer characteristics (SMPTE2084)

    16

    -color_p 9

    Primary colors (BT.2020)

    9

    -col_matrix 9

    Matrix coefficient (BT2020NC)

    9

    -repeatHeaders 0

    Do not repeat header information.

    0