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失败 #20

Open
marscl opened this issue May 25, 2019 · 7 comments
Open

解析m3u8失败 #20

marscl opened this issue May 25, 2019 · 7 comments

Comments

@marscl
Copy link

marscl commented May 25, 2019

https://www.0518yaj.com:65/20190525/pE33RJFS/index.m3u8

@xm0625
Copy link
Owner

xm0625 commented May 25, 2019

资源问题,Safari也无法播放。格式没有什么特殊的,应该是部分ts无法下载

@xm0625
Copy link
Owner

xm0625 commented May 25, 2019

提供下页面URL?

@marscl
Copy link
Author

marscl commented May 26, 2019

@marscl
Copy link
Author

marscl commented May 26, 2019

可以正常播放

@marscl
Copy link
Author

marscl commented May 27, 2019

好像是master playlist这种格式的。
master playlist其中并不包含分片有关信息,而是描述了同一个源的不同编码格式,在HLS中称之为variant。master playlist中描述了variant的诸多信息,比如下载带宽、音视频编码信息、视频分辨率等等。典型的示例如下:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=150000,RESOLUTION=416x234,
CODECS="avc1.42e00a,mp4a.40.2"
http://example.com/low/index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=240000,RESOLUTION=416x234,
CODECS="avc1.42e00a,mp4a.40.2"
http://example.com/lo_mid/index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=640000,RESOLUTION=640x360,
CODECS="avc1.42e00a,mp4a.40.2"
http://example.com/high/index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=64000,CODECS="mp4a.40.5"
http://example.com/audio/index.m3u8
master playlist中不包含#EXTINF字段。其中描述的每个variant都是一个独立的m3u8文件。

@xm0625
Copy link
Owner

xm0625 commented May 27, 2019

按道理我的解析逻辑是支持的。你是嗅探出来无法下载么?还是下载后无法播放?

@marscl
Copy link
Author

marscl commented May 27, 2019

无法下载,解析失败

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