title: Grabber for splitting in UWP
body: <p>I need your advice. I'd like to develop the app for audio/video splitting  using Metro interface.</p>
  
  <p>Usually I use DirectShow for it using  the follow schema:  create a grabber, add it to DS graph,  capture by it the audio/video streams and pass them to my AVstream drivers  for splitting.  But in new program I want to use  Media Foundation and  insert it into UWP.</p>
  
  <p>How  I see my new app.  It must have Metro interface for common control:  choice of sources, adding parameters, changing modes and etc.  I'd like to use MediaCapture  class for  capture of streams  and rendering them  too.   Here I don't see any problems, MSDN has many samples for it.  But I have no ideas how to insert a grabber between source and render.</p>
  
  <p>Which operations a grabber will do:</p>
  
  <ol>
  <li>Receive input stream from MediaCapture.</li>
  <li>Stream converting : YUV -> RGB, adding effects and etc.</li>
  <li>Send output stream for rendering (MediaCapture) and to my AVstream driver for splitting with any apps (Skype, Adobe Flash Player, Edge, ....).</li>
  </ol>
  
  <p>How to make a grabber. In MSDN I found three ways:</p>
  
  <ol>
  <li>Sample Grabber Sink (<a href="https://msdn.microsoft.com/en-us/library/windows/desktop/hh184779(v=vs.85).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/windows/desktop/hh184779(v=vs.85).aspx</a>). No problem to receive/control/send stream in MF dll. But I don't know how to link that dll with  MediaCapture?</li>
  <li>Source Reader (<a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd940436(v=vs.85).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/windows/desktop/dd940436(v=vs.85).aspx</a>). The same problems, plus the Source Reader doesn't work for playback.</li>
  <li>Custom MFT?  Any case MediaCapture allows to connect to MFT by AddEffectAsync().</li>
  </ol>
  
  <p>My environment: MS Windows 10, MS Visual Studio Community 2015. </p>
  
  <p>Thank you for any ideas.</p>