title: H.264 encoding using Windows media foundation
body: <p>I am developing an server application that stream high quality real-time video of a windows application.</p>
  
  <p>Looking at the advantages of H.264, I am planning to use this format for video stream. I know there are many third party codecs, but can I use windows media foundation API to encode captured frames to H.264 stream instead?</p>
  
  <p>That would be great if you can guide me to a sample app for this.</p>
  
  <p>I am planning to use C++ for my server application.</p>
  
  <p>Any advice will be appreciated!</p>