How to reduce capture video size in ionic-angular?

My capture video or gallery video size is 100mb or above. So i want to reduce my video size by less than 50mb. How it is possible? any suggestion or code or plugin?

Thank you advanced

Which of the following more accurately describes your situation?

A. I have an existing video file that my app didn’t necessarily create. It’s too big.
B. My app has a feature to create videos. The videos it is capturing are too big.

Thank you for response. I capture a video using Media-Capture plugin but this video size more than 100mb. So I want to reduce video size less than 50mb. How can I reduced size of video file?

u solved it ?, i’m trying with video Encoder in ionic 6, but fail in android;