hello hello welcome to solving with aws
solutions your deep dive and reference
architecture is built by aws that are
ready to deploy
instantly in the cloud i'm rob your host
joined today with a man whose dad jokes
are elemental
tom and your jokes are not getting any
better rob
hi everybody live streaming on aws with
media store is the solution we're
looking at today
this is a simplified version of our
original solution live streaming on aws
even though it's simplified it still
scales well and is resilient
for your live streams to go out globally
let's get into it so tom can you walk us
through the live streaming on aws with
media store solution detail page please
i certainly can this is the landing page
we're on the
live streaming with aws page uh we
looked at this original solution
uh in a previous episode uh we have done
an update to it which is the media store
version
uh but like with all our solutions we
have a link to the source code so you
can download it from github
a link to the cloud formation template
so you can launch it in your own account
and a detailed implementation guide
awesome can we take a look at the
original architecture just for
comparison
we certainly can uh
so this was the original two uh
source streams coming into this version
um and then we're taking that in those
inputs
uh and using elemental media live uh to
transcode that
content into multiple adaptive bit rates
those two converted versions are then
going into elemental
package and that service is doing some
just-in-time packaging
to take that content convert it into the
different formats like hls
dash and microsoft smooth and then we
are delivering that content through
cloudfront
all right so what did we change about it
why have we added the media store
element to this
so lots of good feedback lots of
downloads for the
this solution uh we did get some
feedback to suggest that
it was a little difficult to have the
dual uh source streams
it's a lot of overhead you know when
you're setting up the live stream to
have two
encoders two versions of the stream
coming in uh and there was a little bit
of a complexity with having
two of everything running through the
solution so they wanted a simpler
version
people aren't necessarily you know
looking for broadcast uh
quality streaming but wanted to do
something else like
seminars like have a live stream feed
into their website
that type of thing so we did come up
with this new version which is
with media store um and
as you can see the main obvious
difference is we're just doing that
single
source input gotcha so what is
mediastore doing as part of the new
architecture
so we are taking our source stream same
as we did in the previous version
same encoding with elemental media live
nothing really changed there but
that content is now going into a
container in media store
and media store is a low latency storage
service
so that's very important for when you're
doing things like live streaming because
we're taking uh
in this case two second segments so
we're going to have lots and lots of
tiny little files coming into that
storage
and then that acts as the origin for our
cloudfront distribution so having that
low latency
is vital for the streaming media
that's good so we've actually simplified
it now but allowed for better live
streaming
what uh hardware do customers need is
there any particular requirements
there's uh no requirements per se um we
do support and
a relatively new device that came out
from elemental that's the elemental link
device
uh super simple to set up you just plug
this into the internet
it will automatically register register
itself with the media live service
uh you plug in your camera and this will
act as your ground control
controller and it will push content
directly into the media live service so
super easy to set up really really
useful piece of kit
and if you buy one of these we actually
will send you a link to the cloud
formation template for the solution that
is pre-configured to your device
ready to go so one click and you're up
and running
man that does simplify things for a lot
of customers so
what's happening with the cloud watch as
part of this architecture
that's something new that we were able
to introduce because of media store
so what that is is just a simple
dashboard that monitors the in
ingress and egress into the
media store container okay can we take a
look at what that looks like
we can indeed um like i say
super simple we've got ingress on the
left egress
on the right uh and you can see the data
coming in
so that's rights from media live into
the container
and then you've got the requests through
cloudfront coming through
on the right hand side uh and and then
some information about
400 500 requests if there's any errors
and things like that
pretty cool insights into what's
happening um can we take a look at the
actual media store console please
yeah um pretty simple not too much to go
over
this is the container for the solution
that i have up and running
um in here you'll see a folder called
streams and in here we can see the index
files so
here's the different adaptive bit rates
we uh we have our main index
and then all the different various
versions that we're we're producing
and then we have a container policy
whereby we are restricting access to
this container
similar to a ns3 bucket policy and what
we're saying is that any requests have
to
contain this user agent and that's
something that we pre-configure
in cloudfront that's pretty nice so
you mentioned a bunch of two-second
files earlier in the conversation all
these hls files
how are we storing those and where are
we storing those
so uh they're all in here we have the
uh the console is just configured in
such a way that we're just hiding all of
those
ts files so it's easier to drill down
and find the indexes
uh so we have the index files and the ts
segment files all in there
uh but to save on cost uh we do have a
life cycle policy setup and again this
is very similar to an s3
lifecycle policy and what we're doing
here is we're saying nats
files are after five minutes we're going
to delete those
files so we're clearing those out so
that you don't end up building up
gigs and gigs worth of files stored in
the container that are no longer
required
well that helps save customers money as
part of the solution so
thanks for walking us through the
architecture on live streaming with aws
with media store
you're welcome so there you have it live
streaming on aws with mediastore
a service that offers low latency
storage for all your streaming needs
check out this solution and others on
our aws solutions webpage
see you there