https://github.com/john-doherty/raspberry-pi-mjpeg-server
Node.js module providing Motion JPEG access to the Raspberry PI camera module to enable video streaming via HTTP
https://github.com/john-doherty/raspberry-pi-mjpeg-server
mjpeg-stream nodejs raspberry-pi raspberry-pi-camera
Last synced: 5 months ago
JSON representation
Node.js module providing Motion JPEG access to the Raspberry PI camera module to enable video streaming via HTTP
- Host: GitHub
- URL: https://github.com/john-doherty/raspberry-pi-mjpeg-server
- Owner: john-doherty
- License: mit
- Created: 2016-08-10T19:57:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-24T06:22:56.000Z (over 3 years ago)
- Last Synced: 2025-02-08T04:48:40.772Z (5 months ago)
- Topics: mjpeg-stream, nodejs, raspberry-pi, raspberry-pi-camera
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 44
- Watchers: 7
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# raspberry-pi-mjpeg-server
[](https://www.npmjs.com/package/raspberry-pi-mjpeg-server)Node.js mjpeg streaming server to provide video like access to the Raspberry PI camera module
## Installation
```js
npm install raspberry-pi-mjpeg-server --save
```## Usage
```
$ node raspberry-pi-mjpeg-server.js -w 1280 -l 1024
```### Options
```
-p, --port port number (default 8080)
-w, --width image width (default 640)
-l, --height image height (default 480)
-q, --quality jpeg image quality from 0 to 100 (default 85)
-s, --sharpness Set image sharpness (-100 - 100)
-c, --contrast Set image contrast (-100 - 100)
-b, --brightness Set image brightness (0 - 100) 0 is black, 100 is white
-s, --saturation Set image saturation (-100 - 100)
-t, --timeout timeout in milliseconds between frames (default 500)
-h, --help display this help
-v, --version show version
```## Access the stream
Open your browser and visit:
```
http://rpi-ip-address:port
```You can get direct access to the image (HTTP multipart document) via
```
http://rpi-ip-address:port/image.jpg
```## License
[MIT License](LICENSE) © 2016 [John Doherty](https://twitter.com/mrJohnDoherty)