a fun way to learn video transcoding with amazon cloud

42
TRANSCODING VIDEO BY Neil with AWS Cloud A Complete Guide to

Upload: blazeclan-technologies-private-limited

Post on 29-Nov-2014

2.489 views

Category:

Technology


6 download

DESCRIPTION

This interactive presentation tells the story of Video Transcoding. It starts with what video transcoding is, followed by how exactly video transcoding process works. Then the story ventures towards how Amazon Web Services does Video Transcoding and what happens on the cloud in the background while a video is transcoded. Finally the story ends by telling how NETFLIX transitioned from Inhouse to Cloud for its Transcoding to multiple video formats.

TRANSCRIPT

Page 1: A Fun Way to Learn Video Transcoding with Amazon Cloud

TRANSCODING

VIDEO

BY Neil

with AWS

Cloud

A Complete

Guide to

Page 2: A Fun Way to Learn Video Transcoding with Amazon Cloud

OOPS !!

Were you Expecting

an overview

or an agenda slide ?

A want to listen to a Story.

A Sense of humour.

Well, to Enjoy this Presentation all you need is

Meet the Stars -

Page 3: A Fun Way to Learn Video Transcoding with Amazon Cloud

Video Transcoding ?

What is it

Exactly?

Page 4: A Fun Way to Learn Video Transcoding with Amazon Cloud

Say you have a Website

Hosting lots of videos

You want everyone to See World Wide

On Mobiles, PCs, Tablets & more

Ideally you would want

your audience

using different Platforms

and Devices to

have a seamless

User Experience

Page 5: A Fun Way to Learn Video Transcoding with Amazon Cloud

Now, every Video File is first created in a particular High Resolution format,

But, How would devices on various platforms Render it ?

Page 6: A Fun Way to Learn Video Transcoding with Amazon Cloud

What if ...

You could convert your videos into all these rendering formats

Well that’s Transcoding!

Transcoding means

conversion of your video files into different

formats so that they can be viewed on

different devices and platforms

seamlessly

Page 7: A Fun Way to Learn Video Transcoding with Amazon Cloud

So How does Transcoding Work ?

We need to know what a video file contains...

Meta Data

Audio Track

Video Track

Subtitle Track + + + =

[ Encoded using Codecs ]

Raw File

Page 8: A Fun Way to Learn Video Transcoding with Amazon Cloud

Different Tracks are Extracted (Decoded)

First

AUDIO VIDEO SUBTITLE

1

From this Raw File

Initially your files

are extracted to

all constituent

tracks

Page 9: A Fun Way to Learn Video Transcoding with Amazon Cloud

Different Tracks are Extracted (Decoded)

Next

Transcoding & Filtering

2

1

Tracks are Filtered (for noise, scale, dimensions & sharpening)

&

Transcoded (one audio chunk, then video chuck,

then next audio & so on)

to new formats

1

1

AUDIO VIDEO SUBTITLE

Page 10: A Fun Way to Learn Video Transcoding with Amazon Cloud

Different Tracks are Extracted (Decoded)

Finally

Video in New Formats

1

3

After Transcoding & Filtering, your Tracks

are multiplexed

or interleaved back to one File Format,

ready for Distribution

1

1

Transcoding & Filtering

AUDIO VIDEO SUBTITLE

2

Tracks Encoded back & multiplexed

Page 11: A Fun Way to Learn Video Transcoding with Amazon Cloud

Now that you

know how video transcoding works...

Lets see how Amazon Web Services (AWS) does Video Transcoding

Amazon Elastic Transcoder

Page 12: A Fun Way to Learn Video Transcoding with Amazon Cloud

But First,

lets get to know the basic AWS Elements involved in Transcoding

IAM

EC2

SNS

S3

Page 13: A Fun Way to Learn Video Transcoding with Amazon Cloud

Helps you Assign Computing Instances on the Amazon Cloud for your various operations.

EC2

Elastic Compute Capacity

1

Page 14: A Fun Way to Learn Video Transcoding with Amazon Cloud

S3 Helps you

Store & Retrieve Content from The Amazon Cloud Simple Storage

Service

2

Page 15: A Fun Way to Learn Video Transcoding with Amazon Cloud

Notifies you of the progress of your on going

job queues

SNS

3

Simple Notification Service

Page 16: A Fun Way to Learn Video Transcoding with Amazon Cloud

IAM Allows you

to set access rights for your data

Identity & Access Management

4

Page 17: A Fun Way to Learn Video Transcoding with Amazon Cloud

You need to have your files first on S3 buckets.

So How does Elastic Transcoder

operate ?

Now, define your input & output S3 buckets that will contain the transcoded content.

