title: Writing a Direct Show Source Filter
body: <p>I  should have to write a Direct Show Filter which </p>
  
  <ul>
  <li><p>takes input(video,audio) from live source.</p></li>
  <li><p>And it should give the data(video,audio : which are encoded) to a decoder Filter</p></li>
  </ul>
  
  <blockquote>
    <p>MyCustomDirectShowSourceFilter --->
    Decoder</p>
  </blockquote>
  
  <p>Any real working examples which i can build my own source filter and any suggestion for implementation?</p>
  
  <p>Best Wishes</p>
  
  <p>Update:</p>
  
  <p>Basically i want a source  filter which takes streams from network and let to handle the parsing and decoding of video stream  by another filter.</p>
  
  <p>So when i modify Microsoft sample Push Source Filter and connect to a decoder it does not call FilllBuffer method. The graph simply does not work. I need a source filter example which the output is connected to a decoder not a video renderer or Mux.</p>