如何保存 m3u8 流

如何保存 m3u8 流

我想保存一个 m3u 流。m3u8 文件的内容如下:

#EXTM3U
#EXT-X-ALLOW-CACHE:NO
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=756617,CODECS="avc1.77.31, mp4a.40.2",RESOLUTION=640x360
http://1.2.3.4/ipad/cms-worldwide/2013-12-08_1055_sd_02_some_name_Q4A.mp4?wowzasessionid=9999999999&publishingpoint=cms-worldwide&ip=6.6.6.6&ua=Mozilla%252f5.0%2b(Windows%2bNT%2b6.1%253b%2bWOW64%253b%2brv%253a25.0)%2bGecko%252f20100101%2bFirefox%252f25.0&origin=http%253a%252f%252f1.2.3.4%252fcms-worldwide%252f2013-12-08_1055_sd_02_some_name_Q4A.mp4%252fchunklist.m3u8%253fip%253d6.6.6.6%2526ua%253dMozilla%2525252f5.0%25252b(Windows%25252bNT%25252b6.1%2525253b%25252bWOW64%2525253b%25252brv%2525253a25.0)%25252bGecko%2525252f20100101%25252bFirefox%2525252f25.0

如果我想打开 URL,我总是会得到 m3u 文件...我该如何保存文件mp4?我应该说我不想为此购买软件...

答案1

您无法保存 mp4。它位于 wowza 服务器后面。您可以请求清单,下载所有片段,将它们连接到单个传输流,然后重新合并为 mp4。

相关内容