a914-gowtham / android-video-trimmer

Helps to trim local videos with compress option on Android applications using Exoplayer 2 and FFmpeg.
Other
361 stars 115 forks source link

Compression after trimming mp4 #104

Open drewness9999 opened 3 months ago

drewness9999 commented 3 months ago

If you wanted to compress the file so it doesn't maintain its original input file size, any ideas?

benardelia commented 1 month ago

TrimVideo.activity(it.data[0].toString()) .setHideSeekBar(true) .setCompressOption(CompressOption()) .setTrimType(TrimType.MIN_MAX_DURATION).setMinToMax(4, 30) //seconds .start(this, videoTrimResultLauncher)

this code trim and compress the order doesn't matter