Movatterモバイル変換


[0]ホーム

URL:


CN106209896B - Streaming media encryption method and module based on audio and video format - Google Patents

Streaming media encryption method and module based on audio and video format
Download PDF

Info

Publication number
CN106209896B
CN106209896BCN201610613721.9ACN201610613721ACN106209896BCN 106209896 BCN106209896 BCN 106209896BCN 201610613721 ACN201610613721 ACN 201610613721ACN 106209896 BCN106209896 BCN 106209896B
Authority
CN
China
Prior art keywords
encryption
audio
encrypted
video
video files
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.)
Expired - Fee Related
Application number
CN201610613721.9A
Other languages
Chinese (zh)
Other versions
CN106209896A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology 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 Wangsu Science and Technology Co LtdfiledCriticalWangsu Science and Technology Co Ltd
Priority to CN201610613721.9ApriorityCriticalpatent/CN106209896B/en
Publication of CN106209896ApublicationCriticalpatent/CN106209896A/en
Application grantedgrantedCritical
Publication of CN106209896BpublicationCriticalpatent/CN106209896B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The application relates to a method and a module for encrypting streaming media based on an audio and video format. The scheme comprises the following steps: receiving an audio-video file to be encrypted and a key provided by a user for encryption; encrypting the audio-video file based on the key provided by the user by using an encryption algorithm associated with the encryption level according to the set encryption level; and outputting the encrypted audio and video file.

Description

Translated fromChinese
基于音视频格式的流媒体加密方法和模块Streaming media encryption method and module based on audio and video format

技术领域technical field

本申请涉及流媒体加密技术领域,特别是涉及基于音视频格式的流媒体加密方法和模块。The present application relates to the technical field of streaming media encryption, and in particular, to a streaming media encryption method and module based on audio and video formats.

背景技术Background technique

随着互联网技术的发展和网络带宽的持续增加,用户通过互联网观看视频已经成为一种具有取代传统观看电视的趋势的日常习惯。越来越多的用户选择从互联网的内容提供商处观看各种视频文件。尽管,内容提供商所提供了很多内容都是免费的,但为了内容提供商的自身经济利益的需求,还是有大量视频需要在向用户收取一定费用后才能被顺利观看。这种收费机制就涉及到对视频内容的版权保护。而在中国的互联网领域一直都缺乏完善的视频内容版权保护机制,因此,很容易对收费视频内容进行非法复制传播。With the development of Internet technology and the continuous increase of network bandwidth, users' watching videos through the Internet has become a daily habit with the trend of replacing traditional TV watching. More and more users choose to watch various video files from content providers on the Internet. Although a lot of content provided by content providers is free, for the needs of the content providers' own economic interests, there are still a lot of videos that need to be charged to users before they can be viewed smoothly. This charging mechanism involves copyright protection of video content. In China's Internet field, there has always been a lack of a complete copyright protection mechanism for video content. Therefore, it is easy to illegally copy and distribute paid video content.

为了解决所述非法复制转播,特别是针对流媒体内容,现有的互联网也提供了一些利用加密/解密技术的版权保护机制,诸如MPEG、H26x、WMV都提供了相应的视频加密机制。但是,当前流媒体加密方案都比较复杂,对计算处理能力要求比较高。但随着通信技术的不断发展,越来越多的用户开始采用移动端设备,例如移动电话、智能手机、个人数字助理、平板等等来访问互联网上的视频内容。与个人计算机(例如台式机或笔记本)相比,这些移动设备处理能力对视频文件的计算处理能力有限,故而对流媒体加密和解密的复杂度不能太高。这也使得这些流媒体很容易被破解后免费传播,导致内容提供商利益受损。In order to solve the illegal copying and rebroadcasting, especially for streaming media content, the existing Internet also provides some copyright protection mechanisms using encryption/decryption technology, such as MPEG, H26x, and WMV, all provide corresponding video encryption mechanisms. However, the current streaming media encryption schemes are relatively complex and require relatively high computing processing capabilities. However, with the continuous development of communication technology, more and more users begin to use mobile devices, such as mobile phones, smart phones, personal digital assistants, tablets, etc., to access video content on the Internet. Compared with personal computers (such as desktop computers or notebooks), the processing power of these mobile devices has limited computing processing power for video files, so the complexity of encryption and decryption of streaming media cannot be too high. This also makes these streaming media easy to be cracked and distributed for free, resulting in damage to the interests of content providers.

而且,现有的加密/解密方案在对音视频文件进行加密后,破坏了音视频文件本身的结构,这就要求后续的网络传输环节能够兼容这种破坏后的结构。尤其是对内容分发网络(CDN)来说,由于经加密后的音视频文件结构遭到破坏,也就需要CDN能够重新解析这种格式以标识出其真实内容,这给CDN带来了许多不便,使得CDN的内容存储和分发的效率大大降低。同时也给整个加密/解密方案的推广带来了阻碍。Moreover, the existing encryption/decryption scheme destroys the structure of the audio and video files themselves after encrypting the audio and video files, which requires subsequent network transmission links to be compatible with the damaged structure. Especially for Content Delivery Networks (CDNs), since the structure of encrypted audio and video files is damaged, CDNs need to be able to re-parse this format to identify the real content, which brings a lot of inconvenience to CDNs. , which greatly reduces the efficiency of CDN content storage and distribution. At the same time, it also hinders the promotion of the entire encryption/decryption scheme.

因此,需要提供一种新颖的加密/解密方案来解决现有技术中的上述诸多问题。Therefore, it is necessary to provide a novel encryption/decryption scheme to solve the above-mentioned problems in the prior art.

发明内容SUMMARY OF THE INVENTION

本申请的目的在于解决在流媒体内容的版权保护过程中使用的现有加密/解密方案中的各种不便利。The purpose of this application is to solve various inconveniences in the existing encryption/decryption schemes used in the copyright protection process of streaming media content.

本申请是一种基于音视频格式的流媒体加密方法和系统。The present application is a streaming media encryption method and system based on audio and video formats.

在本申请的第一方面,提供了一种基于音视频格式的加密流媒体的方法,包括:接收需要加密的音视频文件和由用户所提供的用于加密的密钥;根据设定的加密级别,使用与所述加密级别相关联的加密算法来基于用户提供的所述密钥对所述音视频文件进行加密;输出经加密的音视频文件。In a first aspect of the present application, a method for encrypting streaming media based on an audio and video format is provided, including: receiving an audio and video file that needs to be encrypted and a key for encryption provided by a user; level, encrypting the audio-video file based on the key provided by the user using an encryption algorithm associated with the encryption level; outputting the encrypted audio-video file.

