##About
FFmpegAdapter is a simple adapter with FFmpeg, supporting decode/encode frames/bitmap/buffer from/to video/audio easily. It includes Java part, JNI part and C part; AND it's even possible to debug FFmpegAdapter on Visual Studio 2013 directly.
[FFmpeg native libraries comes from ffmpeg4android]
##Architecture (TODO)
- Java -- FFmpegAdapter.java
- JNI -- ffmpeg_adapter_jni.h/cpp
- C/C++ -- other codes
##How to use ####win32: (Notice: win32 does not using latest windows ffmpeg libraries.)
- install Visual Studio 2013 express (or other version, probably work)
- run win32/ffmpeg_adapter/ffmpeg_adapter.sln
- DEBUG (or press F5), that's all.
- And, you'd better check
ffmpeg_adapter_win_main.cppfirst, to make sure thetest_filesfolder is not empty.
####JNI (Notice: using ffmpeg2.6)
- Makesure you know what NDK is.
- Then just
cdto android/FFmpegAdapter/jni - Run
ndk-build -B - That's all, libraries are ready (under android/FFmpegAdapter/libs/armeabi-v7a).
- BTW, ffmpeg libraries come from ffmpeg4android, DO NOT forget put
ffmpeg2.x/androidfolder under$NDK_HOME/sources/ffmpeg4android/androidbeforendk-build -B.
####Java
- Just inherit from android/FFmpegAdapter/src/com/android/ffmpegadapter/FFmpegAdapter.java
##Contact mailto: [email protected]
Have fun~ ^_^