I tried to compress a 15 MB video file and after compression, the file size became 22 MB.
The following is the code i'm using:-
String compressedVideoFilePath = SiliCompressor.with(context) .compressVideo(actualVideoFile.getAbsolutePath(), actualFileDirPath);File compressedVideoFile = new File(compressedVideoFilePath);float fileSizeAfterCompress = (float) (compressedVideoFile.length() / (1024.0 * 1024.0));
I tried to compress a 15 MB video file and after compression, the file size became 22 MB. The following is the code i'm using:-
String compressedVideoFilePath = SiliCompressor.with(context) .compressVideo(actualVideoFile.getAbsolutePath(), actualFileDirPath);
File compressedVideoFile = new File(compressedVideoFilePath);
float fileSizeAfterCompress = (float) (compressedVideoFile.length() / (1024.0 * 1024.0));