0.1.0 • Published 10 years ago
jpeg-stream v0.1.0
jpeg-stream
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
- Nick Momrik (@nickmomrik)
- Guillermo Rauch (@guille)
License
MIT – Copyright (c) 2014 Automattic, Inc.
0.1.0
10 years ago