Related products: Video Capture SDK .Net

Usage without window in Video Capture SDK .Net

Sample code:

private VideoCapture videoCapture;

private void SampleMethod()
{
  if (videoCapture == null)
  {
    videoCapture = new VideoCapture();

    videoCapture.Video_CaptureDevice = "camera name";
    videoCapture.Video_CaptureFormat_UseBest = true;

    videoCapture.Audio_CaptureDevice = "mic name";
    videoCapture.Audio_CaptureFormat_UseBest = true;
    videoCapture.Video_Renderer.Video_Renderer = VFVideoRenderer.None;

    videoCapture.Mode = VFVideoCaptureMode.VideoCapture;
    videoCapture.Output_Format = new VFMP4v8v10Output();

    videoCapture.Output_Filename = "c:\\vf\\output.mp4";

    videoCapture.Start();
  }
  else
  {
    videoCapture.Stop();
    videoCapture.Dispose();
    videoCapture = null;
  }
}

VisioForge © 2006-2020

  • GitHub-Mark-64px
  • Twitter Социальные Иконка
  • VisioForge Facebook page
  • YouTube channel