使用直接放映抓取DVD中的图像 [英] Grabbing images from a DVD using direct show

查看:65
本文介绍了使用直接放映抓取DVD中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道使用DirectShow和C ++从DVD抓取图像的方法吗?使用DVD渲染器时不支持样本采集卡,如果我使用GetCurrentImage(它是VMR9无窗口控件的一部分),则它似乎无法正常工作。

Is anybody aware of a way of grabbing images from a DVD using DirectShow and C++? The sample grabber is not supported when using the DVD renderer and if I use GetCurrentImage, which is part of the VMR9 windoless control, it doesn't appear to work.

推荐答案

写一个就地视频过滤器,您可以用它来捕获样本并将其写入磁盘。

Write a trans-in-place video filter, which you can use to grab a sample and write it to disk.

当您检测到按键(用于屏幕截图),从过滤器的Transform()函数调用程序回调。

When you detect a keypress (for screenshot), call a callback into your program from the filters' Transform() function.

请参阅编写转换过滤器,以获取有关编写过滤器的更多信息。

Have a look at MSDN's guide on Writing Transform Filters for more information on writing filters.

您可以查看来自MSDN的EZRGB24过滤器示例,它演示了如何使用CTransformFilter

You could check out the EZRGB24 filter sample from MSDN, which demonstrates how to use the CTransformFilter

祝你好运!

这篇关于使用直接放映抓取DVD中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