Video capture to WMV using Video Capture SDK .Net

Related products
Video Capture SDK .Net

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.

Create VFWMVOutput object for WMV capture

VFWMVOutput wmvOutput = new VFWMVOutput();

Set WMV settings using settings dialog

WMVSettingsDialog wmvSettingsDialog = new WMVSettingsDialog(VideoCapture1.Core);

wmvSettingsDialog.WMA = false;


wmvSettingsDialog.SaveSettings(ref wmvOutput);

Set WMV settings using external profile

You can create custom profile using Windows Media Profile Editor from WMF SDK by Microsoft.
wmvOutput.Mode = VFWMVMode.ExternalProfile;

wmvOutput.External_Profile_FileName = edWMVProfile.Text;

Set custom output WMV mode

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

Apply WMV capture settings

1. Set WMV format for output

VideoCapture1.Output_Format = wmvOutput;

2. Set video capture mode and file name (be sure that you have write access rights)

VideoCapture1.Mode = VFVideoCaptureMode.VideoCapture;

VideoCapture1.Output_Filename = "123.wmv";

3. Start capture (sync or async)

await VideoCapture1.StartAsync();
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
VisioForge © 2006 - 2021