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

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

问题描述

我想下载一个视频,其网址不是简单的mp4文件,但其网址是Blob类型,例如.

I want to download a video whose url is not simple mp4 file, but its url is blob type for eg.

<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>

是否有任何chrome扩展程序或软件可用于下载正在播放的视频.

Is there any chrome extension or software which can be used to download the playing video.

推荐答案

我只是想出了一个通用解决方案,该解决方案应该适用于大多数网站. 我仅在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. 打开请求,在标题子部分下,您将在请求URL 字段中看到请求的完整URL.复制它.
  5. 从m3u8提取视频.有很多方法可以实现,我会给您我尝试过的方法,但是您可以通过从m3u8下载视频"来搜索更多内容.
    • 选项1..如果已安装VLC播放器,则使用"打开网络流... "菜单选项将URL馈送到VLC.我在这里不打算对此部分进行详细介绍,许多地方都有许多综合指南,例如,此处.如果该页面不起作用,您可以随时通过"vlc下载在线视频"在Google上搜索另一个页面.
    • 选项2.如果您更喜欢命令行,请按照
  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网址视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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