Merge pull request #76 from bsorbo/master

onProgress event occasionally fails
Kill ffmpeg process when output stream closes.

This is handy for cases like streaming through express, where the process might go on for a long time and the output connection can be killed.
woops logger lives in options
Merge pull request #77 from cjbest/master

Kill ffmpeg process when outputs stream closes
Update lib/processor.js

I fixed the following problems about creating the screenshots without timemarks:

for (var i = 0; i < timemarks.length; i++) {
                             ^
TypeError: Cannot read property 'length' of undefined
Merge pull request #79 from damianociarla/patch-1

added check for timemarks type
fixed leaking var
version bump
used Array.isArray() instead of custom implementation
dropped option '-vpre superfast' since external libx264 presets were deprecated
implemented loop([duration]) and takeFrames(frameCount) methods (closes #78)
version bump
implemented windows compatible test-runner
fixed all unit tests on windows, run using '> build.bat'
version bump
minor fix
fix for newer ffmpeg

The ffmpeg shipped with debian (unstable)
ffmpeg version 0.8.4-6:0.8.4-1, Copyright (c) 2000-2012 the Libav developers
ii  ffmpeg             6:0.8.4-1      amd64          Multimedia player, server, encoder and tr

changes slightly the output from '[q]' to 'ctrl-c',
this breaks the emission of the onCodecData signal.

this simple patch extends the regex to match for both cases.

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
Process more (format, duration, extended {audio,video})

this patch tries to extract more data out of the ffmpeg output
we get duration, format data, all of the audio and video line.
for compatibility audio and video are exactly as they used to be.

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
Use test instead of exec in conditionals for testing regex matches.
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/test
Fixed this warning in newer versions of express.js:
Warning: express.createServer() is deprecated, express
applications no longer inherit from http.Server,
please use:

  var express = require("express");
  var app = express();