2

I've implemented a program that record videos (both Android/iOS) with cordova-plugin-media-capture and upload them to a server.

It's working very well, but the videos that have just a few seconds have more than 10 mb and we need to reduce this size...

We already tried to change the quality parameter of CaptureVideoOptions, but it only accept 1 (hight quality) or 0 (poor quality).

If I set quality: 0, the video is saved in .3gp rather than .mp4 and the quality is awful. We didn't find a way to record the videos with 70% of quality, for instance.

Anybody there knows a way to compress a video file or to record with an acceptable quality?

Thanks

siega
  • 2,508
  • 1
  • 19
  • 22
  • Hello, have found a solution for this ? ^^ – Pierre Jun 30 '21 at 04:07
  • Unfortunately this was a long time ago, I don't have access to the project anymore and can't remember how I've fixed this... :( – siega Jun 30 '21 at 12:29
  • 1
    Thanks for your answer. Actually I found that the plugin cordova-plugin-video-editor does this job very well :) https://github.com/AlexMiniApps/cordova-plugin-video-editor – Pierre Jul 01 '21 at 04:30

0 Answers0