Aleksandar Vucetic
Aleksandar Vucetic

Reputation: 14953

DirectShow ISampleGrabber which accepts VIDEOINFOHEADER2

As stated in http://msdn.microsoft.com/en-us/library/dd377544(VS.85).aspx, ISampleGrabber accepts only videos with VIDEOINFOHEADER structure, but not VIDEOINFOHEADER2. Is there any alternative to ISampleGrabber, or any example code for a filter that would do similar job? I have tried with IBasicVide, but it renders video on the screen which I would like to avoid. Thanks.

Upvotes: 1

Views: 952

Answers (1)

Christopher
Christopher

Reputation: 8982

You have to write your own filter for this goal.

There is already a sample in the SDK. See the dump filter sample. If the renderer sample is too complex, use a transform filter and insert a NullRenderer behind this filter.

Upvotes: 2

Related Questions