2

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 ??

joao2fast4u
  • 6,868
  • 5
  • 28
  • 42
Wiram Rathod
  • 1,895
  • 1
  • 19
  • 41
  • To compress the video you need to re encode the video. Refer this [link](https://stackoverflow.com/questions/10991863/is-it-possible-to-compress-video-on-android) – Mohan Nov 28 '13 at 07:06

2 Answers2

2

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.

posit labs
  • 8,951
  • 4
  • 36
  • 66
0

Please refer to Mohan reply. By using:

ffmpeg4android

However for the parameters, you may refer to

ffmpeg parameters (Do ignore the php codes)

Eric T
  • 1,026
  • 3
  • 20
  • 42