public class FFmpeg
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
FFtask |
execute(java.util.Map<java.lang.String,java.lang.String> environvenmentVars,
java.lang.String[] cmd,
FFcommandExecuteResponseHandler ffmpegExecuteResponseHandler)
Executes a command
|
FFtask |
execute(java.lang.String[] cmd,
FFcommandExecuteResponseHandler ffmpegExecuteResponseHandler)
Executes a command
|
static FFmpeg |
getInstance(android.content.Context context) |
boolean |
isCommandRunning(FFtask task)
Checks if a command with given task is currently running
|
boolean |
isSupported()
Checks if FF binary is supported on this device
|
boolean |
killRunningProcesses(FFtask task)
Kill given running process
|
void |
setTimeout(long timeout)
Timeout for binary process, should be minimum of 10 seconds
|
public static FFmpeg getInstance(android.content.Context context)
public boolean isSupported()
public FFtask execute(java.util.Map<java.lang.String,java.lang.String> environvenmentVars, java.lang.String[] cmd, FFcommandExecuteResponseHandler ffmpegExecuteResponseHandler)
environvenmentVars - Environment variablescmd - command to executeffmpegExecuteResponseHandler - FFcommandExecuteResponseHandlerpublic FFtask execute(java.lang.String[] cmd, FFcommandExecuteResponseHandler ffmpegExecuteResponseHandler)
cmd - command to executeffmpegExecuteResponseHandler - FFcommandExecuteResponseHandlerpublic boolean isCommandRunning(FFtask task)
task - - the task that you want to checkpublic boolean killRunningProcesses(FFtask task)
task - - the task to killpublic void setTimeout(long timeout)
timeout - in milliseconds