video-trimmer icon indicating copy to clipboard operation
video-trimmer copied to clipboard

Video trimming not accurate

Open sebinpaul opened this issue 7 years ago • 0 comments

I'm trying to trim a 1 minute video into 30 seconds video but the resulting one plays for only 23 seconds and sometimes the output video is more than 30 seconds.

Kindly correct me if I'm doing anything wrong else please fix the issue.

This is my code -

    videoTrimmer.setMaxDuration(30);
    videoTrimmer.setVideoURI(Uri.parse(videoPath));
    File file = new File(Environment.getExternalStorageDirectory(),"Videos/Trimmed");
    videoTrimmer.setDestinationPath(file.getAbsolutePath());
    videoTrimmer.setOnTrimVideoListener(this);

sebinpaul avatar Feb 01 '19 09:02 sebinpaul