首页 > 教程 > 建站经验 > 分享获取视频源地址的操作举例

分享获取视频源地址的操作举例

2019-10-28 16:10:38      98素材网      81      0

分享获取视频源地址的操作举例

站长操作获取腾讯视频源地址操作如:https://v.qq.com/x/page/r0766mkanbk.html

链接中r0766mkanbk表示为视频的vid

目标接口地址:http://vv.video.qq.com/getinfo?vids=r0766mkanbk&platform=101001&charge=0&otype=json

操作一:

替换接口地址中标红的vid,访问链接,得以下代码

(270P)","br":29,"profile":2,"drm":0,"video":1,"audio":1,"fs":459057,"super":0,"hdr10enh":0,"sname":"标清","resolution":"270P","sl":1},{"id":2,"name":"mp4","lmt":0,"sb":1,"cname":"高清;(480P)","br":34,"profile":1,"drm":0,"video":1,"audio":1,"fs":1141107,"super":0,"hdr10enh":0,"sname":"高清","resolution":"480P","sl":0}]},"hs":0,"ip":"222.244.117.20","ls":0,"preview":15,"s":"o","sfl":{"cnt":0},"tm":1572249067,"vl":{"cnt":1,"vi":[{"br":29,"ch":0,"cl":{"fc":0,"keyid":"r0766mkanbk.100701"},"ct":21600,"drm":0,"dsb":0,"fmd5":"63e3842aa99442556293afd2f6a53265","fn":"r0766mkanbk.m701.mp4","fs":459057,"fst":5,"fvkey":"B6030B8FD49732C28F3F86083C27A7BF20BE75C2ABE4FF124DE23F2616B395B73598E6DA0831483476D1768248C24E159A286868F20FCEB1A19F1493163EBE713414A32EB6BA43B4C6DF5B447EDFAE949BD2263E3B272EC3C7DCF14EBD800DE6D76966D7C4BF4CF8412DBD41C186D3AA","head":0,"hevc":0,"iflag":0,"level":0,"lnk":"r0766mkanbk","logo":1,"mst":8,"pl":null,"share":1,"sp":0,"st":2,"tail":0,"td":"15.20","ti":"11支玫瑰花束礼盒","tie":0,"type":3,"ul":{"ui":[{"url":"http://ugcws.video.gtimg.com/uwMROfz2r5zIIaQXGdGnC2dfhzlvTAnhF6oxQxj00cDugkoy/","vt":106,"dtc":0,"dt":2},{"url":"http://124.232.155.142/vhot2.qqvideo.tc.qq.com/AI2Qdy-tnvYEPVmOfhLVZ1UyOsYujsQd4R_P2t8-5ztU/uwMROfz2r5zIIaQXGdGlC2dfhzn-Ywtd-DnpfEdpKPVJ5DGm/","vt":200,"dtc":0,"dt":2},{"url":"http://ugcbsy.qq.com/uwMROfz2r5zIIaQXGdGlA2dfhzmQh7dXC4emHLoXXxGfeahI/","vt":136,"dtc":0,"dt":2},{"url":"http://video.dispatch.tc.qq.com/uwMROfz2r5zIIaQXGdGlAWdfhzlqPphVt2g1xIVIwuiq3s4z/","vt":0,"dtc":0,"dt":2}]},"vh":480,"vid":"r0766mkanbk","videotype":0,"vr":0,"vst":2,"vw":272,"wh":0.56666666,"wl":{"wi":[]},"uptime":1535114773,"fvideo":0,"cached":1,"fvpint":0,"swhdcp":0}]}};

操作二:在得到的视频代码中,分别将fn值,fvkey值,url值,复制保存到本地记事本中

操作三:再通过公式组合成最终的源视频链接,组合公式为:url码+fn码+?vkey=+fvkey码,将公式中的+去掉,最终得到如下图中的链接地址:

参数1:

http://124.232.155.142/vhot2.qqvideo.tc.qq.com/AI2Qdy-tnvYEPVmOfhLVZ1UyOsYujsQd4R_P2t8-5ztU/uwMROfz2r5zIIaQXGdGlC2dfhzn-Ywtd-DnpfEdpKPVJ5DGm/

参数2:

r0766mkanbk.m701.mp4

参数三:

B6030B8FD49732C28F3F86083C27A7BF20BE75C2ABE4FF124DE23F2616B395B73598E6DA0831483476D1768248C24E159A286868F20FCEB1A19F1493163EBE713414A32EB6BA43B4C6DF5B447EDFAE949BD2263E3B272EC3C7DCF14EBD800DE6D76966D7C4BF4CF8412DBD41C186D3AA

真实地址如下:

http://124.232.155.142/vhot2.qqvideo.tc.qq.com/AI2Qdy-tnvYEPVmOfhLVZ1UyOsYujsQd4R_P2t8-5ztU/uwMROfz2r5zIIaQXGdGlC2dfhzn-Ywtd-DnpfEdpKPVJ5DGm/r0766mkanbk.m701.mp4?vkey=B6030B8FD49732C28F3F86083C27A7BF20BE75C2ABE4FF124DE23F2616B395B73598E6DA0831483476D1768248C24E159A286868F20FCEB1A19F1493163EBE713414A32EB6BA43B4C6DF5B447EDFAE949BD2263E3B272EC3C7DCF14EBD800DE6D76966D7C4BF4CF8412DBD41C186D3AA


完结~~



评论