Reputation: 1919
Is it possible to video compress before upload via browser? Like in iOS devices, browse video using HTML input type file tag and iOS make compress before uploading.
Or any javascript or jQuery library helping for compress in Android device browser ??
Upvotes: 2
Views: 1775
Reputation: 1026
Please refer to Mohan reply. By using:
However for the parameters, you may refer to
ffmpeg parameters (Do ignore the php codes)
Upvotes: 0
Reputation: 9471
The only way to compress video is to re-encode it. You can encode with lower quality settings than the default video recorder, and decrease the resolution.
There are a few options for client-side encoding, but they are functionally limited.
Whammy.js Encodes webm, but currently doesn't support audio. Bummer.
Firefogg Encodes webm and ogg. Only works in firefox.
Encoding is a cpu-intensive process. It will eat a ton of battery, and will take a while to process. If your goal is to save time on the upload, this probably won't help you much.
Upvotes: 2