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
Before you begin, you should have completed the following tasks and tutorials:
- Sign in to Amazon Sumerian with your AWS account
- All Sumerian Getting Started tutorials
- Scripting Basics tutorial
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.
Open the Amazon S3 console. Click Create bucket to create a new bucket.
As you progress through the creation of the bucket, make sure to grant public read access to the bucket.
Continue with the creation process. Once your bucket is created, click on Permissions and then select CORS.
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
(c) copyright 2008, Blender Foundation / www.bigbuckbunny.org, no changes were made to this content
After downloading the .mp4 file, upload it to your S3 bucket.
Once the video file is in your S3 bucket, click on the video file.
Click Make Public.
Copy the link provided.