Home   |   Submit request   |   News   |   Knowledgebase   |   Downloads   |   Forums   |   Login
Knowledgebase
Home »

VideoCapX

Search
 

Capturing video to WMV / ASF files

01/31/2008

Rating: (1 votes)

When capturing to WMV, you must specify a WM video profile to use by setting ProfileIndex or ProfileData property before calling StartCapture.

A profile describes the configuration of an WMV file. The stream information in a profile contains the bit rate, buffer window, and media properties for the stream. The stream information for audio and video describes exactly how the media is configured in the file, including which codec (if any) will be used to compress the data.

If WM profile has an audio stream, you have to have CaptureAudio=True set or you'll get an error in StartCapture call.

To use a custom profile, set ProfileData property.

Use GetProfileCount, GetProfileName and GetProfileDesc methods to enumerate system profiles. See "WMCapture" sample for more info.

Custom profiles for WMV capture (for example: high quality video stream of 10Mbps) can be created using Windows Media Profile Editor tool included with MS Media Encoder9 .

Or, download it from: Windows Media Profile Editor .

 

Custom profiles are saved into .prx files. PRX files are in plain-text XML format. Load XML data into ProfileData property to use custom profile while capturing WMV.

 

Comment this article
Name:
Email
Comment:
Verification code 466: