Fields for the output destination - AWS Elemental MediaLive

Fields for the output destination

The following fields configure the location and names of the archive output files (the destination).

  • Output groupArchive group destination section

  • Output groupAdditional settingsRollover interval

  • Archive outputsName modifier

  • Archive outputsExtension

To specify the location for the output

  1. Design the destination URL. See About the path for the output destination for information on the syntax of the URL.

  2. Enter the different portions of the destination in the appropriate fields.

    Portion of the destination URL Field
    protocol, path, base_filename The two URL fields in the Archive group destinations section.

    Specify two destinations when the channel is set up as a standard channel, or one destination when it is set up as a single-pipeline channel.

    name_modifier The Name modifier field in the Archive outputs section.

    If you choose to include a modifier, you can enter a string such as _high, to indicate a high-resolution output. Or you can enter a variable ID (such as $dt$) to ensure that the modifier is different for each file segment. For a list of variable data identifiers, see Reference: Identifiers for Variable Data.

    extension The Extension field in the Archive outputs.

    Always leave the default, m2ts.

  3. Leave the Credentials section blank in both the Archive group destinations sections. MediaLive has permission to write to the Amazon S3 bucket via the trusted entity. Someone in your organization should have already set up these permissions. For more information, see Summary Of Requirements for the MediaLive Trusted Entity.

  4. Complete the Rollover interval field in the Archive settings section.

    For example, 300 divides the output into separate files, each with a 300 second (5 minutes) long duration.

    Each time the rollover expires, MediaLive closes the current file on Amazon S3 and starts a new file using the base_filename, the name_modifer, and a sequential counter.

    The current file is visible on Amazon S3 only after it has closed.

For more information, see the examples.

About the path for the output destination

The location and file names for an Archive output follow this syntax:

protocol path base_filename name_modifier counter extension

For example:

s3ssl://channel59/delivery/program_20171012T033162_000001.m2ts

The following table maps each portion in the example to the portion in the syntax.

Portion of the URL Example Comment
protocol s3ssl:// The protocol is always s3ssl:// because the destination for an Archive output is always an Amazon S3 bucket.
path channel59/delivery/ The path consists of a bucket and folders, always terminated by a slash.

With MediaLive, the Amazon S3 bucket name must not use dot notation. For example, mycompany-videos is acceptable but mycompany.videos isn't.

base_filename program Don't terminate the file name with a slash.
name_modifier _20171012T033162 The modifier is optional for an Archive output.
delimiter before the counter . MediaLive automatically inserts this delimiter.
counter 000001 MediaLive automatically generates this counter. Initially, this is a six-digit number: 000001, 000002, and so on. If the counter reaches 999999, it becomes a seven-digit counter: 0000001, 0000002, and so on.
dot before the extension . MediaLive automatically inserts this dot.
extension m2ts Always m2ts.