Make a (HLS)HTTP Live Streaming from OpenCV to public by Node.js
This project using the following technologies to go:
- opencv4nodejs: Use it to capture webcam frames and more power
- FFmpeg: Use it to compress frames and make the HLS live streaming
- hls.js: Use it to play HLS live steaming from server
- ngrok: Use it to get public and secure URL for exposing the local web server
- express: Use it to make a web server
- A webcam, e.g. laptop-integrated webcam, USB webcam
- Node.js 8 or higher
- OpenCV 3.3.1 or higher
- FFmpeg 3.3 or higher
The below commands to install the project.
npm install
node server.js
- Make sure you are still in the
project_root
directory - To run the server:
node server.js
then you will get theNgrok HTTP URL
in terminal - To run the demo, open a browser and go to
Ngrok HTTP URL
The app should be up and running!