'Creating a IMFMediaSource instance with a video file

Currently, I am trying to create a virtual camera with the Media Foundation API. However, creating a virtual camera requires a IMFMediaSource, which is used to provide video source to the camera.

It would be appreciated if anyone can help me to answer the following questions

  • How to create a media source from a given video path? A code example or a step by step tutorial could really help me to understand how can I use the API.
  • How does the video "goes into" the IMFMediaSource? Is it loaded into the memory?
  • How is the video processed before getting outputed as a stream?


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source