Working with VOD sources - AWS Elemental MediaTailor

Working with VOD sources

A VOD source represents a single piece of content, such as a video or an episode of a podcast, that you add to your source location. You add one or more VOD sources to your source location, and then associate each VOD source with a program after you create your channel.

Each VOD source must have at least one package configuration. A package configuration specifies a package format, manifest location, and source group for your VOD source. When you create your channel, you use the package configuration's source groups to create the corresponding outputs on your channel. For example, if your source is packaged in two different formats—HLS and DASH—then you'd create two package configurations, one for DASH and one for HLS. Then, you would create two channel outputs, one for each package configuration. Each channel output provides an endpoint that's used for playback requests. So, using the preceding example, the channel would provide an endpoint for HLS playback requests and an endpoint for DASH playback requests.

Adding VOD sources to your source location

The following procedure explains how to add VOD sources to your source location and set up package configurations using the MediaTailor console. For information about how to add VOD sources using the MediaTailor API, see CreateVodSource in the AWS Elemental MediaTailor API Reference.

Important

Before you add your VOD sources, make sure that they meet these requirements:

  • Source variants must all have the same length, as determined by the source manifest.

  • Within a package configuration, each source must have the same number of child streams.

Because of these requirements, we don't support per title or automated ABR, because these encoding methods can produce varying manifest lengths and child streams.

We recommend that you use an encoding template that includes a minimum segment length to ensure that your encoded sources meet these requirements.

To add VOD sources to your source locations

  1. Open the MediaTailor console at https://console.aws.amazon.com/mediatailor/.

  2. In the navigation pane, choose Channel assembly > Source locations.

  3. In the Source locations pane, choose the source location that you created in the To create a source location procedure.

  4. Choose Add VOD source.

  5. Under VOD source details, enter a name for your VOD source:

    • Name: An identifier for your VOD source, such as my-example-video.

  6. Under Package configurations > source-group-name enter information about the package configuration:

    Note

    Your source's package configurations must all have the same duration, as determined by the source's manifest. And, all of the sources within a package configuration must have the same number of child streams. To meet these requirements, we recommend that you use an encoding template for your assets. We recommend that you use an encoding template with a minimum segment length of one second. MediaTailor doesn't support per title or automated adaptive bitrate streaming (ABR) because these encoding methods violate these requirements.

    • Source group: Enter a source group name that describes this package configuration, such as HLS-4k. Make a note of this name; you'll reference it when you create your channel's output. For more information, see Using source groups with your channel's outputs.

    • Type: Select the packaged format for this configuration. MediaTailor supports HLS and DASH.

    • Relative path: The relative path from the source location's Base HTTP URL to the manifest. For example, /my/path/index.m3u8.

      Note

      MediaTailor automatically imports all of the closed captions and child streams contained within a parent manifest. You don't need to create separate package configurations for each of your sources renditions (DASH) or variant streams (HLS).

    For more information about package configurations, see Using package configurations.

  7. Choose Add VOD source.

    If you want to add more VOD sources, repeat steps 4-7 in the procedure.