ffmpeg-android-java icon indicating copy to clipboard operation
ffmpeg-android-java copied to clipboard

FFmpegCommandAlreadyRunningException

Open SwapnilNSDN opened this issue 5 years ago • 1 comments

I have one Intent service to work in background to execute compressing video file command because I want to compress video file upto 30GB (4KVideo), but meanwhile I want to run video merge, trim, rotate, add music commands as well, so how can I?

It throwing me below error:

ibffmpeg.exceptions.FFmpegCommandAlreadyRunningException: FFmpeg command is already running, you are only allowed to run single command at a time

SwapnilNSDN avatar May 03 '19 11:05 SwapnilNSDN

FFMpeg allow to execute only one command at a time. that is why you are getting FFmpegCommandAlreadyRunningException exeception.

You can try one thing like you can remove throws FFmpegCommandAlreadyRunningException from execute method and also remove the check of ffmpegExecuteAsyncTask.isProcessCompleted() from the execute method.

I did not try this but may be this will work.

yadavkohi avatar May 09 '19 05:05 yadavkohi