Merge pull request #2043 from pkviet/nvenc-dbrfix
obs-ffmpeg: Set some parameters for dynamic bitrate in new nvenc
This commit is contained in:
commit
68bdadf812
@ -240,8 +240,11 @@ static bool nvenc_update(void *data, obs_data_t *settings)
|
||||
NV_ENC_RECONFIGURE_PARAMS params = {0};
|
||||
params.version = NV_ENC_RECONFIGURE_PARAMS_VER;
|
||||
params.reInitEncodeParams = enc->params;
|
||||
params.resetEncoder = 1;
|
||||
params.forceIDR = 1;
|
||||
|
||||
if (FAILED(nv.nvEncReconfigureEncoder(enc->session, ¶ms))) {
|
||||
if (NV_FAILED(nv.nvEncReconfigureEncoder(enc->session,
|
||||
¶ms))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user