如何从xhr下载流媒体视频

2024-01-14

I'd like to download a video from a site that uses flowplayer. When I inspect the element, I get something like: enter image description here So we can say this video is streamed via xhr. Is there a way to get full video from these files? I tried Flash Player Downloader and it downloads the file in .mp4 but it's broken and can't repair it via some tools.


我没有真正的答案,但我也尝试下载这样一个碎片流。很痛苦。是什么帮助我回答了这个问题:https://superuser.com/questions/1204497/download-all-m4s-files-of-a-mpeg-dash-stream https://superuser.com/questions/1204497/download-all-m4s-files-of-a-mpeg-dash-stream

这个想法是从初始文件 IS.mp4 中获取流的 URL。所有编号为 000000.m4s、000001.m4s、000002.m4s... 的后续部分与 IS.mp4 共享相同的位置

生成所有部分的下载链接,下载并合并它们,可以轻松编写脚本,如链接帖子中所示:

echo "IS.mp4" >"links.txt"
seq -f "%06g.m4s" 0 394 >>"links.txt"
wget -i "links.txt" -O "audio.mp4" -B "http://80.188.78.212/aa/ffc8a55fe6f203b0bffecb73efacb69b/1494953435522/eda9c6f7b1e3de68db8e3e5dc0d14fc7/dna-61924494877285694-pc/1002-1502/"

您必须下载所有部分,包括 IS.mp4,然后将它们合并到一个文件。有时您还需要以这种方式下载音轨。获得视频和音频轨道后,将它们合并到一个容器中。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何从xhr下载流媒体视频 的相关文章