android 纯java实现图片合成视频
Step 1. 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 {
implementation 'com.github.xiaoyifan6:videocreator:1.0.1'
}
GIFExecuteAsyncTask.execute(provider, 16, handler, path);
AvcExecuteAsyncTask.execute(provider, 16, handler, path);
其中provider是实现IProvider,是用来获取bitmap;handler用来获取和显示进度信息。path是需要保存的文件路径,包括文件名称
参考项目例子