Skip to content

A library for edit video without JNI base on MediaCodec farmework

Notifications You must be signed in to change notification settings

NeverMorer/VideoEditor

Repository files navigation

VideoEditor

A library for edit video without JNI base on MediaCodec farmework on Android

Support Android 4.3+

Feature:

  • Compress video with specific bitrate
  • Scale video with specific width/height
  • Trim video with specific start/end time
  • High performance

HowToUse

val coder = VideoAudioCoder(videoPath, destPath)

coder.setWithAudio(false)
coder.withScale(720, 480)
coder.withTrim(3000, 6000)

coder.setCallback(object : VideoAudioCoder.ResultCallback {
    override fun onSucceed() {
         
    },
    override fun onFailed(errorMessage: String) {
                  
    },
    Handler(Looper.getMainLooper()))
}

coder.startAsync()

About

A library for edit video without JNI base on MediaCodec farmework

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published