MediaSDK icon indicating copy to clipboard operation
MediaSDK copied to clipboard

when bitrate change, then call MFXVideoENCODE_Reset function lead to mosaic

Open shgitcode opened this issue 3 years ago • 0 comments

System information

  • CPU information: Intel(R) Core(TM) i5-7500 CPU @3.40GHz
  • GPU information: Intel(R) HD Graphics 630

Issue behavior

Describe the current behavior

Encode information: H264 BP 1920*1080@NV12

Detect "dynamic change of bitrate" feature: when mfxVideoParam.mfx.TargetKbps changed, I can call this function: MFXVideoENCODE_Reset(m_session, mfxVideoParam); and then call function MFXVideoENCODE_EncodeFrameAsync(m_session, ctrl, surface, bs, syncp) to encode video frame, I hope all encoded frames are very good, but sometimes some frames are blurred frame.

图片

Describe the expected behavior

Debug information

  • What's libva/libva-utils/gmmlib/media-driver/Media SDK version?
  • Could you confirm whether GPU hardware exist or not by ls /dev/dri?
  • Could you attach dmesg log if it's GPU hang by dmesg >dmesg.log 2>&1?
  • Could you provide vainfo log if possible by vainfo -a >vainfo.log 2>&1?
  • Could you provide strace log if possible by strace YOUR_CMD >strace.log 2>&1?
  • Could you provide libva trace log if possible? Run cmd export LIBVA_TRACE=/tmp/libva_trace.log first then execute the case.
  • Media SDK tracer output (https://github.com/Intel-Media-SDK/MediaSDK/blob/master/tools/tracer/README.md)?
  • Do you want to contribute a PR? (yes/no):

shgitcode avatar Jul 14 '22 05:07 shgitcode