title: how to use a directshow filter programmatically
body: <p>I am a newbie in development using Directshow.NET. I am trying to capture video using webcam. First I tried to build the graph using <code>GraphEdit</code> it's like.</p>
  
  <p>Source cam--->Color Space converter--->Sample Grabber--->ASF writer</p>
  
  <p>I know how to add source cam,sample grabber and ASF writer into graph programmatically in c#, but I don't get how to add <code>Color Space converter</code>. I tried adding by using <code>Type.GetTypeFromCLSID</code> and then <code>(IBaseFilter)Activator.CreateInstance(type)</code> it worked successfully, but is it safe to add filter by their CLSID because while adding sample grabber I used <code>ISampleGrabber sampGrabber = new SampleGrabber() as ISampleGrabber;</code> and after this configured sample grabber with and then added to graph.</p>
  
  <p>So is their any class or interface by which I can add <code>Color space converter</code>?</p>