强制下载Youtube视频[英] Force Youtube videos to download

本文是小编为大家收集整理的关于强制下载Youtube视频的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

Youtube 视频下载

这些是下载视频的格式,网址类似于

https://r2---sn-1vob-aixe.googlevideo的.com/videoplayback EI = s_aoWfzPFoLeowOV8JWoBA&安培; LMT = 1429524754109153&安培;到期= 1504267027&安培; IP = 103.255.4.14&安培; ITAG = 134安培; MN = SN-1vob-aixe&安培; ipbits = 0&安培;毫米= 31&安培;签名= 2889D0D8D65B24AA0E048C7A99B5F1C3F94C1114.962CDF459E450AE16632EF93584ECC477C3FF784&ms=au&mime=video/mp4&mv=m&source=youtube&pl=24&id=o-AJ_D6KDLa67MTs5ANzKZDyHMMHrf-LHPkhJbOFu_tER_&initcwndbps=663750&dur=21.066&mt=150424=yes&sparams=clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,keepalive,lmt,mime,mm,mn,ms,mv,pl,requiressl,source,expire&requiressl=yes&key=yt6&clen=321440

所以当我点击它开始播放到浏览器窗口但我不想要这个.我想强制它像其他网站一样下载.

推荐答案

您可以尝试将这个 &title=video 添加到链接结尾.

这个 &title= 部分构成(保存的)文件名.如果该参数存在,则保存文件.

例如:如果您希望它自动保存为 my video file.mp4,则将 &title=my+video+file 添加到显示的链接中.

示例 HTML 代码:

<a href="YourVideoURL&title=video">Save Video</a>

本文地址:https://www.itbaoku.cn/post/1937789.html

问题描述

Youtube video download

These are the formats for video to download and the URL is something like

https://r2---sn-1vob-aixe.googlevideo.com/videoplayback?ei=s_aoWfzPFoLeowOV8JWoBA&lmt=1429524754109153&expire=1504267027&ip=103.255.4.14&itag=134&mn=sn-1vob-aixe&ipbits=0&mm=31&signature=2889D0D8D65B24AA0E048C7A99B5F1C3F94C1114.962CDF459E450AE16632EF93584ECC477C3FF784&ms=au&mime=video/mp4&mv=m&source=youtube&pl=24&id=o-AJ_D6KDLa67MTs5ANzKZDyHMMHrf-LHPkhJbOFu_tER_&initcwndbps=663750&dur=21.066&mt=1504245340&keepalive=yes&gir=yes&sparams=clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,keepalive,lmt,mime,mm,mn,ms,mv,pl,requiressl,source,expire&requiressl=yes&key=yt6&clen=321440

So when I click on it start play to browser window but I don't want this. I want to force it to download like other sites do.

推荐答案

You can try adding this &title=video to the link ending.

This &title= part makes the (saved) file name. If this parameter exists, then file will be saved.

For example : If you want it to save automatically as my video file.mp4 then you add &title=my+video+file to your shown link.

Example HTML code :

<a href="YourVideoURL&title=video">Save Video</a>