在本申请的第二方面,提供了一种观看根据权利要求1所述的方法所加密的流媒体的方法,包括:发起要播放加密的音视频文件的请求,所述请求包括存储了经加密的音视频文件的URL和用户提供的密钥;将所述请求发送给具有解密模块的播放器,并由所述播放器解析所述请求以获得所述URL和密钥;所述播放器基于所述URL向云服务计算机发起对经加密的音视频文件的下载请求;所述播放器一边从所述云服务计算机下载所述经加密的音视频文件的数据一边基于所述密钥对所下载的经加密的音视频文件的数据进行解密并同时将经解密的音视频文件的数据返回给用户以供播放。In a second aspect of the present application, a method for viewing streaming media encrypted by the method according to claim 1 is provided, comprising: initiating a request to play an encrypted audio and video file, the request including storing the encrypted audio and video files The URL of the audio and video files and the key provided by the user; the request is sent to a player with a decryption module, and the player parses the request to obtain the URL and key; the player is based on The URL initiates a download request to the encrypted audio and video file to the cloud service computer; the player downloads the data of the encrypted audio and video file from the cloud service computer while based on the key pair downloaded The encrypted audio and video file data is decrypted and the decrypted audio and video file data is returned to the user for playback at the same time.

在本申请的第三方面,提供了一种基于音视频格式的加密流媒体的加密模块,其特征在于,包括:输入端口,所述输入端口用于接收需要加密的音视频文件和由用户所提供的用于加密的密钥;加密级别端口,所述加密级别端口用于帮助用户设定加密级别,以便使用与所述加密级别相关联的加密算法来基于用户提供的所述密钥对所述音视频文件进行加密;输出端口,所述输出端口用于输出经加密的音视频文件。In a third aspect of the present application, an encryption module for encrypted streaming media based on audio and video formats is provided, characterized in that it includes: an input port, where the input port is used to receive audio and video files that need to be encrypted and encrypted by a user. A key provided for encryption; an encryption level port used to assist a user in setting an encryption level to use the encryption algorithm associated with the encryption level to use the encryption algorithm associated with the encryption level to pair all keys based on the key provided by the user. The audio and video files are encrypted; the output port is used for outputting the encrypted audio and video files.

附图说明Description of drawings

图1是根据本发明的实施例的系统运行环境的示意图。FIG. 1 is a schematic diagram of a system operating environment according to an embodiment of the present invention.

图2是根据本发明的实施例的加密模块的工作示意图。FIG. 2 is a working schematic diagram of an encryption module according to an embodiment of the present invention.

图3是根据本发明的实施例的用于加密音视频文件的方法的流程图。3 is a flowchart of a method for encrypting an audio-video file according to an embodiment of the present invention.

图4是根据本发明的实施例的基于用户发起的观看加密的音视频文件的请求来为用户提供所请求的音视频文件的流程图。4 is a flowchart of providing a user with a requested audio and video file based on a user-initiated request for viewing an encrypted audio and video file according to an embodiment of the present invention.

具体实施方式Detailed ways

本申请主要解决视频的版权保护问题,具体而言,只有获得解密算法及密钥的用户才能解密观看经加密的视频。This application mainly solves the problem of copyright protection of videos. Specifically, only users who have obtained the decryption algorithm and key can decrypt and watch encrypted videos.

当前流媒体加密方案都比较复杂,对设备的计算处理能力要求比较高,从而占用了较高的CPU负载。特别是在移动端播放时,由于设备资源有限,所述解密会导致视频播放有延时、卡顿或声音画面不同步等问题,这严重影响了用户观看体验。即使是在PC端,当PC执行消耗较多资源的多任务的操作时,所述复杂的解密方案也会影响用户的观看体验。另外,现有的加密方案对音视频文件进行加密后,破坏了音视频文件本身的结构,这就会给网络传输环节带来兼容性问题。特别是,当所述音视频文件是流媒体内容时,所述文件结构的破坏可能使得原本的流数据传输的先后顺序发生混乱,导致无法通过网络正常观看所述流媒体内容。The current streaming media encryption schemes are relatively complex, and require relatively high computing processing capabilities of the device, thus occupying a relatively high CPU load. Especially when playing on a mobile terminal, due to limited device resources, the decryption may cause problems such as delay in video playback, freezes, or out-of-sync audio and video, which seriously affects the user's viewing experience. Even on the PC side, when the PC performs multitasking operations that consume more resources, the complex decryption scheme will also affect the user's viewing experience. In addition, after the existing encryption scheme encrypts the audio and video files, the structure of the audio and video files itself is destroyed, which brings compatibility problems to the network transmission link. In particular, when the audio and video files are streaming media content, the destruction of the file structure may cause confusion in the transmission sequence of the original streaming data, so that the streaming media content cannot be viewed normally through the network.

针对当前流媒体加密方案存在的两个主要问题,本申请提出了一种基于音视频格式的流媒体加密方法和系统。该方法和系统相对于现有方案提供了以下改进:Aiming at the two main problems existing in the current streaming media encryption scheme, this application proposes a streaming media encryption method and system based on an audio and video format. The method and system provide the following improvements over existing solutions:

(1)在保障相同的音视频文件安全级别的前提下,最小化加密的复杂度。(1) On the premise of ensuring the same security level of audio and video files, the complexity of encryption is minimized.

(2)在不影响用户观看音视频文件的体验的前提下,最小化解密的复杂度。(2) Minimize the complexity of decryption without affecting the user's experience of viewing audio and video files.

(3)加密前后的文件大小保持一致,从而不增加上传、下载的流量。(3) The file size before and after encryption remains the same, so as not to increase the upload and download traffic.

(4)加密后不改变原有的音视频文件结构,减小网络传输环节带来的兼容性问题。(4) The original audio and video file structure is not changed after encryption, and the compatibility problem caused by the network transmission link is reduced.

首先,如图1所示,公开了根据本发明的实施例的系统运行环境100的示意图。在所述系统运行环境100中,包括了通过网络130相连的云服务计算机110和客户源站120。所述云服务计算机110通过网络以按需、易扩展的方式为用户提供所需服务。例如,在本实施例中,云服务计算机110可以提供云存储服务和云加密服务。云存储服务可以接收来自客户源站120的需要加密的音视频文件,并将其保存在云服务计算机110中的云存储模块中,同时,将存储在云存储模块中的音视频文件的URL返回给客户源站120。云加密服务可以根据云服务计算机110接收到的来自客户源站120的加密音视频文件的请求来对云存储服务所存储的相应音视频文件进行加密后再存储到云存储模块,并将对应于存储在云存储模块中的经加密的音视频文件的URL返回给客户源站120。由于利用了“云”技术,在实施例中,音视频文件的存储和加密都可以由云服务计算机110来完成,因此,大大减少了客户源站的计算处理能力要求,使得,用户即使是使用具有有限处理能力的移动设备,例如智能电话,也能够实现良好的观看体验。First, as shown in FIG. 1 , a schematic diagram of asystem operating environment 100 according to an embodiment of the present invention is disclosed. In thesystem operating environment 100 , a cloud service computer 110 and a client origin station 120 connected through a network 130 are included. The cloud service computer 110 provides users with required services in an on-demand and easily scalable manner through the network. For example, in this embodiment, the cloud service computer 110 may provide a cloud storage service and a cloud encryption service. The cloud storage service can receive the audio and video files that need to be encrypted from the client origin site 120, save them in the cloud storage module in the cloud service computer 110, and return the URL of the audio and video files stored in the cloud storage module. To the client origin 120. The cloud encryption service can encrypt the corresponding audio and video files stored in the cloud storage service according to the request for encrypted audio and video files received by the cloud service computer 110 from the client source station 120, and then store them in the cloud storage module, and store the corresponding audio and video files in the cloud storage module. The URL of the encrypted audio and video files stored in the cloud storage module is returned to the client origin site 120 . Due to the use of "cloud" technology, in the embodiment, the storage and encryption of audio and video files can be completed by the cloud service computer 110, thus greatly reducing the computing processing capability requirements of the client origin site, so that even if the user uses Mobile devices with limited processing power, such as smartphones, can also achieve a good viewing experience.

