mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-07-17 16:36:49 +00:00
VNC-151 Adjust NVENC rate control mode
This commit is contained in:
parent
ec2019b035
commit
1a61ebfe3c
2 changed files with 2 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ namespace rfb {
|
|||
EncoderConfiguration::Range h264_quality_range = {0, 51};
|
||||
EncoderConfiguration::Range h264_allowed_range = {0, 50};
|
||||
EncoderConfiguration::Range av1_quality_range = {0, 63};
|
||||
EncoderConfiguration::Range av1_allowed_range = {0, 62};
|
||||
EncoderConfiguration::Range av1_allowed_range = {1, 62};
|
||||
|
||||
static inline std::array<EncoderConfiguration, static_cast<size_t>(KasmVideoEncoders::Encoder::unavailable) + 1>
|
||||
EncoderConfigurations = {
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ namespace rfb {
|
|||
|
||||
const auto config = EncoderConfiguration::get_configuration(encoder);
|
||||
|
||||
if (ffmpeg.av_opt_set_int(ctx->priv_data, "qmin", config.allowed_quality.min, 0) < 0) {
|
||||
if (ffmpeg.av_opt_set_int(ctx->priv_data, "qmin", current_params.quality, 0) < 0) {
|
||||
vlog.info("Cannot set qmin");
|
||||
}
|
||||
|
||||
|
|
@ -153,7 +153,6 @@ namespace rfb {
|
|||
vlog.info("Cannot set cq");
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// Disable temporal AQ
|
||||
if (ffmpeg.av_opt_set(ctx->priv_data, "temporal-aq", "1", 0) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue