In this module you'll be creating an AWS Elemental MediaLive input which will in turn get used to set up a AWS Elemental MediaLive channel. During the channel creation, you will need the AWS Elemental MediaPackage endpoints and credentials you have created and saved from the previous module.
This module relies on the configuration of AWS IAM and AWS Elemental MediaPackage. You must successfully complete these previous modules before attempting this one.
Before you can create a AWS Elemental MediaLive channel, you must first create an input that the channel can attach to.
Step-by-step instructions
-
From the AWS Management Console, choose Services then select AWS Elemental MediaLive or use the following link.
-
On the left navigation pane, click on Inputs.
-
Then click on Create Input.
-
Enter
HLS Input
for the Input Name. -
Select
HLS
for Input Type. -
Under Input Sources, use
http://d2qohgpffhaffh.cloudfront.net/HLS/vanlife/withad/sdr_uncage_vanlife_admarker_60sec.m3u8
for Source A's Source URL of the stream. -
Enter the same URL for Source B.
-
Click Create.
You will now create an AWS Elemental MediaLive Channel that will publish to the MediaPackage endpoints you created in a previous module. The channel will use the input you created in the previous step.
Step-by-step instructions
-
Still on the AWS Elemental MediaLive console, on the left navigation pane, click on Channels.
-
Click on Create channel.
-
Under General Info, enter
HLS Stream Channel
for Channel Name. -
Copy and paste the Role ARN you saved off while working on the IAM module into the IAM role ARN.
-
Click on Attach Input and select the input (
HLS Input
) you created from the Input dropdown. -
Scroll down to Input Settings. Set Source End Behavior to
Loop
. -
On the left navigation pane, under Output Groups click on Add.
-
Under Add Output Group, leave the selection to HLS.
-
Click on Confirm.
-
Under HLS Settings, enter
HLS Stream
for Name. -
Under CDN Settings, pick
Hls webdav
from the dropdown. Take the defaults for the rest of the HLS settings. -
Under Destination A URL:
- Enter the URL of the first MediaPackage ingest endpoint you created.
- Expand the Credentials (optional) settings. For Username, paste the username that goes with the Mediapackage endpoint you provided.
- Leave the option to Create new parameter selected. For Name, enter
MediaPackage_HLS_Push_1
. For Password, enter the corresponding password of the username for the Mediapackage endpoint you provided. - Click on Create New Parameter.
-
Under Destination B URL:
- enter the URL of the second MediaPackage ingest endpoint you created.
- Expand the Credentials (optional) settings. For Username, paste the username that goes with the Mediapackage endpoint you provided.
- Leave the option to Create new parameter selected. For Name, enter
MediaPackage_HLS_Push_2
. For Password, enter the corresponding password of the username for the Mediapackage endpoint you provided. - Click on Create New Parameter.
-
Scroll down and expand the Manifest and Segments section. Change the default Segment Length from
10
to6
. -
Scroll down and expand the Ad Markers section. Click on Add ad markers. Select ELEMENTAL_SCTE35 from the Hls Ad Markers dropdown.
-
Under the HLS Outputs, click on Add Output twice. This will add two more outputs, for a total of three. Leave the Name Modifier as is.
-
Click on Settings for Output 1.
- Expand the PID settings section.
- Change SCTE-35 Behavior to PASSTHROUGH.
- Scroll down to Stream Settings. Under Video, enter
1280
for Width and720
for Height . - Expand the Rate Control Settings.
- Enter
3800000
for Bitrate.
-
On the left navigation pane, click on Output 2 under Output Groups.
- Expand the PID settings section.
- Change SCTE-35 Behavior to PASSTHROUGH.
- Under Stream Settings, Video, enter
960
for Width and540
for Height. - Expand the Rate Control Settings.
- Enter
2300000
for Bitrate.
-
On the left navigation pane, click on Output 3 under Output Groups.
- Expand the PID settings section.
- Change SCTE-35 Behavior to PASSTHROUGH.
- Under Stream Settings, Video, enter
640
for Width and360
for Height . - Expand the Rate Control Settings.
- Enter
1200000
for Bitrate.
-
On the left navigation pane, click on Create Channel.
-
After the
HLS Stream Channel
has been created, it will reflect an Idle State. -
Select the channel, and click on Start. In a minute or so, the channel will be in a Running State.
Congratulations! You have successfully created inputs and channels for AWS Elemental MediaLive to encode video and send to an origin packaging service like AWS Elemental MediaPackage. Move forward to the next module called Browser Page where you will customize an HTML page with a streaming player for one of your AWS Elemental MediaPackage endpoints.
Return to the main page.
To manually remove resources created in this module, go to the AWS Elemental MediaLive console and stop the channel. Once the channel is Idle delete the channel first, and then delete the input source. AWS Elemental MediaLive will not allow you to remove a channel that is running, nor will it allow you to remove an input that is attached to a channel.