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.

 


_HP_HTML5_bannerTitle.htm