Directshow录制/预览问题 [英] Directshow recording/preview problem
问题描述
我有一个项目,需要从网络摄像头使用DirectShow录制视频,但是我需要能够在继续运行预览的同时停止录制。
I have a project where I need to record a video using DirectShow from a webcam, but I need to be able to stop recording while the preview continues to run.
我正在使用WPFMediaKit
I am using WPFMediaKit
http://wpfmediakit.codeplex。 com /
问题是,当我录制视频时,暂停功能也会暂停应用程序中的预览窗格
The problem is that when I record a video the pause function also pauses the preview pane in the application
我是DirectShow的新手,关于如何解决此问题或解决方案的任何建议
I am new to DirectShow, any suggestions how is can address this issue or a solution
非常感谢。
PS我使用C#& WPF
P.S I use C# & WPF
推荐答案
我不了解WPFMediaKit,但基本上,当您想在保持预览的同时开始/停止录制时,您将需要两个图,以及在这些图之间进行连接的东西。在
I don't know about the WPFMediaKit, but basically when you want to start/stop recording while keeping the preview, you will need two graphs, and something to connect between those graphs. Take a look at the pdf document at the GMFBridge page.
这篇关于Directshow录制/预览问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!