I am getting stuck in this situation where I get conflicting information: hr = pDecoder->lpVtbl->ProcessInput(pDecoder, dwInputStreamID, pSample, dwFlags); if (FAILED(hr) ... ) //ProcessInput went well, no warnings from here. hr = pDecoder->lpVtbl->GetOutputStatus(pDecoder, &dwFlags); if (SUCCEEDED(hr)) { if (dwFlags == MFT_OUTPUT_STATUS_SAMPLE_READY) { // I get to here, sample is ready, yay! [...] read more
Several months have passed since I finished my program which uses H.264 and AAC encoder MFT to convert video files into MP4. While it works well on Win7, when I ran it on Win8 (also tried on Win10 Build 10240) yesterday, I found something different form what I saw on [...] read more
I’m developing a media foundation-based h264 player to play h264 video and HE-AAC audio from my own custom media source. My prototype doesn't play video, only audio. How to fix that? Here's the problem. I open my URL. The framework creates and initializes my media source, which in turn creates [...] read more
I’ve implemented custom IMFMediaSink for use with sink writer. Works OK, receives h264 video samples. I don’t have any container, I’m consuming raw h264 video samples. I have not implemented custom writer, I'm using MFCreateSinkWriterFromMediaSink API to wrap my custom media sink into a framework-provided writer. I’m unable to implement [...] read more