接着,在图2中,公开了根据本发明的实施例的加密模块200的工作示意图。加密模块200可以采用CPU、微处理器、协处理器等具有运算功能的单元来实现。具体而言,所述加密模块包括:输入端口,所述输入端口用于接收需要加密的音视频文件和由用户所提供的用于加密的密钥;加密级别端口,所述加密级别端口用于帮助用户设定加密级别,以便使用与所述加密级别相关联的加密算法来基于用户提供的所述密钥对所述音视频文件进行加密;以及输出端口,所述输出端口用于输出经加密的音视频文件。与现有技术中的仅仅提供了一种加密机制的加密方案所不同的是,本发明的加密模块根据用户不同的使用场景,提供了多种加密级别。Next, in FIG. 2 , a working schematic diagram of the encryption module 200 according to an embodiment of the present invention is disclosed. The encryption module 200 may be implemented by a unit having an arithmetic function, such as a CPU, a microprocessor, and a coprocessor. Specifically, the encryption module includes: an input port, which is used for receiving audio and video files that need to be encrypted and a key for encryption provided by a user; an encryption level port, which is used for assisting a user in setting an encryption level to encrypt the audio-video file using an encryption algorithm associated with the encryption level based on the key provided by the user; and an output port for outputting encrypted audio and video files. Different from the encryption scheme in the prior art that only provides one encryption mechanism, the encryption module of the present invention provides multiple encryption levels according to different usage scenarios of users.

举例来说,在一个实施例中,如果仅仅是出于收费的目的而需要对音视频文件进行加密,则可以提供级别为0的加密级别。在该加密级别中,加密模块只对音视频文件中的某些关键信息进行加密,而不会破坏音视频帧数据的完整性。这样,在解密时,所花费的代价最小,所消耗的诸如CPU之类的处理资源几乎可以忽略不计。在具体实践中,此加密级别可被用来限制经加密的音视频文件被通用播放器播放。换句话说只有具有对应的解密功能的专用播放器才能播放此类级别的被加密的音视频文件。但所述专用播放器仅需要花费少许资源对音视频文件中的关键信息进行解密之后就能顺利播放整个音视频文件而无需从头到尾对整个文件进行解密。由于这种加密级别0具有消耗极少量资源的特点,因此,它非常适合被融入到针对具有有限处理资源的移动设备的视频应用中。许多为移动设备专门开发的媒体播放器可以采用这种加密级别以在保证音视频文件的足够的安全级别的前提下,通过减少加密/解密对移动设备的资源消耗来为用户提供良好的视频体验。另外,这种加密级别不会改变原有的音视频文件的结构,因而减小了网络传输环节带来的兼容性问题。For example, in one embodiment, if the audio and video files need to be encrypted only for the purpose of charging, an encryption level of 0 may be provided. In this encryption level, the encryption module only encrypts some key information in the audio and video files without destroying the integrity of the audio and video frame data. In this way, when decrypting, the cost is minimal, and the processing resources such as CPU consumed are almost negligible. In practice, this level of encryption can be used to restrict the playback of encrypted audio and video files by universal players. In other words, only a dedicated player with a corresponding decryption function can play encrypted audio and video files of this level. However, the dedicated player only needs to spend a few resources to decrypt the key information in the audio and video files and can play the entire audio and video files smoothly without decrypting the entire file from beginning to end. Since this encryption level 0 consumes very little resources, it is well suited to be incorporated into video applications for mobile devices with limited processing resources. Many media players specially developed for mobile devices can adopt this encryption level to provide users with a good video experience by reducing the resource consumption of encryption/decryption on mobile devices while ensuring a sufficient level of security for audio and video files. . In addition, this encryption level will not change the structure of the original audio and video files, thus reducing the compatibility problem caused by the network transmission link.

其次,在另一个实施例中,当音视频文件含有不能给其他人知道的重要内容的情况时,还可以提供级别为1的加密级别。在该级别下,增加了对音视频帧中的指定数据的加密,以达到破坏音视频帧数据文件的完整性的目的。由于在对文件进行加密的同时已破坏了该文件的完整性,因此,如果用户不具有对应的密钥,就无法从经加密的数据中完整还原出原始的音视频文件。而且,由于音视频文件的完整性破坏,因此,即使该用户仅仅想要得到音视频文件中的某段视频也是不可能的,这大大提高了音视频文件的安全级别,很好地保护了音视频文件中所含有的重要内容。但是,与级别0的加密方案相比,级别1的加密方案需要相对比较复杂,需要消耗更多的处理资源,因此,它比较适合由具有足够处理资源的云服务计算机来实现或者由网络上同样可以连接到云服务计算机的服务器来实现。Secondly, in another embodiment, when the audio and video files contain important content that cannot be known to others, an encryption level of level 1 can also be provided. At this level, encryption of the specified data in the audio and video frames is added to achieve the purpose of destroying the integrity of the audio and video frame data files. Since the integrity of the file is destroyed when the file is encrypted, if the user does not have the corresponding key, the original audio and video file cannot be completely restored from the encrypted data. Moreover, because the integrity of the audio and video files is destroyed, it is impossible for the user to obtain only a certain video in the audio and video files, which greatly improves the security level of the audio and video files and protects the audio and video files well. Important content contained in a video file. However, compared with the encryption scheme of level 0, the encryption scheme of level 1 needs to be relatively complicated and needs to consume more processing resources. Therefore, it is more suitable to be implemented by a cloud service computer with sufficient processing resources or by the same network on the network. It can be implemented by connecting to the server of the cloud service computer.

下面就可以实现所述级别0和级别1的加密算法进行具体说明。在所述说明中,以最常见的mp4视频文件作为示例来加以讨论。本领域的技术人员可以理解所述mp4视频文件仅仅是出于说明的目的而非要将本发明局限于此。实际上,任何其他视频和音频格式文件都适用于本发明的方案,例如RMVB、AVI、WMV、MKV、MPG等等视频格式和MP3、WAV、WMA、APE等等音频格式。The encryption algorithms that can implement the level 0 and level 1 will be described in detail below. In the description, the most common mp4 video file is discussed as an example. Those skilled in the art will understand that the mp4 video file is for illustrative purposes only and does not limit the present invention thereto. In fact, any other video and audio format files are suitable for the solution of the present invention, such as RMVB, AVI, WMV, MKV, MPG, etc. video formats and MP3, WAV, WMA, APE, etc. audio formats.

