【发布时间】:2012-01-07 20:49:04
【问题描述】:
我正在使用 ffmpeg 生成预览,但在我的程序执行过程中出现此错误:
"ffmpeg": java.io.IOException: error=24, Too many open files
有人知道如何解决或如何避免吗??
我在使用 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");
}
}
【问题讨论】: