I have an android application containing exoplayer instance, some udp video play without sounds , so i want to add Ffmpeg extension to my project, i am working on windows system and need to follow the instructions below:
https://github.com/google/ExoPlayer/blob/release-v2/extensions/ffmpeg/README.md
So first step is Set the following shell variable:
cd ""
FFMPEG_MODULE_PATH="$(pwd)/extensions/ffmpeg/src/main"
i downloaded Git to use as power shell, so what is pwd??
PLus...
Set the host platform (use "darwin-x86_64" for Mac OS X):
HOST_PLATFORM="linux-x86_64" what is this variable in windows?
Please i am confused how to build this library manually in windows and it is not straightforward at all....
Related
I see that this is not a specific progamming question, however I have asked it in a binary way so perhaps this will pass scrutiny.
I've been using Quoda on my Android phone and have started needing to edit .ts / Typescript files, which it does not support. At the moment I am using SGit which just opens whatever Android app to edit a file type based on the extension. Quoda (and general text editors) can open a .ts if opened within the app, however do not have syntax highlighting.
So I have searched high and low, the only .ts editor I have found is CodeAnywhere, which is really great in a desktop browser but definitely has a few issues on the Android app version.
So, the question is NOT 'can you recommend one', it's can you tell me of any obscure apps apart from CodeAnywhere please? Or I suppose another way of editing .ts from github on my phone?
You can use stackblitz.com, its almost exactly the same as VSCode and also allows you to make Angular and React apps. If you add it to your homescreen it looks just like a native app
You can run TypeScript programs on Termux.
Follow these steps to run TypeScript in Termux.
Install "Termux" app from Play Store.
Install Node.js in termux using the command pkg install nodejs
Install TypeScript using command npm install typescript
Install a code editor like Micro/ Nano using command pkg install micro. You can also use any code editor apps like Acode or Quoda.
Create a TypeScript file using command micro hello.ts
This will open a editor where you can write your TypeScript code.
After writing typescript code, come back to terminal and type tsc hello.ts this will compile your TypeScript to JavaScript.
Now you can run it using command node hello.js and it will show output of your TypeScript code.
I referred to this link - Use CreateProcess to execute ADB command. The approach used in the above link requires Windows.h file which is contained in windows SDk. Since i am executing Android Studio in Mac i will not be able to get the include file. I am not sure whether the above mentioned approach can be performed using Android Studio in Mac.
You can use system or popen methods to start an adb process.
I am trying to write a script to get frame rate data using systrace.
I know that systrace calls atrace. But I can't find out where atrace.c is located. Is it within the sdk or within the kernel? Either way it does not exist in msm kernel or the latest android sdk.
Google's git repo shows it is here
https://android.googlesource.com/platform/system/extras/+/android-sdk-support_r11/atrace/atrace.c
Yet I haven't cloned that repo.
So I am not sure where systrace is calling atrace from
the adb shell command that I am running is
$>atrace gfx
It's part of the platform code. The latest version is here. Note that it changed from .c to .cpp.
Iam developing an android mobile application to scan text and save the details to phone. Iam developing in windows , using eclipse and whilst doing research I came across this article that pointed to the fact that an installation of cygwin is required to develop such an application. Cygwin however is very large after 3 hours of downloading it had only downloaded about 6 of the required 12gigabytes. I would jus like to know where Iam going wrong with cygwin , whether its mandatory that cygwin is installed and if that is the case which specific packages should be installed??
Thank you
From ndk r7, we don't need cygwin anymore. Just set NDK path in system environment then run ndk-build command and it should work. For more detail, look this answer.
You can follow this tutorial to set up enviroment for tesseract on Android with tess-two library. These commands are used for build tess-two:
cd <project-directory>/tess-two
ndk-build
android update project --path .
ant release
I am unaware with ffmpeg, and wants to run ffmpeg command on android terminal.
What are the basic steps to configure android so that it can run ffmpeg command through android application program?
Thanking you!...
Android supports Runtime.exec() and this is the best way to run an executable (e.g. ffmpeg) programmatically.
This is the same as running on the terminal, but slightly different from running on adb shell because the latter uses a system account. On a rooted device, you can run as superuser from Java, terminal, or from adb shell.
Note that you must deploy the binary (ffmpeg) somewhere on the internal storage. Android does not allow execution from /sdcard/.
You can find many downloads of ffmpeg for Android, and build the binary with the toolchain from Android NDK (must dowload and install it). On Windows, cygwin is required. I recommend static linking of libav libraries.
Note that it's also possible to build ffmpeg as a library, and call its main() in-process, using the same parameters as the conventional command line.
Get FFmpeg executable binary and .so files from following link. They have given sample code that, how to capture video from images. I hope it will help you. Go through the link.
They move the required library files into application package.
Then they change the permission to access the package.
Next they pass the arguments to run FFmpeg.
capture video from images