Capture Resolution DirectShow
I'm trying to view a live video feed from the Intensity Pro GFX Card with an HDMI Input at 1080i @ 59.94
To a Frame using DirectShow 2005.
I've Got my Filters set up
Magics Card -> Infinite Pin Tee -> Out1 & Out2
Out1 -> Sample Grabber -> Null Renderer
Out2 -> AVI Decompressor -> Video Mixing Renderer9 In Windowless Mode.
1) I'm getting a Black Video, and I believe it's due to the Resolution not being set.
How do I set the IBaseFilter for the Card or the iPIN card to the correct Resolution in c# ?
Current Filter Code is as follows.
IAMStreamConfig streamConfig = (IAMStreamConfig)VideoOutPin;
AMMediaType CorectvidFormat = new AMMediaType();
int piCount, piSize;
hr = streamConfig.GetNumberOfCapabilities(out piCount, out piSize);
ptr = Marshal.AllocCoTaskMem(piSize);
for (int i = 0; i < piCount; i++)
hr = streamConfig.GetStreamCaps(i, out searchmedia, ptr);
VideoInfoHeader v = new VideoInfoHeader();
if (i == 6)
CorectvidFormat = searchmedia;
hr = streamConfig.SetFormat(CorectvidFormat);
Doesn't select it directly, but I need the 6th iteration. and now I'v no longer got a black screen.