浏览代码

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) <[email protected]>
Ryan Foster 2 年之前
父节点
当前提交
03b70f0672
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      plugins/obs-qsv11/QSV_Encoder_Internal.cpp

+ 0 - 5
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;
 		}