SSffmpegVideoOperation icon indicating copy to clipboard operation
SSffmpegVideoOperation copied to clipboard

How to reduce size of apk ?

Open gulabsagevadiya opened this issue 3 years ago • 9 comments

While using this lib app size becomes so huge like 117 MB I just need audio compressor for my project is there any solution to achieve this?

gulabsagevadiya avatar Apr 13 '22 12:04 gulabsagevadiya

You can take the fork and you can easily use your update.

AshvinVavaliya avatar Apr 13 '22 16:04 AshvinVavaliya

I know how to do fork and all things @AshvinVavaliya I am asking help for reduce library size which used in this project.

gulabsagevadiya avatar Apr 13 '22 17:04 gulabsagevadiya

@gulabsagevadiya did you solve this?

DoozyDoz avatar Jun 10 '22 09:06 DoozyDoz

The Apk size is huge (118 MBs) even in the official release which means its an issue that cuts across

DoozyDoz avatar Jun 10 '22 09:06 DoozyDoz

I have used different lib with Android bundle app become 20 mb size after that. Bundle is main part of that. If you build apk then it will become 120 mb but in bundle download size will be 20 mb

gulabsagevadiya avatar Jun 10 '22 16:06 gulabsagevadiya

20mbs is still too much on my side, I found a solution that uses the android built in MediaMuxer, its quite fast and lightweight (apk size is now 2.2 MBs) but it cannot work on video package type files (MKV, AVI). I shall try to compile an FFMpeg for only my functionality and get back

DoozyDoz avatar Jun 10 '22 18:06 DoozyDoz

Can you share a little more information about what you have used and some reference for that code? because I need an only the audio part and a more specific audio compressor only

gulabsagevadiya avatar Jun 11 '22 10:06 gulabsagevadiya

This is the class I was talking about but follow this SO Thread too

DoozyDoz avatar Jun 11 '22 17:06 DoozyDoz

APK size increases upto around 100 mb after using this library. I am using it to add image overlay on video. Does anyone found any solution? How to reduce APK size?

surbhiAppentus avatar Nov 23 '22 10:11 surbhiAppentus