-
Notifications
You must be signed in to change notification settings - Fork 177
Setting the FFmpeg version
The script can be executed without any arguments. In this case the FFmpeg 4.4.1 will be used.
However, it is possible to manually set the the version of FFmpeg to use. Be aware that the script supports FFmpeg 4.1+ only.
For overriding the version you may pass one additional argument to the ffmpeg-android-maker.sh. There are 3 options.
The script can download an archive with the source code of a particular FFmpeg release. Those archives are usually available on this page. By default, the script downloads an archive of FFmpeg 4.4.1. The uncompressed archive is kept across different executions of the script, so the archive for the same version is downloaded only once. This approach is equivalent to the git tag option, but is faster, since the git repo isn't cloned.
Example:
./ffmpeg-android-maker.sh --source-tar=4.2
You can set a particular tag of the FFmpeg's git repository. Tags are listed here. The script will clone the git repo (if needed), checkout the specified tag and use it for compilation. The repository is kept across different executions of the script, so the cloning occurs only once.
And here is an example:
./ffmpeg-android-maker.sh --source-git-tag=n4.1.4
You can set a particular branch of the FFmpeg's git repository. Branches are listed here. The script will clone the git repo (if needed), checkout the specified branch, pull its latest changes and use that state for compilation. The repository is kept across different executions of the script, so the cloning occurs only once.
It works like this:
./ffmpeg-android-maker.sh --source-git-branch=release/4.2
or
./ffmpeg-android-maker.sh --source-git-branch=master