Windows Media Foundation recording audio

I apologize for the late response, and I hope you can still find this valuable. I recently completed a project similar to yours (recording webcam video along with a selected microphone to a single video file with audio). The key is to creating an aggregate media source. // http://msdn.microsoft.com/en-us/library/windows/desktop/dd388085(v=vs.85).aspx HRESULT CreateAggregateMediaSource(IMFMediaSource *videoSource, IMFMediaSource *audioSource, IMFMediaSource … Read more

Getting green screen in ffplay: Streaming desktop (DirectX surface) as H264 video over RTP stream using Live555

It’s harder than it seems. If you want to use the encoder as you’re doing, by calling IMFTransform interface directly, you have to convert RGB frames to NV12. If you want good performance, you should do it on GPU. Possible to do with pixel shaders, render 2 frames, full size one into DXGI_FORMAT_R8_UNORM render target … Read more