[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111556340B - Safe cross-platform video stream playing method - Google Patents

Safe cross-platform video stream playing method Download PDF

Info

Publication number
CN111556340B
CN111556340B CN202010437782.0A CN202010437782A CN111556340B CN 111556340 B CN111556340 B CN 111556340B CN 202010437782 A CN202010437782 A CN 202010437782A CN 111556340 B CN111556340 B CN 111556340B
Authority
CN
China
Prior art keywords
dash
server
client
video
mpd
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
CN202010437782.0A
Other languages
Chinese (zh)
Other versions
CN111556340A (en
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.)
Xian Technological University
Original Assignee
Xian Technological University
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 Xian Technological University filed Critical Xian Technological University
Priority to CN202010437782.0A priority Critical patent/CN111556340B/en
Publication of CN111556340A publication Critical patent/CN111556340A/en
Application granted granted Critical
Publication of CN111556340B publication Critical patent/CN111556340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • 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)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a safe cross-platform video stream playing method, which comprises the following steps: 1. the method comprises the steps that HTTPS connection is established between a client and a DASH server, and the client initiates an MPD index file request; 2. the DASH server packs the original video stream into a DASH video fragment and an MPD index file to complete the encryption of the URL tag attributes of the video fragment and the MPD file; 3. the method comprises the steps that a server receives a request of a client for initiating an MPD index file, and sends an encrypted MPD index file, a decryption key of each DASH video fragment and a server CRC (cyclic redundancy check) value; 4. the client receives a file sent by the server; 5. comparing the CRC value of the server side with the CRC value of the client side; 6. and the client dynamically selects a proper URL to initiate a video fragment request to the DASH server according to the current network condition, analyzes the video fragments according to the decryption key value corresponding to each video fragment, and finishes the playing of the video stream. The method of the invention provides encryption protection for the video stream fragments in the transmission process, and improves the safety in the video transmission process.

Description

一种安全的跨平台视频流播放方法A Secure Cross-Platform Video Streaming Method

技术领域technical field

本发明属于互联网流媒体技术领域,具体涉及一种安全的跨平台视频流播放方法。The invention belongs to the technical field of Internet streaming media, and in particular relates to a safe cross-platform video streaming playback method.

背景技术Background technique

随着流媒体技术及HTML5技术的发展,HTTP自适应传输协议逐步替代了传统的实时流式传输协议(RTP和RTSP),而其中得到广泛使用的自适应传输协议主要有Adobe公司的HDS、微软公司的MSS和苹果公司的HLS协议,但它们都有其特有的数据分段格式,基于此,MPEG联合其他3GPP等组织发布了DASH(Dynamic Adaptive Streaming over HTTP)协议国际标准。With the development of streaming media technology and HTML5 technology, the HTTP adaptive transport protocol has gradually replaced the traditional real-time streaming protocol (RTP and RTSP). Among them, the widely used adaptive transport protocols mainly include Adobe's HDS, Microsoft The company's MSS and Apple's HLS protocol, but they have their own unique data segmentation format, based on this, MPEG and other organizations such as 3GPP released the DASH (Dynamic Adaptive Streaming over HTTP) protocol international standard.

借助于浏览器的跨平台性,依靠HTML5标准提供的MSE(Media Source Extension)扩展技术,DASH协议可以很方便的完成跨平台自适应流媒体的播放,其最重要的两部分为MPD(Media Presentation Description)索引文件和视频分片,其中MPD文件为XML格式,描述了当前切片的帧率、分辨率、URL等详细信息。客户端通过向服务器实时请求MPD文件并完成解析,根据当前网络状况选择MPD文件中合适的URL标签,然后使用该URL向服务端发起视频分片请求,完成视频流的播放。目前越来越多公司在视频流播放技术选型上选择DASH技术,例如YouTube、Google、Facebook、爱奇艺等。With the help of the cross-platform nature of the browser and the MSE (Media Source Extension) extension technology provided by the HTML5 standard, the DASH protocol can easily complete the playback of cross-platform adaptive streaming media. The two most important parts are MPD (Media Presentation). Description) index file and video slice, wherein the MPD file is in XML format and describes the frame rate, resolution, URL and other details of the current slice. The client requests the MPD file to the server in real time and completes the parsing, selects the appropriate URL tag in the MPD file according to the current network conditions, and then uses the URL to initiate a video fragmentation request to the server to complete the playback of the video stream. At present, more and more companies choose DASH technology in the selection of video streaming technology, such as YouTube, Google, Facebook, iQiyi, etc.

