Skip to content

Video trimming not accurate #6

Description

@sebinpaul

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions