The Configuration File for Postprocessing

Windows Media Encoder SDK banner art

Attributes, markers, and scripts can be added and removed from a Windows Media file using an XML-based configuration file. This file contains a WMBasicEdit node, which can contain an Attributes node, a Markers node, and a Scripts node. These nodes are optional, but one node must be present under WMBasicEdit. The requirements for each node are described in the following section.

Attributes

The Attributes node can contain one or more entries. Each entry requires a type (WMENC_STRING, WMENC_BOOL, WMENC_SHORT, WMENC_LONG or WMENC_BLOB), an attribute name, and a value:

<!ELEMENT Attributes (WMENC_STRING)*, (WMENC_BOOL)*, (WMENC_SHORT)*, (WMENC_LONG)*, (WMENC_BLOB)*>
<!ELEMENT WMENC_STRING EMPTY>
    <!ATTLIST WMENC_STRING
        Name        ID       #REQUIRED
        Value       ID       #REQUIRED
    >
<!ELEMENT WMENC_BOOL EMPTY>
    <!ATTLIST WMENC_BOOL
        Name        ID       #REQUIRED
        Value       (yes|no) "no"
    >
<!ELEMENT WMENC_SHORT EMPTY>
    <!ATTLIST WMENC_SHORT
        Name        ID       #REQUIRED
        Value       ID       #REQUIRED
    >
<!ELEMENT WMENC_LONG EMPTY>
    <!ATTLIST WMENC_LONG
        Name        ID       #REQUIRED
        Value       ID       #REQUIRED
    >
<!ELEMENT WMENC_BLOB EMPTY>
    <!ATTLIST WMENC_BLOB
        Name        ID       #REQUIRED
        Value       ID       #REQUIRED
    >

Markers

The Markers node can contain one or more entries. Each entry requires a marker name, a time, and the operation to be performed. If no operation is specified, the Add operation is performed. Time must be specified using the following formula:
TimeValue = ( ( ( ( hours * 60 ) + minutes ) * 60 + seconds ) * 1000 + milliseconds) * 10000

<!ELEMENT Markers (Marker)*>

<!ELEMENT Marker EMPTY>
    <!ATTLIST Marker
        Name       CDATA                #REQUIRED
        Time       CDATA                #REQUIRED
        Operation  (add|remove)  "add"  #OPTIONAL
    >

Scripts

The Scripts node can contain one or more script entries. Each entry requires a type (URL, FILENAME, CAPTION, EVENT, or OPENEVENT), a command (string) to execute, a time, and the operation to perform. If no operation is specified, the Add operation is performed. Time must be specified using the following formula:
TimeValue = ( ( ( ( hours * 60 ) + minutes ) * 60 + seconds ) * 1000 + milliseconds) * 10000

<!ELEMENT Scripts (Script)*>

<!ELEMENT Script EMPTY>
    <!ATTLIST Script
        Type       CDATA                #REQUIRED
        Command    CDATA                #REQUIRED
        Time       CDATA                #REQUIRED
        Operation  (add|remove)  "add"  #OPTIONAL
    >

See Also



Page view tracker