1.加密算法(当前举例mp4视频文件的加密),包括:1. Encryption algorithm (the current example of encryption of mp4 video files), including:

1.1修改Major brand的值为加密算法指定的值,该值指示了所述视频文件是不是加密的文件;1.1 The value of modifying Major brand is the value specified by the encryption algorithm, and this value indicates whether the video file is an encrypted file;

1.2修改Minor version的值以表示该视频文件的加密级别,例如,0表示级别0,1表示级别1,以此类推;1.2 Modify the value of Minor version to indicate the encryption level of the video file, for example, 0 means level 0, 1 means level 1, and so on;

1.3修改Avc1 box、accC box、mp4a box、mp4v box的名称为加密算法指定的名称,由于普通播放器要解析此字段进行初始化,故破坏此字段的名称就可以导致所述普通播放器无法找到所述字段因而也就无法解析出这些字段的内容,以达到初步加密的效果;1.3 Modify the names of Avc1 box, accC box, mp4a box, and mp4v box to the name specified by the encryption algorithm. Since the ordinary player needs to parse this field for initialization, destroying the name of this field can cause the ordinary player to be unable to find all the fields. Therefore, the content of these fields cannot be parsed to achieve the effect of preliminary encryption;

1.4对1.3指定的各box的内容和客户提供的密钥进行自定义加密运算(比如位运算等),将所得到的加密内容替换原先的内容,其中在此加密中前后的字节数保持不变,故可以实现不改变视频文件的结构和大小的目的;1.4 Perform a custom encryption operation (such as bit operation, etc.) on the content of each box specified in 1.3 and the key provided by the customer, and replace the obtained encrypted content with the original content, wherein the number of bytes before and after this encryption remains unchanged. change, so the purpose of not changing the structure and size of the video file can be achieved;

从1.1到1.4步骤属于加密级别0的加密算法,换句话说,如果用户选择对所述视频文件执行加密级别为0的加密,则所述加密过程到此结束。Steps from 1.1 to 1.4 belong to the encryption algorithm of encryption level 0, in other words, if the user chooses to perform encryption with encryption level 0 on the video file, the encryption process ends here.

而当用户选择了加密级别1的加密的话,除了包含上述这些加密步骤之外,所述加密算法还包括:When the user selects encryption of encryption level 1, in addition to the above encryption steps, the encryption algorithm also includes:

1.5对于视频关键帧的指定字节数的数据,执行下述操作:1.5 For the specified number of bytes of video key frame data, perform the following operations:

使用客户提供的密钥对其进行AES(Advanced Encryption Standard)加密,AES加密是块加密,所以指定的字节数必须是16的整数倍。由于视频的非关键帧必须依赖于关键帧才能解码,故只需加密关键帧;以关键帧大小为10000多个字节的音视频文件为例,其视频所指定的字节数为128字节,而音频的指定字节数为64字节。在其他实施例中,例如对音视频文件中的音频帧指定字节数的数据进行AES加密的情况下,由于音频帧的解码不需要依赖相邻的音频帧,所以需对每帧音频帧都进行AES加密;由于AES加密不改变字节数大小,故也可以保证不改变视频文件的结构和大小;需要指出的是,虽然以AES加密技术进行说明,但所述示例仅仅是出于说明的目的,其他合适的加密技术也可以被应用于上述加密处理中。It is encrypted by AES (Advanced Encryption Standard) using the key provided by the customer. AES encryption is block encryption, so the specified number of bytes must be an integer multiple of 16. Since the non-key frames of the video must depend on the key frames to be decoded, only the key frames need to be encrypted. Taking the audio and video files with a key frame size of more than 10,000 bytes as an example, the specified number of bytes for the video is 128 bytes. , while the specified number of bytes for audio is 64 bytes. In other embodiments, for example, in the case of performing AES encryption on the data of the specified number of bytes of the audio frame in the audio and video file, since the decoding of the audio frame does not need to depend on the adjacent audio frames, it is necessary to perform AES encryption for each audio frame. Perform AES encryption; since AES encryption does not change the size of the number of bytes, it can also ensure that the structure and size of the video file will not be changed; it should be pointed out that although the AES encryption technology is used for description, the example is only for illustration For this purpose, other suitable encryption techniques can also be applied to the above encryption process.

1.6对于视频中的每个关键帧,依次循环执行对视频关键帧(在音频帧的情况下,则是对每个音频帧)的AES加密直到文件尾,到此级别1的加密过程完成。1.6 For each key frame in the video, the AES encryption of the video key frame (in the case of audio frame, each audio frame) is performed in turn until the end of the file, and the encryption process to this level 1 is completed.

需要指出的是,上述加密算法仅仅是出于说明的目的来进行描述,而非要对本发明的加密算法进行任何限制。其他合适的加密算法也可应用于本发明中。It should be pointed out that the above encryption algorithm is only described for the purpose of illustration, and is not intended to impose any limitation on the encryption algorithm of the present invention. Other suitable encryption algorithms can also be used in the present invention.

应该理解,上述的级别0和级别1的加密级别仅仅是示例性的说明,而非要将本申请的方案局限于这两个级别。实际上,在其他实施例中,根据场景的安全性要求的不同,还可以提供更多的加密级别以实现不同的保密目的。例如,在某个加密级别中,当用户的密钥不对时,可以主动销毁音视频文件,甚至在某些加密级别中,当密钥不正确时,可以主动向对应的内容提供者或警方发出警报(例如通过通知、消息、链接等方式)以提醒有对音视频文件的非法访问等等。本领域技术人员可以根据具体的需求对其他级别的加密处理进行编程以实现例如上述附加的安全性要求。出于节省篇幅的目的,不再在此一一详述。It should be understood that the above-mentioned encryption levels of level 0 and level 1 are merely illustrative, and are not intended to limit the solution of the present application to these two levels. Actually, in other embodiments, according to different security requirements of scenarios, more encryption levels may be provided to achieve different security purposes. For example, in a certain encryption level, when the user's key is incorrect, it can actively destroy audio and video files, and even in some encryption levels, when the key is incorrect, it can actively send a message to the corresponding content provider or the police. Alerts (eg, via notifications, messages, links, etc.) to alert illegal access to audio and video files, etc. Those skilled in the art can program other levels of encryption processing to implement additional security requirements such as those described above, according to specific needs. For the purpose of saving space, they will not be described in detail here.

在上面的内容中介绍了本申请的加密模块所采用的多级别加密技术,所述多级别加密技术可以很好适用于各种设备资源和用户需求,从而提供了更加灵活的加密解决方案。The multi-level encryption technology adopted by the encryption module of the present application is introduced in the above content, and the multi-level encryption technology can be well adapted to various device resources and user requirements, thereby providing a more flexible encryption solution.

