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

【Bug】下载较大国标录像文件失败 #17

Open
cangmu2007 opened this issue Oct 9, 2023 · 0 comments
Open

【Bug】下载较大国标录像文件失败 #17

cangmu2007 opened this issue Oct 9, 2023 · 0 comments

Comments

@cangmu2007
Copy link

问题描述:
尝试下载时长3小时左右国标录像文件,下载失败
lQLPJw6vsv29L-zNA4TNB4Cwc6k9I0-m0m4E4HUK-ID6AA_1920_900

原因:
ZLM每隔10s左右会存储一个缓存视频文件,前端不断读取下载进度,当获取下载进度接口被调用时,assist会遍历缓存视频文件并通过ffmpeg获取文件视频长度计算下载进度,但是当文件数量达到一定程度时,遍历文件数量过多,导致遍历时间超过http超时时间,获取下载进度失败,从而前端判定异常stop下载

可以看到每次获取进度的时间都在变长
企业微信截图_16939067097412
下载时遍历文件
企业微信截图_16947607646265

后果:
无法下载超过一个半小时的国标录像文件

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

No branches or pull requests

1 participant