Skip to content

ASF (WMV) recording

Installing the "Windows Media Encoder 9 Series" pack may be necessary, otherwise the recording may fail to start.

Overview

The Windows Media (WMV) recording is enabled when RecordingMethod = rm_ASF. It starts when StartRecording is invoked and stops when StopRecording is invoked.

In this format, the video and audio are compressed automatically on the fly by the current Windows Media encoder: there is no need to specify the video compressors and/or audio compressors, they are ignored.

The video and audio streams are recorded when AudioRecording is enabled; otherwise, by default, only the video stream is recorded.

Choosing the WMV8 or WMV9 encoding format

By default, the recording is made with the WMV8 encoders (ASFProfileVersion = apv_ProfileVersion_8).

To record with the Windows Media 9 format and profiles, set ASFProfileVersion = apv_ProfileVersion_9.

Live network streaming during the WMV recording

Live network streaming can be performed during the WMV recording, according to the NetworkStreaming property:

  • directly to the network when NetworkStreaming = ns_ASFDirectNetworkStreaming,
  • or to a Windows Media Server when NetworkStreaming = ns_ASFStreamingToPublishingPoint.

Make sure that live network streaming is disabled (NetworkStreaming = ns_Disabled) if it is not required during the ASF recording.

Using profiles in WMV 8 format

When recording in WMV8 format (ASFProfileVersion = apv_ProfileVersion_8), one of the WMV8 predefined formats can be reused.

If ASFProfile = -1, the default ASF recording format is used. In this case, the ASF... settings can be applied (see "ASF recording properties" below), the most critical being ASFVideoBitRate, which defines the size of the clip and the level of compression.

Test different values to determine the best compression level for the app: e.g. start by testing ASFVideoBitRate = 300000 and ASFVideoBitRate = 1500000, then try values between or around these values.

Otherwise, a recording format can be chosen in the ASFProfiles list by assigning its index to ASFProfile, in the 0 to ASFProfilesCount - 1 range.

Note

Make sure that the general ASF properties below are set to "-1", otherwise they supersede the standard profile values.

Using profiles in the WMV 9 format

When recording in WMV9 format (ASFProfileVersion = apv_ProfileVersion_9), the audio/video encoding settings can be specified in a custom profile contained in a ".prx" file. Proceed as follows:

  1. Run the Windows Media Profile Editor (WMProEdt.exe), modify or create a custom profile, then save it to a ".prx" file.
  2. Assign the ".prx" file to the ASFProfileFromCustomFile property.

Note

Make sure that the general ASFVideo... and ASFAudio... properties below are set to "-1", otherwise they supersede the custom profile values.

ASF recording properties

The following ASF properties supersede the ASF profile values when their values are <> -1:

ASF safe recording even upon power outage

See Recording recovery after power outage.