0.1.0 • Published 10 years ago

jpeg-stream v0.1.0

Weekly downloads
3
License
-
Repository
-
Last release
10 years ago

jpeg-stream

Build Status

Splits a stream of bytes representing JPEGs into individual images

How to use

var JPEGStream = require('jpeg-stream');
var spawn = require('child_process').spawn;
var proc = spawn('ffmpeg', ['-i', 'test.mov', '-f', 'image2', '-vframes', '5', '-']);
var parser = new JPEGStream;
proc.stdout.pipe(parser).on('data', function(buf){
  // each jpeg in its own `buf`
});

API

jpeg-stream exports a Transform stream.

Authors

License

MIT – Copyright (c) 2014 Automattic, Inc.