To capture video in WMV format using Video Capture SDK .Net you need to configure video output format using VFWMVOutput. Windows Media Video supports several codecs for video and audio streams. Usually v9 version of codecs should be used. Use dialog to set settings in UI or set settings in code.
VFWMVOutput wmvOutput = new VFWMVOutput();
WMVSettingsDialog wmvSettingsDialog = new WMVSettingsDialog(VideoCapture1.Core); wmvSettingsDialog.WMA = false; wmvSettingsDialog.ShowDialog(this); wmvSettingsDialog.SaveSettings(ref wmvOutput);
wmvOutput.Mode = VFWMVMode.ExternalProfile; wmvOutput.External_Profile_FileName = edWMVProfile.Text;
You can enumerate video and audio codecs available in your OS, set them for WMV output, set profile, quality and other settings.
TODO: Code sample
VideoCapture1.Output_Format = wmvOutput;
VideoCapture1.Mode = VFVideoCaptureMode.VideoCapture; VideoCapture1.Output_Filename = "123.wmv";
await VideoCapture1.StartAsync();