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

时序问题导致视频卡顿 #33

Open
chengfengliu opened this issue Oct 29, 2020 · 5 comments
Open

时序问题导致视频卡顿 #33

chengfengliu opened this issue Oct 29, 2020 · 5 comments

Comments

@chengfengliu
Copy link

chengfengliu commented Oct 29, 2020

// src/ImageData.js
isBuffered(time) {
  return time >= this.start && time < this.end
}

请问有时候time < this.end为false,导致find函数找不到image,最后结果是视频卡顿,是因为最后几帧丢失了吗?请问怎么解决,谢谢~
image

@yiwen03
Copy link
Contributor

yiwen03 commented Oct 30, 2020

从打印的日志看,是因为音频播放处于waiting了,导致的暂停,不是视频数据

@chengfengliu
Copy link
Author

从打印的日志看,是因为音频播放处于waiting了,导致的暂停,不是视频数据

上面是因为音频,但目前来看大部分是因为视频数据,是什么原因让数据没加进去buffer?
image

@chengfengliu
Copy link
Author

chengfengliu commented Oct 30, 2020

请教一下,是不是下面这步失败了?是什么原因导致音视频不同步?
image

@chengfengliu
Copy link
Author

高分辨率高码率的直播,打开控制台就卡顿。

@yiwen03
Copy link
Contributor

yiwen03 commented Nov 5, 2020

高分辨率、高码率现在解码速度跟不上。看上面你新发的log,是没有当前播放时间的yuv数据。如果解码器没有报错的话,有可能是解码速度没有跟上。

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