Giter VIP home page Giter VIP logo

nodejs-video-streamer's Introduction

NodeJS-Video-Streamer

A simple web video streamer built on the MEVN stack.

Video Player

Features

  • Automatic transcoding through Handbrake
  • Video.js video player
  • Video streaming from NodeJS backend
  • Automatic thumbnail generation through FFmpeg
  • Store video metadata in MongoDB
  • Video uploader
  • Video search tool
  • Video comments and likes

Installation

Backend

The backend code is found in the API directory. You will need to have NodeJS and FFmpeg installed and properly configured on your system before proceeding. Start by installing all backend dependencies

npm install

Change the DB settings to your MongoDB database in the API/DB.js file

module.exports = {
    DB: 'mongodb://127.0.0.1:27017/videoStreamer' // Connection to DB
}

Run the backend server

node index.js

Or, if you want to run the backend development server instead

nodemon run

The backend will automatically run on port 8000, if you want to change this you can edit the port on line 29 of the index.js file.

Frontend

Run in the root directory of the project to install all frontend dependencies

npm install

You will now need to edit line 9 of the main.js file found in src/main.js. Set this to the IP and port of your backend server.

Vue.prototype.$apiIp = "http://127.0.0.1:8000"

Building the application for production minifies all the files, and removes unnecessary checks. To build the app run

npm run build

The generated files will be placed in the dst directory, these can be run on any static file server.

Or, to run the development server, you can run

npm run serve

Interface

Transcoding

Home

nodejs-video-streamer's People

Contributors

jslightham avatar

Stargazers

 avatar

Watchers

 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.