Added initial source code

This commit is contained in:
Jarrod Norwell 2024-03-06 14:15:59 +08:00
parent 4122bd24b3
commit 601d717514
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.