Open topic with navigation

# Encode Images

To encode images

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

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

       [Encoding]
       EncodingEngine0=KeyframeImages

3. Below the `[Encoding]` section, create a configuration section for the engine by typing the task name inside square brackets. For example:

       [KeyframeImages]

4. In the new section, set the following parameters:

   `Type` | The encoding engine to use. Set this parameter to `ImageEncoder`.
   `ImageInput` | The name of the track that contains the images to encode.
   `OutputPath` | The path and file name for the output files. If the directory does not exist, HPE Media Server creates it. You can use macros to create output paths based on the information contained in a record. Specify the path as an absolute path or relative to the HPE Media Server executable file.
   `UrlBase` | The URL that will be used to access the encoded files.
   `ImageSize` | (Optional) The output image size in pixels, width followed by height. If you do not set this parameter, HPE Media Server uses the original image size. If you specify only one dimension, HPE Media Server calculates the other, maintaining the original aspect ratio. For example, to specify a width of 300 pixels and have HPE Media Server calculate the appropriate height, set this parameter to `ImageSize=300x0`. Setting this parameter only modifies the size of the encoded image. The image encoder does not scale any metadata that describes the position of an object in the image. To scale images and position metadata, consider using a scale transformation task.

   For example:

       [KeyframeImages]
       Type=ImageEncoder
       ImageInput=myKeyframeEngine.ResultWithSource
       OutputPath=c:\output\keyframes\%record.starttime.year%-%record.starttime.month%-%record.starttime.day%\%record.starttime.timestamp%.jpg
       UrlBase=http://www.mysite.com/keyframes/%record.starttime.year%-%record.starttime.month%-%record.starttime.day%/
       ImageSize=192x108

   For more information about the parameters that you can use to configure the image encoder, refer to the HPE Media Server Reference.

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

© 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