title: How to cut a video in specific start & end time in ffmpeg by Node JS?
body: <p>I want to cut a video in specific start &amp; end time &amp; save it. I am able to copy a full video but cant understand to how to cut specific time of that video by Node JS.</p>
  
  <p>Video copy code :</p>
  
  <pre><code>  ffmpeg('public/'+req.body.video)
      .on('end', function(err) {   
          if(!err)
          {
            console.log('Done');
  
          }                 
  
      })
      .on('error', function(err){
          console.log('error: '+err);
          callback(err);
      }).run();
  </code></pre>