N_m3u8DL-RE icon indicating copy to clipboard operation
N_m3u8DL-RE copied to clipboard

Too many open files错误

Open Amazefcc233 opened this issue 1 year ago • 4 comments

如果系统的文件句柄数限制过少(比如macos默认为256),而m3u8的实际分片数过多(比如355个),那程序会报以下内容并退出

21:52:00.209 INFO : 调用ffmpeg合并中...
21:52:00.297 WARN : [in#0 @ 0x7ff736704e40] Error opening input: Too many open files
21:52:00.297 WARN : Error opening input file
concat:000.ts|001.ts|002.ts......353.ts|354.ts|.
21:52:00.298 WARN : Error opening input files: Too many open files
21:52:00.300 INFO : Done

但实际未完成合并操作。 该错误当前可以通过手动使用ulimit -n 2048或更大值手动规避,但能否在下载前提醒句柄数限制过低,或在句柄数过低时停止下载之类的?否则下载完再报错的话,还需要手动用ffmpeg合并或者调整句柄数后重新再下载有一点点麻烦

Amazefcc233 avatar Dec 30 '23 14:12 Amazefcc233

遇到同样的问题。

cqked avatar Feb 24 '24 08:02 cqked

二进制合并然后用ffmpeg修一下应该可以

RikaCelery avatar Feb 24 '24 11:02 RikaCelery