Related products: Video Capture SDK .Net
Screen capture to AVI file in C# (video tutorial with code) in Video Capture SDK .Net
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using VisioForge.Types.OutputFormat; namespace SampleCapture { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btStart_Click(object sender, EventArgs e) { videoCapture1.Screen_Capture_Source = new VisioForge.Types.Sources.ScreenCaptureSourceSettings() { FullScreen = true }; videoCapture1.Audio_RecordAudio = videoCapture1.Audio_PlayAudio = false; videoCapture1.Output_Filename = Environment.GetFolderPath(Environment.SpecialFolder.MyVideos) + "\\output.avi"; videoCapture1.Output_Format = new VFAVIOutput(); // Default AVI output with MJPEG for video and PCM for audio videoCapture1.Mode = VisioForge.Types.VFVideoCaptureMode.ScreenCapture; videoCapture1.Start(); } private void btStop_Click(object sender, EventArgs e) { videoCapture1.Stop(); } } }