title: Node fluent-ffmpeg stream output error code 1
body: <p>Following the documentation exactly, I'm attempting to use a stream to write a video conversion to file.</p>
  
  <pre><code>var FFmpeg = require('fluent-ffmpeg');
  var fs = require('fs');
  
  var outStream = fs.createWriteStream('C:/Users/Jack/Videos/test.mp4');
  
  new FFmpeg({ source: 'C:/Users/Jack/Videos/video.mp4' })
      .withVideoCodec('libx264')
      .withAudioCodec('libmp3lame')
      .withSize('320x240')
      .on('error', function(err) {
          console.log('An error occurred: ' + err.message);
      })
      .on('end', function() {
          console.log('Processing finished !');
      })
      .writeToStream(outStream, { end: true });
  </code></pre>
  
  <p>This conversion works perfectly when I use .saveToFile(), but returns </p>
  
  <blockquote>
    <p>An error occurred: ffmpeg exited with code 1</p>
  </blockquote>
  
  <p>When I run this code. I'm on Windows 8.1 64 bit using a 64 bit ffmpeg build from <a href="http://ffmpeg.zeranoe.com/builds/" rel="noreferrer">here</a>.</p>