web逆向:关于CCTV视频清晰度问题讨论
本帖最后由 dmvip 于 2024-7-1 15:36 编辑关于cctv 视频清晰度下载问题讨论
目标:aHR0cHM6Ly90di5jY3R2LmNvbS8yMDI0LzA2LzI0L1ZJREV6Rnc1ZGZ1OEQ2NFh0a3Z0Yml6bTI0MDYyNC5zaHRtbA
urlJson:https://vdn.apps.cntv.cn/api/getHttpVideoInfo.do?pid=2d30ad68d8ae4b2a9ff47dc0b51d5889
通过上方字段(hls_url)
https://newcntv.qcloudcdn.com/asp/hls/main/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/main.m3u8?maxbr=2048
替换成下面这个
https://newcntv.qcloudcdn.com/asp/hls/2000/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/2000.m3u8?maxbr=2048
获取到的这个清晰度太低了,看论坛的网友说5.30后这种访问就获取不到最高的清晰度,请问下大佬们 高的清晰度如何获取???
json:
{
"ack": "yes",
"asp_error_code": "0",
"cdn_info": {
"cdn_code": "VOD-MP4-CDN-CNC",
"cdn_name": "3rd网宿",
"cdn_vip": "vod.cntv.lxdns.com"
},
"client_sid": "v3UL7ExwEGZut01R/Z1im52w7FAa9dua2IL123BxZ08=",
"column": "9视频高清",
"default_stream": "chapters3",
"editer_name": "zhangchi",
"embed": "",
"f_pgmtime": "2024-06-23 23:57:09",
"hls_cdn_info": {
"cdn_code": "VOD-HLS-CDN-QQNEW",
"cdn_name": "3rd腾讯云-新",
"cdn_vip": "newcntv.qcloudcdn.com"
},
"hls_url": "https://newcntv.qcloudcdn.com/asp/hls/main/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/main.m3u8?maxbr=2048",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"is_fn_hot": "true",
"is_fn_multi_stream": false,
"is_invalid_copyright": "0",
"is_ipad_support": "true",
"is_p2p_use": true,
"is_preview": "0",
"is_protected": "0",
"lc": {
"city_code": "SZ",
"country_code": "CN",
"ip": "113.118.4.82",
"isp_code": "1",
"provice_code": "GD"
},
"manifest": {
"audio_mp3": "https://dhls.cntv.myalicdn.com/asp/audio/2/d/3/0/2d30ad68d8ae4b2a9ff47dc0b51d5889/mp3/main.m3u8",
"hls_audio_url": "https://dhls.cntv.myalicdn.com/asp/hlsaudio/hls/main/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/main.m3u8",
"hls_enc2_url": "https://dhls2.cntv.qcloudcdn.com/asp/enc2/hls/main/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/main.m3u8?maxbr=2048&contentid=16121029231855",
"hls_enc_url": "https://dhls.cntv.myalicdn.com/asp/enc/hls/main/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/main.m3u8?maxbr=2048&contentid=18120319242338",
"hls_h5e_url": "https://dh5.cntv.lxdns.com/asp/h5e/hls/main/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/main.m3u8?maxbr=2048&contentid=15120519184043"
},
"play_channel": "CCTV-9纪录高清",
"produce": "",
"produce_id": "wxsb01",
"public": "1",
"segments": [
{
"end": 180400,
"guid": "6a73a707fe2b4d75bb04400c4e977f00",
"start": 67800,
"title": "《雷生万物》第1集:中华白海豚居住在雷州半岛近海海域"
},
{
"end": 373200,
"guid": "1cadccfdfb0248d59ce9ec68b202a43f",
"start": 292000,
"title": "《雷生万物》第1集:中华白海豚是建造机关的大师 在角逐中轻松胜出捕获鱼群"
},
{
"end": 540400,
"guid": "61e2099bc10a4bd5ad6d211d6b7c49f3",
"start": 471800,
"title": "《雷生万物》第1集:被误捕的海龟会被打上“信标”"
},
{
"end": 719400,
"guid": "c30ca7b1e0134250bde00506507c2f98",
"start": 563800,
"title": "《雷生万物》第1集:白海豚母亲将会一直驮着小海豚 直至它的身体完全分解"
}
],
"status": "001",
"tag": "雷生万物,中华白海豚,虫鱼,雷州半岛,绿海龟,波河南礁",
"title": "《雷生万物》 第1集 遨游于海神之域",
"version": "0.2",
"video": {
"chapters": [
{
"duration": "300.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "300.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "278.52",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
}
],
"chapters2": [
{
"duration": "180.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "180.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "180.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "180.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "158.52",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
}
],
"chapters3": [
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "38.52",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
}
],
"chapters4": [
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "120.00",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
},
{
"duration": "38.52",
"image": "https://p1.img.cctvpic.com/fmspic/2024/06/23/2d30ad68d8ae4b2a9ff47dc0b51d5889-1.jpg",
"url": ""
}
],
"totalLength": "878.52",
"url": "",
"validChapterNum": 4
}
} asp// 即可 本帖最后由 loginnow 于 2024-7-1 16:43 编辑
WXJYXLWMH 发表于 2024-7-1 16:06
asp// 即可
https://hls.cntv.kcdnvip.com/asp//hls/main/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/main.m3u8?maxbr=2048 不行吧???
换成2000后可以了 .comasphls中任意一个后边的单/改成//就行了,部分链接修改.com后边的单/还是不行,就改asp或者hls后边的 ww539283 发表于 2024-7-1 17:22
.comasphls中任意一个后边的单/改成//就行了,部分链接修改.com后边的单/还是不行,就改asp或者hls后边 ...
神了,确实可以 "hls_audio_url": "https://dhls.cntv.myalicdn.com/asp/hlsaudio/hls/main/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/main.m3u8",这里面不是有各种清晰度的可以选择? 本帖最后由 三闪五月 于 2024-7-1 18:27 编辑
选择正确的地址即可获得1280p视频。https://dhls2.cntv.qcloudcdn.com/asp/hls/2000/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/2000.m3u8或者https://dhls.cntv.lxdns.com/asp/hls/2000/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/2000.m3u8 感谢提供地址{:1_893:} 这种简单,换下地址就可以了 https://dhls2.cntv.qcloudcdn.com/asp/hls/2000/0303000a/3/default/2d30ad68d8ae4b2a9ff47dc0b51d5889/2000.m3u8,访问 dhls2.cntv.qcloudcdn.com 的请求遭到拒绝怎么办?
页:
[1]
2