Code Monkey home page Code Monkey logo

video-on-demand-on-aws's Introduction

Video on Demand on AWS

How to implement a video-on-demand workflow on AWS leveraging AWS Step Functions and AWS Elemental MediaConvert.

Source code for the AWS solution Video on Demand on AWS.

CloudFormation templates

There are 2 CloudFormation templates, one to deploy the workflow with AWS Elemental MediaConvert and a second which deploys ElasticTranscoder.

source code node.js 6.10:

source/custom-resources: A series of CloudFormation custom resources used to deploy Elastic Transcoder, MediaConvert custom presets and make configuration changes to S3 SNS and CloudFront.

source/dynamo A Lambda function to update DynamoDB, used in each of the Step Functions workflows.

source/error-handler A Lambda function to handle workflow and ElasticTranscoder errors

source/ingest The Lambda functions that make up the core of the ingest workflow.

source/mediainfo A Lambda function to run mediainfo on s3 signed url. https://mediaarea.net/en/MediaInfo. bin/mediainfo must be made executable before deploying to lambda.

source/process The Lambda functions that make up the core of the process workflow.

source/publish The Lambda functions that make up the core of the publish workflow.

source/sns a lambda function used to send publish and/or error notifications

Building the Lambda Packages

We recommend building this package on Amazon Linux because the target Lambda environment will run on Amazon Linux and the build process compiles MediaInfo

# Install Development Tools necessary to compile MediaInfo
sudo yum groupinstall 'Development Tools' -y
# Install library required to add CURL support to Mediainfo
sudo yum install libcurl-devel -y

cd deployment
./build-s3-dist.sh source-bucket-base-name

source-bucket-base-name should be the base name for the S3 bucket location where the template will source the Lambda code from. The template will append '-[region_name]' to this value. For example: ./build-s3-dist.sh solutions The template will then expect the source code to be located in the solutions-[region_name] bucket

CF template and Lambda functions

Located in deployment/dist after running build-s3-dist.sh


Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://aws.amazon.com/asl/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.

video-on-demand-on-aws's People

Contributors

tomnight avatar jpeddicord avatar stevemorad avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.