When it comes to vendor specific SDK for hardware assisted video encoding, Intel Media SDK is perhaps the oldest one among current vendors: Intel, NVIDIA, AMD. And also surprisingly the worst one. All three vendors are offering their SDKs for really close capabilities, however the kits are designed and structured differently. If NVIDIA and AMD are close in terms of convenience to developer, Intel Media SDK is apparently an outsider here.
Debug output to facilitate debugging and troubleshooting? No. Working with this and having memories of AMF SDK
AMFTrace evetnually makes you cry.
Trying to initialize a session against non-Intel GPU, which is apparently not going to work? No failure until you hit something weird later in an unrelated call. What the hell is
MFX_IMPL_HARDWARE2 in first place? In which exactly enumeration this device is second or otherwise how do I understand what device this is exactly when I select it by Intel’s ordinal number?
MFX_IMPL_HARDWAREn flags are not defined to be sequential. Documentation typo references non-exiting
MFX_IMPL_HARDWARE1 flag. NVIDIA and AMD are clearly offering this in a more convenient way.
Forgot to attach an allocator? You get a meaningless failure code trying to initialize encoding context.
Trying to identify maximal supported resolution for encoder? Oopsy.
How do I identify if runtime/driver is capable to implicitly handle ARGB32 (RGB4) to NV12 conversion? No way without actual attempt to initialize context. In which runtime version the capability was introduced? Not documented.
MFXVideoENCODE_EncodeFrameAsync requires that lifetime of
mfxFrameSurface1 argument is extended to the completion of asynchronous call… Things like these just have to be documented! One would hate to find this out while troubleshooting unstable operation of the API.
The hardware encoders are out there for years, and decent ones. It is surprising that the SDK is not equally well and friendly.