我们如何下载 blob url 视频 [英] How do we download a blob url video

查看:235
本文介绍了我们如何下载 blob url 视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想下载 URL 不是简单 MP4 文件而是 blob 类型的视频,例如:

I want to download a video whose URL is not a simple MP4 file, but rather a blob type for example:

<video id="playerVideo" width="450px" autoplay="autoplay" height="338px" 
       style="height:100%;width:100%;" class="mejs-rai-e"
       src="blob:http://www.example.com/d70a74e1-0324-4b9f-bad4-84e3036ad354">
</video>

是否有任何可用于从 blob URL 下载视频的 chrome 扩展程序或软件?

Is there any chrome extension or software which can be used to download videos from blob URLs?

推荐答案

我刚刚想出了一个通用的解决方案,它应该适用于大多数网站.我只在 Chrome 上试过这个方法,但是这个方法应该适用于任何其他浏览器,因为开发工具在它们中几乎相同.

I just came up with a general solution, which should work on most websites. I tried this on Chrome only, but this method should work with any other browser, though, as Dev Tools are pretty much the same in them all.

步骤:

  1. 打开浏览器的开发工具(通常是F12,或Ctrl-Shift-I,或右键单击,然后在弹出窗口中检查菜单)在您感兴趣的视频所在的页面上.
  2. 转到网络标签,然后重新加载页面.该选项卡将填充请求列表(可能多达一百个甚至更多).
  3. 搜索请求的名称并找到带有 .m3u8 扩展名的请求.可能有很多,但最有可能的是您找到的第一个就是您正在寻找的那个.它可以有任何名称,例如playlist.m3u8.
  4. 打开请求,在标题小节下,您将在请求网址字段中看到请求的完整网址.复制它.
  5. 从 m3u8 中提取视频.有很多方法可以做到,我会给你我试过的那些,但你可以通过从 m3u8 下载视频"谷歌更多.
    • 选项 1.如果您安装了 VLC 播放器,请使用打开网络流..."菜单选项将 URL 提供给 VLC.这部分我就不赘述了,很多地方都有很多综合指南,比如此处.如果该页面不起作用,您可以随时通过vlc 下载在线视频"谷歌另一个.
    • 选项 2.如果您更喜欢命令行,请使用 FFMPEG 或您自己的脚本,如 这个超级用户问题.
  1. Open the browser's Dev Tools (usually F12, or Ctrl-Shift-I, or right-click and then Inspect in the popup menu) on the page with the video you are interested in.
  2. Go to Network tab and then reload the page. The tab will get populated with a list of requests (may be up to a hundred of them or even more).
  3. Search through the names of requests and find the request with .m3u8 extension. There may be many of them, but most likely the first you find is the one you are looking for. It may have any name, e.g. playlist.m3u8.
  4. Open the request and under Headers subsection you will see request's full URL in Request URL field. Copy it.
  5. Extract the video from m3u8. There are many ways to do it, I'll give you those I tried, but you can google more by "download video from m3u8".
    • Option 1. If you have VLC player installed, feed the URL to VLC using "Open Network Stream..." menu option. I'm not going to go into details on this part here, there are a number of comprehensive guides in many places, for example, here. If the page doesn't work, you can always google another one by "vlc download online video".
    • Option 2. If you are more into command line, use FFMPEG or your own script, as directed in this SuperUser question.

这篇关于我们如何下载 blob url 视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