android-ndk

Mix 2 videos with FFmpeg (overlay one on top of other)

一个人想着一个人 提交于 2019-12-25 01:06:14
问题 I using ffmpeg through Android-NDK . I've 2 pieces of the videos , The first one is my main video and the second one is my effect video. Now I wanna mix this 2 videos together, Is it possible ? Note : Both videos decoding through MP4 format. 回答1: I don't know how to translate this into the API offhand, but the command-line version of what you're trying to do is something like: ffmpeg -i main.mp4 -vf 'movie=effect.mp4 [f];[in][f] overlay=0:0 [out]' out.mp4 See the docs on movie and overlay for

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “_ZNSt6__ndk17codecvtIcc9mbstate_tE2idE”

六月ゝ 毕业季﹏ 提交于 2019-12-25 00:44:16
问题 I use ndk-build to build a static library and compile to a *.so successfully, but Runtime error is thrown when runs in android simulator. The error is E/AndroidRuntime: FATAL EXCEPTION: main Process: org.example.kotlin.mixed, PID: 31185 java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt6__ndk17codecvtIcc9mbstate_tE2idE" referenced by "/data/app/org.example.kotlin.mixed-2/lib/x86/libtest.so"... at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System

Unable to find mixed_sample.so

霸气de小男生 提交于 2019-12-25 00:15:08
问题 I'm trying to build tutorial-2-mixedprocess application (in android-studio) that came with the opencv-SDK 3.2.0. But my application crashes because of a missing mixed_sample library // Load native library after(!) OpenCV initialization System.loadLibrary("opencv_java3"); //This one is taken care in CmakeLists.txt Log.d(TAG, "Loaded the opencv"); //This line appears on the monitor System.loadLibrary("mixed_sample"); // C-R-A-S-H h h h I looked inside OpenCV-android-sdk/sdk/native/libs

Android System.loadLibrary stalls while loading native library

女生的网名这么多〃 提交于 2019-12-25 00:05:52
问题 I have a rather large shared library file (= 12megabytes) which does not contain any JNI code whatsoever. When calling System.loadLibrary("some_file") the method never returns and no relevant output is generated. Also, Windows Taskmanager reports that the emulator instance is not hogging all the CPU power. I have a class with the following code: static { System.out.println("Trying"); System.loadLibrary("some_file"); System.out.println("Works"); } Here is the output given from LogCat: I/System

How to stop gradle from looking for the Android NDK?

浪子不回头ぞ 提交于 2019-12-24 23:08:44
问题 I have a Android project which doesn't use the NDK jet Gradle is looking for the NDK. Either I get this Error: No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android Or I get this warning: NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /opt/local/share/java/android-sdk-macosx/ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local

Include .so library to android ndk project

Deadly 提交于 2019-12-24 20:56:28
问题 I'm beginning with android NDK. I have to compile a native library for the 1.6 sdk (mupdf) but it requires the ljnigraphics lib (which was added lately on 2.2). I'm trying to include the compiled library to my android project but I can't figure out how to do it. 1. Is it the best way to do this ? 2. If yes how should I proceed ? Any tutorial or information to start will be appreciated. 3. If not do you know any pdf library i could use on android 1.6 ? Here is my Android.mk file : LOCAL_PATH :

No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android error in Android Studio

隐身守侯 提交于 2019-12-24 20:09:15
问题 I had a working project, but there was some problem with Android studio displaying the breakpoints, so I uninstalled the Android Studio on my mac, reinstalled it and opened the same working project. Strangely it gives the below error and I cant do anything with that. None of the fixes suggested online seem to help the scenario. Is there anything to do with the uninstall of the first version of the Android Studio? There is absolutely no change in the code of my project. The same project is

Using FFTW on Android undefined references

懵懂的女人 提交于 2019-12-24 19:22:26
问题 I'm trying to use FFTW in my Android application. I have followed this tutorial and was able to buid fftw with floating point precision using this build.sh, on OSX: INSTALL_DIR="`pwd`/jni/fftw3" SRC_DIR="`pwd`/../fftw-3.3.3" NDK_ROOT="/Users/awesomeUserName/Desktop/android-ndk-r9" cd $SRC_DIR export PATH="$NDK_ROOT/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/:$PATH" export SYS_ROOT="$NDK_ROOT/platforms/android-14/arch-arm/" export CC="arm-linux-androideabi-gcc --sysroot=

Make error while trying to build NDK app

不打扰是莪最后的温柔 提交于 2019-12-24 19:22:25
问题 I'm new to Android programming and NDK, so i've followed this tutorial: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ to install and config cygwin and NDK. The problem appears when I try to execute ndk-build command. It displays the following error message: $ $NDK/ndk-build Android NDK: WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersion 3in ./AndroidManifest.xml Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver install: nie można

Android NDK module not compiling (MIPS and MIPS64 are no longer supported) [duplicate]

梦想与她 提交于 2019-12-24 19:08:09
问题 This question already has an answer here : Errors updating from NDK version 16 to NDK version 17 (1 answer) Closed last year . I'm getting this output on Mac when I try to compile an Android module with native C++ code after update to latest NDK (android-ndk-r17-darwin). CMake Error at /Users/user1/Library/Android/sdk/ndk- bundle/build/cmake/android.toolchain.cmake:312 (message): Invalid Android ABI: armeabi. (armeabi is no longer supported. Use armeabi-v7a.) Call Stack (most recent call