Skip to content

alan-signal/VideoConverter

 
 

Repository files navigation

Download GitHub license Codacy Badge

VideoConverter

Video file conversion library based on ExtractDecodeEditEncodeMuxTest.java CTS test

Installation

VideoConverter is installed by adding the following dependency to your build.gradle file:

dependencies {
    implementation 'com.dstukalov:videoconverter:1.7'
}

Usage

MediaConverter converter = new MediaConverter();
converter.setInput(context, uri);
converter.setOutput(outputStream);
converter.setTimeRange(timeFrom, timeTo);
converter.setVideoResolution(360);
converter.setVideoBitrate(2000000);
converter.setAudioBitrate(128000);

converter.setListener(percent -> {
    publishProgress(percent);
    return isCancelled();
});

converter.convert();

Demo

Android app on Google Play

About

Video file converter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%