Monetizing a Live Video Stream with AWS Elemental MediaTailor
SPL-224 - Version 1.0.0
© 2019 Amazon Web Services, Inc. and its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited.
Errors or corrections? Email us at email@example.com.
Other questions? Contact us at https://aws.amazon.com/contact-us/aws-training/
Video consumption over the internet (over-the-top of the internet, or OTT) is growing and is predicted to be the dominant form of video consumption.
It allows for more targeted advertising, and typically the player device inserts advertisements during playback. However, this approach creates problems with playback quality and is vulnerable to ad blockers.
With AWS Elemental MediaTailor, ads are inserted at the server side. Advertising and content are delivered to viewers as a continuous stream, which avoids ad blocking, increases monetization, and provides a better viewing experience.
In order to implement server-side ad insertion with MediaTailor, you must have an HLS or DASH video stream that produces manifests with markers (called SCTE-35 markers) which delineate ad breaks.
You also must have an ad decision server (ADS), which determines which ads to play back based on the viewer information it receives from MediaTailor.
In this lab, you will start with a live streaming workflow that is configured to produce HLS manifests with SCTE-35 ad markers. You will then create a MediaTailor configuration that enables you to implement server-side ad insertion within the live video delivery workflow, utilizing an ad decision server to determine what ads to insert within the video stream.
Live streaming monetization workflow
The image below depicts the workflow you will be building.
1 The workflow starts with a source that has SCTE-35 ad markers in the video stream.
2 AWS Elemental MediaLive transcodes the feed into a set of streams that contain the ad markers.
3 The encoded streams are passed to the origin server, AWS Elemental MediaPackage.
4 MediaPackage provides MediaTailor with a template manifest file that indicates the ad insertion points and the main content segments.
5 MediaTailor personalizes these manifests with targeted ads after communicating with the ad decision server, or ADS.
6 Amazon CloudFront, a content delivery network, caches the program content segments and ad content segments, which are then delivered to devices.
During the lab setup, an AWS CloudFormation template created much of the live streaming workflow. Your focus in this lab is to augment the workflow by creating a MediaTailor configuration and a CloudFront distribution, denoted as stars in the image above.
By the end of this lab, you will be able to:
- Create a configuration in AWS Elemental MediaTailor
- Integrate a MediaTailor configuration with Amazon CloudFront
- Verify playback of a live video workflow with server-side ad insertion
Technical Knowledge Prerequisites
This lab is built upon a live streaming workflow that was created in the Building a Live Video Channel with MediaLive, MediaPackage and Amazon CloudFront self-paced lab (SPL-207).
To successfully complete this lab, you should be familiar with the basic procedures of building a live streaming workflow using AWS Elemental Media Services, including:
- Connecting a MediaLive input to a MediaLive channel
- Configuring a MediaLive channel
- Configuring a MediaPackage channel
- Playing video from a MediaPackage channel
You should also be familiar with the basic navigation of the AWS Management Console.
For additional information on using server-side ad insertion to monetize video workflows, refer to Understanding Monetization Workflows on the AWS Training and Certification digital learning platform.
- At the top of your screen, launch your lab by clicking
This will start the process of provisioning your lab resources. An estimated amount of time to provision your lab resources will be displayed. You must wait for your resources to be provisioned before continuing.
If you are prompted for a token, use the one distributed to you (or credits you have purchased).
- Open your lab by clicking
This will automatically log you into the AWS Management Console.
Please do not change the Region unless instructed.
Common login errors
Error : Federated login credentials
If you see this message:
- Close the browser tab to return to your initial lab window
- Wait a few seconds
- Click again
You should now be able to access the AWS Management Console.
Error: You must first log out
If you see the message, You must first log out before logging into a different AWS account:
- Click click here
- Close your browser tab to return to your initial Qwiklabs window
- Click again
Join Qwiklabs to read the rest of this lab...and more!
- Get temporary access to the Amazon Web Services Console.
- Over 200 labs from beginner to advanced levels.
- Bite-sized so you can learn at your own pace.