在vc中使用directshow停止视频预览++
哈.. 只是我编写了用于向用户显示预览并捕获图像的应用程序。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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种解决方案是使用 GMFBridge,它允许您将多个图表连接在一起并独立控制它们。这样您就可以拥有 3 个图表,其中一个将源连接到两个接收器:
一个用于预览:
另一个用于捕获:
然后,您可以使用 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:
one for the preview:
and another for the capture:
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