在了解了本申请的加密方案之后,现在参考图3来描述根据本发明的实施例的用于加密音视频文件的方法300的流程图。首先,在310,加密模块从客户源站的用户接收需要加密的音视频文件和该用户所提供的用于加密的相应的密钥。在步骤320,通过一个接口来向加密模块传递加密级别,例如通过向用户呈现一个用户界面以供用户选择需要的加密级别。需要注意的是,该步骤是可选的而不是必须的,因为加密模块可以具有默认的加密级别,而无需用户特别指定。只有当用户特定指定其他加密级别时,加密模块才会采用所指定加密级别来加密音视频文件。随后,在步骤330,加密模块根据用户选择的加密级别,使用与该加密级别相关联的加密算法来基于用户输入的密钥对音视频文件进行加密。根据与所选择的加密级别相关联的加密算法的复杂性和对处理资源的需求,所述加密可以由移动设备处的加密模块来执行,也可以由云服务计算机中的加密服务器来执行。接着,在步骤340,在完成对音视频文件的加密之后,加密模块将经加密的音视频文件输出以,例如,存储到云服务计算机的存储模块中。可选地,当在步骤340输出并存储完经加密的音视频文件之后,在步骤350,加密模块可以将指示完成加密和保存音视频文件的响应返回给用户以告知该用户所请求的加密任务已经完成。客户源站在收到加密成功的响应后,更新客户源站的文件列表以记录该加密任务的完成。After understanding the encryption scheme of the present application, a flowchart of amethod 300 for encrypting an audio-video file according to an embodiment of the present invention is now described with reference to FIG. 3 . First, at 310, the encryption module receives the audio and video files to be encrypted and the corresponding encryption key provided by the user from the user of the client origin site. Atstep 320, the encryption level is communicated to the encryption module through an interface, such as by presenting a user interface to the user for selection of the desired encryption level. It should be noted that this step is optional and not required, because the encryption module can have a default encryption level without the need to specify it by the user. Only when the user specifies other encryption levels, the encryption module will use the specified encryption level to encrypt audio and video files. Then, instep 330, according to the encryption level selected by the user, the encryption module uses the encryption algorithm associated with the encryption level to encrypt the audio-video file based on the key input by the user. Depending on the complexity of the encryption algorithm and the demands on processing resources associated with the selected encryption level, the encryption can be performed by the encryption module at the mobile device or by the encryption server in the cloud service computer. Next, instep 340, after completing the encryption of the audio and video files, the encryption module outputs the encrypted audio and video files to, for example, store them in the storage module of the cloud service computer. Optionally, after outputting and storing the encrypted audio and video files instep 340, in step 350, the encryption module can return the response of the instruction to complete the encryption and save the audio and video files to the user to inform the user of the requested encryption task. Has been completed. After receiving a response that the encryption is successful, the client origin station updates the file list of the client origin station to record the completion of the encryption task.

在另一个实施例中,除了从客户源站的用户接收需要加密的音视频文件以外,所述加密模块也可以从客户源站的用户接收一个与需要加密的音视频文件相关联的URL,并从该URL所指定的网络位置处下载需要加密的音视频文件,或者,客户源站的用户可以提前将需要加密的音视频文件存储到云服务计算机处的存储模块中,以便在云服务计算机处的加密模块的调用。In another embodiment, in addition to receiving the audio and video files that need to be encrypted from the user of the client origin site, the encryption module can also receive a URL associated with the audio and video files that need to be encrypted from the user of the client origin site, and Download the audio and video files that need to be encrypted from the network location specified by the URL, or, the user of the client origin site can store the audio and video files that need to be encrypted in the storage module at the cloud service computer in advance, so that the cloud service computer can store the audio and video files that need to be encrypted in advance. call of the cryptographic module.

在又一个实施例中,当在云服务计算机处的加密模块执行所述加密任务并存储了经加密的音视频文件时,除了在步骤350处向客户源站返回成功响应之外,还可以将经加密的音视频文件的URL一同返回给客户源站。In yet another embodiment, when the encryption module at the cloud service computer performs the encryption task and stores the encrypted audio and video files, in addition to returning a successful response to the client origin station at step 350, the encryption The URL of the encrypted audio and video files is returned to the client origin site together.

接着,参考图4来描述根据本发明的实施例的基于用户发起的观看加密的音视频文件的请求来为用户提供所请求的音视频文件的流程图。首先,在步骤410,客户源站的用户在一应用(例如浏览器、文件管理器)中点击所述客户源站上的音视频文件的图标以发起视频播放请求。在步骤420,客户源站将所述视频播放请求发送到具有解密模块的播放器,所述请求包含了经加密的音视频文件的URL和用户提供的密钥。在步骤430,在接收到所述视频播放请求之后,播放器解析所述请求以获得其中的经加密的音视频文件的URL和密钥。在步骤440,播放器基于所述经加密的音视频文件的URL向云服务计算机发起对经加密的音视频文件的GET下载请求。在步骤450,云服务计算机根据接收到的GET下载请求,返回与所述URL相关联的经加密的音视频文件给播放器。在步骤460,播放器开始一边从云服务计算机下载音视频文件数据一边基于所述密钥对所下载的音视频文件数据进行解密并同时将经解密的音视频文件数据返回给用户以供播放。持续整个过程,直至整个音视频文件播放完成。在上述方案中,所述播放器被安装在客户源端。而在另一个实施例中,云服务计算机也可以具有所述解密模块。因为,当经加密的音视频文件是基于级别0被加密时,所述解密过程并不会消耗过多的客户源端的资源,也就不会对用户的观看体验造成任何影响,因此,客户源端的播放器有能力边解码边提供流畅的观看体验。但当所述经加密的音视频文件是基于级别1或更高的级别被加密时,则所述解密模块可以在云服务计算机处利用该云服务计算机强大的处理资源来完成所述经加密的音视频文件的比较复杂的解密过程,随后将经解密的音视频文件返回给客户源端的播放器,此时,所述播放器的解密模块无需再耗费大量有限资源对接收的音视频文件进行解密,而是由播放器直接播放所述经解密的音视频文件,从而也保证了流畅的观看体验。在下面的内容中,例举了一种具体的解密算法的过程。如上所述,所述解密过程还是以mp4视频文件作为示例来加以讨论,并且,其他合适的视频和音频格式文件也同样适用于本申请:Next, referring to FIG. 4 , a flowchart of providing a user with a requested audio and video file based on a user-initiated request for viewing an encrypted audio and video file according to an embodiment of the present invention is described. First, instep 410, the user of the client origin site clicks the icon of the audio and video file on the client origin site in an application (eg browser, file manager) to initiate a video playback request. Instep 420, the client origin site sends the video playback request to the player with a decryption module, the request including the URL of the encrypted audio and video file and the key provided by the user. Instep 430, after receiving the video playback request, the player parses the request to obtain the URL and key of the encrypted audio and video file therein. Instep 440, the player initiates a GET download request for the encrypted audio and video file to the cloud service computer based on the URL of the encrypted audio and video file. Instep 450, the cloud service computer returns the encrypted audio and video files associated with the URL to the player according to the received GET download request. Instep 460, the player starts to download the audio and video file data from the cloud service computer while decrypting the downloaded audio and video file data based on the key and returns the decrypted audio and video file data to the user for playback at the same time. Continue the whole process until the entire audio and video files are played. In the above solution, the player is installed at the client source. In another embodiment, the cloud service computer may also have the decryption module. Because, when the encrypted audio and video files are encrypted based on level 0, the decryption process will not consume too many resources of the client source, and will not cause any impact on the user's viewing experience. Therefore, the client source The end player has the ability to provide a smooth viewing experience while decoding. However, when the encrypted audio and video files are encrypted based on level 1 or higher, the decryption module can utilize the powerful processing resources of the cloud service computer at the cloud service computer to complete the encrypted The relatively complicated decryption process of the audio and video files, and then the decrypted audio and video files are returned to the player of the client source. At this time, the decryption module of the player does not need to consume a lot of limited resources to decrypt the received audio and video files. , but the decrypted audio and video files are directly played by the player, thereby also ensuring a smooth viewing experience. In the following content, the process of a specific decryption algorithm is exemplified. As mentioned above, the decryption process is discussed with the mp4 video file as an example, and other suitable video and audio format files are also suitable for this application:

