Stream MPEG-TS from Raspberry Pi Camera.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
camera
static
.gitignore
README.md
index.html
package.json
server.js
setup.sh

README.md

Raspberry Pi MPEG Transport Stream

Capture Raspberry Pi Camera output, convert and stream video, decode and play in browser.

Express, WebSockets, raspivid, avconv and JSMpeg.

Requirements

Installation

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get upgrade -y -q
sudo apt-get install git nodejs libav-tools -y

git clone https://github.com/WebMaestroFr/rpi-mpeg-ts.git
cd rpi-mpeg-ts
npm install

Start Capture

npm start

The video stream is then ready to play on port 8080.

Server-Side Module

The ./camera module is converting the h264 capture into a mpeg stream.

var Camera = require("./camera");
var camera = new Camera({width: 640, height: 480, vflip: true});

var mpegStream = camera.stream("mpeg", mpegSocket.broadcast);