CN114979715B - 一种基于视频基因实现的cdn防盗链生成方法 - Google Patents

一种基于视频基因实现的cdn防盗链生成方法 Download PDF

Info

Publication number
CN114979715B
CN114979715B CN202210531794.9A CN202210531794A CN114979715B CN 114979715 B CN114979715 B CN 114979715B CN 202210531794 A CN202210531794 A CN 202210531794A CN 114979715 B CN114979715 B CN 114979715B
Authority
CN
China
Prior art keywords
video
theft chain
gene sequence
gene
frame image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210531794.9A
Other languages
English (en)
Other versions
CN114979715A (zh
Inventor
刘旭
刘永辉
房兰涛
谢恩鹏
赵明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Ultra HD Video Industry Co Ltd
Original Assignee
Shandong Inspur Ultra HD Video Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Ultra HD Video Industry Co Ltd filed Critical Shandong Inspur Ultra HD Video Industry Co Ltd
Priority to CN202210531794.9A priority Critical patent/CN114979715B/zh
Publication of CN114979715A publication Critical patent/CN114979715A/zh
Application granted granted Critical
Publication of CN114979715B publication Critical patent/CN114979715B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25816Management of client data involving client authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

一种基于视频基因实现的CDN防盗链生成方法,用视频基因序列生成防盗链签名,使得链接更具有唯一性,不会出现key被破解从而导致大量视频被盗链的情况,因为盗用者手里没有视频,也没有视频基因提取算法,自己无法生成基因序列。其次,每个视频的基因序列都各不相同,不存在知道其中一个就能获取所有视频基因序列的情况,此方式使得链接更加安全防止被盗用。

Description

一种基于视频基因实现的CDN防盗链生成方法
技术领域
本发明涉及视频版权保护技术领域,具体涉及一种基于视频基因实现的CDN防盗链生成方法。
背景技术
随着互联网技术的发展和网络传输速率的提升,视频成为人们日常获取信息的最主要方式。然而爆炸式增长的视频数量对于视频版权保护,视频防盗带来了巨大的挑战。目前网站方为了防止自己的点播服务器的资源和流量被盗用,保护视频版权,防止视频被下载盗用等,需要用到防盗链技术。常见的防盗链方案有Referer防盗链,URL防盗链,采用m3u8等盗链难度高的文件格式等。
但是,Referer防盗链比较简单,容易伪造。
发明内容
本发明为了克服以上技术的不足,提供了一种增强视频安全,保护视频版权的基于视频基因实现的CDN防盗链生成方法。
本发明克服其技术问题所采用的技术方案是:
一种基于视频基因实现的CDN防盗链生成方法,包括如下步骤:
a)从视频源提取视频的视频基因序列key,使用base64加密视频基因序列key后存储到视频基因序列库中;
b)计算得到防盗链签名sign;
c)生成防盗链url,该防盗链由原始播放地址+播放地址的过期时间戳+提取视频的试看时长+不同IP的终端数+链接标识+防盗链签名sign构成;
d)客户端收到防盗链url后请求CDN节点;
e)CDN节点收到防盗链url后,根据同样的规则和基因序列对url进行鉴权验证;
f)若果验证通过则允许播放视频;
g)如果验证不通过则不允许客户端访问该视频资源,返回403响应码。
进一步的,步骤a)中提取视频的视频基因序列的方法为:通过公式vf=(∑dx,∑|dx|,∑dy,∑|dy|,∑dp,∑|dp|)计算得到提取的视频帧图像的24维向量集vf,式中x为视频帧图像的横向方向,y为视频帧图像的纵向方向,p为视频帧图像的对角线方向方向,dx为视频帧图像的横向方向的Haar小波响应值,dy为视频帧图像的纵向方向的Haar小波响应值,dp为视频帧图像的对角线方向的Haar小波响应值,对向量集vf进行聚类操作,得到一个64位二进制数的基因序列,将该基因序列转换为16位十六进制的序列key。
进一步的,步骤b)中通过公式sign=md5(key+t+exper+rlimit+us)计算得到防盗链签名sign,式中md5()为md5算法,t为播放地址的过期时间戳,exper为提取视频的试看时长,rlimit为不同IP的终端数,us为链接标识。
进一步的,步骤c)中服务器在原始url尾部以QueryString的方式加入防盗链参数,生成防盗链url。
本发明的有益效果是:用视频基因序列生成防盗链签名,使得链接更具有唯一性,不会出现key被破解从而导致大量视频被盗链的情况,因为盗用者手里没有视频,也没有视频基因提取算法,自己无法生成基因序列。其次,每个视频的基因序列都各不相同,不存在知道其中一个就能获取所有视频基因序列的情况,此方式使得链接更加安全防止被盗用。
附图说明
图1为本发明的方法流程图。
具体实施方式
下面结合附图1对本发明做进一步说明。
一种基于视频基因实现的CDN防盗链生成方法,包括如下步骤:
a)从视频源提取视频的视频基因序列key,使用base64加密视频基因序列key后存储到视频基因序列库中;
b)计算得到防盗链签名sign;
c)生成防盗链url,该防盗链由原始播放地址+播放地址的过期时间戳+提取视频的试看时长+不同IP的终端数+链接标识+防盗链签名sign构成;
d)客户端收到防盗链url后请求CDN节点;
e)CDN节点收到防盗链url后,根据同样的规则和基因序列对url进行鉴权验证;
f)若果验证通过则允许播放视频;
g)如果验证不通过则不允许客户端访问该视频资源,返回403响应码。
如同生物学中的DNA一样,视频基因能够完整且唯一的表征视频内容特征,即其具有唯一性且只和视频内容相关,不受视频文件的各种属性状态影响。因此视频基因技术常用于视频片段查找、视频版权保护等场景。
目前主流的视频防盗链技术方案,例如央视网、腾讯、优酷等平台一般都采用Referer防盗链和URL防盗链方式进行防盗链。针对直播视频防盗链或点播视频防下载。将视频基因技术和URL防盗链技术结合后可以进一步增强视频安全,保护视频版权。
Referer防盗链比较简单,容易伪造。URL防盗链是主流防盗链方案,本发明提出的一种基于视频基因实现的CDN防盗链生成方法,就是在传统的URL防盗链中加入视频基因序列,进一步提升了安全性。类似于生物学中的“基因序列”,视频也有一串能与自己唯一对应的数字序列,它反映了内容的特征信息,称为“视频DNA”。用基因序列替代传统方案中的密钥key来生成签名,这样key不再是一个固定值,每个视频都有自己唯一的key,这样就大大提升了破解签名的难度,从而更好的防止被盗链。同时基因序列是后台提前计算好存入基因库,所以此方式不会使播放速度变慢。相较于传统的url防盗链方式,用视频基因序列生成防盗链签名,使得链接更具有唯一性,不会出现key被破解从而导致大量视频被盗链的情况,因为盗用者手里没有视频,也没有视频基因提取算法,自己无法生成基因序列。其次,每个视频的基因序列都各不相同,不存在知道其中一个就能获取所有视频基因序列的情况,此方式使得链接更加安全防止被盗用。
实施例1:
步骤a)中提取视频的视频基因序列的方法为:通过公式vf=(∑dx,∑|dx|,∑dy,∑|dy|,∑dp,∑|dp|)计算得到提取的视频帧图像的24维向量集vf,式中x为视频帧图像的横向方向,y为视频帧图像的纵向方向,p为视频帧图像的对角线方向方向,dx为视频帧图像的横向方向的Haar小波响应值,dy为视频帧图像的纵向方向的Haar小波响应值,dp为视频帧图像的对角线方向的Haar小波响应值,对向量集vf进行聚类操作,得到一个64位二进制数的基因序列,将该基因序列转换为16位十六进制的序列key。
实施例2:
步骤b)中通过公式sign=md5(key+t+exper+rlimit+us)计算得到防盗链签名sign,式中md5()为md5算法,t为播放地址的过期时间戳,exper为提取视频的试看时长,rlimit为不同IP的终端数,us为链接标识。
实施例3:
步骤c)中服务器在原始url尾部以QueryString的方式加入防盗链参数,生成防盗链url。
最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (3)

