|
@@ -458,12 +458,12 @@ static bool init_encoder(struct nvenc_data *enc, obs_data_t *settings)
|
|
|
|
|
|
} else if (astrcmpi(rc, "vbr") != 0) { /* CBR by default */
|
|
} else if (astrcmpi(rc, "vbr") != 0) { /* CBR by default */
|
|
h264_config->outputBufferingPeriodSEI = 1;
|
|
h264_config->outputBufferingPeriodSEI = 1;
|
|
- h264_config->outputPictureTimingSEI = 1;
|
|
|
|
config->rcParams.rateControlMode = twopass
|
|
config->rcParams.rateControlMode = twopass
|
|
? NV_ENC_PARAMS_RC_2_PASS_QUALITY
|
|
? NV_ENC_PARAMS_RC_2_PASS_QUALITY
|
|
: NV_ENC_PARAMS_RC_CBR;
|
|
: NV_ENC_PARAMS_RC_CBR;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ h264_config->outputPictureTimingSEI = 1;
|
|
config->rcParams.averageBitRate = bitrate * 1000;
|
|
config->rcParams.averageBitRate = bitrate * 1000;
|
|
config->rcParams.maxBitRate = vbr ? max_bitrate * 1000 : bitrate * 1000;
|
|
config->rcParams.maxBitRate = vbr ? max_bitrate * 1000 : bitrate * 1000;
|
|
|
|
|