MediaPackage v2 example - MediaLive

MediaPackage v2 example

This example shows how to set up the destination fields if the downstream system for the HLS output group is standard MediaPackage.

Assume that you want to stream the curling game and to create three outputs: high, medium, and low bitrate.

Field Value
CDN settings in HLS settings section

basic PUT

URL in HLS group destination A section mz82o4-1.ingest.hnycui.mediapackagev2.us-west-2.amazonaws.com/in/v1/live-sports/1/curling/index
Credentials in HLS group destination A section Leave blank. MediaPackage v2 doesn't use credentials to authenticate.
URL in HLS group destination B section mz82o4-2.ingest.hnycui.mediapackagev2.us-west-2.amazonaws.com/in/v1/live-sports/2/curling/index.
Credentials in HLS group destination B section Leave blank. MediaPackage v2 doesn't use credentials to authenticate.
Name modifier in HLS outputs section

Choose Add output twice: two more Output lines are added to this section, for a total of three lines. In each line, enter a modifier: -high, -medium, and -low.

Directory Structure and Segments Per Subdirectory in Location section MediaPackage doesn't use these fields, therefore leave them blank.

As a result, files are created with the following names:

  • One main manifest: index.m3u8

  • One child manifest for each output: index-high.m3u8, index-medium.m3u8, index-low.m3u8

  • TS files for each output:

    • index-high-00001.ts, index-high-00002.ts, index-high-00003.ts, and so on

    • index-medium-00001.ts, index-medium-00002.ts, index-medium-00003.ts, and so on

    • index-low-00001.ts, index-low-00002.ts, index-low-00003.ts, and so on

The files will be published to both URL inputs on MediaPackage.