# Mode

Specifies how Media Server combines information before creating queries to run against the database.

- `SingleRecord` - does not combine information. This mode creates one or more queries for every record. Use this mode when you want to insert data for discrete events, such as recognized number plates or words spoken in the audio.
- `Time` - each set of queries inserts data for the same amount of video content, for example 60 seconds of video. Specify the interval using the parameter OutputInterval. Each query can contain information from any records that relate to that time frame, including records that overlap the start or end of the interval. Each set of queries might insert data from many records, for example recognized faces, speech-to-text results, and on-screen text extracted using OCR.
- `Event` - use event mode to insert information for specific video segments, for example news stories in a news broadcast. Media Server runs a separate set of queries for each record that occurs in an event track that you choose. Specify the event track using the parameter EventTrack. Each query can insert information about the event, from all records that overlap with that event, and all records that occurred since the end of the previous event. A pause in speech might indicate the end of one news story and the beginning of another, so you could configure Media Server to create queries to insert the content between pauses in a speech-to-text result track.
- `Bounded` - use bounded mode to insert information about a specific event, for example a recognized speaker being detected in the audio track, and associated records that occurred during the same time. Specify the event track using the parameter EventTrack. In this mode, information cannot be output from a record unless it occurs at the same time as an event in the event track.
- `AtEnd` - use at-end mode to insert information about an asset, such as a video or image file. Media Server runs one set of queries for each `process` action. The queries can contain information from the records that were generated when Media Server processed that asset.
- `Page` - use page mode to insert information about a single page of a processed image or document.

Type: | String
Default: | `Time`, unless you use the image ingest engine in which case `AtEnd`
Required: | No
Configuration Section: | TaskName
Example: | `Mode=event`
See Also: | OutputInterval EventTrack

_FT_HTML5_bannerTitle.htm