简体   繁体   中英

FFMPEG Android Library Reduce Android App Size

I am using audio/video manipulation library mentioned below.

MobileFFmpeg --- implementation 'com.arthenica:mobile-ffmpeg-min:4.4'

After implementation and applying ProGuard rules app download size is 26.8 Mb. I want to reduce the app size.

How to reduce the app size?

When you use this kind of library, you don't have much of a choice on app size. One thing you can do is release aab instead of apk on google play.

For example, if you analyze the apk you might see, you have different.so file for different architectures.

With aab file, google can choose the right architecture to build apk for right device.

I would not worry too much about size for this kind of app, because it needs those.so files to work properly.

Another bold approach you can take is to make your own version of ffmpeg lite by removing anything that you don't need.

But that requires a deep understanding of the ffmpeg library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM