-
Notifications
You must be signed in to change notification settings - Fork 252
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
fatal error when lots of ffmpeg process doing #163
Comments
Perhaps something among this line? |
i check the articel you give me . i will change open() param FD_CLOEXEC to O_CLOEXEC. and i will observe it . |
Are all the threads running in the same JVM, or are they running in different JVM's?
|
in one jvm could u describe more about why it occurs race condition? thank you. |
this is my database persist ffmpeg working result. the column detail tells me exception reason. <!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
create_time | detail | state | log_task_id
-- | -- | -- | --
2021-09-03 17:31:00 | ws.schild.jave.EncoderException\|Exit code of ffmpeg encoding run is 1 | EXCEPTION | 39
2021-09-03 17:31:01 | | PROCESSING | 39
2021-09-03 17:31:01 | ws.schild.jave.EncoderException\|Exit code of ffmpeg encoding run is 1 | EXCEPTION | 39
2021-09-03 17:31:01 | | PROCESSING | 39
2021-09-03 17:31:01 | ws.schild.jave.EncoderException\|Exit code of ffmpeg encoding run is 1 | EXCEPTION | 39
2021-09-03 17:31:04 | ws.schild.jave.EncoderException\|Exit code of ffmpeg encoding run is 1 | EXCEPTION | 39
2021-09-03 17:31:04 | | PROCESSING | 39
2021-09-03 17:32:32 | | PROCESSING | 39
2021-09-03 17:32:32 | ws.schild.jave.EncoderException\|Exit code of ffmpeg encoding run is 1 | FAILURE | 39
2021-09-03 17:32:32 | ws.schild.jave.EncoderException\|Exit code of ffmpeg encoding run is 1 | FAILURE | 39
2021-09-03 17:32:33 | | PROCESSING | 39
2021-09-03 17:32:33 | | PROCESSING | 39
2021-09-03 17:32:33 | ws.schild.jave.EncoderException\|Exit code of ffmpeg encoding run is 1 | FAILURE | 39
2021-09-03 17:32:33 | | PROCESSING | 39
2021-09-03 17:32:33 | ws.schild.jave.EncoderException\|Exit code of ffmpeg encoding run is 1 | FAILURE | 39
2021-09-03 17:35:46 | Invalid data found when processing input | EXCEPTION | 45
2021-09-03 17:35:46 | | PROCESSING | 45
2021-09-03 17:35:48 | | PROCESSING | 45
2021-09-03 17:36:27 | Invalid data found when processing input | EXCEPTION | 45
2021-09-03 17:39:03 | | PROCESSING | 45
2021-09-03 17:39:03 | Invalid data found when processing input | FAILURE | 45
2021-09-03 17:39:04 | | CREATED | 46
2021-09-03 17:50:32 | | DONE | 46
2021-09-03 17:50:32 | | DONE | 46
2021-09-03 17:50:32 | | PROCESSING | 46
2021-09-03 17:50:32 | | PROCESSING | 46
2021-09-03 17:50:56 | | CREATED | 47
2021-09-03 17:54:59 | | CREATED | 48
2021-09-03 17:58:01 | | PROCESSING | 46
2021-09-03 17:58:01 | java.io.IOException: Cannot run program "/data0/www/cache/jave/ffmpeg-amd64-2.7.3": error=26, Text file busy | EXCEPTION | 46
2021-09-03 17:58:01 | | PROCESSING | 46
2021-09-03 17:58:01 | java.io.IOException: Cannot run program "/data0/www/cache/jave/ffmpeg-amd64-2.7.3": error=26, Text file busy | EXCEPTION | 46
</body>
</html> there are three main reason in this sheet.
|
i see another issue #157. u suggest control thread through attrs.setEncodingThreads(x)。is it control ffmpeg thread number ? |
Could you please try again with the 3.2.0-SNAPSHOT release? I did put in place a fix for the race condition. The ffmpeg executables are packed inside the jar files for the platforms. |
Issue #157 tells ffmpeg to only use a certain number of threads/cores for the encoding process, but this has nothing to do with running multiple java threads which spawn the executable. (Beside using cores/cpus) |
The exit code 1 however is something else, most of the time some corrupt input file or some unsupported encoding/transcoding formats/settings |
because some reason i cannot use above 2.7.3. i really want to use 3.x but i can't. mayby later i will make somebody to fix out maven repository bug ~ |
i fixed the maven bug. so i can use 3.1.1 now . let me first rebuild my code to run jave 3.1.1 . and i will send my result here or close this issue |
i can get 3.1.1 but i can't get 3.2.0-SNAPSHOT :( |
Add this in your pom.xml
|
sorry
i use gradle ,not maven~ do u know how to add these in gradle ? |
Not sure, but probably something like this: |
thank u . i can get 3.2.0-SNAPSHOT now |
when i use 3.2.0-snapshot . i can;t do the concat mp4 work again. issue is #166 |
@naffan2014 Can we close this issue and continue on #166 ? |
yes。i close this issue at once. |
i do lots of cut work and concat work and transcode work. every work source dir and filepath is different
codes catchs lots of error. "java.io.IOException: Cannot run program "/data0/www/cache/jave/ffmpeg-amd64-2.7.3": error=26, Text file busy"
why is text file busy? how can i solve it?
The text was updated successfully, but these errors were encountered: