DirectShow - receiving video frames

I am creating a video capture application on Windows and use DirectShow to capture. As each frame comes in, I want to capture it as an unprocessed RGB bitmap into the buffer, after which my code will do whatever processing I need.

I was looking for patterns that are similar to what I want to do, and wherever I look online, people recommend using IMediaDet and / or ISampleGrabber for frame shots. Unfortunately, both of them are outdated and are not even in the latest version of the Windows SDK.

What is the best (modern) way to do frame-by-frame capture in DirectShow? If not, is there another library I should use that will give me frame by frame?

+6
source share
1 answer

Sample Grabber was deprecated a few years ago, which was a few years after the development of DirectShow actually stopped. That is, use Sample Grabber as you read as the suggested method, and it will work just fine for you.

The only thing you need additionally is to copy the definitions into your source code, see details:

+5
source

Source: https://habr.com/ru/post/900952/


All Articles