Search code examples
androidffmpegandroid-mediaplayermedia-player

Using FFmpegMediaPlayer - Apk size increased by 35MB approx - (without library apk size - 4mb)


Is there a workaround to this, as the size of the apk is drastically increased and the library was added through normal procedure - (compile 'com.github.wseemann:FFmpegMediaPlayer:1.0.4')

and not through manual inclusion or downloading I wonder whether anyone else has this problem.


Solution

  • if you go to the source code of the library, to the releases page (https://github.com/wseemann/FFmpegMediaPlayer/releases) you'll see that you can manually download to your PC, what is normally being downloaded by gradle and then added to your APK.

    There you can see it's 50mb zip, file so it's not crazy to imagine 35mb increase in the APK.

    That's because it's not a half dozen Java files, like most libraries are, but this have the compiled binary code of the FFMPEG, compiled for each platform Android uses (arm, x86, 32 and 64bits).

    So yeah, final conclusion, if you're really gonna use any ffmpeg based thing, your app will take this extra space.