开发者

Is it possible to control 2 DirectShowNet streams from one input?

I am using DirectShow.Net in C#. I made a player that will stream video from a usb device to a video screen and to an avi file at the same time.

I want to have a button so the video will preview on the screen but not capture until a button is pressed. currently to do this, i have to redo the graph and add in the capture filter renderstream.

is it p开发者_C百科ossible to create 2 different graphs off of 1 input? so I would have my usb camera that is displaying to a video window and then when i press a button i can create a second graph that will save the video from the camera to a file while its still playing on screen?


As mentioned by @Geraint, you can use GMFBridge with DirectShow.Net. DirectShow.Net website states:

Samples\Misc\GMFPreview -----------------------
A sample showing how to use Geraint's indispensible GMFBridge tool to allow part of a graph to be stopped while another part keeps running. This is useful to allow preview windows to keep running while you start/stop capturing to disk.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