DirectShow的 - 获取的视频帧 [英] DirectShow - Getting video frames
问题描述
我要创建一个Windows的视频采集应用程序,并正在使用DirectShow捕获。由于每一帧进来,我要抓住它作为原始RGB位图到一个缓冲区,此时我的code将尽我所需要的任何处理。
I'm creating a Windows video capture application and am using DirectShow for capture. As each frame comes in, I want to grab it as a raw RGB bitmap into a buffer, at which point my code will do whatever processing I need.
我一直在寻找类似什么我想要做的样品,我到处看看网上,人们推荐使用了IMediaDet和/或<一个href=\"http://msdn.microsoft.com/en-us/library/windows/desktop/dd377544%28v=vs.85%29.aspx\">ISampleGrabber接口做帧一帧捕获。不幸的是,两者都德precated和甚至没有在Windows SDK。
I've been searching for samples similar to what I want to do, and everywhere I look online, people recommend using either the IMediaDet and/or the ISampleGrabber interface to do frame-by-frame capture. Unfortunately, both are deprecated and aren't even in the newest version of the Windows SDK.
什么是最好的(现代)的方式做帧一帧捕获DirectShow中?如果没有,是否有不同的库,我应该使用,这将使我一帧一帧捕捉?
What is the best (modern) way to do frame-by-frame capture in DirectShow? If there is none, is there a different library I should use that will give me frame-by-frame capture?
推荐答案
样品采集卡
是德precated在几年前,这是DirectShow的几年后实际上发展停止。也就是说,使用样品采集卡
当你阅读的建议方法,它会为你工作太棒了。
Sample Grabber
was deprecated a few years ago, which was a few years after DirectShow development actually stopped. That is, use Sample Grabber
as you read as suggested method and it is going to work great for you.
您将另外需要的唯一事情是复制定义,诠释你的源$ C $ C,详情请参阅:
The only thing you will additionally need is to copy definitions int your source code, see details:
- Alternative for ISampleGrabber
- Sample Grabber replacement
- ISampleGrabber deprecated: where can I find alternatives?
这篇关于DirectShow的 - 获取的视频帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!