You can upload data

onto your S3 buckets from AWS console.

Page 18: A Fun Way to Learn Video Transcoding with Amazon Cloud

S3

S3

Now, Select a Transcoding Pipeline, and

Define

Transcoding Jobs, i.e. the files you want to transcode.

Input Bucket

Transcoding Pipeline

Output Bucket

Job 1

Job 3

Job 2 Jobs in queue

Page 19: A Fun Way to Learn Video Transcoding with Amazon Cloud

Voila ! Your videos are transcoded & ready for

Distribution !

Page 20: A Fun Way to Learn Video Transcoding with Amazon Cloud

Wait Up !

With AWS you get added

Benefits

Set Multiple

Transcoding pipelines based on priority of Jobs, simultaneously.

Page 21: A Fun Way to Learn Video Transcoding with Amazon Cloud

With AWS you get added

Benefits

Get Variety of transcoding pre sets available on AWS.

Page 22: A Fun Way to Learn Video Transcoding with Amazon Cloud

With AWS you get added

Benefits

Use IAM to control access of data

Page 23: A Fun Way to Learn Video Transcoding with Amazon Cloud

With AWS you get added

Benefits

Transcode videos

either from AWS console or

configured APIs.

Page 24: A Fun Way to Learn Video Transcoding with Amazon Cloud

With AWS you get added

Benefits

Get 20MBs of transcoding

FREE every month.

Now Experiment with all the new formats !

Page 25: A Fun Way to Learn Video Transcoding with Amazon Cloud

With AWS you get added

Benefits

Pay as you go pricing with elastic, scalable & on demand benefits of the Cloud.

Page 26: A Fun Way to Learn Video Transcoding with Amazon Cloud

But there’s

MORE !!!

With AWS &

BlazeClan you can...

Distribute your content World Wide using Amazon

CloudFront

Page 27: A Fun Way to Learn Video Transcoding with Amazon Cloud

But there’s

MORE !!!

With AWS &

BlazeClan you can...

Analyse when, what, where & how your content was viewed worldwide using Our

Cloudlytics

Page 28: A Fun Way to Learn Video Transcoding with Amazon Cloud

While your Videos are

Transcoded...

What happens in

the background

on

Amazon Cloud

Page 29: A Fun Way to Learn Video Transcoding with Amazon Cloud

Initially a certain number of transcoding jobs

are processed on priority basis by EC2

instances

Jobs

EC2

Page 30: A Fun Way to Learn Video Transcoding with Amazon Cloud

Jobs require more compute capacity ??

What If ...

Or more number of jobs are queued because of on demand requirements ??

Page 31: A Fun Way to Learn Video Transcoding with Amazon Cloud

Cloud

brings along with it

Scalability & Elasticity

Not to Worry!

Page 32: A Fun Way to Learn Video Transcoding with Amazon Cloud

Alarms Trigger an Auto Scaling policy indicating that more number of EC2 instances need to be deployed, and instantly the required Compute Capacity is made ready.

Alarms Triggered

EC2 Auto Scaling

Page 33: A Fun Way to Learn Video Transcoding with Amazon Cloud

We are Officially done with the basics of Transcoding !

Page 34: A Fun Way to Learn Video Transcoding with Amazon Cloud

How did NETFLIX Transform Business using Amazon Cloud?

So,

Page 35: A Fun Way to Learn Video Transcoding with Amazon Cloud

You all must have

watched movies online on NETFLIX right ?

This video Streaming company, initially rented

content on DVD’s till 2006/07,

When .....

Page 36: A Fun Way to Learn Video Transcoding with Amazon Cloud

They realized,

there was Too Much Content !

So they used GPU Based encoding Hardware to handle the load.

Page 37: A Fun Way to Learn Video Transcoding with Amazon Cloud

But in 2008, with

increasing number of

video formats...

Barriers to launch new

video players for MAC & PCs

And, Finally the launch of a video player for XBOX, failing to launch

full content catalogues

Their in house Infrastructure

could not handle the Load !

Page 38: A Fun Way to Learn Video Transcoding with Amazon Cloud

Amazon Web Services Came with the Solution

Using

Multiple EC2

instances

Page 39: A Fun Way to Learn Video Transcoding with Amazon Cloud

In 2009, NETFLIX was able to launch a new video player for Sony Play Station 3

Successfully !

In 2010, the successful

Apple Ipad’s video player launch also marked the success on

Cloud!!

Page 41: A Fun Way to Learn Video Transcoding with Amazon Cloud

In A Nut Shell we Learnt

What is Transcoding ?

How It works ?

How Videos are Transcoded on

AWS

How NETFLIX benefited