I have to make a simple web page on which user can upload a video (max 10 MB) and the page will compress it (to 5 MB or less) and save it to the server.
I have done the front-end part of the webpage using HTML CSS and javascript.
The user should be able to add a video file and my site should compress it on the server side.
So, How can I compress the uploaded video on my server?