Open topic with navigation

# Create a Media Server Configuration

Before running analysis on media, you must create a Media Server configuration file that instructs Media Server which analysis operations to perform. You can either:

- Save the configuration file in the folder specified by the `ConfigDirectory` parameter, in the `[Paths]` section of the Media Server configuration file. In this case set the `MediaServerConfigurationName` parameter when you configure HPE CFS, so that HPE CFS sends the name of the configuration to Media Server when it runs the `process` action to start processing.
- Save the configuration file in a location accessible by HPE CFS. In this case set the `MediaServerConfigurationFileName` parameter when you configure HPE CFS, so that HPE CFS sends the configuration file to Media Server when it runs the `process` action to start processing.

## Ingestion

HPE CFS sends files to Media Server for analysis. 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.

To ingest video files, add the following to your configuration:

    [Ingest]
    IngestRate=0
    IngestEngine=VideoFiles

    [VideoFiles]
    Type=LibAv

Alternatively, to ingest image files or documents (such as PDF and office documents that contain embedded images), use the following:

    [Ingest]
    IngestEngine=ImageFiles

    [ImageFiles]
    Type=Image

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

## Analysis

Create a section in the configuration file named `[Analysis]`, and configure the analysis operations that you want to run.

The following example configures face detection and optical character recognition:

    [Analysis]
    AnalysisEngine0=FaceDetect
    AnalysisEngine1=OCR

    [FaceDetect]
    Type=FaceDetect
    MinSize=70

    [OCR]
    Type=OCR

For more information about configuring analysis in Media Server, refer to the Media Server Administration Guide.

## Output

HPE CFS expects Media Server to return the results of analysis in the `process` action response. You must create a section in the configuration file named `[Output]`, and configure an output task to write data to the action response.

    [Output]
    OutputEngine0=response

    [response]
    Type=response

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm