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

How can I parse m3u8 playlist to retrieve the url of .ts chunks?

这是m3u8linkurl:

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

请告诉我如何制作 link 到 ts 段文件?

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

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

  4. call wget -O chunk_1.ts "https://thr-pltv-4.aionet.ir/hls/slide/225_0_4_51_30511_150776_1.ts? s=59560951766264806007645747993639236956&client=videojs