Code Monkey home page Code Monkey logo

http-video-streaming's Introduction

HTTP Video Streaming

A HTTP Video Streaming implementation, which provides adaptive streaming/tuning via DASH (Dynamic Adaptive Streaming over HTTP). This was built using the Media Sources extensions on JavaScript.

Setup Instructions

In order to run the program, you will need to have nodejs installed. Installation steps for node.js can be found here: https://nodejs.org/en/download/.

Make sure you run these commands inside the proejct directory.

Install the npm packages:

npm install

Start the server:

npm start

You will now be able to find the application at localhost:5000.

In order to create the video partitions and DASH metadata via bin/generate_dash.sh, you will need to install ffmpeg and mse_json_manifest. You can install ffmpeg at https://www.ffmpeg.org/download.html and mse_json_manifest at https://github.com/acolwell/mse-tools.

Directory Structure

bin/

This is the directory that holds the executables, like the server, the dash generation script, and video metadata programs.

player/

This folder holds the source code for the client player. All of these files get compiled (in reality, they're just concatenated together) into a bundle that is linked in the player HTML. The names of the files should be explanatory of what they do. For example, player.js holds the source code for the actual player which will pull everything together.

videos/

This holds the video content and metadata. The manifest file should be located in a file called manifest.mpd. Each video is stored within this folder as /:video_id/:____.webm.gi The ____ could either be "audio" for the audio content, or "dimwidthxdimheight_bitrate. You can find individual video metadata in the timestamps/ folder. This folder will hold files named dimwidthxdimheight_bitrate.webm.json or audio.webm.json. These timestamps hold data necessary for adaptive streaming to work (locates where I-Frames are).

public/

This holds static assets. It currently only stores the player compilation and does not store source code.

views/

This holds HTML that get sent to the client, which is built using ejs (a template engine).

http-video-streaming's People

Contributors

dannycho7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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