Warning: this is not maintained anymore. It's a fork of another library that I've found: https://github.com/titansgroup/k4l-video-trimmer
You are free to send pull requests if you think they are good, though.
VideoTrimmer
Allows to trim videos on Android, including UI.
import using Jitpack :
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.AndroidDeveloperLB:VideoTrimmer:#'
}
- Code based on "k4l-video-trimmer" library, to handle various issues on it, that I've asked about here and [here] .
- Trimming is done by using "mp4parser" library (that was used on the original library) and on this answer, which is based on the Gallery app of Android.
- This library handled various issues that the original had, while also having 100% code in Kotlin.
- At first it was a fork, but as it became very different in code, and because the original one isn't maintained anymore, I decided to create this one as a new repository.