Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Amazon S3 appropriate for serving videos? [closed]

I'm working on a website with a primary function of playing videos, typically one right after another.

Would it be appropriate to store the MP4 & WebW files on Amazon S3, then accomplish playback using HTML5/Flash?

Are there any speed repercussions with serving videos via Amazon S3? Or would I be better off serving the videos from the same Amazon EC2 server I'm using to run the site?

Really I'm looking for Pros/Cons. Thank you.

like image 709
floatleft Avatar asked Apr 09 '12 00:04

floatleft


People also ask

Can I store videos in S3?

Create a bucket to store the original video that you plan to stream. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/ . In the left navigation pane, choose Buckets. Choose Create bucket.

What are the limitations of S3?

Individual Amazon S3 objects can range in size from a minimum of 0 bytes to a maximum of 5 terabytes. The largest object that can be uploaded in a single PUT is 5 gigabytes. For objects larger than 100 megabytes, customers should consider using the Multipart Upload capability.

Can you host videos on AWS?

Customers use Amazon CloudFront to stream video to viewers across the globe using a wide variety of protocols that are layered on top of HTTP. The Amazon Content Delivery Network (CDN) can be used with AWS Elemental Media Services to implement two different types of video streaming.

What can Amazon S3 be used for?

Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. You can use Amazon S3 to store and retrieve any amount of data at any time, from anywhere.


2 Answers

I cant imagine using Amazon for streaming. Honestly, their traffic costs are way too high for this kind of application. Anyway, if you still want to use it, S3 doesnt seem to be good option, because it's cluster storage designed for e.g. archiving and not streaming, it has limitations of number of requests per second as well it's concurrency. For streaming, you need the fastest possible storage, and any of the Amazon services is far away from that, definetely S3 and for EBS, it's not too fast either. You can consider servers with SSD drives and normal bandwidth prices. I have myself 10 streaming servers doing 100TB of traffic per day, each with 8x SSD drives and 10Gbps interface plus 64GB of RAM and 16 cores.

like image 126
Andrew Avatar answered Oct 02 '22 19:10

Andrew


I've used Amazons CloudFront to stream content in the past without too much issue (http://aws.amazon.com/cloudfront/), but there are certainly faster methods out there.

However, I do believe it's a good place to start.

like image 37
d2kagw Avatar answered Oct 02 '22 18:10

d2kagw