mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-07-18 00:45:51 +00:00
VNC-151 Adjust NVENC rate control mode
This commit is contained in:
parent
a19ca5aa85
commit
49a40b0432
1 changed files with 10 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue