-
How to use DeckLink Video Capture directShow Filter?
Good day.
Short version of my question is: Where can I find examples of code for “DeckLink Video Capture Filter”?
And long one:
I build simple application in C# what use directShow.At first I created prototype of my “graph” in GraphEdit application and it looks Ok and works:). After this I try to do the same in code, but the code not works for the filter:
//——-
type = Type.GetTypeFromCLSID(new Guid(“44A8B5C7-13B6-4211-BD40-35B629D9E6DF”));
IBaseFilter captureDevice = (DirectShowLib.IBaseFilter)Activator.CreateInstance(type);
graphBuilder.AddFilter(captureDevice, “captureDevice”);
IPin sourceOut = null;
captureDevice.FindPin(“Capture”, out sourceOut);
// the pin is always null 🙁I know, the can not work correctly (the capture card should be initialised and recieve parameters like a videoformat etc.), but in “GraphEdit” it works.
In “DeckLink DirectShow Documentation” defined what interfaces has the filter, but not “how to create the Object and set parameters”
Also I tried to do it using DeckLink SDK. In this case, it easy to control the card, but I can’t have access to directShow interfaces(like IBaseFilter) and to add the com-object to my graph.
So, if you have example or can explain “What i did wrong?” – I will happy.