2.解密算法(当前举例mp4视频文件的解密),包括:2. Decryption algorithm (the current example of decryption of mp4 video files), including:

2.1恢复Major brand的值为加密前的原始值;2.1 Restore the value of Major brand to the original value before encryption;

2.2解析Minor version得到加密的级别,恢复到加密前原始的值;2.2 Parse the Minor version to get the encryption level and restore it to the original value before encryption;

2.3恢复加密算法对Avc1 box、accC box、mp4a box、mp4v box名称的修改,使得其恢复到原始名称;2.3 Restore the encryption algorithm to modify the names of Avc1 box, accC box, mp4a box, mp4v box, so that they can be restored to their original names;

2.4根据用户提供的密钥解密上述box的加密内容以获得原始的内容,到此针对加密级别0的解密过程完成。2.4 Decrypt the encrypted content of the above box according to the key provided by the user to obtain the original content. At this point, the decryption process for encryption level 0 is completed.

而如果用户是选择了加密级别1的加密来加密视频文件的话,除了包含上述这些解密步骤之外,所述解密算法还包括:And if the user chooses encryption of encryption level 1 to encrypt the video file, in addition to the above decryption steps, the decryption algorithm also includes:

2.5根据用户提供的密钥继续解密视频关键帧(在音频帧的情况下则是每个音频帧)指定字节数的经加密数据以获得原始数据;2.5 Continue to decrypt the encrypted data of the specified number of bytes of video key frames (in the case of audio frames, each audio frame) according to the key provided by the user to obtain the original data;

2.5循环执行对视频关键帧(在音频帧的情况下则是每个音频帧)的解密直到文件尾,到此解密过程完成。2.5 The decryption of video key frames (in the case of audio frames, each audio frame) is performed cyclically until the end of the file, at which point the decryption process is completed.

如上所述,上述解密过程可以嵌入到播放器中执行。As mentioned above, the above decryption process can be embedded in the player for execution.

需要指出的是,上述解密算法仅仅是出于说明的目的来进行描述,而非要对本发明的解密算法进行任何限制。其他合适的解密算法也可应用于本发明中。It should be pointed out that the above-mentioned decryption algorithm is only described for the purpose of illustration, and is not intended to impose any limitation on the decryption algorithm of the present invention. Other suitable decryption algorithms can also be used in the present invention.

通过结合上述附图所描述的各种实施例,本领域的技术人员可以理解,本发明可以存在下述益处:Through the various embodiments described in conjunction with the above drawings, those skilled in the art can understand that the present invention can have the following benefits:

(1)根据客户不同的使用场景,设置不同的加密级别,以实现数据安全性和播放体验的最佳折衷。(1) According to different usage scenarios of customers, set different encryption levels to achieve the best compromise between data security and playback experience.

(2)加密的密钥由客户提供,不同客户之间不存在冲突,即一个客户不能观看使用另一个客户的音视频文件,以保障各个客户音视频文件的安全性。(2) The encrypted key is provided by the customer, and there is no conflict between different customers, that is, one customer cannot watch the audio and video files of another customer, so as to ensure the security of each customer's audio and video files.

(3)加密前后的文件大小一致,不增加客户及用户上传、下载的流量,保证客户及用户的利益。(3) The file size before and after encryption is the same, does not increase the upload and download traffic of customers and users, and ensures the interests of customers and users.

(4)加密后不改变原有的音视频文件结构,减小网络传输环节带来的兼容性问题。(4) The original audio and video file structure is not changed after encryption, and the compatibility problem caused by the network transmission link is reduced.

(5)最小化加密的复杂度,这样用户端解密代价最小,可提升用户的观看体验。(5) Minimize the complexity of encryption, so that the decryption cost of the user terminal is minimal, which can improve the user's viewing experience.

此处用细节来描述本申请的主题以满足法定要求。然而,该描述本身并非旨在限制本专利的范围。相反,发明人设想所要求保护的所针对的还可结合其他当前或未来技术按照其他方式来具体化,以包括不同的步骤或类似于本文中所描述的步骤的步骤组合。此外,尽管术语“步骤”和/或“框”可在此处用于指示所采用的方法的不同元素,但除非而且仅当明确描述了各个步骤的顺序时,该术语不应被解释为意味着此处公开的各个步骤之中或之间的任何特定顺序。The subject matter of the present application is described in detail herein to satisfy statutory requirements. However, the description itself is not intended to limit the scope of this patent. Rather, the inventors contemplate that what is claimed may also be embodied in other ways, in conjunction with other current or future technologies, to include different steps or combinations of steps similar to those described herein. Furthermore, although the terms "step" and/or "block" may be used herein to refer to various elements of a method employed, the terms should not be construed to imply unless and only if the order of the various steps is explicitly described in any specific order among or between the various steps disclosed herein.

尽管用结构特征和/或方法动作专用的语言描述了本主题,但可以理解,所附权利要求书中定义的主题不必限于上述特征或动作或上述动作的次序。更具体而言,所描述的特征和动作是作为实现权利要求书的示例形式而公开的。本申请可具体化为其它具体形式而不背离其精神或本质特征。所描述的实施例在所有方面都应被认为仅是说明性而非限制性的。因此,本申请的范围由所附权利要求书而非前述描述指示。落入权利要求书的等效方案的含义和范围内的所有改变都被权利要求书的范围所涵盖。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the above-described features or acts or the order of the above-described acts. More particularly, the described features and acts are disclosed as example forms of implementing the claims. The application may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. Accordingly, the scope of the application is indicated by the appended claims rather than the foregoing description. All changes that come within the meaning and range of equivalency of the claims are embraced by the scope of the claims.

Claims (8)

