WMEncoder.Save

Windows Media Encoder SDK banner art

The Save method saves the current configuration to a file.

Syntax

WMEncoder.Save(strFileName)

Parameters

strFileName

[in]  String containing the path and file name.

Return Values

If this method fails, it returns an error number.

Number Description
0x8007000E Memory cannot be allocated.

Remarks

To load a configuration, use the WMEncoder.Load method. The file name extension for a configuration file is .wme.

Example Code

' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder

' Load a predefined configuration from a file. The
' file name extension must be .wme.
Encoder.Load ("C:\filename.wme")

' Change the descriptive information for the
' encoded content.
Dim Descr As IWMEncDisplayInfo
Set Descr = Encoder.DisplayInfo

Descr.Author = "Author name"
Descr.Copyright = "Copyright information"
Descr.Title = "Content title"

' Save the changed configuration.
Encoder.Save ("C:\filename.wme")

' Start the encoding process.
Encoder.Start

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also