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

how to get Progress while compressing a Video File #26

Open
3llomi opened this issue Nov 27, 2017 · 7 comments
Open

how to get Progress while compressing a Video File #26

3llomi opened this issue Nov 27, 2017 · 7 comments

Comments

@3llomi
Copy link

3llomi commented Nov 27, 2017

is there any way to get a Progress while compressing the Video using AsyncCommandExecutor?

@FranciscoNin
Copy link

@3llomi how did you managed to compress a video?

@3llomi
Copy link
Author

3llomi commented Feb 16, 2018

@FranciscoNin this is the best result i got after many attempts to get best Quality with minimum Size

    String compressParam = " -b 6507k ";

        final VideoKit videoKit = new VideoKit();
        final Command command = videoKit.createCommand()
                .overwriteOutput()
                .inputPath(input)
                .outputPath(output)
                .customCommand(compressParam)
                .experimentalFlag()
                .build();

@FranciscoNin
Copy link

Great! Really helped me there.

And you managed to find a way to get the progress? I was trying to get some kind of listener when it's finished compressing.

@3llomi
Copy link
Author

3llomi commented Feb 16, 2018

until now i did not figure out how to get the progress :(
but if you want to know when the compress is finished you can use a ProcessingListener like this

 new AsyncCommandExecutor(command, new ProcessingListener() {
            @Override
            public void onSuccess(String path) {

            }

            @Override
            public void onFailure(int returnCode) {

            }
        }).execute();

@alexzhaobin
Copy link

Hi @3llomi I am using your compress parameter
String compressParam = " -b 6507k ";
It seems create a video of static image all through, have you seen anything similar?
Is there any other parameters I can try?

@3llomi
Copy link
Author

3llomi commented Jul 8, 2018

@alexzhaobin take a look at this

@gururajKp
Copy link

Hi 3llomi any update on onProgress ? I need it desperately to show progress bar.

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

4 participants