On macOS and Linux the script is supported natively. Please follow the instructions in Requirements section. Regardless of the OS you use, you need to setup it before executing the script. This is explained at this WIKI page in more details. Some external libraries (like libvpx) require to use higher API - 21. However, with NDK r23 it is still possible to have it 16. The default Android API version used to compile these binaries is 19, as the minimum supported by the Android NDK r24. If you need to build only some of these ABIs, you can do so by specifying a flag. This gives much smaller output binaries.Īlso there are a lot of arguments that you can pass to the ffmpeg-android-maker.sh script for tuning certain features. The MediaFile Android library uses only a subset of FFmpeg's functionality, so the redundant parts are not even compiled. What is actually customized can be seen here. These customizations are meant to be an example of how this project can be tuned to obtain the only functionality that is actually needed. The media-file branch contains certain customizations in build scripts of FFmpeg and certain external libraries. This means all default components and shared libraries are built (according to the image). The master branch of ffmpeg-android-maker builds 'vanilla' version of FFmpeg. The actual content of output directory depends on how the FFmpeg was configured before assembling. The WIKI contains a lot of useful information. The details of how this script is implemented are described in this series of posts: And it's not the only thing this project does.īy default this script downloads and builds the FFmpeg 5.1, but the version can be overridden. The script prepares the output directory that is meant to be used. The main focus of ffmpeg-android-maker is to prepare shared libraries for seamless integration into an Android project. They can be found in build directory after the successful build. The script also produces ffmpeg and ffprobe executables that can be used in Android's terminal directly or can even be embedded into an Android app. The output structure is represented in the image. The script produces shared libraries (*.so files) as well as header files (*.h files). Here is a script that downloads the source code of FFmpeg library and assembles it for Android.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |