-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling Multiple Commands #115
Comments
Have you resolved this issue? |
No, I have not |
I've been using this library for over a year too and haven't found any workaround for this, the library manages threading (or rather the lack thereof) on it's own, so calling execute() from another thread is of no use. My suggestion: Manage your own 'pool' of commands. A simple queue of tasks that you do one after another. This way you can move up the elements in |
@AdityaAnand1 My issue is that I get this error "FFmpeg command is already running" even after the command is done. I can't run a command one after the other? |
@HD-AD That's weird. Are you absolutely certain you're waiting for onFinish() before firing off the second command? Are you able to run multiple commands using the sample apk? |
@AdityaAnand1 yes I'm sure the command completes in onFinish(). The processing I do doesn't take long so I haven't tried running multiple commands as the command doesn't take long to finish. At the moment I have to destroy the application/activity in order to run a new command. I don't know if the issue could be because I'm calling loadFFmpeg() in onCreate(), but the example does the same, this is a big issue for my application so I really hope someone can help me out. Thanks for taking the time to reply. |
@AdityaAnand1 I can also downvote, I'm asking for help, no need to be an ass! |
The last task was left unfinished。 |
@steveLYL yes I got it working, thank you for answering. |
@HD-AD very good. |
trying to mFFmpeg.killRunningProcesses() |
mFFmpeg.killRunningProcesses() 这个不起作用 |
but I don't want to kill my running progress. |
I'm trimming mp4 files and noticed if I ran another command while one was running, I get this error.
I would think that because it is running on a separate thread it would be fine. What is the recommended way to run multiple commands?
The text was updated successfully, but these errors were encountered: