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

Custom command for watermark #31

Open
AdnanYupi opened this issue May 25, 2018 · 1 comment
Open

Custom command for watermark #31

AdnanYupi opened this issue May 25, 2018 · 1 comment

Comments

@AdnanYupi
Copy link

AdnanYupi commented May 25, 2018

Hi @IljaKosynkin and to everyone else. I tried to put watermark on one video but custom command won't execute and error code is 3037. I run the same code for trimming video and video is trimmed successfully so there is no issues with inputpath or outputpath also I have ic_watermark.png in assets folder. I tried with image from Drawable but same error code.

So here is the command which I tried to run:
executeFFmepg(path, generateFile().getAbsolutePath(), "-i file:///android_asset/ic_watermark.png -filter_complex overlay=main_w-overlay_w-5:main_h-overlay_h-5");

and this is the executeFFmepg method:

 `private void executeFFmepg(String inputPath, String outputPath, String customCommand){
    final Command command = videoKit.createCommand()
            .overwriteOutput()
            .inputPath(inputPath)
            .outputPath(outputPath)
            .customCommand(customCommand)
            .experimentalFlag()
            .build();
     new AsyncCommandExecutor(command, this).execute();  }`

A don't have experience with FFmpeg so any help would be very appreciated. Thanks

@anonym24
Copy link

just try to use native run method directly (you will need to edit library and make run method public)

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

2 participants