Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video trimming not accurate #6

Open
sebinpaul opened this issue Feb 1, 2019 · 0 comments
Open

Video trimming not accurate #6

sebinpaul opened this issue Feb 1, 2019 · 0 comments

Comments

@sebinpaul
Copy link

sebinpaul commented Feb 1, 2019

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant