How to start capture without stopping the preview (separate capture)?
Products: Video Capture SDK .Net
You can start and stop video capture without stopping the preview. This is called "separate capture". You can use it for video capture, screen capture, and other capture modes.
Sample code
Enable separate capture.
VideoCapture1.SeparateCapture_Enabled = cbSeparateCaptureEnabled.Checked;
Enable Video Capture mode (or Screen Capture, etc.).
VideoCapture1.Mode = VideoCaptureMode.VideoCapture;
Set output format settings.
VideoCapture1.Output_Format = ...
Start video capture/preview (real video capture not started at this moment).
await VideoCapture1.StartAsync();
Start actual video capture.
await VideoCapture1.SeparateCapture_StartAsync();
Stop actual video capture if needed
await VideoCapture1.SeparateCapture_StopAsync();
or change the output file name on the fly.
await VideoCapture1.SeparateCapture_ChangeFilenameOnTheFlyAsync("newfile.mp4");
Required redists
Visit our GitHub page to get more code samples.