From 69a43e9b143259bb4ed3f2c0dbdcd513be099d80 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 18 May 2024 17:24:26 +0300 Subject: [PATCH] Add `ffmpeg` and `ffprobe` commands --- cmd/ffmpeg | 11 +++++++++++ cmd/ffprobe | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 cmd/ffmpeg create mode 100644 cmd/ffprobe diff --git a/cmd/ffmpeg b/cmd/ffmpeg new file mode 100644 index 0000000..1a10b73 --- /dev/null +++ b/cmd/ffmpeg @@ -0,0 +1,11 @@ +#!/system/bin/sh + +BASE_DIR=$(dirname $0) + +for LIB_DIR in $BASE_DIR/lib/{$(getprop ro.system.product.cpu.abilist)}; do + [ -d "$LIB_DIR" ] && break + unset -v LIB_DIR +done + +LD_LIBRARY_PATH=$LIB_DIR:/system/lib64:/system/lib:/etc/lib \ +app_process -Djava.class.path=$BASE_DIR/classes.dex /sdcard ua.pp.antonlyap.ffmpeg.CLI ffmpeg "$@" diff --git a/cmd/ffprobe b/cmd/ffprobe new file mode 100644 index 0000000..e196ed8 --- /dev/null +++ b/cmd/ffprobe @@ -0,0 +1,11 @@ +#!/system/bin/sh + +BASE_DIR=$(dirname $0) + +for LIB_DIR in $BASE_DIR/lib/{$(getprop ro.system.product.cpu.abilist)}; do + [ -d "$LIB_DIR" ] && break + unset -v LIB_DIR +done + +LD_LIBRARY_PATH=$LIB_DIR:/system/lib64:/system/lib:/etc/lib \ +app_process -Djava.class.path=$BASE_DIR/classes.dex /sdcard ua.pp.antonlyap.ffmpeg.CLI ffprobe "$@"