但是,在常见的基于DASH传输视频流的系统中,鉴于HTTP协议的开放性,整个视频分片请求和传输过程都是明文进行的;一些移动设备为了提升用户体验,也会在本地缓存一些视频分片供离线阅览,但这些都未经过加密处理,只需简单的文件合并即可查看完整视频,因此,文件传输存在很大的安全隐患。However, in the common DASH-based video stream transmission system, due to the openness of the HTTP protocol, the entire video segmentation request and transmission process are carried out in plain text; some mobile devices also cache some videos locally in order to improve user experience. Fragments are available for offline viewing, but these are not encrypted, and the complete video can be viewed with simple file merging. Therefore, there is a great security risk in file transmission.

本申请提出一种安全的跨平台视频流播放方法,对于防止MPD文件被窃取导致的视频分片泄露,视频版权遭到破坏具有重要的实际应用价值。The present application proposes a secure cross-platform video stream playback method, which has important practical application value for preventing the leakage of video segments caused by the theft of MPD files and the destruction of video copyrights.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种安全的跨平台视频流播放方法,在DASH协议的基础上完成视频的跨平台播放,通过对视频分片及MPD文件内容进行加密传输及存储,能有效提高视频数据传输过程的安全性。The object of the present invention is to provide a safe cross-platform video stream playback method, which completes the cross-platform video playback on the basis of the DASH protocol. Security of the transmission process.

本发明所采用的技术方案是,一种安全的跨平台视频流播放方法,具体包括以下步骤:The technical solution adopted in the present invention is a safe cross-platform video stream playback method, which specifically includes the following steps:

步骤1、客户端和服务端之间建立HTTPS连接请求,客户端发起MPD索引文件请求;Step 1. An HTTPS connection request is established between the client and the server, and the client initiates an MPD index file request;

步骤2、服务端DASH服务器将原始视频流打包处理成若干DASH视频分片和MPD索引文件,同时分别对每个DASH视频分片和MPD索引文件的URL标签进行加密处理,获得加密MPD索引文件和每个DASH视频分片解密密钥值并存储,计算服务端CRC值;Step 2, the server DASH server packs and processes the original video stream into several DASH video fragments and MPD index files, and simultaneously encrypts the URL tags of each DASH video fragment and MPD index file to obtain encrypted MPD index files and Each DASH video segment decrypts the key value and stores it, and calculates the server CRC value;

步骤3、DASH服务器接受客户端发起的MPD索引文件请求,将加密MPD索引文件、每个DASH视频分片解密密钥值和服务端CRC校验值按照固定格式通过RPC接口传递至客户端;Step 3, the DASH server accepts the MPD index file request initiated by the client, and transmits the encrypted MPD index file, each DASH video fragment decryption key value and the server CRC check value to the client through the RPC interface according to a fixed format;

步骤4、客户端接收到DASH服务器传递的加密MPD索引文件、每个DASH视频分片解密密钥值和服务端CRC校验值,并计算客户端CRC校验值;Step 4, the client receives the encrypted MPD index file transmitted by the DASH server, each DASH video fragment decryption key value and the server CRC check value, and calculates the client CRC check value;

步骤5、客户端对服务端CRC校验值和客户端CRC校验值进行比较:Step 5. The client compares the server CRC check value with the client CRC check value:

若服务端CRC校验值与客户端CRC校验值相同,客户端进行进一步解析,完成MPD索引文件的URL标签的解密,同时解析并存储每个DASH视频分片解密密钥值;If the server CRC check value is the same as the client CRC check value, the client performs further analysis to complete the decryption of the URL tag of the MPD index file, and parses and stores the decryption key value of each DASH video segment at the same time;

