Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

mjpeg-frame-stream

0.0.1 • Public • Published

MJPEG Frame Stream

This is a transform stream for MJPEG streams or any jpeg-streams.

Install

$ npm i mjpeg-frame-stream

Usage

const MjpegFrameStream = require('mjpeg-frame-stream');
const fs = require('fs');
 
let mgpegStream = fs.createReadStream('./mjpeg.dump'),
    frameStream = new MjpegFrameStream();
 
mgpegStream.pipe(frameStream)
    .on('frame', frame => console.log(frame));
 

License

Licensed under the MIT License

Install

npm i mjpeg-frame-stream

DownloadsWeekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar