Reduce video file size using camera x android

Viewed 604

I am recording the video using camera x in my android app. I have successfully reduced the resolution of the video using:

videoCapture = new VideoCapture.Builder() .setCameraSelector(cameraSelector) .setTargetResolution(new Size(480,640)) .build();

even though the quality of the video is reduced, its size is still the same as 1080p video.

1 Answers

Please try to Re encode it to lower bitrate frame rate or lower resolutions or try to zip or compress it .

For this You can try the FFMPEG library to compress the size of video or media encode to edit media

https://github.com/tanersener/mobile-ffmpeg

Related