0

Argument /storage/emulated/0/Watermark/test.flv provided as input filename, but ffprobe was already specified. compile 'nl.bravobit:android-ffmpeg:1.1.1

           String [] command = {"ffprobe", videoPath };
           FFprobe ffprobe = FFprobe.getInstance(this);

            try {
            ffprobe.execute(command, new ExecuteBinaryResponseHandler() {

                @Override
                public void onSuccess(String message) {
                    addTextViewToLayout("SUCCESS with output : "+ message);
                    Logger.print("onSuccess : "+message);

                }
                @Override
                public void onProgress(String message) {
                    addTextViewToLayout("Started command : ffmpeg "+command);
                    addTextViewToLayout("progress : "+message);
                    Logger.print("Started command : ffmpeg "+command.toString());
                    Logger.print("progress : "+message);
                }

                @Override
                public void onFailure(String message) {
                    Logger.print("FAILED with output : "+message);
                }

                @Override
                public void onStart() {
                    Logger.print("onStart");
                }

                @Override
                public void onFinish() {
                    Logger.print("onFinish");
                }

            });
        } catch (FFprobeCommandAlreadyRunningException e) {
            e.printStackTrace();
        }


    }

ffprobe works good in Windows, Mac, Ubuntu but doesn't work in Android.

If anybody experienced please share me your experience.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Zhong Ri
  • 2,556
  • 1
  • 19
  • 23
  • Looks like you need to remove `"ffprobe",` from the command array. – Gyan Feb 24 '18 at 11:28
  • well, I have to use ffprobe in order to get video resolution. – Zhong Ri Feb 24 '18 at 13:25
  • Yeah, but it looks like `ffprobe.execute` supplies the binary name (arg 0) so your addition is treated as arg 1. – Gyan Feb 24 '18 at 13:43
  • https://github.com/mconf/ffmpeg/blob/master/ffprobe.c Please have a look at this file. it is ffprobe source code. AS you can see in opt_input_file function , input_filename is set default. I don't know how to set input_filename null before executing commands. – Zhong Ri Feb 24 '18 at 14:02

0 Answers0