Skip to main content

Console/service applications

Products: Video Capture SDK .Net

Video rendering can be disabled to use SDK in a console or service application.

Sample code

private VideoCaptureCore videoCapture;

private async Task SampleMethod()
if (videoCapture == null)
videoCapture = new VideoCaptureCore();

videoCapture.Video_CaptureDevice = new VideoCaptureSource("camera name");
videoCapture.Video_CaptureDevice.Format_UseBest = true;

videoCapture.Audio_CaptureDevice = new AudioCaptureSource("mic name");
videoCapture.Audio_CaptureDevice.Format_UseBest = true;

videoCapture.Video_Renderer.VideoRenderer = VideoRendererMode.None;

videoCapture.Mode = VideoCaptureMode.VideoCapture;
videoCapture.Output_Format = new MP4Output();

videoCapture.Output_Filename = "output.mp4";

await videoCapture.StartAsync();
await videoCapture.StopAsync();

videoCapture = null;

Required redists

How to install the required redists or deploy them to the user's PC?

Visit our GitHub page to get more code samples.