android-ndk

Can't use ffmpeg 3.2 in Android project

天涯浪子 提交于 2020-01-07 02:38:08
问题 Tried almost everything, spent almost 4-5 days trying and still counting. The reason I want to compile recent version of ffmpeg is because https://github.com/WritingMinds/ffmpeg-android-java doesn't work for video rotation. For this also I tried multiple answers, different versions of answer (transpose=1, transpose=dir=cclock, etc) Somewhere it was mentioned that rotate command wont work with previous versions of ffmpeg, so after a lot of trials, I started working on compilation of new ffmpeg

What may cause the speed of an app to change

青春壹個敷衍的年華 提交于 2020-01-07 02:22:27
问题 I am attempting to make changes to a complex image processing app which employs some C++ code and opencv. I have noticed that its speed can vary by as much as 20% from one run to the next even without me making any changes to the code. Its as if my phone was sometimes in a good mood and other times not. I guess its probably something to do with other tasks being carried out by the phone why my app is running (please tell me if you think there are other possibilities). I wonder if there is

arm-linux-androideabi-strip unable to rename

☆樱花仙子☆ 提交于 2020-01-06 20:36:34
问题 Getting the arm-linux-androideabi-strip so many times, with multiple reasons as mentioned below. reason: File exists reason: Resource busy Was not able to get an answer over google or stack overflow (Posts which are posted with similar problem). Please post the answers below. 回答1: if you are getting error saying arm-linux-androideabi-strip unable to rename and reason as file exists and resource busy like that, please observe that some Tortoise version of the resource keeper (Ex: TGitCache.exe

adb screencap output is different than on the device

坚强是说给别人听的谎言 提交于 2020-01-06 19:29:51
问题 I have a graphical glitch related to blending in my OpenGL application using Android NDK. The strange thing is that when I take a screenshot through adb screencap command, the problem completely disappears and the result looks okay. My question is: Is there a way to know what is happening behind the scenes of making screenshots? Is there eglChooseConfig called with some specific values for the entire frame for example? Or maybe is there some specific initial GL state forced? Some background:

How to build sipdroid in Android Studio?

两盒软妹~` 提交于 2020-01-06 18:07:34
问题 I downloaded sipdroid project from here and tried to import in Android Studio. While building error: Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.` I created file with name gradle.properties and added android.useDeprecatedNdk=true Then while

“Unrecognized option 'filter_complex'” error when using FFmpeg in Android

随声附和 提交于 2020-01-06 14:58:28
问题 I am creating a watermark application using FFmpeg in Android. I used the following command ffmpeg -i /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20150217-WA0002.mp4 -i /storage/emulated/0/mp4parser/img001.png -filter_complex '[0:v][1:v]overlay[out]' -map '[out]' /storage/emulated/0/WhatsApp/Media/WhatsApp Video/trimmed-038-VID-20150217-WA0002.mp4 When I launched the app, I got this line in the log: Unrecognized option 'filter_complex' I have read this command on the FFmpeg.org site

Android NDK glReadPixels() from offscreen buffer

谁都会走 提交于 2020-01-06 14:50:15
问题 I'm writing a game using android ndk. I'm using picking to select objects in opengl. For that i have an offscreen framebuffer object where i render into and i use glReadPixels() to get the color from the FBO. The color then encodes the id of the clicked object. The problem is glReadPixels() does not work. It just does not read any color values. Is there anything I have to do, to make it work? GLubyte pixel[4] = {0,0,0,0}; glReadPixels(x, y , 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, (void *)pixel);

MediaCodec Async Callback is not occurring if other thread has blocking wait

北城余情 提交于 2020-01-06 08:57:29
问题 I am using MediaCodec OnAsyncInputAvailable and OnAsyncOutputAvailable callbacks introduced in API 28. void OnAsyncInputAvailable( AMediaCodec *codec, void *userdata, int32_t index) { CallbackData* callbackData = (CallbackData *) (userdata); callbackData->addInputBufferId(index); } void OnAsyncOutputAvailable( AMediaCodec *codec, void *userdata, int32_t index, AMediaCodecBufferInfo *bufferInfo) { CallbackData* callbackData = (CallbackData *) (userdata); callbackData->addOutputBuffer(index,

Entry point not found, Android .so file

十年热恋 提交于 2020-01-06 08:05:48
问题 I am trying to incorporate some compiled C code into an Android app. I've been able to use the NDK to build the source and it has produced both a .so (7kB) and a .a (nearly 2MB). I'm using Xamarin and all the instructions say to include the .so in the project. I've done that and the application loads the library. However it throws an EntryPointNotFoundException exception. This doesn't surprise me because the .so contains nothing except RTL support functions. The actual code is in the .a. So I

Is there any provision in android to know which user application is using which system service

久未见 提交于 2020-01-06 08:01:31
问题 Is there any provision in android or ndk by to know which user application is using which system service? OR another way by using pid:- Suppose i have an application which uses microphone, microphone is opened by the system service (named media serv).I can manage to get the pid of above service(media serv).Now i want to know which user application is using the the pid of above service(media serv). 回答1: If you are the implementer of the system service -- such as via creating your own fork of