Closed AIAlexander closed 1 year ago
The code should work concurrently, but I think you are using it incorrectly.
Can you please modify your code, so that
new DefaultFFMPEGLocator()
outside the executor servicecreateExecutor
Inside the DefaultFFMPEGLocator
we have a semaphore on the class instance, and when you create multiple DefaultFFMPEGLocator
instances they won't share the semaphore
Thank you! I will try it
Hi, I encountered this error when using a thread pool to parallelly use ffmpeg commands for capturing screenshots from different videos. Here is Maven:
code:
Is it not allowed to use ffmpeg commands with multiple threads simultaneously? Thanks for the help!