Hi!
We have a problem. We need to set a custom bitrate using qsv and ffmpeg..
But the SDK forces the bitrate to the minimal value, even if we set BitrateLimit = MFX_CODINGOPTION_OFF as per the other forum posts:
https://software.intel.com/en-us/forums/intel-media-sdk/topic/404650 and other posts.
We set Birate equal to 100kbps before the initialization. Further, we write the part of structures after they are filled by MediaSdk(after the call of MFXVideoDECODE_Init)
We use ffmpeg 4.1 in the project. Mae be, we need to set some additional options? Can you help us?
We need to be able to override the minimum bitratre enforced by qsv to set our own forced bitrate. We have tried with CBR and VBR but it is not working like its supposed to. See below.
mfxExtCodingOption2
mfxExtBuffer Header;
mfxU16 IntRefType = 0
mfxU16 IntRefCycleSize = 0
mfxI16 IntRefQPDelta = 0
mfxU32 MaxFrameSize = 345600
mfxU32 MaxSliceSize = 0
mfxU16 BitrateLimit = 32
mfxU16 MBBRC = 32
mfxU16 ExtBRC = 32
mfxU16 LookAheadDepth = 0
mfxU16 Trellis = 0
mfxU16 RepeatPPS = 16
mfxU16 BRefType = 1
mfxU16 AdaptiveI = 32
mfxU16 AdaptiveB = 32
mfxU16 LookAheadDS = 2
mfxU16 NumMbPerSlice = 0
mfxU16 SkipFrame = 0
mfxU8 MinQPI = 0
mfxU8 MaxQPI = 0
mfxU8 MinQPP = 0
mfxU8 MaxQPP = 0
mfxU8 MinQPB = 0
mfxU8 MaxQPB = 0
mfxU16 FixedFrameRate = 16
mfxU16 DisableDeblockingIdc = 0
mfxU16 DisableVUI = 32
mfxU16 BufferingPeriodSEI = 0
mfxU16 EnableMAD = 0
mfxU16 UseRawRef = 32
mfxInfoMFX;
mfxU32 reserved[7];
mfxU16 LowPower = 32
mfxU16 BRCParamMultiplier = 1
mfxFrameInfo FrameInfo;
mfxU32 CodecId = 541283905
mfxU16 CodecProfile = 100
mfxU16 CodecLevel = 31
mfxU16 NumThread = 0
struct {
mfxU16 TargetUsage = 4
mfxU16 GopPicSize = 12
mfxU16 GopRefDist = 3
mfxU16 GopOptFlag = 1
mfxU16 IdrInterval = 0
mfxU16 RateControlMethod = 1
union {
mfxU16 InitialDelayInKB = 47
mfxU16 QPI = 47
mfxU16 Accuracy = 47
};
mfxU16 BufferSizeInKB = 94
union {
mfxU16 TargetKbps = 378
mfxU16 QPP = 378
mfxU16 ICQQuality = 378
};
union {
mfxU16 MaxKbps = 378
mfxU16 QPB = 378
mfxU16 Convergence = 378
};
......
};