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

Related products
Video Capture SDK .Net

Sample code

1. Get a 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 = "123.mpg";
VideoCapture1.Start();

Required redists

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 - 2021