AbedElazizShe / LightCompressor

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

Optimize compressor by using highest codec profile level #192

Closed josebraz closed 3 months ago

josebraz commented 9 months ago

Hello! Thank you for providing this library.

While incorporating this library into my project, I observed that the output quality and size were not optimal. Upon researching Android documentation, I came across the following recommendations: https://developer.android.com/media/optimize/sharing#b-frames_and_encoding_profiles

This pull request modifies the code to utilize the highest profile level supported by the device, aligning with the official recommendations.