ffmpeg-android-cli/cmd/ffmpeg

16 lines
401 B
Bash
Executable File

#!/system/bin/sh
BASE_DIR=$(dirname $0)
ABIS=$(getprop ro.system.product.cpu.abilist)
ABIS=${ABIS:-$(getprop ro.product.cpu.abilist)}
for LIB_DIR in $BASE_DIR/lib/{$ABIS}; do
[ -d "$LIB_DIR" ] && break
unset -v LIB_DIR
done
app_process \
-Djava.class.path=$BASE_DIR/classes.dex \
-Djava.library.path=$LIB_DIR:/system/lib64:/system/lib \
/sdcard ua.pp.antonlyap.ffmpeg.CLI ffmpeg "$@"