ffmpeg-android-java
ffmpeg-android-java copied to clipboard
FFmpegCommandAlreadyRunningException
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
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.