AWS Elemental MediaLive
User Guide

Types of Switches

There are several types of switches according to the start mode—the rule that triggers the switch.

Fixed, Immediate, and Follow Switches

There are three types of input switch start modes:

  • Fixed – These input switches start at a specific UTC time.

  • Immediate – The input switches start as soon as possible. This type of switch is more like a fixed switch than a follow switch because it interrupts the current input. The advantage of this switch over a fixed switch is that you don't have to calculate any buffer in the start time.

    You never set up an immediate switch in advance. You enter an immediate switch only on an ad hoc basis, to perform a switch that was not planned when you set up the schedule.

  • Follow – These input switches start when the previous input has ended (when MediaLive has reached the end of the file).

Note that switches at a fixed time use UTC time. They don't use the timecode of the input.

The combination of types of switches and types of inputs (file and live) means that there are these types of switches:

  • A file input with a fixed start. The previous input can be a file or live input. At the specified start time, MediaLive stops ingesting the previous input and switches to the new input.

  • A file input with an immediate start. The previous input can be a file or a live input. As soon as possible after you enter this switch in the schedule, MediaLive stops ingesting the previous input and switches to the new input.

  • A file input that follows the previous input. The previous input must be a file input. It can't be a live input because a live input doesn't have an end, so the switch would never occur.

  • A live input with a fixed start. The previous input can be a file or live input. At the specified start time, MediaLive stops ingesting the previous input and switches to the new input.

  • A live input with an immediate start. The previous input can be a file or a live input. As soon as possible after you enter this switch in the schedule, MediaLive stops ingesting the previous input and switches to the new input.

  • A live input that follows the previous input. The previous input must be a file input. It can't be a live input because a live input doesn't have an end, so the switch would never occur.

The following table summarizes the inputs and start types.

Current Input Next Input Possible Start Type
File File Fixed or Immediate
File File Follow
File Live Fixed or Immediate
File Live Follow
Live File Fixed or Immediate
Live Live Fixed or Immediate

Follow Chain

A series of follow input switches is called a follow chain. When each input ends, MediaLive automatically starts ingesting the next input. Here is a diagram of a follow chain:

Input A Fixed or Immediate File Input B Follow File Input C Follow File Input D Follow File or Live Input E Fixed or Immediate File or Live

The follow chain starts with the input above the first follow and ends with the last follow input. In the preceding example, the chain starts with input A and ends with input D.

The last input can be file or live. Either of these types can come before a fixed or immediate input (input E).

The other inputs (inputs A, B, C) in the follow chain must be files because they must have a defined ending so that the next input can successfully follow.