From 03b70f06722b1d193c6cff852247f0da83e6dbb9 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Fri, 15 Sep 2023 15:05:27 -0400 Subject: [PATCH] obs-qsv11: Fix unusual CBR bitrate issues For some reason, using MFX_SCENARIO_GAME_STREAMING causes the keyframe quants to be higher than other frames, which is not desirable. In turn, this causes bitrate to be higher than the target bitrate for a sustained period of time after each keyframe. Not setting the scenario removes this behavior and returns CBR to somewhat reasonable levels of consistency. Co-authored by: Chris (Flaeri) --- plugins/obs-qsv11/QSV_Encoder_Internal.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/obs-qsv11/QSV_Encoder_Internal.cpp b/plugins/obs-qsv11/QSV_Encoder_Internal.cpp index 077e093c2..c9a091d75 100644 --- a/plugins/obs-qsv11/QSV_Encoder_Internal.cpp +++ b/plugins/obs-qsv11/QSV_Encoder_Internal.cpp @@ -345,15 +345,10 @@ mfxStatus QSV_Encoder_Internal::InitParams(qsv_param_t *pParams, if (pParams->nLADEPTH && m_mfxEncParams.mfx.LowPower == MFX_CODINGOPTION_ON) { m_co2.LookAheadDepth = pParams->nLADEPTH; - m_co3.ScenarioInfo = MFX_SCENARIO_GAME_STREAMING; } // CQM to follow UI setting if (pParams->bCQM && !pParams->bRepeatHeaders) { m_co3.AdaptiveCQM = MFX_CODINGOPTION_ON; - if (m_co3.ScenarioInfo != MFX_SCENARIO_GAME_STREAMING) { - m_co3.ScenarioInfo = - MFX_SCENARIO_GAME_STREAMING; - } } else { m_co3.AdaptiveCQM = MFX_CODINGOPTION_OFF; }