Akamai example - MediaLive

Akamai example

This example shows how to set up the destination fields if the downstream system is an Akamai server.

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 HLS akamai

Select this setting if you are using Akamai Token Authentication. Change the other CDN fields according to the instructions from Akamai.

HLS basic put

Select this setting if you are using digest authentication. Change the other CDN fields according to the instructions from Akamai.

URL in HLS group destination A section For example:

https://p-ep50002.i.akamaientrypoint.net/50002/curling/index

Mapping this URL to the Akamai terminology:

  • p-ep stands for primary entry point

    https://p-ep50002.i.akamaientrypoint.net is the hostname

  • 50002 is the stream ID for the primary entry point

  • curling is the event name

  • index is the manifest name

Credentials in HLS group destination A section If Akamai requires authenticated requests, enter a user name and a password that is known to Akamai. For the password, enter the name of the password stored on the AWS Systems Manager Parameter Store. Don't enter the password itself. For more information, see Requirements for AWS Systems Manager—password parameters.
URL in HLS group destination B section For example:

https://b-ep50002.i.akamaientrypoint.net/50002-b/curling/index

Mapping this URL to the Akamai terminology:

  • b-ep stands for backup entry point

    https://b-ep50002.i.akamaientrypoint.net is the hostname

  • 50002-b is the stream ID for the backup entry point

  • curling is the event name

  • index is the manifest name

Credentials in HLS group destination B section Enter a user name and password for the URL for the other destination, if applicable. The credentials are probably the same for both URLs, but they might not be.
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

Complete the fields according to the instructions from Akamai.

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 two places:

  • On the Akamai host p-ep50002.i.akamaientrypoint.net in a folder called 50002

  • On the host b-ep50002.i.akamaientrypoint.net in a folder called 50002-b