Open topic with navigation

# Create an Overlay

The `Overlay` transformation task creates an overlay for a video. The task draws regions (such as rectangles, polygons, and ellipses) that are present in the input records.

To create an overlay for a video

1. Create a new configuration to send to Media Server with the `process` action, or open an existing configuration that you want to modify.

2. In the `[Transform]` section, add a new transformation task by setting the `TransformEngineN` parameter. You can give the task any name, for example:

       [Transform]
       TransformEngine0=Overlay

3. Create a new configuration section to contain the task settings and set the following parameters:

   `Type` | The transformation engine to use. Set this parameter to `Overlay`.
   `Input` | The name of the track that contains the metadata to use to draw the overlay. This track does not need to include the video frames.
   `Color` | (Optional) The line color to use when drawing.
   `Thickness` | (Optional) The line thickness to use when drawing. Specify the thickness in pixels.

   For example:

       [Overlay]
       Type=Overlay
       Input=FaceDetection.Result
       Color=Red
       Thickness=1

4. When you define your encoding task, use the parameter `OverlayInput` to specify the name of the output track from the overlay transformation task. In this example the track is named `Overlay.Output`.

5. Save and close the configuration file. HPE recommends that you save your configuration files in the location specified by the `ConfigDirectory` parameter.

Example configuration to ingest video and create an overlay

The following example configuration ingests a video file or stream and encodes a video with an overlay that shows detected faces.

    [Ingest]
    IngestEngine=AV

    [AV]
    Type=libav

    [Analysis]
    AnalysisEngine0=FaceDetect

    [FaceDetect]
    Type=FaceDetect
    NumParallel=6
    SizeUnit=percent
    MinSize=10

    [Transform]
    TransformEngine0=Overlay

    [Overlay]
    Type=Overlay
    Input=FaceDetect.Result
    Color=Orange
    Thickness=1

    [Encoding]
    EncodingEngine0=RollingBuffer

    [RollingBuffer]
    Type=RollingBuffer
    ImageInput=Image_1
    AudioInput=None
    OverlayInput=Overlay.Output
    Stream=stream1

© 2017 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