如何解析m3u8播放列表以检索.ts块的网址?

时间:2017-11-22 00:55:10

标签: stream video-streaming playlist m3u8

这是m3u8链接网址:

https://thr-pltv-4.aionet.ir/hls.m3u8?mwk=89374692478207427715317283451977223330&s=59560951766264806007645747993639236956&client=videojs&version=4.12

这是m3u8文件纯文本:

#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-ALLOW-CACHE:NO
#EXT-X-VERSION:3

#EXTINF:10.0000,
hls/slide/225_0_4_51_30511_150776_1.ts?
s=59560951766264806007645747993639236956&client=videojs
#EXTINF:10.0000,
hls/slide/225_0_4_51_30511_1105440_2.ts?
s=59560951766264806007645747993639236956&client=videojs
#EXTINF:10.0000,
hls/slide/225_0_4_51_30511_2082664_3.ts?
s=59560951766264806007645747993639236956&client=videojs

请告诉我如何链接到ts段文件?

1 个答案:

答案 0 :(得分:0)

  1. 在您的计算机上安装HTTP客户端 我们假设你在Windows上。使用http://eternallybored.org/misc/wget/

  2. 中的'wget'
  3. 在Windows中打开命令提示符

  4. 调用wget -O chunk_1.ts“https://thr-pltv-4.aionet.ir/hls/slide/225_0_4_51_30511_150776_1.ts? S =&59560951766264806007645747993639236956放大器;客户= videojs“