Translated fromChinese
1.一种基于音视频格式的加密流媒体的方法,其特征在于,包括:1. a method based on the encrypted streaming media of audio-video format, is characterized in that, comprises:接收需要加密的音视频文件和由用户所提供的用于加密的密钥;Receive the audio and video files that need to be encrypted and the encryption key provided by the user;根据设定的加密级别,使用与所述加密级别相关联的加密算法来基于用户提供的所述密钥对所述音视频文件进行加密,其中对于不同的加密级别,与所述加密级别相关联的加密算法也各不相同;According to the set encryption level, the audio and video file is encrypted based on the key provided by the user using the encryption algorithm associated with the encryption level, wherein for different encryption levels, the encryption level is associated with the encryption level The encryption algorithms are also different;输出经加密的音视频文件;Output encrypted audio and video files;其中,当所述音视频文件为MP4视频文件时,所述加密算法包括下述步骤:Wherein, when the audio and video files are MP4 video files, the encryption algorithm includes the following steps:修改Major brand的值为所述加密算法指定的值,所述值指示了所述视频文件是不是加密的文件;The value of modifying Major brand is the value specified by the encryption algorithm, and the value indicates whether the video file is an encrypted file;修改Minor version的值以表示该视频文件的加密级别,其中值0表示加密级别0,值1表示加密级别1;Modify the value of Minor version to indicate the encryption level of the video file, where a value of 0 means encryption level 0, and a value of 1 means encryption level 1;修改Avc1box、accC box、mp4a box、mp4v box的名称为所述加密算法指定的名称;Modify the names of Avc1box, accC box, mp4a box, and mp4v box to the names specified by the encryption algorithm;将各box的内容和客户提供的密钥进行加密运算,将所得到的加密内容替换原先的内容;Encrypt the content of each box and the key provided by the customer, and replace the original content with the obtained encrypted content;加密级别如果加密级别为1,则继续执行下述步骤:Encryption Level If the encryption level is 1, continue with the following steps:其中,如果Minor version的值为0,则所述加密算法到此结束,而当Minor version的值为1时,则所述加密算法还包括下述步骤:Wherein, if the value of Minor version is 0, the encryption algorithm ends here, and when the value of Minor version is 1, the encryption algorithm further includes the following steps:对于视频的各关键帧的指定字节数的数据,依次循环执行AES加密直到所述音视频文件尾部。For the data of the specified number of bytes of each key frame of the video, AES encryption is performed cyclically until the end of the audio and video files.2.如权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising:将输出的经加密的音视频文件存储在云服务计算机的存储模块中,并将指示完成加密和存储所述音视频文件的响应返回给所述用户,其中所述响应包含了经加密的音视频文件的URL。The encrypted audio and video files of the output are stored in the storage module of the cloud service computer, and the response of the instruction to complete encryption and storage of the audio and video files is returned to the user, wherein the response includes the encrypted audio and video files. URL of the file.3.如权利要求1所述的方法,其特征在于,其中所述加密级别是通过一个接口来传递的,或者,所述加密级别是默认的加密级别。3. The method of claim 1, wherein the encryption level is communicated through an interface, or the encryption level is a default encryption level.4.如权利要求1所述的方法,其特征在于,对于所述音视频文件中的音频帧,则针对每个音频帧执行所述AES加密直到所述音视频文件尾部。4. The method of claim 1, wherein, for the audio frames in the audio and video files, the AES encryption is performed for each audio frame until the end of the audio and video files.5.一种观看根据权利要求1所述的方法所加密的流媒体的方法,其特征在于,包括:5. A method for watching the stream media encrypted by the method according to claim 1, characterized in that, comprising:发起要播放加密的音视频文件的请求,所述请求包括存储了经加密的音视频文件的URL和用户提供的密钥;Initiate a request to play the encrypted audio and video file, the request includes a URL that stores the encrypted audio and video file and a user-provided key;将所述请求发送给具有解密模块的播放器,并由所述播放器解析所述请求以获得所述URL和密钥;sending the request to a player with a decryption module, and the player parses the request to obtain the URL and key;所述播放器基于所述URL向云服务计算机发起对经加密的音视频文件的下载请求;The player initiates a download request to the encrypted audio and video file to the cloud service computer based on the URL;所述播放器一边从所述云服务计算机下载所述经加密的音视频文件的数据一边基于所述密钥对所下载的经加密的音视频文件的数据进行解密并播放经解密的音视频文件;The player decrypts the data of the downloaded encrypted audio and video file based on the key while downloading the data of the encrypted audio and video file from the cloud service computer and plays the decrypted audio and video file ;其中当所述音视频文件为MP4视频文件时,所述解密包括下述步骤:Wherein when the audio and video files are MP4 video files, the decryption includes the following steps:恢复Major brand的值为加密前的原始值;Restore the value of Major brand to the original value before encryption;恢复加密算法对Avc1box、accC box、mp4a box、mp4v box名称的修改,使得其恢复到原始名称;Restore the modification of the encryption algorithm to the names of Avc1box, accC box, mp4a box, and mp4v box, so that they can be restored to their original names;根据用户提供的密钥解密各box中的加密内容以获得原始的内容;Decrypt the encrypted content in each box according to the key provided by the user to obtain the original content;其中,当Minor version的值为1时,所述解密还包括下述步骤:Wherein, when the value of Minor version is 1, the decryption further includes the following steps:对于视频的各关键帧的指定字节数的经加密的数据,根据用户提供的密钥依次执行所述解密直至所述音视频文件尾部以获得原始数据。For the encrypted data of the specified number of bytes of each key frame of the video, the decryption is sequentially performed according to the key provided by the user until the end of the audio-video file to obtain the original data.6.如权利要求5所述的方法,其特征在于,在所述云服务计算机处也可安装所述解密模块,并且当经加密的音视频文件是基于加密级别1或更高的加密级别被加密时,由所述云服务计算机处的解密模块来取代所述播放器执行所述解密。6. method as claimed in claim 5 is characterized in that, described decryption module can also be installed at described cloud service computer place, and when encrypted audio-video file is based on encryption level 1 or higher encryption level to be When encrypting, the decryption is performed by the decryption module at the cloud service computer instead of the player.7.如权利要求5所述的方法,其特征在于,对于所述音视频文件中的音频帧,则针对每个音频帧执行所述解密直到所述音视频文件尾部。7 . The method of claim 5 , wherein, for the audio frames in the audio and video files, the decryption is performed for each audio frame until the end of the audio and video files. 8 .8.一种基于音视频格式的加密流媒体的加密模块,其特征在于,包括:8. an encryption module based on the encrypted streaming media of audio and video format, is characterized in that, comprises:输入端口,所述输入端口用于接收需要加密的音视频文件和由用户所提供的用于加密的密钥;an input port, the input port is used for receiving audio and video files that need to be encrypted and a key for encryption provided by the user;加密级别端口,所述加密级别端口用于帮助用户设定加密级别,以便使用与所述加密级别相关联的加密算法来基于用户提供的所述密钥对所述音视频文件进行加密,其中对于不同的加密级别,与所述加密级别相关联的加密算法也各不相同;Encryption level port, the encryption level port is used to help the user set an encryption level, so that the audio and video files are encrypted based on the key provided by the user using the encryption algorithm associated with the encryption level, wherein for For different encryption levels, the encryption algorithms associated with the encryption levels are also different;输出端口,所述输出端口用于输出经加密的音视频文件;an output port, the output port is used for outputting encrypted audio and video files;其中,当所述音视频文件为MP4视频文件时,所述加密算法包括下述步骤:Wherein, when the audio and video files are MP4 video files, the encryption algorithm includes the following steps:修改Major brand的值为所述加密算法指定的值,所述值指示了所述视频文件是不是加密的文件;The value of modifying Major brand is the value specified by the encryption algorithm, and the value indicates whether the video file is an encrypted file;修改Minor version的值以表示该视频文件的加密级别,其中值0表示加密级别0,值1表示加密级别1;Modify the value of Minor version to indicate the encryption level of the video file, where a value of 0 means encryption level 0, and a value of 1 means encryption level 1;修改Avc1box、accC box、mp4a box、mp4v box的名称为所述加密算法指定的名称;Modify the names of Avc1box, accC box, mp4a box, and mp4v box to the names specified by the encryption algorithm;将各box的内容和客户提供的密钥进行加密运算,将所得到的加密内容替换原先的内容;Encrypt the content of each box and the key provided by the customer, and replace the original content with the obtained encrypted content;加密级别如果加密级别为1,则继续执行下述步骤:Encryption Level If the encryption level is 1, continue with the following steps:其中,如果Minor version的值为0,则所述加密算法到此结束,而当Minor version的值为1时,则所述加密算法还包括下述步骤:Wherein, if the value of Minor version is 0, the encryption algorithm ends here, and when the value of Minor version is 1, the encryption algorithm further includes the following steps:对于视频的各关键帧的指定字节数的数据,依次循环执行AES加密直到所述音视频文件尾部。For the data of the specified number of bytes of each key frame of the video, AES encryption is performed cyclically until the end of the audio and video files.
CN201610613721.9A2016-07-292016-07-29 Streaming media encryption method and module based on audio and video formatExpired - Fee RelatedCN106209896B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610613721.9ACN106209896B (en)2016-07-292016-07-29 Streaming media encryption method and module based on audio and video format

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610613721.9ACN106209896B (en)2016-07-292016-07-29 Streaming media encryption method and module based on audio and video format

