GithubHelp home page GithubHelp logo

awslabs / aws-streaming-media-analytics Goto Github PK

View Code? Open in Web Editor NEW
39.0 8.0 17.0 8.9 MB

AWS Streaming Media Analytics is a serverless end-to-end solution for analyzing the video streaming experience

License: MIT No Attribution

Dockerfile 0.32% JavaScript 55.96% Python 6.36% HTML 3.45% CSS 33.91%

aws-streaming-media-analytics's Introduction

AWS Streaming Media Analytics

15 May 2024: AWS Streaming Media Analytics is no longer maintained or supported due to updates in best practices for this workload. This repository will soon be archived

Please see the following other AWS sample projects for an updated set of examples covering this use-case:

The following content is preserved for archive purposes

AWS Streaming Media Analytics is a serverless end-to-end solution for analyzing the video streaming experience

alt text

Quicksight Update Frequency

By default the Glue Trigger is set for every 4 hours to reduce cost. This can frequency can be increased, but check the AWS Glue console pricing for more details. In my testing AWS Glue cost 0.44 cents per run in this solution.

The GlueJob that writes player data to S3 for Athena and Quick sight is located within the WatchTimeGlueTrigger. Look for the field that looks like this. Schedule: cron(0 */4 * * ? *)

Architecture

alt text

alt text

alt text

How to customize and create your own CloudFormation template.

Setup Instructions To build with Docker && make

Pre-requisites:

  • Install docker for your environment as we will use a Docker container to build
  • Install AWS CLI
  • Install yarn

The build and deployment process for this project has been tested on both Mac and Linux using the vscode and Cloud9 IDEs respectively.

Build Configuration:

Copy the Makefile.sample file to a file named Makefile. In the new file:

  • set bucket variable to reflect the S3 bucket name prefix which will be created within a deployment region. Note the region name will be appended to this prefix.
  • optionally, set the s3prefix variable to a prefix you wish to prepend to the path of all artifacts put into the S3 bucket(s).
  • set regions variable to reflect one or more AWS regions you want the code artifacts to be copied for CloudFormation deployment.
  • set stack_name for the Stack Name to use in the deployment.
  • set profile to the AWS CLI profile which has necessary permissions to deploy and create all the resources required.

Commands to manage creation/deletion of S3 buckets:

  • To create buckets across regions: make creates3
  • To delete buckets across regions: make deletes3

Commands to build and deploy the entire project

  • make all
  • make deploy

Once the deployment is done you should see the player URL in the Outputs section of the CloudFormation template.

Pricing

Reference the AWS Pricing pages for each service used.

JavaScript Video Player Setup

Guide to Setup JavaScript Video Player

License Summary

This sample code is made available under the MIT-0 license. See the LICENSE file.

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.