Skip to content
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

输出 hls 时,建议参考 ffmpeg 控制 ts 文件数量的方式 #120

Closed
universix opened this issue Jan 11, 2022 · 2 comments
Closed

Comments

@universix
Copy link

在 hls 现在的配置中,cleanup_mode 决定保留 ts 的数量,为 2 时,持续删除过期的ts文件,只保留最近的<fragment_num> * 2个左右的ts文件

建议参考 ffmpeg 的 hls_delete_threshold 配置,保留的 ts 文件数量为 <fragment_num> + <hls_delete_threshold>,实际项目中,在设置的 fragment_num 较大时,使用 hls_delete_threshold 可以更节省空间。

@q191201771
Copy link
Owner

好的,后续会排期开发。

@q191201771
Copy link
Owner

已经支持了。

代码: 86c4b95
文档: https://pengrl.com/lal/#/ConfigBrief

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants