Media Server 26.2
Media Server Help

# Output Data to Files

Media Server can output records to files, so that you can index the information into any system that accepts data in a format such as XML.

To write records to files, use the XML output engine. The default format is XML but you can configure the engine to apply an XSL transformation to the output, to transform it into another format such as HTML.

To write records to files

1. Create a new configuration to send to Media Server with the `process` action, or open an existing configuration that you want to modify.

2. In the `[Session]` section, add a new task by setting the `EngineN` parameter. You can give the task any name, for example:

       [Session]
       Engine0=XmlWriter

3. Create a new configuration section to contain the task settings, and set the following parameters:

   `Type` | The output engine to use. Set this parameter to `XML`.
   `Input` | (Optional) A comma-separated list of the tracks that you want to output. Specify one or more tracks. If you do not set this parameter, the engine outputs all tracks that are configured by default as 'output' tracks. For information about whether a track is considered an 'output' track, refer to documentation for your analysis and encoding engines in the Media Server Reference.
   `OutputPath` | The path and file name of the output file(s). Specify the path as an absolute path or relative to the Media Server executable file.
   `XSLTemplate` | (Optional) The path to the XSL template to use to transform the output into the desired format. If you do not set this parameter, the output is not transformed.

   For more information about the parameters that you can use to customize an XML output task, see XML Output Engine.

4. Configure how to combine records into XML files. For information about how you can combine records, see Choose How to Output Data.

   - To output data in single record mode, set `Mode=SingleRecord`.
   - To output data in time mode, set `Mode=Time` and use the `OutputInterval` parameter to specify the amount of video content represented by each document.
   - To output data in event mode, set `Mode=Event` and use the `EventTrack` parameter to specify the event track. The event track must also be an input track, so include it in the list of tracks specified by the `Input` parameter.
   - To output data in bounded event mode, set `Mode=Bounded` and use the `EventTrack` parameter to specify the event track. The event track must also be an input track, so include it in the list of tracks specified by the `Input` parameter.
   - To output data in at-end mode, set `Mode=AtEnd`.
   - To output data in page mode, set `Mode=Page`.

5. Save and close the configuration file. OpenText recommends that you save your configuration files in the location specified by the `ConfigDirectory` parameter.

Example

The following is an example configuration to output data using the XML output engine.

    [XmlWriter]
    Type=xml
    OutputPath=./output/%session.token%/Results_%segment.startTime.timestamp%.html
    XSLTemplate=toHTML.xsl
    Mode=Time
    OutputInterval=30s

Copyright 2026 Open Text
Version 26.2 | Last updated April 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Media Server 26.2

Topic Title: Output Data to Files