mft

GOP setting is not honored by Intel H264 hardware MFT

岁酱吖の 提交于 2019-12-09 12:22:05
问题 Problem statement: Intel hardware MFT is not honoring the GOP setting, resulting in more bandwidth consumption in realtime applications. The same code works fine on Nvidia hardware MFT. Background: I'm trying to encode NV12 samples captured through DesktopDuplication APIs to video stream using MediaFoundation H264 hardware encoder on Windows10 machine, stream and render the same in real-time over LAN. Initially, I was facing too much buffering at the encoder as the encoder was buffering up to

How to create IMFSample for WindowsMediaFoundation H.264 encoder MFT

你。 提交于 2019-12-08 05:13:48
问题 I'm learning to use the H.264 encoder in Windows Media Foundation. What I currently have are media samples in YUV420p format, so that's buffers containing YYYYYYYYUUVV data. Since the H.264 encoder MFT requires input in form of IMFSample, I'm not sure how to convert the data in buffer into IMFSample. May I just do like this: IMFMediaBuffer *pBuffer = NULL; MFCreateMemoryBuffer(cbSize, &pBuffer); BYTE *pData = NULL; pBuffer->Lock(&pData, NULL, NULL); memcpy(pData, bufferIhaveinYYYYUV format,

How to create IMFSample for WindowsMediaFoundation H.264 encoder MFT

折月煮酒 提交于 2019-12-06 17:56:25
I'm learning to use the H.264 encoder in Windows Media Foundation. What I currently have are media samples in YUV420p format, so that's buffers containing YYYYYYYYUUVV data. Since the H.264 encoder MFT requires input in form of IMFSample, I'm not sure how to convert the data in buffer into IMFSample. May I just do like this: IMFMediaBuffer *pBuffer = NULL; MFCreateMemoryBuffer(cbSize, &pBuffer); BYTE *pData = NULL; pBuffer->Lock(&pData, NULL, NULL); memcpy(pData, bufferIhaveinYYYYUV format, buffer size); // is it correct? pBuffer->Unlock(); IMFSample *pSample = NULL; MFCreateSample(&pSample);

Multiple input MFT in Microsoft Media Foundation

独自空忆成欢 提交于 2019-12-02 02:05:47
问题 I'm struggling with mixing two audio streams into single output stream. MFNode has an AudioMixerMFT but TopoEdit crashes when I try to build a topology like this & execute it: Note: I tried TopoEdit that comes with Windows SDK 7.1 & also the one with few fixes by the author of "Developing Microsoft® Media Foundation Applications" I thought it could be some issue with TopoEdit so I built the Topology in code (by modifying the code from Ch#9 of "Developing Microsoft® Media Foundation