AbedElazizShe / LightCompressor

A powerful and easy-to-use video compression library for android uses MediaCodec API.
Apache License 2.0
535 stars 116 forks source link

Size is the same for every quality #95

Closed UrbanFercec closed 2 years ago

UrbanFercec commented 3 years ago

First of all - thank you for this amazing library. I belive it's the best there is on video compression on Android!

However, I have found an very strange bug - whenever I compress video, no matter the quality, I always get back the same size of the video. I get this issue if I leave all the rest of the fields empty of I leave them as default.

Am I doing something wrong here or is this worth investigating?

AbedElazizShe commented 3 years ago

@UrbanFercec thank you for the kind feedback and I aplogise for the late reply.

If you check the video details on, let's say, windows or mac, is it showing the same size? I noticed that Android sometimes show the old size and configuration, which in fact is not correct. It has to do with how the original video was written to the folder after compression.

Could you please check on that and confirm?

Thanks a lot.

minshoki commented 3 years ago

Call the function after conversion is complete.

contentResolver.update()