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 (var specialFilter in VideoCapture1.Special_Filters(SpecialFilterType.HardwareVideoEncoder))

2. Select encoder

VideoCapture1.Video_CaptureDevice.InternalMPEGEncoder_Name = cbMPEGEncoder.Text;

3. Use DirectCapture MPEG for output

VideoCapture1.Output_Format = new DirectCaptureMPEGOutput();

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

VideoCapture1.Mode = VideoCaptureMode.VideoCapture;
VideoCapture1.Output_Filename = "123.mpg";
await VideoCapture1.StartAsync();

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