Skip to content

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.

Code

String[] command = {"-i", "input.mp4", "output.mov"};
FFtask task = FFmpeg.getInstance(this).execute(command, ...);

// when you want to send the Q signal
task.sendQuitSignal();

Info

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.

Clone this wiki locally