Create a Media Server Configuration

To run analysis on media, you must create a Media Server session configuration file that instructs Media Server how to process the media. Micro Focus recommends that you save the configuration in a location accessible to CFS, and configure CFS to send the configuration to Media Server with each request.

Example Media Server configurations are provided with CFS in the script_resources/mediaserver directory.

The following example demonstrates the basic structure of a Media Server session configuration.

[Session]
IngestRate=0
Engine0=AudioVideo
//Engine0=Image
Engine1=FaceDetect
Engine2=OCR
Engine3=Response

[AudioVideo]
Type=Video

[Image]
Type=Image

[FaceDetect]
Type=FaceDetect
MinSize=70

[OCR]
Type=OCR

[Response]
Type=response

Ingestion

There is no single configuration that can process both images and video, so you must configure Media Server to ingest the correct type of media.

The example, above, demonstrates how to configure ingestion. To process audio or video files, set the parameter Engine0=AudioVideo so that Media Server uses the settings in the [AudioVideo] section of the configuration. To process image files (including PDF files and office documents that contain embedded images), set the parameter Engine0=Image. The Lua functions analyze_media_in_document and analyze_media_in_file allow you to override individual parameters, so if you request analysis from a Lua script you can first determine the file type and then set the value of the parameter when you call the function.

For more information about configuring ingestion, and the file types that are supported, refer to the Media Server Administration Guide.

Analysis

To add the analysis tasks that you want to run, list the task names using the Engine parameter in the [Session] section, and then create a matching section for each task.

Output

CFS expects Media Server to return the results of analysis in the process action response. You must create an output task to do this.

For more information about configuring a processing session in Media Server, refer to the Media Server Administration Guide.