Open topic with navigation

# Encode Video to a UDP Stream

To generate a live UDP stream of the content that Media Server is ingesting, use the following procedure.

To encode video to a stream

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 `[Encoding]` section, add a new encoding task by setting the `EncodingEngineN` parameter. You can give the task any name, for example:

       [Encoding]
       EncodingEngine0=EncodeStream

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

       [EncodeStream]

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

   `Type` | The type of encoding engine to use. Set this parameter to `mpeg`.
   `VideoSize` | (Optional) The size of the encoded video, in pixels, width followed by height. If you want to use the same dimensions as the source, set this parameter to `copy`. To ensure Media Server uses the same aspect ratio as the source video, set either the width or height and set the other dimension to zero.
   `OutputURL` | The URL to stream to. For example, `udp://239.255.1.123:4321`.
   `Format` | The container format. For example, `mpegts` for MPEG transport stream.

   For example:

       [EncodeStream]
       Type=mpeg
       VideoSize=0x720
       OutputUrl=udp://239.255.1.123:4321
       Format=mpegts

   For more information about the configuration parameters that you can use to configure this task, refer to the 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.

© 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