Add ffmpeg and ffprobe commands

This commit is contained in:
Anton Liaposhchenko 2024-05-18 17:24:26 +03:00
parent e8b02e36a7
commit 69a43e9b14
2 changed files with 22 additions and 0 deletions

11
cmd/ffmpeg Normal file
View File

@ -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 "$@"

11
cmd/ffprobe Normal file
View File

@ -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 "$@"