若服务端CRC校验值和客户端CRC校验值不同,客户端丢弃步骤3中DASH服务器传递的加密MPD索引文件、每个DASH视频分片解密密钥值和服务端CRC校验值,选择新的原始视频流重复步骤1-步骤4直至服务端CRC校验值和客户端CRC校验值相同,客户端进行进一步解析,完成MPD索引文件的URL标签的解密,同时解析并存储每个DASH视频分片解密密钥值;If the server CRC check value is different from the client CRC check value, the client discards the encrypted MPD index file, the decryption key value of each DASH video segment and the server CRC check value passed by the DASH server in step 3, and selects Repeat steps 1 to 4 for the new original video stream until the server CRC check value is the same as the client CRC check value, the client performs further analysis, completes the decryption of the URL tag of the MPD index file, and parses and stores each DASH at the same time. Video fragment decryption key value;

步骤6、客户端根据当前网络状况动态选择合适的MPD索引文件的URL标签,向DASH服务器发起视频请求,待DASH服务器接受视频请求,客户端按照步骤5中存储的每个DASH视频分片解密密钥值解密每个DASH视频分片,完成原始视频流的播放。Step 6, the client dynamically selects the URL label of the appropriate MPD index file according to the current network conditions, and initiates a video request to the DASH server. After the DASH server accepts the video request, the client decrypts the encrypted data according to each DASH video fragment stored in step 5. The key value decrypts each DASH video segment to complete the playback of the original video stream.

本发明的特点还在于,The present invention is also characterized in that,

步骤1的具体过程如下:The specific process of step 1 is as follows:

步骤1.1、启动服务端DASH服务器,使其处于监听状态,等待客户端连接请求;Step 1.1, start the server DASH server, make it in the listening state, and wait for the client connection request;

步骤1.2、客户端登陆,并携带登陆成功后返回的token信息和时间戳向DASH服务器程序发起MPD索引文件请求。Step 1.2. The client logs in, and initiates an MPD index file request to the DASH server program with the token information and timestamp returned after successful login.

步骤2中原始视频流打包处理的过程具体为:DASH服务器启动视频处理线程,将原始视频流打包处理成MPEG-DASH格式,生成若干DASH视频分片和MPD索引文件并存储在服务器端。In step 2, the process of packaging and processing the original video stream is as follows: the DASH server starts the video processing thread, and the original video stream is packaged and processed into MPEG-DASH format, and several DASH video fragments and MPD index files are generated and stored on the server side.

步骤2中DASH视频分片采用AES-128加密方式加密存储,MPD索引文件的URL标签采用异或加密算法进行加密存储;In step 2, the DASH video fragment adopts AES-128 encryption method to encrypt and store, and the URL label of MPD index file adopts XOR encryption algorithm to encrypt and store;

步骤2中每个DASH视频分片解密密钥值按照客户端登陆成功后返回的token信息和时间戳以及设备信息动态生成,保证每一个视频分片解密算法都不同,保障整体视频文件的安全性。In step 2, the decryption key value of each DASH video segment is dynamically generated according to the token information, timestamp and device information returned by the client after successful login, ensuring that each video segment has a different decryption algorithm and ensuring the security of the overall video file. .

步骤2中CRC校验值为写入MPD索引文件和DASH视频分片解密秘钥值两部分内容计算所得。In step 2, the CRC check value is calculated from two parts of the content written in the MPD index file and the DASH video fragment decryption key value.

步骤3中文件传递的固定格式为:2字节MPD文件内容长度+MPD文件内容+2字节服务端CRC校验值长度+服务端CRC校验值+4字节DASH视频分片解密密钥值长度+DASH视频分片解密密钥值。The fixed format of file transfer in step 3 is: 2-byte MPD file content length + MPD file content + 2-byte server-side CRC check value length + server-side CRC check value + 4-byte DASH video fragment decryption key Value length + DASH video fragment decryption key value.

在本发明的方法中,依赖于DASH协议的自适应性,每个分片可能会存在多个相对应的URL,客户端根据当前网络状况动态选择合适的URL,向服务器发起视频分片请求,对返回的视频分片进行按照进行解密,完成视频流播放。In the method of the present invention, depending on the adaptability of the DASH protocol, each fragment may have multiple corresponding URLs, and the client dynamically selects the appropriate URL according to the current network condition, and initiates a video fragmentation request to the server, Decrypt the returned video segments as required to complete the video stream playback.

