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

大文件probe时间较长,如何优化 #335

Closed
yigu-cao opened this issue Apr 22, 2024 · 5 comments
Closed

大文件probe时间较长,如何优化 #335

yigu-cao opened this issue Apr 22, 2024 · 5 comments

Comments

@yigu-cao
Copy link

超过2G的大文件,probe阶段时间过长,大于一分钟,probe阶段只需获取媒体基本信息,可以提供优化思路么

@ireader
Copy link
Owner

ireader commented Apr 22, 2024

请详细描述下问题, 包括文件格式, 音视频详情, probe方式等.

@yigu-cao
Copy link
Author

格式: MKV
Size: 1.5G
流程:mkv_reader_create--->mkv_reader_getinfo,此阶段耗时1min多
image

@ireader
Copy link
Owner

ireader commented Apr 23, 2024

mkv_reader_read会把整个文件全部读一遍, 所以打开比较慢。

可以尝试下mkv_reader_read2函数, 编译时加上MKV_LIVE_STREAMING宏。

@yigu-cao
Copy link
Author

格式: MP4
Size: 2.2G
流程:mov_reader_create--->mov_reader_getinfo
现象:媒体信息解析失败,大文件均解析失败,是哪里判断有问题么
image

@yigu-cao
Copy link
Author

加打印试下,分析哪些字段判断问题

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

2 participants