I used prebuilt aar,
If it is not available you can follow this
https://medium.com/@213maheta/ffmpeg-create-aar-file-add-it-into-android-project-7e069b0fe23f
i) Run below command on terminal
git clone https://github.com/arthenica/ffmpeg-kit.git
or Download source code from below link
https://github.com/arthenica/ffmpeg-kit
ii) Open termial & give path for Android SDK & NDK
export ANDROID_SDK_ROOT=/..your_path../Android/Sdk
export ANDROID_NDK_ROOT=/..your_path../Android/Sdk/ndk/25.1.8937393
iii) Run below command
./android.sh
iv) Go to dir
…./ffmpeg-kit/prebuilt/bundle-android-aar/
v) Copy ffmpeg-kit.aar & put it in to below path
project_name/app/libs/
vi) Add below line in your app gradle
dependencies {
implementation(files("libs/ffmpeg-kit.aar"))
}