a914-gowtham / android-video-trimmer-litr

LiTr version of android-video-trimmer. LiTr is a slow and lightweight video transcoder.
22 stars 5 forks source link
android-video-trimmer litr video-transcoding

MIT licensed

Android-video-trimmer

Light weight version of Android-Video-Trimmer. It uses LiTr library as transcoder

How to use

For a working implementation, please have a look at the Sample Project

  1. Include the library as local library project.

Video Compress:

.setCompressOption(new CompressOption(bitRate))  //pass empty constructor for default compressoption

Hide Player Seekbar:

.setHideSeekBar(true) //default value is false 

Custom TrimTypes

TrimType Default:

TrimVideo.activity(videoUri)
          .start(this);

TrimType Fixed Duration:

TrimVideo.activity(videoUri)
          .setTrimType(TrimType.FIXED_DURATION)
          .setFixedDuration(30) //seconds
          .start(this);

TrimType Minimum Duration:

TrimVideo.activity(videoUri)
          .setTrimType(TrimType.MIN_DURATION)
          .setMinDuration(30) //seconds
          .start(this);

TrimType Min-Max Duration:

TrimVideo.activity(videoUri)
          .setTrimType(TrimType.MIN_MAX_DURATION)
          .setMinToMax(10, 30)  //seconds
          .start(this);

Proguard Rules

-dontwarn com.videotrimmer.library**
-keep class com.videotrimmer.library** { *; }
-keep interface com.videotrimmer.library** { *; }

Compatibility

ChangeLog

Version 1.5.11

Version 1.5.3

Acknowledgement

LiTr

Support

Show your support by giving a star to this repository.so this can keep me motivated to make improvements

Collaboration

There are many ways of improving and adding more features, so feel free to collaborate with ideas, issues and/or pull requests.