How to replace LGPL library with your own build

This tutorial tells you how to replace the LGPL libraries used in the Video Player app (Precise Frame Seek Volume mpv Video Player) with your own build(s) if you wish.

Source code

You can get the source code of the libraries used in our app from the downloads page

Extract an APK from the installed app

If you do not have the APK file of the app, you can extract the APK using free or paid programs available for download from the internet such as Apk Extractor which is available from Google Play store

Build libraries

FFmpeg

If you do not have a build of FFmpeg you can build it according to instructions found at

For app versions later than 1.0

mpv

If you do not have a build of mpv you can build it according to instructions found at https://github.com/mpv-player/mpv

fridibi

If you do not have a build of fribidi you can build it according to instructions found at https://github.com/fribidi/fribidi

libplacebo

If you do not have a build of libplacebo you can build it according to instructions found at https://github.com/haasn/libplacebo

Once the libraries are built, you should have .so files created somewhere. You can replace the library in the app with these .so files.

 

Replacing the .so files and reinstalling APK

  1. Decompile the APK using a program such as APK Easy Tool or open the APK using an archive viewer
  2. Look for the .so files inside the APK which should be inside the folders inside the top libs folder
  3. Copy the .so files from your build output(s) to replace the ones in the APK.
  4. Resign and rebuild the APK using a program such as APK Easy Tool
  5. Reinstall the rebuilt APK on your device