Description
Surprisingly fast on device video transcoding.
Features
- extracting images from video either ffmpeg or mediacodec
- creating video from image seither ffmpeg or mediacodec
AndroidVideoTranscoder alternatives and similar packages
Based on the "Video" category.
Alternatively, view AndroidVideoTranscoder alternatives based on common mentions on social networks and blogs.
-
Exoplayer
This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media -
android-sdk
Free p2p cdn android github sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀 -
Android Oembed Video
A simple library for parsing and playing links from YouTube, YouTube Music, Vimeo and Rutube in the WebView without the need to connect API data services
CodeRabbit: AI Code Reviews for Developers

Do you think we are missing an alternative of AndroidVideoTranscoder or a related project?
README
AndroidVideoTranscoder
[
](LICENSE) 
Surprisingly fast on device video transcoding.
Features
- extracting images from video either ffmpeg or mediacodec
- creating video from image either ffmpeg or mediacodec
[[Screenshot](screenshot.png)](screenshot.png)
How to use FFMpeg Part
Extracting frames
FFMpegTranscoder.extractFramesFromVideo(
context = application,
frameTimes = times,
inputVideo = inputVideo,
id = "12345",
outputDir = frameFolder
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
{ logv { "extract frames ${it.progress} ${it.message} ${(it.duration / 1000f).roundToInt()} s" } },
{ logv { "extracting frames failed ${it.message}" }},
{ logv { "extracting frames successfully completed" } }
)
.addTo(subscription)
Merging frames to create video
FFMpegTranscoder.createVideoFromFrames(
context = application,
frameFolder = frameFolder,
outputUri = outputVideo,
config = EncodingConfig(
sourceFrameRate = 30 // every source image is a frame
)
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
{ logv { "merging frames ${it.progress} ${it.message} ${(it.duration / 1000f).roundToInt()} s" } },
{ logv { "merging frames to create a video failed ${it.message}" }},
{ logv { "video creation successfully completed" } }
)
.addTo(subscription)
How to use MediaCodec Part
Extracting frames
MediaCodecTranscoder.extractFramesFromVideo(
context = this,
frameTimes = times,
inputVideo = inputVideo,
id = "loremipsum",
outputDir = frameFolder,
photoQuality = 100
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
{ logv { "extractFramesFromVideo progress $it" }},
{ logv { "extracting frames failed ${it.message}" }},
{ logv { "extracting frames successfully completed" }}
).addTo(subscription)
Merging frames to create video
MediaCodecTranscoder.createVideoFromFrames(
frameFolder = frameFolder,
outputUri = outputVideo,
deleteFramesOnComplete = true
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
{logv { "createVideoFromFrames progress $it" }},
{ logv { "merging frames to create a video failed ${it.message}" }},
{ logv { "video creation successfully completed" } }
).addTo(subscription)
How to install
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://dl.bintray.com/exozetag/maven' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.exozet:transcoder:{version}'
//Need to add ffmpeg dependencies if want to use FFMpegTranscoder(tested version 4.3.1.LTS)
implementation 'com.arthenica:mobile-ffmpeg-full-gpl:{version}'
}
License
Copyright 2019 Exozet GmbH
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.
Contributors
[Jan Rabe]([email protected])
*Note that all licence references and agreements mentioned in the AndroidVideoTranscoder README section above
are relevant to that project's source code only.