Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3044 Discussions

[SOLVED] Windows Media Foundation, IMFTransform::SetOutputType returns unclear E_FAIL


Dear reader,

I wanted to point out that when setting a framerate that is not supported (or maybe even invalid) using MFSetAttributeRatio(input_media_type, MF_MT_FRAME_RATE, fps_num, fps_den) calling IMFTransform::SetOutputType() returns an E_FAIL error, even when the MFSetAttributeRatio() returns true. 

I would expect that the intel MFT would return an error when calling MFSetAttributeRatio for MF_MT_FRAME_RATE when using invalid / unsupported values; figuring out what was casing the E_FAIL returned by SetOutputType took quite some time and was found with a lucky shot.

Kind regards,


0 Kudos
0 Replies