forked from moutazhaq/Android-Video-Recorder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
29 lines (22 loc) · 962 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Android Video Recorder
A simple library using ffmpeg, libx264, and libfaac to record videos on Android.
Tested with Android NDK r6b.
Targeted to armv7-a with vfpv3-d16.
How To Build
1. Make directories faac, x264, and ffmpeg, and place the sources for them into the respective directories.
2. Run /path/to/android/ndk/build/tools/make-standalone-toolchain.sh --install-dir=./toolchain
3. Edit build.sh and change NDK at the top to point to your NDK directory.
4. Run the following commands:
./build.sh config faac
./build.sh compile faac
./build.sh config x264
./build.sh compile x264
./build.sh config ffmpeg
./build.sh compile ffmpeg
./build.sh compile recorder
5. You should now have a static library libVideoRecorder.a.
How To Use
Link libVideoRecorder.a into your Android JNI as a prebuilt static library.
Use the interface given in VideoRecorder.h in your JNI C++ code.
Legal
Use at your own risk, the author is not responsible for anything.