I using directshow programming under C++, open the program to achieve the preview screen,and move the camera device to the correct position, then I start record video. These functions can be realized. but the problem is program switch preview from video record, will restart a camera,so I would like to asking, directshow there is no way to directly from preview switching to record
Asked
Active
Viewed 77 times
1 Answers
0
Camera filter changes state with the filter graph, and you cannot keep the camera running while doing rebuilding of the pipeline, closing files etc.
A typical solution is a two graph design. Upstream graph is doing capture, downstream graph is doing preview or preview with recording or just recording. You keep first graph running and you stop/change second graph. There is some mechanism to connect the graph and transfer the captured frame between the graphs.
The most popular solution which is used by those who look for out of the box solution to the problem is GDCL Bridge.
See also: