Beginner Tutorial


Streaming Video from Amazon S3


10 minutes

Posted on: October 10, 2018

Learn Sumerian
Streaming Video from Amazon S3

Tags

s3
video
streaming

In this tutorial you will learn about:

scripting
streaming video hosted in S3

In this tutorial, we demonstrate how to upload video to Amazon S3 for streaming into your Amazon Sumerian scene. When you upload video from the Sumerian console, the entire video must download before the scene can play. However, videos stored in Amazon S3 can begin streaming immediately.

You’ll learn about:

  • Uploading movie files to Amazon S3
  • Streaming video via Script component

Prerequisites

Before you begin, you should have completed the following tasks and tutorials:

Step 1: Create an Amazon S3 Bucket

In this step, you’ll use the Amazon S3 console to create a new S3 bucket with public access. For more information, see Getting Started with Amazon Simple Storage Service.

  1. Open the Amazon S3 console. Click Create bucket to create a new bucket.

  2. As you progress through the creation of the bucket, make sure to grant public read access to the bucket.

  3. Continue with the creation process. Once your bucket is created, click on Permissions and then select CORS.

  4. Add the following to the CORS configuration.

     <?xml version="1.0" encoding="UTF-8"?>
     <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
     <CORSRule>
         <AllowedOrigin>*</AllowedOrigin>
         <AllowedMethod>GET</AllowedMethod>
         <MaxAgeSeconds>3000</MaxAgeSeconds>
     </CORSRule>
     </CORSConfiguration>
    

Step 2: Upload a Video

To demonstrate how to upload a video, we’re using Big Buck Bunny from the Peach open movie project. You can download it here.

(c) copyright 2008, Blender Foundation / www.bigbuckbunny.org, no changes were made to this content

  1. After downloading the .mp4 file, upload it to your S3 bucket.

  2. Once the video file is in your S3 bucket, click on the video file.

  3. Click Make Public.

  4. Copy the link provided.