Encode Video to MPEG Files or a UDP Stream

To encode video to an MPEG file or UDP stream, follow these steps.

To encode video to a file or stream

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

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

    [MyEncodingTask]
  4. In the new section, set the following parameters:

    Type The encoding engine type. 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 write the encoded video to an MPEG file, set the following parameters:

    OutputPath The path of the encoded output file(s). You can use macros to create output paths based on the information contained in the encoded records.
    UrlBase The base URL that will be used to access the encoded files. This is used when Media Server generates proxies. You can use macros to create the URL base from information contained in the encoded records.
    Segment (Optional) Specifies whether to split the output file into segments.
    SegmentDuration (Optional) The maximum duration of a segment, in seconds.

    To generate a live UDP stream of the content that Media Server is ingesting, set the following parameters:

    OutputURL The UDP output stream. For example, udp://239.255.1.123:4321.
    Format The container format. For example, mpegts for MPEG transport stream.

    For example:

    [MyEncodingTask]
    Type=mpeg
    OutputPath=./mp4/%year%/%month%/%day%/%timestamp%_%segment.sequence%.mp4
    UrlBase=http://www.mysite.com/video/clips/mp4/%year%/%month%/%day%/

    For more information about the configuration parameters and macros that you can use, refer to the Media Server Reference.

  5. 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