Idea from: iOS GPUImage framework Base on: Android GPUImage framework
Step 1. Add the JitPack repository to your build file
Gradle Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.proghjy:android-gpuimage-videorecording:v1.4.2'
}
- Android 4.3 or higher (OpenGL ES 2.0)
- draw on current screen surface
- switch to encoder input surface and draw previous frame buffer again on it
- switch back to screen surface
- EGL surface helper: https://github.com/google/grafika
- Media encoder: https://github.com/saki4510t/AudioVideoRecordingSample