Skip to content

Automattic/jpeg-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Emits `jpeg` events from a stream of JPEG images

Resources

Stars

Watchers

Forks

Packages

No packages published