Giter Club home page Giter Club logo

aws-serverless-video-processor's Introduction

Objective

Perform video conversions using AWS Fargate, triggered by uploads to an Amazon S3 Bucket. Check out the video training content!

Architecture Diagram

Dependencies

Usage

  1. Clone repository
  2. Modify ./08-Final Project/cloudformation.yml to use unique S3 Bucket names
  3. Run ./08-Final Project/build/deploy.ps1
  4. Upload an MP4 video file into the "source bucket"

Learning Points

  • AWS CloudTrail must be enabled, with S3 data events, in order to trigger Amazon EventBridge rules
  • ECS Task Definitions must be marked as Fargate compatible, else invocation will fail
  • AWS Python cfn-lint is a helpful tool for validating CloudFormation templates
  • The $.input is the root object in AWS Step Functions. Use $.detail.requestParameters.key NOT $.input.detail....
  • Both PutObject and CompleteMultipartUpload API calls are used in S3 to trigger EventBridge rules

Customization Ideas

  • Build a drag-and-drop web front-end to perform conversions
  • Modify the ffmpeg parameters to support different encoding parameters
  • Use the Choice state in AWS Step Functions to branch logic based on parameters, such as file size or type
  • Add a step to the AWS Step Functions state machine to send a completion e-mail

aws-serverless-video-processor's People

Contributors

pcgeek86 avatar

Watchers

 avatar  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.