termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

[Bug]: ffmpeg is missing --enable-jni --enable-mediacodec

Open arm64-v9a opened this issue 1 year ago • 3 comments

Problem description

Since ffmpeg 6.0, ndk mediacodec is supported, which means it is possible to use mediacodec hardware acceleration in termux.

What steps will reproduce the bug?

ffmpeg -hwaccels

What is the expected behavior?

Hardware acceleration methods:
mediacodec

System information

termux-info:

Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__AM_SOCKET_SERVER_ENABLED=true
TERMUX_APP__APK_PATH=/data/app/~~Bzh_ZqrwmYGpbQkWa9rLIA==/com.termux-Jq9MQh-NLLeYygDguxpUqA==/base.apk
TERMUX_APP__APK_RELEASE=UNKNOWN
TERMUX_APP__FILES_DIR=/data/user/0/com.termux/files
TERMUX_APP__IS_DEBUGGABLE_BUILD=false
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_MANAGER=apt
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PACKAGE_VARIANT=apt-android-7
TERMUX_APP__PID=28373
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c170,c256,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c170,c256,c512,c768
TERMUX_APP__TARGET_SDK=28
TERMUX_APP__UID=10170
TERMUX_APP__USER_ID=0
TERMUX_APP__VERSION_CODE=118
TERMUX_APP__VERSION_NAME=0.118.0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages.termux.dev/apt/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.38.1
Android version:
13
Kernel build information:
Linux localhost 4.14.295-gc290b209397d #1 repo:13 SMP PREEMPT Thu 01 Jan 1970 12:00:00 AM UTC aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 4 XL
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

arm64-v9a avatar May 14 '23 06:05 arm64-v9a

Currently not possible without adding support to https://github.com/termux/termux-app

truboxl avatar May 15 '23 01:05 truboxl

Yes you can build it with those options on, but can you use it?

truboxl avatar May 15 '23 01:05 truboxl

There is your answer. Your screenshot already indicate some errors and this is expected.

truboxl avatar May 15 '23 02:05 truboxl