Directshow Preview Only and Capture & Preview with a single Graph

三世轮回 提交于 2019-11-29 17:19:38

You can try to switch between two different graphs:

1) First simple graph, than user just watch

2) Second complex graph, than user watch and record simultaneously

Filter graph can change state as a whole, you cannot run its part individually and separately.

The easiest solution is to build preview graph separately, and when you need to start recording, stop/close preview graph and rebuild new capture graph. This certainly would involve a certain delay in response to "start recording" command.

Another option is to use multiple graphs, share data between the two, in code or using "bridging", and start/stop graphs separately.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!