NVENC 2pass / multipass

Discussion in 'CloneBD' started by tectpro, Jul 16, 2020.

  1. tectpro

    tectpro Translator (ms_MY)

    @Reto @Fabian

    Is it possible to add the new function 2pass / multipass to CloneBD?
    As in the new NVENC SDK API v10.0

    Code:
    The flag to set it is described in nvEncodeAPI.h:
    typedef enum _NV_ENC_PARAMS_RC_MODE
    {
    NV_ENC_PARAMS_RC_CONSTQP = 0x0, /< Constant QP mode */
    NV_ENC_PARAMS_RC_VBR = 0x1, /< Variable bitrate mode */
    NV_ENC_PARAMS_RC_CBR = 0x2, /< Constant bitrate mode */
    NV_ENC_PARAMS_RC_CBR_LOWDELAY_HQ = 0x8, /< Deprecated, use NV_ENC_PARAMS_RC_CBR + NV_ENC_TWO_PASS_QUARTER_RESOLUTION / NV_ENC_TWO_PASS_FULL_RESOLUTION +
    lowDelayKeyFrameScale=1 */
    NV_ENC_PARAMS_RC_CBR_HQ = 0x10, /< Deprecated, use NV_ENC_PARAMS_RC_CBR + NV_ENC_TWO_PASS_QUARTER_RESOLUTION / NV_ENC_TWO_PASS_FULL_RESOLUTION */
    NV_ENC_PARAMS_RC_VBR_HQ = 0x20 /< Deprecated, use NV_ENC_PARAMS_RC_VBR + NV_ENC_TWO_PASS_QUARTER_RESOLUTION / NV_ENC_TWO_PASS_FULL_RESOLUTION */
    } NV_ENC_PARAMS_RC_MODE;
    Link to info:
    https://docs.nvidia.com/video-techn...nvenc-video-encoder-api-prog-guide/index.html

    You may need to scroll down.
     
    Last edited: Jul 16, 2020
  2. Fabian

    Fabian Developer

    At the moment, we don't support 2-pass encoding. 2-pass encoding is a remnant of the past, in my opinion.

    Do you have a scenario in which you think it is useful?
     
  3. tectpro

    tectpro Translator (ms_MY)

    I was looking at dark scenes in animation/anime.
    Maybe it's just me but with the NVENC 2pass enabled the blockiness seems to be less in lower bitrates.
    I combine it with lookahead and some vpp filters but the 2pass still seems to get the picture a notch better.