AbedElazizShe / LightCompressor

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

Add parameter to file instead of URI,bacause the amount of data in the app increased dramatically #132

Closed ppg408331701 closed 11 months ago

ppg408331701 commented 2 years ago

VideoCompressor.start(),now only pass URIs,

I found that every time I compressed the video, the amount of data in the app increased dramatically,

I'm guessing it's because of the sandbox path required by Android Q, and LightCompressor copies the file once per compression

I hope to add a new method, and I will handle the sandbox path by myself

Or put the compressed cache file in the cache directory

IMG_20220809_164843 jpg

ppg408331701 commented 2 years ago

The size increased by each compression is equal to the original size + compress size