1.一种基于视频基因实现的CDN防盗链生成方法,其特征在于,包括如下步骤:
a)从视频源提取视频的视频基因序列key,使用base64加密视频基因序列key后存储到视频基因序列库中;
b)计算得到防盗链签名sign;
c)生成防盗链url,该防盗链由原始播放地址+播放地址的过期时间戳+提取视频的试看时长+不同IP的终端数+链接标识+防盗链签名sign构成;
d)客户端收到防盗链url后请求CDN节点;
e)CDN节点收到防盗链url后,根据同样的规则和基因序列对url进行鉴权验证;
f)若果验证通过则允许播放视频;
g)如果验证不通过则不允许客户端访问该视频资源,返回403响应码;
步骤b)中通过公式sign=md5(key+t+exper+rlimit+us)计算得到防盗链签名sign,式中md5()为md5算法,t为播放地址的过期时间戳,exper为提取视频的试看时长,rlimit为不同IP的终端数,us为链接标识。
2.根据权利要求1所述的基于视频基因实现的CDN防盗链生成方法,其特征在于,步骤a)中提取视频的视频基因序列的方法为:通过公式vf=(∑dx,∑|dx|,∑dy,∑|dy|,∑dp,∑|dp|)计算得到提取的视频帧图像的24维向量集vf,式中x为视频帧图像的横向方向,y为视频帧图像的纵向方向,p为视频帧图像的对角线方向方向,dx为视频帧图像的横向方向的Haar小波响应值,dy为视频帧图像的纵向方向的Haar小波响应值,dp为视频帧图像的对角线方向的Haar小波响应值,对向量集vf进行聚类操作,得到一个64位二进制数的基因序列,将该基因序列转换为16位十六进制的序列key。
3.根据权利要求1所述的基于视频基因实现的CDN防盗链生成方法,其特征在于:步骤c)中服务器在原始url尾部以QueryString的方式加入防盗链参数,生成防盗链url。
CN202210531794.9A 2022-05-16 2022-05-16 一种基于视频基因实现的cdn防盗链生成方法 Active CN114979715B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210531794.9A CN114979715B (zh) 2022-05-16 2022-05-16 一种基于视频基因实现的cdn防盗链生成方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210531794.9A CN114979715B (zh) 2022-05-16 2022-05-16 一种基于视频基因实现的cdn防盗链生成方法

Publications (2)

Publication Number Publication Date
CN114979715A CN114979715A (zh) 2022-08-30
CN114979715B true CN114979715B (zh) 2024-02-23

Family

ID=82982799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210531794.9A Active CN114979715B (zh) 2022-05-16 2022-05-16 一种基于视频基因实现的cdn防盗链生成方法

Country Status (1)

Country Link
CN (1) CN114979715B (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080011482A (ko) * 2006-07-31 2008-02-05 (주)뮤레카 파일 공유 서비스 환경에서의 저작권 실시간 모니터링시스템 및 그 방법
WO2010137905A2 (en) * 2008-09-26 2010-12-02 Mureka Co., Ltd. Multimedia content file management system for and method of using genetic information
JP2012528378A (ja) * 2009-05-29 2012-11-12 ムレカ カンパニー,リミテッド 遺伝子情報を用いたマルチメディアコンテンツファイル管理システム及びその方法
CN106101133A (zh) * 2016-07-14 2016-11-09 观止云(北京)信息技术有限公司 一种流媒体防盗链的方法及系统
CN109040079A (zh) * 2018-08-09 2018-12-18 广东省南方数字电视无线传播有限公司 直播链接地址的组建和验证方法及相应装置
CN112689164A (zh) * 2020-12-17 2021-04-20 杭州当虹科技股份有限公司 一种基于cdn的视频防盗链系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2304649B1 (en) * 2008-07-23 2017-05-10 Jastec Co Frame based video matching
US20120072593A1 (en) * 2008-09-26 2012-03-22 Ju-Yeob Kim Multimedia content file management system for and method of using genetic information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080011482A (ko) * 2006-07-31 2008-02-05 (주)뮤레카 파일 공유 서비스 환경에서의 저작권 실시간 모니터링시스템 및 그 방법
WO2010137905A2 (en) * 2008-09-26 2010-12-02 Mureka Co., Ltd. Multimedia content file management system for and method of using genetic information
JP2012528378A (ja) * 2009-05-29 2012-11-12 ムレカ カンパニー,リミテッド 遺伝子情報を用いたマルチメディアコンテンツファイル管理システム及びその方法
CN106101133A (zh) * 2016-07-14 2016-11-09 观止云(北京)信息技术有限公司 一种流媒体防盗链的方法及系统
CN109040079A (zh) * 2018-08-09 2018-12-18 广东省南方数字电视无线传播有限公司 直播链接地址的组建和验证方法及相应装置
CN112689164A (zh) * 2020-12-17 2021-04-20 杭州当虹科技股份有限公司 一种基于cdn的视频防盗链系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于改进SURF的视频DNA生成算法研究;徐杰等;《四川大学学报(工程科学版)》;正文第145-150页 *

Also Published As

Publication number Publication date
CN114979715A (zh) 2022-08-30

Similar Documents

Publication Publication Date Title
US7480796B2 (en) System and method for authenticating data using incompatible digest functions
US6934845B2 (en) Method and system of reversibly marking a text document with a pattern of extra blanks for authentication
US20120159180A1 (en) Server-side Encrypted Pattern Matching
US20040054906A1 (en) Method and system for encoding signatures to authenticate files
US20110029555A1 (en) Method, system and apparatus for content identification
Megias et al. Privacy-aware peer-to-peer content distribution using automatically recombined fingerprints
CN111327620A (zh) 云雾计算框架下的数据安全溯源及访问控制系统
CN112906056A (zh) 一种基于区块链的云存储密钥安全管理方法
CN110366007A (zh) 视频流的保护、验证、版权标记的生成方法
CN109088850B (zh) 基于卢卡斯序列定位错误文件的批量云审计方法
CN114979715B (zh) 一种基于视频基因实现的cdn防盗链生成方法
Yang et al. Mu-teir: Traceable encrypted image retrieval in the multi-user setting
Kwon et al. Decentralized identifier based illegal digital content distribution tracking system using the format‐preserving encryption algorithm
CN116132037A (zh) 一种安全隐蔽通信方法
CN114726503B (zh) 一种区块链车联网中的隐私保护数据订阅方法
CN116582314A (zh) 一种最优隐藏的双重保护文本方法
Du et al. The applications of blockchain in the covert communication
Agarwala et al. Client side secure image deduplication using DICE protocol
CN115361218B (zh) 一种具有查询隐匿特性的云端数据存在性验证方法
CN111274550B (zh) 基于混沌随机序列的多媒体流文件数字版权的保护方法
CN117910023B (zh) 基于大数据的计算机信息安全处理方法及系统
US20240305473A1 (en) Talking Head Digital Identity Authentication
CN111294340B (zh) 基于零宽字符的加密信息隐写方法
US20240305466A1 (en) Talking Head Digital Identity Authentication On A Distributed Network
Veličković et al. „CB-SVD Watermarking Algorithm for Video Protection with Reduced Cyclic Insertion Scheme “

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant