Git Product home page Git Product logo

streamit's Introduction

StreamIT

  • StreamIT, the streaming platform for both streamers and viewers.
  • Streamers, welcome to showcase yourself in diverse categories and contents.
  • Viewers, just sit back, relax, get entertained after a weary work day or interact with your favourite streamer.
  • Start streaming today and be the next billionaire streamer in 2020!

Website URL: https://streamit.website

Test Account

Email: [email protected]
Password: yuyan.123#

Test Credit Card

Card Number: 4242 4242 4242 4242
Expiry Data: Any number
CVC: Any number
Post no.: Any number

Table of Contents

Technologies

Backend

  • AWS EC2
  • Node.js
  • Express.js

Front-End

  • HTML
  • CSS
  • Javascript
  • EJS

Cloud Services (AWS)

  • AWS S3
  • AWS RDS
  • AWS Cloudfront

Database

  • MySQL

Networking

  • Streaming Server: Node Media Server
  • Streaming Protocol: RTMP & HTTP-flv
  • Network Redirecting: Nginx

Tools

  • Media conversion: FFmpeg
  • Test: Mocha, Chai

Others

  • Payment/Donation: Stripe SDK

Architecture

Database Schema

Main Features

  • Streaming:
    • Stream and create your own live content to entertain others
  • Video on Demand (VOD):
    • VOD is uploaded immediately after every stream ends
  • Follow Feature:
    • Follow your favourite streamer and get informed if they are online on the sidebar
  • Donate Feature:
    • Support your favourite streamer by donating to them
  • Chatroom:
    • Interact with your favourite streamer via live chat

Streaming Demo

  1. Sign up and create an account
  2. Right click on member icon and go to profile page to acquire stream key
  3. Copy stream key
  4. Install OBS and open up OBS
  5. Set up Camera and streaming settings
  6. Type in stream key in settings and set streaming url to rtmp://streamit.website:1935/live
  7. Happy streaming

Video Pipeline for VOD And Live Streaming

Server Bandwidth Usage Analysis with/without CDN

Media Server Specs (AWS EC2):

OS:	 x64_linux_4.14.181-142.260.amzn2.x86_64
CPU:	 1 x Intel(R) Xeon(R) CPU E5-2676 v3     @ 2.40GHz
Memory:	 983 MB
Node.js: v14.5.0

Start of Node Media Server - 0 Viewer

- 0 HTTP request
- Server output bandwidth = 6 mbps.

Node Media Server without AWS Cloudfront(CDN) - 25 Viewers

- 25 HTTP requests (1 request for every viewer)
- Server output bandwidth = 200+ mbps.

Node Media Server with AWS Cloudfront(CDN) - 25 Viewers

- 1 HTTP requests 
- Server bandwidth = stable 10 mbps.

Observation

  • As we can see from the bandwidth usage, without using CDN all viewer will request video from server thus increasing server burden on uploading bandwidth.
  • By using AWS Cloudfront(CDN), it effectively reduced server bandwidth by making only one request to server and serve them through it's own CDN servers.

Contact

Email: [email protected]

streamit's People

Contributors

johnc-92 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.