Audio sample adding to a video using Sink Writer in Windows Media Foundation
问题 I can write a video file using images which I learned with this sample here. It uses IMFSample and IMFSinkWriter . Now I want to add audio to it. Suppose there is Audio.wma file and I want this audio to be written in that video file. But cannot figure out how to do that in this sample. Things like input & output type setup, IMFSample creation for audio buffer etc. It would be a great if someone could show me how to add audio to a video file using sink writer. 回答1: Media Foundation is great to