https://github.com/tahaipek/nodcam
Access and stream web camera in nodejs using ffmpeg, websockets and HTML5.
https://github.com/tahaipek/nodcam
ffmpeg html5 nodejs stream-web-camera streaming webcam websockets
Last synced: 4 months ago
JSON representation
Access and stream web camera in nodejs using ffmpeg, websockets and HTML5.
- Host: GitHub
- URL: https://github.com/tahaipek/nodcam
- Owner: tahaipek
- Created: 2016-09-29T17:08:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-08T20:17:36.000Z (over 6 years ago)
- Last Synced: 2025-06-09T12:07:42.129Z (4 months ago)
- Topics: ffmpeg, html5, nodejs, stream-web-camera, streaming, webcam, websockets
- Language: JavaScript
- Size: 135 KB
- Stars: 76
- Watchers: 4
- Forks: 27
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nodcam
Access and stream web camera in **nodejs** using **ffmpeg**, **websockets** and **HTML5**.### **Usage:**
```npm
$ git clone https://github.com/tahaipek/Nodcam.git$ cd Nodcam
$ npm install
$ npm run express-server
(Web server - node index.js)
$ npm run streaming-server
(Web Sockets - node stream.js )
$ npm run ffmpeg
(Streaming camera ffmpeg command =>
ffmpeg -f dshow -i video="":audio="" .mp4 -f mpeg1video http://localhost:///height)
if you don't want to record, remove 'output' keyword.
```### **Third Party Libraries:**
* **ExpressJs** http://expressjs.com/
* **Ws** https://www.npmjs.com/package/ws
* **JsMpg** *(MPEG1 Video Decoder in JavaScript)* https://libraries.io/bower/jsmpg### **Requirements**
* **NodeJs** https://nodejs.org/
* **ffmpeg** https://www.ffmpeg.org/This application has been tested Windows 10.
