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, the v9 version of codecs should be used. Use the dialog to set settings in UI or set settings in code.

Sample code

Create VFWMVOutput object for WMV capture

VFWMVOutput wmvOutput = new VFWMVOutput();

Set WMV settings using the settings dialog

WMVSettingsDialog wmvSettingsDialog = new WMVSettingsDialog(VideoCapture1.Core);

wmvSettingsDialog.WMA = false;


wmvSettingsDialog.SaveSettings(ref wmvOutput);

Set WMV settings using an external profile

You can create a 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();

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