Я убиваю процесс при размещении водяного знака на видео.
try {
if (ffmpeg != null && ffmpeg.isFFmpegCommandRunning())
ffmpeg.killRunningProcesses();
} catch (Exception e) {
Log.e(TAG, "onClick: " + e.getLocalizedMessage());
}
Я получаю ошибку:
E/FFmpeg: Error running FFmpeg
java.lang.IllegalThreadStateException: process hasn't exited
at java.lang.UNIXProcess.exitValue(UNIXProcess.java:215)
at com.github.hiteshsondhi88.libffmpeg.CommandResult.getOutputFromProcess(CommandResult.java:18)
at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:44)
at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
Зависимость:
implementation 'com.writingminds:FFmpegAndroid:0.3.2'
Кто угодно может Помогите? Заранее спасибо.