ffmpeg-android
ffmpeg-android copied to clipboard
Runtime error on Android 7 (Nougat)?
Users with Android 7 are reporting errors when the app runs ffmpeg commands. Users with Android 6 are fine. The app is targeting API 23.
Is that related to "NDK Apps Linking to Platform Libraries" below? If so, any way to fix it? Otherwise the binary will not be usable any more... https://developer.android.com/about/versions/nougat/android-7.0-changes.html#ndk
In Android 6, there is also a section mentioning "text relocations" problems (below), but the app is already targeting 23... https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-runtime
I will change targeting to 22 and let a user test it. But want to know if there is good fix.
Here are the error logs. The ffmpeg will not run even at targetSdkVersion 22, on Android 7 x86 emulator...
09-18 21:29:08.287 2708-2708/? E/linker: /data/data/xxxxxxxxxxx: has text relocations 09-18 21:29:08.287 2708-2708/? A/libc: CANNOT LINK EXECUTABLE "/data/data/xxxxxxxxxxx": /data/data/xxxxxxxxx: has text relocations 09-18 21:29:08.287 2708-2708/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 2708 (xxxxxxxxxx)
Sad...
you must update you ffmpeg(3.3) library; this link maybe is good; https://github.com/kesha-antonov/ffmpeg-android-java
any plan to update to ffmpeg 3.3 according to this android Nougat is on nearly 10 percent of devices https://developer.android.com/about/dashboards/index.html#Screens