You can combine two or more tracks into a single track. The "Or" ESP engine creates an output track that contains the records from all of the input tracks. Each record in the resulting track includes the name of the track that it originated from.
For example, you could combine output tracks from speech-to-text and face recognition. The records in the resulting track would contain a transcript of speech in the video, or details of recognized faces.
Tip: This engine combines tracks, not records.
To combine tracks
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 [EventProcessing]
section, add a new ESP task by setting the EventProcessingEngineN
parameter. You can give the task any name, for example:
[EventProcessing]
EventProcessingEngine0=Combine
Create a new configuration section to contain the task settings, and set the following parameters:
Type
|
The ESP engine to use. Set this parameter to or . |
InputN
|
The names of the tracks that you want to output as a single track. Specify two or more tracks that are produced by other tasks. |
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 configuration combines output tracks from a Barcode task and an OCR task:
[EventProcessing]
EventProcessingEngine0=Combine [Combine] Type=or Input0=mybarcode.result Input1=myocr.result
This task produces a new track, named Combine.Output
, that contains all of the records from mybarcode.result
and myocr.result
.
|