VNC-151 Adjust NVENC rate control mode

This commit is contained in:
El 2026-03-30 11:10:05 +00:00
parent a19ca5aa85
commit 49a40b0432
No known key found for this signature in database
GPG key ID: EB3F4C9EA29CDE59

View file

@ -139,6 +139,16 @@ namespace rfb {
vlog.info("Cannot set delay to 0");
}
const auto config = EncoderConfiguration::get_configuration(encoder);
if (ffmpeg.av_opt_set_int(ctx->priv_data, "qmin", config.allowed_quality.min, 0) < 0) {
vlog.info("Cannot set qmin");
}
if (ffmpeg.av_opt_set_int(ctx->priv_data, "qmax", config.allowed_quality.max, 0) < 0) {
vlog.info("Cannot set qmax");
}
if (ffmpeg.av_opt_set_int(ctx->priv_data, "cq", current_params.quality, 0) < 0) {
vlog.info("Cannot set cq");
}