a stream implementation that consumes http mjpeg streams and emits jpegs as buffers
A node.js transform stream implementation that consumes http multipart mjpeg streams and emits jpegs.
npm install mjpeg-consumer
mjpeg-consumer isn't very useful without a writable pipe to pipe jpegs to. I've built the file-on-write stream to write a file every time
write is called on it. The below example opens a stream to an IP camera, pipes the results to the
mjpeg-consumer which processes the stream and emits parsed jpegs to the
var request = require"request";var MjpegConsumer = require"mjpeg-consumer";var FileOnWrite = require"file-on-write";var writer =path: './video'ext: '.jpg';var consumer = ;request""pipeconsumerpipewriter;