在vc中使用directshow停止视频预览++

发布于 2024-08-19 02:54:35 字数 169 浏览 4 评论 0原文

哈.. 只是我编写了用于向用户显示预览并捕获图像的应用程序。am 使用示例图形过滤器从 CAPTURE PIN 捕获图像。PREVIEW PIN 用户仅用于预览视频。它运行良好,但当我停止预览时,它会影响 CAPTURE。无法捕获

图像使用 CONTROL STREAM 停止预览..

请帮助

hai..
just i wrote application for show preview to user and capture image.am using sample grapher filter for capture image from CAPTURE PIN.PREVIEW PIN user for just preview video.its running nice but when i stop preview its affect the CAPTURE.cant capture image

am using CONTROL STREAM for stop preview..

pl kindly help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故笙诉离歌 2024-08-26 02:54:35

一种解决方案是使用 GMFBridge,它允许您将多个图表连接在一起并独立控制它们。这样您就可以拥有 3 个图表,其中一个将源连接到两个接收器:

Source -- (capture pin) --> capture sink
       -- (preview pin) --> preview sink

一个用于预览:

Preview source --> renderer

另一个用于捕获:

Capture source --> sample grabber

然后,您可以使用 GMFBridge 将捕获接收器连接到捕获源,将预览接收器连接到预览源。完成后,您可以启动或停止预览图形,而不会影响捕获图形,反之亦然。希望有帮助

One solution is to use GMFBridge, which allows you to connect several graphs together and control them independently. That way you can have 3 graphs, one which connects your source to two sinks:

Source -- (capture pin) --> capture sink
       -- (preview pin) --> preview sink

one for the preview:

Preview source --> renderer

and another for the capture:

Capture source --> sample grabber

Using GMFBridge you can then hook up the capture sink to the capture source and the preview sink to the preview source. Once that's done you can start or stop the preview graph without affecting the capture graph, and vice versa. Hope that helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文