如何生成与youtube-dl的链接,用于从带有标题的YouTube下载视频?

时间:2017-06-30 12:37:34

标签: youtube youtube-dl

使用youtube-dl我可以获取视频的网址,这会打开浏览器视频播放器。我需要用标题下载它。 来自互联网的这个链接:

http://r3---sn-8p8v-bg0ed.googlevideo.com/videoplayback?id=o-AMwj6zvohEaPL1fiBRIGkayxokFNVhQ4A1VF6u2HWlc5&ipbits=0&mm=31&mn=sn-8p8v-bg0ed&dur=0.000&expire=1498841617&lmt=1460236973006213&ip=152.250.251.21&usequic=no&ms=au&mt=1498819907&mv=m&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Csource%2Cusequic%2Cexpire&pl=24&ei=sS1WWePVKc6_wQT6mZSADQ&itag=43&ratebypass=yes&initcwndbps=1577500&beids=%5B9466591%5D&mime=video%2Fwebm&key=yt6&source=youtube&signature=51394917CC585F4286B1CD59AE11420FA6FA7065.73A2EC80BBF8087CCD4D3222E09AD5882B14CC78&title=SpaceX+lands+rocket+at+sea%2C+makes+history

由youtube-dl生成的链接打开播放器:

https://r3---sn-a0gxoxu-ig3e.googlevideo.com/videoplayback?clen=1561370&key=yt6&requiressl=yes&gir=yes&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&expire=1498847588&lmt=1460152800626042&ei=BEVWWcOIGMOEd9S3p8AC&id=o-ALcFrC_nifKmVOUT4iWaoMn68Uec2eQweC8_glHx3Zws&initcwndbps=2220000&pl=24&dur=178.282&mime=video%2F3gpp&signature=97509B18D589AEC4A600EC18433750F74C598A46.B33CC6F4B98CB9500A634AFA6B8F79C84DBED85B&ms=au&source=youtube&mv=m&mt=1498825879&ipbits=0&mm=31&mn=sn-a0gxoxu-ig3e&itag=17&ip=176.109.219.108&ratebypass=yes

我试图在参数内找到差异,我看到" usequic = no,title =",但是将其添加到我的网址并不能帮助我

1 个答案:

答案 0 :(得分:0)

第二个链接适用于我,它下载一个名为" videoplayback.3gpp"的文件。第一个下载.webm文件,我想是原始标题。我使用Chrome。