Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

HEVC Decoder MFT Sample

$
0
0

I am trying to use H265 HEVC Video decoder with MFT as described here:

https://msdn.microsoft.com/en-us/library/windows/desktop/mt218785(v=vs.85).aspx

Here is the code to create the decoder:

MFStartup(MF_VERSION, MFSTARTUP_FULL);

CoCreateInstance(__uuidof(CMSH264DecoderMFT), NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(m_pDecoder))

MFCreateMediaType(&m_pInputStreamType);

m_pInputStreamType->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Video);

m_pInputStreamType->SetGUID(MF_MT_SUBTYPE, MFVideoFormat_HEVC_ES);

rc = m_pDecoder->SetInputType(0, m_pInputStreamType, 0);

It fails at the last statement, rc = 0xc00d36b4 : The data specified for the media type is invalid, inconsistent, or not supported by this object.

I am using Window10 professional. Is there a sample to show how the decoding could be done and output to a raw buffer?


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>