intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
1.01k stars 346 forks source link

[Bug]: i7-1165G7 dynamic change bitrate issue #1880

Open okfujian opened 4 days ago

okfujian commented 4 days ago

Which component impacted?

Encode

Is it regression? Good in old configuration?

No, this issue exist a long time

What happened?

when I use " Intel MediaSDK 2022Q3 Release - 22.5.4" at 11th Gen Intel(R) Core(TM) i7-1165G7. when I change bitrate from 60Mbps -> 90Mbps (BRCParamMultiplier will change from 1 to 2). m_pmfxENC->Reset faild, ret=-14 or ret=5

Q1:  Is there any way to avoid this error(ret=-14/ret = 5)?
Q2:  when I set BufferSizeInKB to 3600, InitialDelayInKB is 1800, If InitialDelayInKB is set too large, will it cause the decoder to wait for a long time before decoding?

video format is 1080P5994,   I set  BufferSizeInKB = 3600  when init encoder,
 when use m_pmfxENC->Reset, I have changed BRCParamMultiplier/TargetKbps/MaxKbps/BufferSizeInKB  

m_mfxEncParams.mfx.BRCParamMultiplier = brc_param_multi; m_mfxEncParams.mfx.TargetKbps = m_nBitRate/brc_param_multi; m_mfxEncParams.mfx.MaxKbps = m_mfxEncParams.mfx.TargetKbps; if(brc_param_multi > 1){ m_mfxEncParams.mfx.BufferSizeInKB = 3600/brc_param_multi; }

What's the usage scenario when you are seeing the problem?

Others

What impacted?

No response

Debug Information

No response

Do you want to contribute a patch to fix the issue?

None