Publications (2)

Publication NumberPublication Date
CN106209896A CN106209896A (en)2016-12-07
CN106209896Btrue CN106209896B (en)2020-02-18

Family

ID=57496829

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610613721.9AExpired - Fee RelatedCN106209896B (en)2016-07-292016-07-29 Streaming media encryption method and module based on audio and video format

Country Status (1)

CountryLink
CN (1)CN106209896B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110650107A (en)*2018-06-262020-01-03杭州海康威视数字技术股份有限公司Data processing method, device and system
CN111093097A (en)*2019-12-202020-05-01北京云享智胜科技有限公司 Streaming media data encryption and decryption method, device, electronic device and storage medium
CN112966284A (en)*2021-03-262021-06-15知印信息技术(天津)有限公司File encryption and decryption method and system and computer readable storage medium
CN115225869B (en)*2022-09-202022-12-20广州万协通信息技术有限公司Directional processing method and device for monitoring data

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1494803A (en)*2001-02-262004-05-05�ɸ���Ӱ��ɷ����޹�˾ Encryption of compressed video streams
CN1997159A (en)*2006-09-292007-07-11清华大学深圳研究生院Encryption method of video stream based on H.264 coding standard with controllable quality
CN101350918A (en)*2008-09-052009-01-21清华大学Method for protecting copyright of video content
CN101895396A (en)*2010-07-142010-11-24中兴通讯股份有限公司Mobile terminal and encryption method thereof
CN102647420A (en)*2012-03-312012-08-22苏州阔地网络科技有限公司Control method and system for preventing illegal connection
CN103248474A (en)*2012-02-012013-08-14华为技术有限公司Encryption and decryption method and device for streaming media
CN103716637A (en)*2014-01-152014-04-09北京工业大学H.264 compressed domain layered video encryption method based on content analysis
CN105208404A (en)*2015-08-262015-12-30北京新东方迅程网络科技有限公司Video encryption and decryption method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20020141582A1 (en)*2001-03-282002-10-03Kocher Paul C.Content security layer providing long-term renewable security

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1494803A (en)*2001-02-262004-05-05�ɸ���Ӱ��ɷ����޹�˾ Encryption of compressed video streams
CN1997159A (en)*2006-09-292007-07-11清华大学深圳研究生院Encryption method of video stream based on H.264 coding standard with controllable quality
CN101350918A (en)*2008-09-052009-01-21清华大学Method for protecting copyright of video content
CN101895396A (en)*2010-07-142010-11-24中兴通讯股份有限公司Mobile terminal and encryption method thereof
CN103248474A (en)*2012-02-012013-08-14华为技术有限公司Encryption and decryption method and device for streaming media
CN102647420A (en)*2012-03-312012-08-22苏州阔地网络科技有限公司Control method and system for preventing illegal connection
CN103716637A (en)*2014-01-152014-04-09北京工业大学H.264 compressed domain layered video encryption method based on content analysis
CN105208404A (en)*2015-08-262015-12-30北京新东方迅程网络科技有限公司Video encryption and decryption method and device

Also Published As

Publication numberPublication date
CN106209896A (en)2016-12-07

Similar Documents

PublicationPublication DateTitle
US10645430B2 (en)Reducing time to first encrypted frame in a content stream
TWI610562B (en)Real-time or near real-time streaming
US11025432B2 (en)Access control technology for peer-to-peer sharing
CN104380753B (en) Systems and methods for segmented encryption and key derivation for representing adaptive streaming media
CN102238179B (en)Real-time or near real-time streaming
CN103650526A (en)Playlists for real-time or near real-time streaming
US8725788B2 (en)System and method for decryption of content including partial-block discard
CN103620609A (en)Method for playing digital contents protected with a DRM (digital right management) scheme and corresponding system
JP2014523164A (en) Method and apparatus for dynamic and real-time advertisement insertion based on metadata within a hardware-based trust route
TW201608885A (en)Real-time or near real-time streaming
CN106209896B (en) Streaming media encryption method and module based on audio and video format
US10237331B2 (en)Content delivery methods and systems
GB2570214A (en)Content encryption and decryption using a custom key
CN109120998A (en)media data transmission method, device and storage medium
US20110066843A1 (en)Mobile media play system and method
US11563987B2 (en)Video start-time reduction employing reductive edging principles
US10127396B2 (en)System and method for local generation of streaming content with a hint track
US8196214B2 (en)Method and apparatus for securing content using encryption with embedded key in content
CN112565656B (en)Video call method, device, system, electronic equipment and storage medium
CN118368453A (en)Audio and video playing method and device, electronic equipment and computer readable storage medium
US20070189578A1 (en)Computer-implemented method and system for perceptual cryptography in file-sharing environments
HK1194571A (en)Playlists for real-time or near real-time streaming
HK1194571B (en)Playlists for real-time or near real-time streaming

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20200218

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp