mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 12:49:40 +08:00
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) <flaeri@otterbro.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user