0
votes

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?

1

1 Answers

3
votes

Color Space Converter is standard filter existing in all versions of Windows. It is safe to instantiate it by its unique CLSID of {1643E180-90F5-11CE-97D5-00AA0055595A} (AKA CLSID_Colour).