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

seek 缓冲问题 #70

Open
GeekTR opened this issue Feb 1, 2025 · 1 comment
Open

seek 缓冲问题 #70

GeekTR opened this issue Feb 1, 2025 · 1 comment

Comments

@GeekTR
Copy link

GeekTR commented Feb 1, 2025

这个是原版ijkplayer就存在的问题,只要seek缓冲就没了,对网络不好的情况不是很友好。

ijk的seek机制是:

  1. 丢弃缓存区中所有数据
  2. 调用avformat_seek_file
  3. 开始缓冲

能否修改ff_ffplay.c的seek机制为:
在缓冲区中查找seek目标位置

  1. 如果有找到,则丢弃部分数据(注意多线程同步问题)
  2. 如果没有找到,按原逻辑处理

本人实在对音视频相关c代码无能为力,希望大佬可以帮忙

@debugly
Copy link
Owner

debugly commented Feb 5, 2025

是的,这个优化我还没做,抽时间搞搞。

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