本发明的有益效果是:本发明一种安全的跨平台视频流播放方法,结合DASH协议本身的特点,在视频流跨平台传输播放的基础上,完成对视频分片文件的加密传输,由于每一分片解密所需的秘钥值都不相同,进一步加大了视频破解的难度,提高了DASH系统中传输的视频流数据的安全性,对视频文件版权保护起到了很好的促进作用。The beneficial effects of the present invention are as follows: a safe cross-platform video stream playback method of the present invention, combined with the characteristics of the DASH protocol itself, completes the encrypted transmission of video segment files on the basis of video stream cross-platform transmission and playback. The secret key values required for decryption of each fragment are different, which further increases the difficulty of video cracking, improves the security of video stream data transmitted in the DASH system, and plays a good role in promoting the copyright protection of video files.

附图说明Description of drawings

图1本发明一种安全的跨平台视频流播放方法的流程图。Fig. 1 is a flow chart of a method for playing a safe cross-platform video stream according to the present invention.

具体实施方式Detailed ways

下面结合附图和具体实施方式对本发明进行详细说明。The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

本发明一种安全的跨平台视频流播放方法,如图1所示,具体包括以下步骤:A safe cross-platform video stream playback method of the present invention, as shown in Figure 1, specifically includes the following steps:

步骤1、启动服务端DASH服务器,使其处于监听状态,在客户端和服务端之间建立HTTPS连接请求,客户端登陆并携带登陆成功后返回的token信息和时间戳向DASH服务器程序发起MPD索引文件请求;Step 1. Start the DASH server on the server side to make it in a listening state, establish an HTTPS connection request between the client and the server, and the client logs in and initiates MPD indexing to the DASH server program with the token information and timestamp returned after successful login file request;

步骤2、DASH服务器启动视频处理线程,将原始视频流打包处理成MPEG-DASH格式,生成若干DASH视频分片和MPD索引文件并存储在服务端,同时采用AES-128加密方式分别对每个DASH视频分片进行加密处理;采用异或加密算法对MPD索引文件的URL标签进行加密处理,获得加密MPD索引文件和每个DASH视频分片解密密钥值并存储,计算服务端CRC值;Step 2. The DASH server starts the video processing thread, packages the original video stream into MPEG-DASH format, generates a number of DASH video segments and MPD index files and stores them on the server, and uses AES-128 encryption method for each DASH respectively. Encrypt the video fragment; use the XOR encryption algorithm to encrypt the URL tag of the MPD index file, obtain the encrypted MPD index file and the decryption key value of each DASH video fragment and store it, and calculate the server CRC value;

每个DASH视频分片解密密钥值按照客户端登陆成功后返回的token信息和时间戳以及设备信息动态生成,保证每一个视频分片解密算法都不同,保障整体视频文件的安全性。The decryption key value of each DASH video fragment is dynamically generated according to the token information, timestamp and device information returned by the client after successful login, to ensure that each video fragment decryption algorithm is different, and to ensure the security of the overall video file.

步骤3、DASH服务器接受客户端发起的MPD索引文件请求,并将加密MPD索引文件、每个DASH视频分片解密密钥值和服务端CRC校验值按照固定格式通过RPC接口传递至客户端;Step 3, the DASH server accepts the MPD index file request initiated by the client, and transmits the encrypted MPD index file, each DASH video fragment decryption key value and the server CRC check value to the client through the RPC interface in a fixed format;

固定格式具体为:2字节MPD文件内容长度+MPD文件内容+2字节服务端CRC校验值长度+服务端CRC校验值+4字节DASH视频分片解密密钥值长度+DASH视频分片解密密钥值。The fixed format is: 2 bytes MPD file content length + MPD file content + 2 bytes server CRC check value length + server CRC check value + 4 bytes DASH video fragment decryption key value length + DASH video Shard decryption key value.

步骤4、客户端接收到DASH服务器传递的加密MPD索引文件、每个DASH视频分片解密密钥值和服务端CRC校验值,并计算客户端CRC校验值;Step 4, the client receives the encrypted MPD index file transmitted by the DASH server, each DASH video fragment decryption key value and the server CRC check value, and calculates the client CRC check value;

