VNC-151 Adjust NVENC rate control mode

This commit is contained in:
El 2026-03-25 09:59:08 +00:00
parent cce3ebc75e
commit 2d8a3cdb3f
No known key found for this signature in database
GPG key ID: EB3F4C9EA29CDE59

View file

@ -103,7 +103,7 @@ namespace rfb {
if constexpr (HWDeviceType == AV_HWDEVICE_TYPE_CUDA && AVPixFmt == AV_PIX_FMT_CUDA) {
// NVENC low-latency settings
// Rate control mode: Constant Bit Rate (CBR)
if (ffmpeg.av_opt_set(ctx->priv_data, "rc", "vbr_hq", 0) < 0) {
if (ffmpeg.av_opt_set(ctx->priv_data, "rc", "vbr", 0) < 0) {
vlog.info("Cannot set rc to cbr");
}