Related products: Video Capture SDK .Net

Video capture to MPEG-2 using TV Tuner with Internal MPEG encoder

First, configure video capture device.

1. Get list of available MPEG-2 Hardware Encoders

foreach (string specialFilter in VideoCapture1.Special_Filters(VFSpecialFilterType.HardwareVideoEncoder))
{
  cbMPEGEncoder.Items.Add(specialFilter);
}

2. Select encoder

VideoCapture1.Video_CaptureDevice_InternalMPEGEncoder_Name = cbMPEGEncoder.Text;

3. Use DirectCapture MPEG for output

VideoCapture1.Output_Format = new VFDirectCaptureMPEGOutput();

4. Set video capture mode, file name and start.

VideoCapture1.Mode = VFVideoCaptureMode.VideoCapture;
VideoCapture1.Output_Filename = "c:\123.mpg";
VideoCapture1.Start();

VisioForge © 2006-2019

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