步骤5、客户端对服务端CRC校验值和客户端CRC校验值进行比较:Step 5. The client compares the server CRC check value with the client CRC check value:

若服务端CRC校验值与客户端CRC校验值相同,客户端进行进一步解析,完成MPD索引文件的URL标签的解密,同时解析并存储每个DASH视频分片解密密钥值;If the server CRC check value is the same as the client CRC check value, the client performs further analysis to complete the decryption of the URL tag of the MPD index file, and parses and stores the decryption key value of each DASH video segment at the same time;

若服务端CRC校验值和客户端CRC校验值不同,客户端丢弃步骤3中DASH服务器传递的加密MPD索引文件、每个DASH视频分片解密密钥值和服务端CRC校验值,选择新的原始视频流重复步骤1-步骤4直至服务端CRC校验值和客户端CRC校验值相同,客户端进行进一步解析,完成MPD索引文件的URL标签的解密,同时解析并存储每个DASH视频分片解密密钥值;If the server CRC check value is different from the client CRC check value, the client discards the encrypted MPD index file, the decryption key value of each DASH video segment and the server CRC check value passed by the DASH server in step 3, and selects Repeat steps 1 to 4 for the new original video stream until the server CRC check value is the same as the client CRC check value, the client performs further analysis, completes the decryption of the URL tag of the MPD index file, and parses and stores each DASH at the same time. Video fragment decryption key value;

步骤6、客户端根据当前网络状况动态选择合适的MPD索引文件的URL标签,向DASH服务器发起视频请求,待DASH服务器接受视频请求,客户端按照步骤5中存储的每个DASH视频分片解密密钥值解密每个DASH视频分片,完成原始视频流的播放。Step 6, the client dynamically selects the URL label of the appropriate MPD index file according to the current network conditions, and initiates a video request to the DASH server. After the DASH server accepts the video request, the client decrypts the encrypted data according to each DASH video fragment stored in step 5. The key value decrypts each DASH video segment to complete the playback of the original video stream.

在本发明的方法中,CRC校验值为写入MPD索引文件和DASH视频分片解密秘钥值两部分内容计算所得,为保证效率及安全性,DASH服务器对MPD索引文件的重要部分URL标签属性值进行加密,同时将该URL对应的DASH视频分片解密密钥写入MPD索引文件尾部,计算整个文件的CRC值。In the method of the present invention, the CRC check value is calculated from two parts of the content written in the MPD index file and the DASH video fragmentation decryption secret key value. The attribute value is encrypted, and the DASH video fragment decryption key corresponding to the URL is written to the end of the MPD index file, and the CRC value of the entire file is calculated.

依赖于DASH协议的自适应性,每个DASH视频分片可能会存在多个相对应的URL,客户端根据当前网络状况动态选择合适的URL,向服务器发起视频分片请求,对返回的视频分片进行按照进行解密,完成视频流播放。Depending on the adaptability of the DASH protocol, each DASH video segment may have multiple corresponding URLs. The client dynamically selects the appropriate URL according to the current network conditions, initiates a video segment request to the server, and analyzes the returned video segments. The video is decrypted according to the procedure, and the video stream is played.

本发明的方法,在视频流跨平台传输播放的基础上,完成对视频分片文件的加密传输,由于每个DASH视频分片解密密钥值按照客户端登陆成功后返回的token信息和时间戳以及设备信息动态生成,保证每一个视频分片解密算法都不同,进一步加大了视频破解的难度,提高了DASH系统中传输的视频流数据的安全性,对于防止MPD文件被窃取导致的视频分片泄露,视频版权遭到破坏具有重要的实际应用价值。The method of the present invention completes the encrypted transmission of the video fragment file on the basis of the cross-platform transmission and playback of the video stream, because the decryption key value of each DASH video fragment is based on the token information and time stamp returned after the client successfully logs in. And the dynamic generation of device information ensures that each video fragment has a different decryption algorithm, which further increases the difficulty of video cracking and improves the security of video stream data transmitted in the DASH system. The leak of the film and the destruction of the copyright of the video have important practical application value.

