These are chat archives for WritingMinds/ffmpeg-android-java

20th
Nov 2015
cldcloud
@cldcloud
Nov 20 2015 07:17
Hello everyone!
@hiteshsondhi88 I'm trying to interrupt ffmpex command execution (i had created a custom progress bar with close button, which is stopping this process by onClick), but I met one problem. When ffmpeg starts working, first of all he's getting all information about video and while he doing it, even if press close button (stopping ffmpeg processes) it doesn't stop. How could I cath this one?
Hitesh Sondhi
@hiteshsondhi88
Nov 20 2015 07:18
@cldcloud its a bug currently
the solution is killing the process id as well as asynctask
cldcloud
@cldcloud
Nov 20 2015 07:18
That's bad... Thank you!
Hitesh Sondhi
@hiteshsondhi88
Nov 20 2015 07:18
currently I am just closing asynctask
cldcloud
@cldcloud
Nov 20 2015 07:18
Oh, sorry, I don't understand
And how can I do that? There is only one command "if ffmpeg.IsRunning -> kill"
"if (sFFmpeg != null && sFFmpeg.isFFmpegCommandRunning()) {
sFFmpeg.killRunningProcesses();
..}"
Hitesh Sondhi
@hiteshsondhi88
Nov 20 2015 07:49
while running the process we will need to save the process id
and kill that too before killing the asynctask
cldcloud
@cldcloud
Nov 20 2015 07:58
Ok, thanks, I'll try to find how to save it and then kill =)