Live Sport Broadcast using AWS Elemental Service
Tags: aws, cloud, livebroadcast, communitybuilder
Published: 2023-01-05 05:30:25


World Cup Time finally over! I really enjoyed this World Cup!. I watched official live stream in my Windows Laptop, sometime on my another mobile phone devices Android or an IOS device. I wonder. Is there any service that I can use for live broadcasting with AWS?
Yes it is! AWS provided us with AWS Elemental service.



![network topology diagram](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8x4h62y7g63c3vn717rg.png)
This lab i demonstrate using above topology diagram.
AWS Elemental MediaLive will encodes video in real time, compressing live broadcast sources into streams for delivery to broadcast TV , mobile devices (Android or IOS ) or another internet connected devices  .
AWS Elemental MediaPackage prepares, distributes our live / on demand video content to a broad range of connected devices ( Windows, Android, IOS, etc ). The service can take a single video input from an encoder such as AWS Elemental MediaLive.
Amazon CloudFront will deliver our content all around the world.
Live streaming using Real time Messaging Protocol, and will use AWS MediaLive and AWS Elemental MediaPackage


![simplyfy network topology diagram](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jnab08q4rfmvdfijzbgf.png)

For simplify my lab , I substitute live broadcasting devices with S3 Bucket. I put my free sample soccer video I got from pixabay.com/ to my S3 bucket.


![my s3 video bucket](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bun1p35oc3y2sl7rtrlm.png)

And then we can setup our AWS Elemental MediaLive
We must create channel first .

![create channel](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rloaddsc7nrdd9i20eie.png)

Create IAM Role


![Create IAM Role](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/op8e8oyvlc0lcl1223xi.png)

Fill input source in INPUT SOURCE A:

![create input ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mt5eyseb874uom0a4yh5.png)


![Input class and input source](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fupfx6d2ltp0dlcfota.png)
Add input attachments:
With input sources our S3 url wehre we put our free video.

![Input sources](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mhqke7i08vtd2nsuise9.png)

Medialive channel succesfully create: 
![channel status](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n8pwjq2kcdvqcxgxgjd6.png)

I will setting the output video first using AWS Elemental MediaPackage. 

Choose mediapackage:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d1mgq7rdlbq4s9u6xb6n.png)

Create a new channel
![Input Apple HLS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22hvt1phkfri3ryrltnr.png)

Create apple output video. This is for viewer who owned IOS devices.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ko2q9eirhzm1snx9299y.png)

I create three endpoints for three different outputs devices. For windows viewer using laptop or PC. For Android and IOS viewer using mobile devices , smart TV or Laptop.




![IOS endpoint](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ib56wgyamt5xsma168t.png)

![Android Endpoint](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x78eh63wpy3b4g2skkp4.png)

![Microsoft Endpoint](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6hoj8ckois7ir2qz3t3.png)

![all endpoint successfully created](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pkco9of4tg61846uuu3c.png)


After we created all three endpoint, we can preview our video using preview button under each our origin endpoint. If our video appear, we successfully configure our AWS Elemental services.

![Preview our video](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d7zx01t0mis25s3onl6a.png)


I successfully configure using Elemental MediaLive and MediaPackage for sport live broadcasting service. Now we can distribute our live streaming globally using AWS CloudFront!


Source:

https://aws.amazon.com/medialive/faqs/
https://aws.amazon.com/mediapackage/faqs/