Git Product home page Git Product logo

steaming-ip-camera-nodejs's Introduction

Steaming IP Camera Nodejs

Open source project of real time streaming (~30 fps) IP/Network security camera on web browser using NodeJS

Content of web page analyzation by Google

Getting Started

These instructions will get you a copy of the project to make it up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

  • Git - free and open source distributed version control system
  • Node.js - Node.js >= 10.15.0
  • FFmpeg - Multimedia framework to decode, encode, transcode, mux, demux, stream, filter and play

Installing

A step by step series of examples that tell you how to get a development up and running

  1. Download Git
  1. Open command prompt/terminal, Clone this repository to your local machine
git clone https://github.com/xpcrts/Steaming-IP-Camera-Nodejs
  1. Download and install Node.js on your local machine
  1. Download and install pre-build FFMPEG Builds on your local machine (Download Build)
  • FFmpeg - Multimedia framework to decode, encode, transcode, mux, demux, stream, filter and play
  • Copy the FFMPEG Zip folder you have just downloaded, paste it into C: drive for simplicity and unzip it.
  • Rename the file to ffmpeg for simpicity
  • After unzipped the file, navigate ffmpeg/bin

On Microsoft Windows

You need to add ffmpeg to system variables (For all users) or User variables (For specific user)
For research and test, I recommend to add the ffmpeg path to the system variables to do that just navigate to:
a. Control Panel
b. System and Security
c. System
d. Advanced system settings
e. Environment Variables...
f. System variables
g. Path (Double-click on it)
h. New
i. Paste this C:\ffmpeg\bin
j. OK (3 times)

5. NPM install node-onvif

npm install node-onvif -s

6.NPM install node-rtsp-stream

npm i node-rtsp-stream -s

7.NPM install http-server

npm install http-server -g

Running the tests

  1. In the repository, open app.js file
  • Change IP address to your camera IP address
  • Username of your network camera
  • Password of your network camera
  1. Open one command prompt/terminal, navigate to Streaming-IP-Camera-Nodejs/src directory and type:
http-server

hit enter to run

3. Open another command prompt/terminal, on the same directory path and type:

node app.js

hit enter to run

Now keep those two terminal up and running

Preview Streaming Camera on web browser by go to this URL:

127.0.0.1:8000

You are ready to go.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

To-dos

  • Streaming Multiple camera channels at once, using 4x4 grid or more
  • Customize width and height of canvas
  • Improve streaming resolution quality
  • Decrease streaming latency

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Credit to: Celalettin Erbulut

steaming-ip-camera-nodejs's People

Contributors

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