Hi,
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");
}
}