title: compress selected video file before upload in javascript
body: <p>I have included video upload feature in my javascript project. Selecting the video from local storage in the project is uploading, but I want the size of the video file to be compressed and uploaded. My main focus is to upload recorded video from camera and mobile phone which is of very large size. I have used HTML 5 to select the video file.</p>
  <pre><code>&lt;input type= &quot;file&quot; id=&quot;fileselect&quot; name=&quot;uploadvideo&quot; accept=&quot;.mp4, .mov, .webm&quot;/&gt;
  </code></pre>
  <p>The size of the video file should be compressed before it is uploaded.</p>