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
Create a new configuration to send to HPE Media Server with the process
action, or open an existing configuration that you want to modify.
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
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
|
(Set this or ScaleFactor ) The output image size in pixels (width followed by height). If you specify one dimension and set the other to 0 (zero), HPE Media Server preserves the aspect ratio of the original image. |
ScaleFactor
|
(Set this or ImageSize ) The scale factor to use to calculate the size of the output image. Specify a number or a fraction. For example, to resize images to one third of the original dimensions, set ScaleFactor=1/3 . |
For example:
[ScaleKeyFrames] Type=Scale Input=Keyframe.ResultWithSource ImageSize=300,0
or, using a scale factor:
[ScaleKeyFrames] Type=Scale Input=Keyframe.ResultWithSource ScaleFactor=1/2
For more information about the parameters that you can use to configure this task, refer to the HPE Media Server Reference.
Save and close the configuration file. HPE recommends that you save your configuration files in the location specified by the ConfigDirectory
parameter.
|