npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

jpeg-stream

0.1.0

@nickmomrik

npmSnykSocket
Downloads:1
$ npm install jpeg-stream
DailyWeeklyMonthlyYearly

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

  • Nick Momrik (@nickmomrik)
  • Guillermo Rauch (@guille)

License

MIT – Copyright (c) 2014 Automattic, Inc.