-
Notifications
You must be signed in to change notification settings - Fork 254
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
Cannot run program "/tmp/jave/ffmpeg-amd64-2.7.3": error=26, Text file busy #194
Comments
How do you execute it in parallel? |
I have attached the logs. Creating new instance of Encoder. Please find the below code. logs |
Can you have a look at this #163 I see you use the old 2.7.3 release, please upgrade to the version mentioned in the other issue. Anyway it's a good idea to use the latest version when you see errors, otherwise you just generate noise about already solved problems |
I have updated the lib to 3.2.0 still facing the race condition. Please find the below code and logs
logs |
Could you please show how you start them concurrently? |
Can you please help me here? How can I fix this issue? Getting the request so frequently like very less span of time around 10 milliseconds of gap. |
using the executor service to pass the request to encode method. |
Please show the code |
`public void convert() throws PlatformException {
}` |
We have written one API which publishes the data to Kafka and from Kafka we consume the data and start calling the convert method. |
Hmmm.. there we don't see how the threads are spawned... In https://github.com/a-schild/jave2/blob/master/jave-core/src/main/java/ws/schild/jave/process/ffmpeg/DefaultFFMPEGLocator.java in the If for some reason this does not work, it looks like there is a codepath which is missing some proper semaphore... |
Hi @a-schild can we use the same library(JAVE) for splitting the stereo file into two mono files? |
@raha007 Please create a new thread for this. |
I have the same issue on Java 11 / Linux and Jave 3.3.1.
I run two operations (audio compression from WAV to AAC) in parallel as following: val parallelExecutor = Executors.newFixedThreadPool(2)
val inputCompressionFuture = parallelExecutor.submit {
...instanciate a new Encoder, run encode, etc...
}
val outputCompressionFuture = parallelExecutor.submit {
...instanciate a new Encoder, run encode, etc...
}
inputCompressionFuture.get()
outputCompressionFuture.get()
As I tried using a shared instance of A workaround that seem to work consists of instantiating a single |
use the updated version of library. most probably this issue should be resolved |
@a-schild Maybe the |
When I was trying to execute the multiple threads parallelly. At the time getting the exception error = 26. Text file busy. Anyone has an idea how can we resolve this issue. JAVE
The text was updated successfully, but these errors were encountered: