Resize Images

You can use a scale transformation task to duplicate an existing track and resize the images in the new track (the input track is not modified). The new output track is named taskName.Output, where taskName is the name of the transformation task.

The scale transformation engine also scales metadata that refers to the position of an object in the video frame, so that the positions remain correct after the image has been scaled. For example, when you resize images of faces, the metadata that describes the bounding box surrounding the face is also scaled.

To resize images

  1. Create a new configuration or open an existing configuration to send to Media Server with the process action. Alternatively, you can modify the Media Server configuration file (mediaserver.cfg).

  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=ScaleKeyframes
  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 Scale.
    Input The name of the image track to process.
    ImageSize The output image size in pixels (width followed by height). If you specify one dimension and set the other to 0 (zero), Media Server preserves the aspect ratio of the original image.

    For example:

    [ScaleKeyFrames]
    Type=Scale
    Input=Keyframe.ResultWithSource
    ImageSize=300,0

    For more information about the parameters that you can use to configure this task, refer to the Media Server Reference.

  4. Save and close the configuration file. If you modified the Media Server configuration file, you must restart Media Server for your changes to take effect.


_HP_HTML5_bannerTitle.htm