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.