Claims (3)

1. A safe cross-platform video stream playing method is characterized by comprising the following steps:
step 1, establishing an HTTPS connection request between a client and a server, and initiating an MPD index file request by the client;
the specific process is as follows:
step 1.1, starting a DASH server at a service end to enable the DASH server to be in a monitoring state and waiting for a client connection request;
step 1.2, a client logs in and initiates an MPD index file request to a DASH server with token information and a timestamp returned after successful login;
step 2, the DASH server of the server packs the original video stream into a plurality of DASH video fragments and MPD index files, simultaneously encrypts URL tags of each DASH video fragment and each MPD index file respectively to obtain and store the encrypted MPD index files and decryption key values of each DASH video fragment, and calculates CRC values of the server;
the process of the original video stream packing processing specifically comprises the following steps: starting a video processing thread by a DASH server, packaging and processing an original video stream into an MPEG-DASH format, generating a plurality of DASH video fragments and an MPD index file, and storing the DASH video fragments and the MPD index file in a server;
the DASH video segments are encrypted and stored in an AES-128 encryption mode, and URL tags of MPD index files are encrypted and stored in an exclusive-or encryption algorithm;
step 3, the DASH server receives an MPD index file request initiated by the client, and transmits the encrypted MPD index file, each DASH video fragment decryption key value and the server CRC value to the client through an RPC interface according to a fixed format;
each DASH video fragment decryption key value is dynamically generated according to token information, a timestamp and equipment information returned after a client successfully logs in, so that different video fragment decryption algorithms are guaranteed, and the safety of the whole video file is guaranteed;
step 4, the client receives the encrypted MPD index file, each DASH video fragment decryption key value and the server CRC check value transmitted by the DASH server, and calculates the client CRC check value;
step 5, the client compares the CRC value of the server with the CRC value of the client:
if the CRC value of the server side is the same as the CRC value of the client side, the client side further analyzes to finish decryption of a URL (uniform resource locator) tag of an MPD (MPD media stream index) file, and analyzes and stores a decryption key value of each DASH video fragment;
if the server side CRC check value is different from the client side CRC check value, the client side discards the encrypted MPD index file, each DASH video fragment decryption key value and the server side CRC check value transmitted by the DASH server in the step 3, selects a new original video stream and repeats the steps 1-4 until the server side CRC check value is the same as the client side CRC check value, and the client side further analyzes to complete decryption of the URL label of the MPD index file and simultaneously analyzes and stores each DASH video fragment decryption key value;
and step 6, the client dynamically selects a proper URL tag of the MPD index file according to the current network condition, initiates a video request to the DASH server, and when the DASH server receives the video request, the client decrypts each DASH video fragment according to each DASH video fragment decryption key value stored in the step 5 to finish the playing of the original video stream.
2. The method of claim 1, wherein the CRC check value in step 2 is calculated by writing both contents of MPD index file and decryption secret key value of DASH video segment.
3. The method as claimed in claim 1, wherein the fixed format of file delivery in step 3 is: 2-byte MPD file content length + MPD file content + 2-byte server CRC check value length + server CRC check value + 4-byte DASH video segment decryption key value length + DASH video segment decryption key value.
CN202010437782.0A 2020-05-21 2020-05-21 Safe cross-platform video stream playing method Active CN111556340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010437782.0A CN111556340B (en) 2020-05-21 2020-05-21 Safe cross-platform video stream playing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010437782.0A CN111556340B (en) 2020-05-21 2020-05-21 Safe cross-platform video stream playing method

Publications (2)

Publication Number Publication Date
CN111556340A CN111556340A (en) 2020-08-18
CN111556340B true CN111556340B (en) 2022-04-22

Family

ID=72008395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010437782.0A Active CN111556340B (en) 2020-05-21 2020-05-21 Safe cross-platform video stream playing method

Country Status (1)

