Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 963953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:45:02+00:00 2026-05-16T01:45:02+00:00

I am working with ffmpeg to generate previews, but I get this error in

  • 0

I am working with ffmpeg to generate previews, but I get this error in the middle of the execution of my program:

“ffmpeg”: java.io.IOException: error=24, Too many open files

Does anybody know how to solve or how to avoid it??
I add the piece of code where I use ffmpeg:

    for (int j = 0; j < temp.length; j++) {
                                                if(j==2){
                                                    String preview = temp2[i] + temp[j] +".jpg";
                                                    Process p = Runtime.getRuntime().exec("ffmpeg -i anotados/" +temp2[i] + " -r 1 -ss 00:00:"+temp[j]+" -t 1 -s 158x116 imagenes/" + preview);

                                                    TextOut.write(preview+"\n");
                                                }
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:45:02+00:00Added an answer on May 16, 2026 at 1:45 am

    Check your ulimit -n output to see how many open files processes spawned from that shell are allowed to have. Historical Unix systems had a limit of 20 files, but default on my Ubuntu desktop is 1024 open files.

    You may need to raise the number of open files you are allowed in the /etc/security/limits.conf file. Or, you may need to modify your application to more aggressively close open files.

    Another possibility is a system-wide limit on number of files that may be open. I don’t know which modern systems would still have such limits in place, but a first place to look would be sysctl -a output. (Well, maybe second place, after system documentation.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working with H2 I get this error when I try to write a row
I am working on creating a progress bar for ffmpeg in java. So for
I'using the following code to create thumbnails using ffmpeg but it was working fine
I just cann't seem to get the FFMpeg working with using the library. Everytime
I am using ffmpeg in linux server...the video conversion is working fine,but thumbnail creation
this is a ffmpeg issue. I've got this error saying it could not find
This sounds dumb, but I can't get it to work. I think i just
I'm creating thumbnails from videos using ffmpeg and it's working fine. But now I
I am using the following command in ffmpeg to generate thumbnails. It is working
I am working on ffmpeg and trying to add a audio stream on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.