-
Notifications
You must be signed in to change notification settings - Fork 175
Send 'Q' signal to FFmpeg FFprobe
Brianvdb edited this page Dec 22, 2017
·
1 revision
For various reasons you might want to terminate the FFmpeg or FFprobe process. This can be done by sending the 'Q' key to the running process. With this library it is easy to send the 'Q' key to the running process.
String[] command = {"-i", "input.mp4", "output.mov"};
FFtask task = FFmpeg.getInstance(this).execute(command, ...);
// when you want to send the Q signal
task.sendQuitSignal();
sendQuitSignal
is an asynchronous call. When the process has been successfully terminated onFinish
will be invoked. After that you can run a new FFmpeg/FFprobe process.