How to start capture without stopping preview (separate capture) in Video Capture SDK .Net?

Related products
Video Capture SDK .Net

Sample code

You can start and stop video capture without stopping preview.

1. Enable separate capture

VideoCapture1.SeparateCapture_Enabled = cbSeparateCaptureEnabled.Checked;

2. Enable Video Capture mode (or Screen Capture, etc.)

VideoCapture1.Mode = VideoCaptureMode.VideoCapture;

3. Set output format settings

VideoCapture1.Output_Format = ...

4. Start video capture / preview (real video capture not started at this moment)

await VideoCapture1.StartAsync();

5. Start real video capture

await VideoCapture1.SeparateCapture_StartAsync();

6. Stop real video capture if needed

await VideoCapture1.SeparateCapture_StopAsync();

or change output file name on the fly

await VideoCapture1.SeparateCapture_ChangeFilenameOnTheFlyAsync("newfile.mp4");
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
abstract 2abstract 1abstract 3
logo
VisioForge © 2006 - 2022