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
Create a new configuration or open an existing configuration to send to Media Server with the process
action. Alternatively, you can modify the Media Server configuration file (mediaserver.cfg
).
In the [Output]
section, add a new output task by setting the OutputEngineN
parameter. You can give the task any name, for example:
[Output] OutputEngine0=XmlWriter
Below the [Output]
section, create a new configuration section by typing the task name inside square brackets. For example:
[XmlWriter]
In the new section, 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. |
XmlOutputPath
|
The path and file name of the XML files to create. |
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, refer to the Media Server Reference.
Configure how to combine records into XML files. For information about how you can combine records, see Choose How to Output Data.
Mode=SingleRecord
.Mode=Time
and use the OutputInterval
parameter to specify the amount of video content represented by each document.Mode=Event
and use the EventTrack
parameter to specify the event track.Mode=BoundedEvent
and use the EventTrack
parameter to specify the event track.Mode=AtEnd
.Mode=Page
.Save and close the configuration file. If you modified the Media Server configuration file, you must restart Media Server for your changes to take effect.
Example
The following is an example configuration to output data using the XML output engine.
[XmlWriter] Type=xml XMLOutputPath=./output/html/%segment.type%_results_%timestamp%_%segment.sequence%.html XSLTemplate=./xsl/tohtml.xsl Mode=Time OutputInterval=30
|