ffmpeg: Add new 5.1 archives for Android arm64 and x86_64

This commit is contained in:
bunnei 2023-05-31 15:01:02 -07:00
parent 03c4026b9b
commit 01cfdd1a8e
5 changed files with 21 additions and 0 deletions

21
ffmpeg/build.sh Normal file
View file

@ -0,0 +1,21 @@
#!/bin/bash
set -e
# ANDROID_NDK_ROOT and ANDROID_SDK_ROOT need to be set (possibly to ~/Android/Sdk/ndk/##.#.#######/ and ~/Android/Sdk respectively)
ARCH=x86_64
VERSION=v5.1.LTS
git clone --depth 1 --branch $VERSION https://github.com/arthenica/ffmpeg-kit.git
cd ffmpeg-kit
./android.sh --enable-x264 --enable-libvpx --enable-gpl --disable-arm-v7a{,-neon} --disable-arm64-v8a --disable-x86 --no-archive
cd ..
OUT_DIRECTORY=ffmpeg-android-$VERSION-$ARCH
mkdir $OUT_DIRECTORY
cp -r ffmpeg-kit/prebuilt/android-x86_64/{ffmpeg,libvpx,x264}/* $OUT_DIRECTORY/
cp $0 $OUT_DIRECTORY
tar c $OUT_DIRECTORY | xz -T0 > $OUT_DIRECTORY.tar.xz

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.