/android-gpuimage-videorecording

Android GPUImage with Video Recording feature

Primary LanguageJava

GPUImage for Android with Video Recording feature

License

Idea from: iOS GPUImage framework Base on: Android GPUImage framework

Setup

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'
}

Requirements

  • Android 4.3 or higher (OpenGL ES 2.0)

Concept

  1. draw on current screen surface
  2. switch to encoder input surface and draw previous frame buffer again on it
  3. switch back to screen surface

Reference

  1. EGL surface helper: https://github.com/google/grafika
  2. Media encoder: https://github.com/saki4510t/AudioVideoRecordingSample