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

m3u8 有些链接播放很慢20s才能加载出来 #5595

Open
john-dududu opened this issue Apr 30, 2024 · 1 comment
Open

m3u8 有些链接播放很慢20s才能加载出来 #5595

john-dududu opened this issue Apr 30, 2024 · 1 comment

Comments

@john-dududu
Copy link

测试地址 https://i.mjh.nz/SamsungTVPlus/CAAJ2700011IF.m3u8

使用iOS AVPlayer 基本四五秒就可以加载出来

let options = IJKFFOptions.byDefault()
//播放前的探测Size,默认是1M, 改小一点会出画面更快
options?.setPlayerOptionIntValue(1024 * 16, forKey: "probesize")

// options?.setPlayerOptionIntValue(3000, forKey: "max_cached_duration")
options?.setPlayerOptionIntValue(1, forKey: "infbuf")
options?.setPlayerOptionIntValue(0, forKey: "packet-buffering")
//解码参数,画面更清晰
options?.setPlayerOptionIntValue(0, forKey: "skip_loop_filter")
options?.setPlayerOptionIntValue(0, forKey: "skip_frame")

options?.setPlayerOptionIntValue(1, forKey: "videotoolbox")
options?.setPlayerOptionIntValue(300, forKey: "analyzeduration")

使用lite.sh编译的

@debugly
Copy link

debugly commented Jan 7, 2025

地址失效了,可以到这里新提 issue 帮你看看: https://github.com/debugly/ijkplayer/issues/

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