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 GraphEdit
it's like.
Source cam--->Color Space converter--->Sample Grabber--->ASF writer
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 Color Space converter
. I tried adding by using Type.GetTypeFromCLSID
and then (IBaseFilter)Activator.CreateInstance(type)
it worked successfully, but is it safe to add filter by their CLSID because while adding sample grabber I used ISampleGrabber sampGrabber = new SampleGrabber() as ISampleGrabber;
and after this configured sample grabber with and then added to graph.
So is their any class or interface by which I can add Color space converter
?