Video Capture SDK .Net usage without window

Related 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

Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
abstract 2abstract 1abstract 3
VisioForge © 2006 - 2022