Compress video file selected before upload

I need to select video and upload to S3 Bucket. But before uploading i need to check size of the video and compress it if required (If video file size is greater the 15MB). But I am not getting any library to compress video using angular 8. Any suggestion please…!!!

1 Like

Well, no, you can’t expect to be able to do something that takes so much computing resource in a browser (technically you can do it, WASM would help there, but you’re not going to find anything off-the-shelf as of now). You would upload a file then convert it on a server – for example AWS provides a service to do this (Elastic Transcoder). Note that it’s not a cheap thing to do (video compression) for lots of videos.

1 Like