Country Link
CN (1) CN111556340B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188308B (en) * 2020-08-31 2022-08-12 北京火眼目测科技有限公司 Method and device for generating encrypted video file library
CN112511862B (en) * 2020-11-12 2022-09-13 江苏大学 Method for checking MPEG-DASH video stream in NDN
CN112738560A (en) * 2020-12-28 2021-04-30 厦门市美亚柏科信息股份有限公司 Video data transmission method, receiving method, server and client
CN112702582B (en) * 2021-01-06 2022-07-15 贵州大学 Secure transmission method and device for monitoring video based on SM2
CN112860920A (en) * 2021-01-19 2021-05-28 中国联合网络通信集团有限公司 Media stream data storage method, electronic device and computer readable medium
CN114786042A (en) * 2022-04-12 2022-07-22 北京字节跳动网络技术有限公司 Video playing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3029941A1 (en) * 2012-04-27 2016-06-08 Huawei Technologies Co., Ltd. System and method for efficient support for short cryptoperiods in template mode
CN107276969A (en) * 2016-04-08 2017-10-20 杭州海康威视数字技术股份有限公司 The transmission method and device of a kind of data
CN109996095A (en) * 2019-03-28 2019-07-09 湖南快乐阳光互动娱乐传媒有限公司 Method, system and medium for preventing stealing link playing in network video on demand

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9274863B1 (en) * 2013-03-20 2016-03-01 Google Inc. Latency reduction in distributed computing systems
CN106060594B (en) * 2016-05-25 2019-04-23 武汉斗鱼网络科技有限公司 A kind of white list generation system and method based on player heartbeat
CN107786526A (en) * 2016-08-31 2018-03-09 北京优朋普乐科技有限公司 Anti-stealing link method, client and server system
CN106331752A (en) * 2016-08-31 2017-01-11 杭州当虹科技有限公司 Streaming media video file protection method
CN106791986A (en) * 2017-01-10 2017-05-31 环球智达科技(北京)有限公司 A kind of live index list encrypted antitheft catenary systems of HLS and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3029941A1 (en) * 2012-04-27 2016-06-08 Huawei Technologies Co., Ltd. System and method for efficient support for short cryptoperiods in template mode
CN107276969A (en) * 2016-04-08 2017-10-20 杭州海康威视数字技术股份有限公司 The transmission method and device of a kind of data
CN109996095A (en) * 2019-03-28 2019-07-09 湖南快乐阳光互动娱乐传媒有限公司 Method, system and medium for preventing stealing link playing in network video on demand

Also Published As

Publication number Publication date
CN111556340A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN111556340B (en) Safe cross-platform video stream playing method
US20230042354A1 (en) Method and system for secure over-the-top live video delivery
JP5686951B2 (en) Protection of digital media of various content types
EP2859707B1 (en) Signaling and handling content encryption and rights management in content transport and delivery
US8843596B2 (en) Conversion between streaming media communication protocols
US20150074393A1 (en) Method, Apparatus, and System for Implementing Media Data Processing
US20090003600A1 (en) Progressive download or streaming of digital media securely through a localized container and communication protocol proxy
CN108881205B (en) HLS streaming media safe playing system and playing method
US20080063195A1 (en) Method and system for encrypting or decrypting wmv streaming media
WO2011150817A1 (en) Method, system and apparatus for supporting advertising contents in hypertext transfer protocol streaming play mode
CN101222509A (en) A data protection transmission method of point-to-point network
CN103825885A (en) Internet content encryption release method and system
CN109348292A (en) A kind of video segment method based on slice file byte-threshold
CN107707504A (en) A kind of player method of Streaming Media, system and server and client side
CN109525893A (en) Video segment method based on slice file duration threshold value
WO2017198069A1 (en) Streaming media file processing method and apparatus
CN104540016A (en) Video playing method and device
US11647237B1 (en) Method and apparatus for secure video manifest/playlist generation and playback
CN112738560A (en) Video data transmission method, receiving method, server and client
CN108989886A (en) A kind of method and system playing encrypted video
CN113965775A (en) Multimedia video safe playing method based on slice and intelligent CDN acceleration
CN112752122B (en) Video encryption transmission method of intelligent camera and computer readable storage medium
CN108462566A (en) A kind of multimedia file encryption method and system
EP2071801B1 (en) Method and apparatus for securing content using client and session specific encryption with embedded key in content
CN102843335B (en) The processing method of streaming medium content and equipment

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