In this example, we record a gif content and export to a video file. For more information, please check out the sample app.
Basic setup:
val encoder = MP4Encoder()
encoder.setFrameDelay(50)
encoder.setOutputFilePath(exportedFile.path)
encoder.setOutputSize(ivRecord.width, ivRecord.width)
API:
startExport()
stopExport()
addFrame(bitmap) //called intervally
While we are working on Bintray support, Bitmp4 is available via Jitpack.
repositories {
// ...
maven { url "https://jitpack.io" }
}
implementation 'com.github.dbof10:Bitmp4:0.1.1'
Copyright 2021 Ctech Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.