arthenica / ffmpeg-kit

FFmpeg Kit for applications. Supports Android, Flutter, iOS, Linux, macOS, React Native and tvOS. Supersedes MobileFFmpeg, flutter_ffmpeg and react-native-ffmpeg.
https://arthenica.github.io/ffmpeg-kit
GNU Lesser General Public License v3.0
4.42k stars 591 forks source link

Increase App Size #638

Closed TuupleMasterAndroid closed 1 year ago

TuupleMasterAndroid commented 1 year ago

I am creating audio enhance app in flutter only increase the level of the sound. I put ffmpeg_kit_flutter: version in pubspec.yaml file. I have firebase, riverpod, path_provider, file_picker, just_audio in my project. When I add ffmpeg_kit_flutter: ^5.1.0 size of the increase. Before add ffmpeg_kit_flutter app apk size is 70,899 KB but after adding size is 1,41,662 KB.

zstarpak commented 1 year ago

Same here. Before the apk was 44 MB and now it is 126 mb

nafiskabbo commented 1 year ago

yes same issue

tanersener commented 1 year ago

Folks, Android documentation explains how apk size can be decreased in different pages. Please have a look at them.

https://developer.android.com/topic/performance/reduce-apk-size https://developer.android.com/studio/build/configure-apk-splits

With regard to ffmpeg-kit, we have the How to Decrease Binary Size guide in the wiki.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.

yava555 commented 10 months ago

https://developer.android.com/topic/performance/reduce-apk-size

After implementing two optimizations, the size of the APK has been significantly reduced:

1) Set the useLegacyPackaging to true in the App's build.gradle file. 2) Removed ARMv7 support, now only supporting ARM64.

packagingOptions {
      jniLibs {
          useLegacyPackaging true
      }
}

defaultConfig {
    ndk {
        abiFilters "arm64-v8a"
    }
}
Gautamjaiswal22 commented 8 months ago

here Application size increase because ffmpeg_kit_flutter package require higher minsdkversion in your build.gradle which at the end result in higher build and release app size.

tanersener commented 6 months ago

@Gautamjaiswal22 I believe you must go to Google then. They decide what minsdkversion puts into an apk not us.