title: stream mp4 video with node fluent-ffmpeg
body: <p>I'm trying to create video stream server and client with node <strong>fluent-ffmpeg</strong>, <strong>express</strong> and <strong>ejs</strong>. And a haven't solve this for a while.
  What I want to do is to play video beginning by certain time.
  The following codes make it with <strong>Safari browser</strong> on windows but with others it makes a loop of a few seconds or it says </p>
  
  <blockquote>
    <p>video format not supported</p>
  </blockquote>
  
  <p><strong>server code (run.js)</strong> : </p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>app.get('/video', function(req, res) {
  
    //define file path,time to seek the beegining and set ffmpeg binary
    var pathToMovie = '../videos/test.mp4';
    var seektime = 100; 
    proc.setFfmpegPath(__dirname + "/ffmpeg/ffmpeg");
  
  
    //encoding the video source
    var proc = new ffmpeg({source: pathToMovie})
           .seekInput(seektime)
           .withVideoBitrate(1024)
           .withVideoCodec('libx264')
           .withAspect('16:9')
           .withFps(24)
           .withAudioBitrate('128k')
           .withAudioCodec('libfaac')
           .toFormat('mp4');
  
    //pipe 
           .pipe(res, {end: true});
  });
  </code></pre>
  
  
  
  <p><strong>client code (index.ejs):</strong></p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
    &lt;head&gt;&lt;/head&gt;
  
    &lt;body&gt;
      &lt;video&gt;
        &lt;source src="video/" type='video/mp4' /&gt;
      &lt;/video&gt;
    &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  
  
  <p>Help please. I searched everywhere solution but I didn't find</p>