CN104581201A - Video encryption method and device - Google Patents

Video encryption method and device Download PDF

Info

Publication number
CN104581201A
CN104581201A CN201410851904.5A CN201410851904A CN104581201A CN 104581201 A CN104581201 A CN 104581201A CN 201410851904 A CN201410851904 A CN 201410851904A CN 104581201 A CN104581201 A CN 104581201A
Authority
CN
China
Prior art keywords
video
encrypted
frame
video frame
encryption
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.)
Pending
Application number
CN201410851904.5A
Other languages
Chinese (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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201410851904.5A priority Critical patent/CN104581201A/en
Publication of CN104581201A publication Critical patent/CN104581201A/en
Pending legal-status Critical Current

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, manipulating MPEG-4 scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption
    • H04N21/23476Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption by partially encrypting, e.g. encrypting the ending portion of a movie

Abstract

The invention discloses a video encryption method and device, and belongs to the technical field of network communication. The method includes the steps that all video image frames in video data corresponding to video files are obtained; the video image frames to be encrypted and meeting the preset encryption condition are selected from all the obtained video image frames; encryption is conducted on the video image frames to be encrypted through a preset encryption algorithm to obtain encrypted video data. The device comprises an acquisition module, a selection model and an encryption module. According to the video encryption method and device, the video image frames to be encrypted and meeting the preset encryption condition are selected from all the video image frames, encryption is conducted on the video image frames to be encrypted through the preset encryption algorithm to obtain the encrypted video data, only part of video data need to be encrypted, and the computation burden and consumed system resources are reduced.

Description

A kind of video encryption method and device
Technical field
The present invention relates to network communication technology field, be specifically related to a kind of method and device of video-encryption.
Background technology
Along with the development of the network communications technology, network bandwidth is more and more wider, and network speed is also more and more faster, and increasing user selects by internet viewing video frequency program.The existing video player that video frequency program is provided, all video datas that its video frequency program that can provide is corresponding are kept in video server corresponding to video player, after video player receives video program play instruction, all video datas extracting video frequency program corresponding from video server are play.But malicious third parties can crack the address that video player obtains video server, extracts video data from video server, plays order by third-party video player.Usurping the problem of video data in order to solve malicious third parties, usually can be encrypted video data at present.
Existing video encryption method: all video datas are encrypted.
Existing video encryption method, is all encrypted all video datas, and operand is large, expends system resource more.
Summary of the invention
In order to solve the problem of prior art, the invention provides a kind of video encryption method and device, from all video frame images, choose the video frame image to be encrypted meeting predetermined encryption condition, utilize predetermined encryption algorithm, treat encrypted video picture frame and be encrypted the video data after obtaining encryption, only need to encrypt a part of video data, the system resource reducing operand He expend.
In order to solve the problem, the invention discloses a kind of video encryption method, described method comprises:
Obtain all video frame images in video data corresponding to video file;
From the described all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition;
Utilize predetermined encryption algorithm, the video data after obtaining encryption is encrypted to described video frame image to be encrypted.
Further, from the described all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition, comprising:
From described all video frame images, choose all video frame images that frame type is key frame;
Be that all video frame images of key frame are as described video frame image to be encrypted using described frame type.
Further, from the described all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition, comprising:
From described all video frame images, choose all video frame images that frame type is P frame;
Be that all video frame images of P frame are as described video frame image to be encrypted using described frame type.
Further, utilize predetermined encryption algorithm, described video frame image to be encrypted be encrypted, comprise:
Search the frame head data of described video frame image to be encrypted;
Utilize described predetermined encryption algorithm, other video datas in the video data of described video frame image to be encrypted except described frame head data are encrypted.
Further, other video datas in the video data of described video frame image to be encrypted except described frame head data are encrypted, comprise:
Obtain the total bytes of other video datas in the video data of described video frame image to be encrypted except described frame head data;
When the total bytes of other video datas described is greater than predetermined word joint number threshold value, from other video datas described, selected part video data is encrypted, and wherein, the total bytes of described partial video data is described predetermined word joint number threshold value;
When the total bytes of other video datas described is less than or equal to described predetermined word joint number threshold value, chooses all other video datas described and be encrypted.
In order to solve the problem, the invention also discloses a kind of video-encryption device, described device comprises:
Acquisition module, for obtaining all video datas corresponding to video file;
Choose module, for from the described all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition;
Encrypting module, for utilizing predetermined encryption algorithm, is encrypted the video data after obtaining encryption to described video frame image to be encrypted.
Further, choose module described in comprise:
Choose unit, for from described all video frame images, choose all video frame images that frame type is key frame;
Processing unit, for being that all video frame images of key frame are as described video frame image to be encrypted using described frame type.
Further, choose module described in comprise:
Choose unit, for from described all video frame images, choose all video frame images that frame type is P frame;
Processing unit, for being that all video frame images of P frame are as described video frame image to be encrypted using described frame type.
Further, described encrypting module comprises:
Search unit, for searching the frame head data of described video frame image to be encrypted;
Ciphering unit, for utilizing described predetermined encryption algorithm, is encrypted other video datas in the video data of described video frame image to be encrypted except described frame head data.
Further, described ciphering unit comprises:
Obtain subelement, for obtain described video frame image to be encrypted video data in the total bytes of other video datas except described frame head data;
First encryption sub-unit operable, during for being greater than predetermined word joint number threshold value when the total bytes of other video datas described, from other video datas described, selected part video data is encrypted, and wherein, the total bytes of described partial video data is described predetermined word joint number threshold value;
Second encryption sub-unit operable, during for being less than or equal to described predetermined word joint number threshold value when the total bytes of other video datas described, choosing all other video datas described and is encrypted.
Video encryption method provided by the invention and device: from all video frame images, choose the video frame image to be encrypted meeting predetermined encryption condition, utilize predetermined encryption algorithm, treat encrypted video picture frame and be encrypted the video data after obtaining encryption, only need to encrypt a part of video data, the system resource reducing operand He expend.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of video encryption method flow chart that the embodiment of the present invention one provides;
Fig. 2 is a kind of video encryption method flow chart that the embodiment of the present invention two provides;
Fig. 3 is the method flow diagram of a kind of video data deciphering that the embodiment of the present invention three provides;
Fig. 4 is the method flow diagram of a kind of video data deciphering that the embodiment of the present invention four provides;
Fig. 5 is a kind of video-encryption apparatus structure schematic diagram that the embodiment of the present invention five provides.
Embodiment
Describe cooperation drawings and Examples in detail embodiments of the present invention below, by this to the present invention how application technology means solve technical problem and the implementation procedure reaching technology effect can fully understand and implement according to this.
Typically can realize in the configuration of the present embodiment at one, this configuration comprises one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as read-only memory (ROM) or flash memory (flashRAM).Internal memory is the example of computer-readable medium.
Computer-readable medium comprises permanent and impermanency, removable and non-removable media can be stored to realize information by any method or technology.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), the random access memory (RAM) of other types, read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic rigid disk stores or other magnetic storage apparatus or any other non-transmitting medium, can be used for storing the information can accessed by computing equipment.Utilize defining herein, computer-readable medium does not comprise non-temporary computer readable media (transitory media), as data-signal and the carrier wave of modulation.
As employed some vocabulary to censure specific components in the middle of specification and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and indirectly electric property coupling means at this.Therefore, if describe a first device in literary composition to be coupled to one second device, then represent described first device and directly can be electrically coupled to described second device, or be indirectly electrically coupled to described second device by other devices or the means that couple.Specification subsequent descriptions is for implementing better embodiment of the present invention, and right described description is to illustrate for the purpose of rule of the present invention, and is not used to limit scope of the present invention.Protection scope of the present invention is when being as the criterion depending on the claims person of defining.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the commodity of a series of key element or system not only comprises those key elements, but also comprise other key elements clearly do not listed, or also comprise by this commodity or the intrinsic key element of system.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within the commodity or system comprising described key element and also there is other identical element.
embodiment one
A kind of video encryption method that Fig. 1 provides for the embodiment of the present invention one; As shown in Figure 1, it can specifically comprise:
S101: obtain all video frame images in video data corresponding to video file.
Particularly, the coded format of video data can be MPEG (Moving Pictures ExpertsGroup/Motion Pictures Experts Group, dynamic image expert group) 2, H.264, AVS etc., the coded format of video data is not limited.
S102: from all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition.
Particularly, from all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition, comprising:
From all video frame images, choose all video frame images that frame type is key frame;
Be that all video frame images of key frame are as video frame image to be encrypted using frame type.
Particularly, the frame type of video frame image generally comprises I frame (key frame), P frame and B frame, and wherein, I frame is the important frame of interframe compression coding, is the coded frame of a full frame compression, only uses the video data of I frame with regard to restructural complete image during decoding; B frame is RELATED APPLICATIONS frame, namely draws the data of this frame with reference to the data of front and back two frame add the change of this frame; P frame is forward reference frame, explanation reference B frame video data.When decoding, if obtain less than the video data of I frame, then the video data of the video data of B frame, P frame also just along with solution not out, the video data therefore need encrypting I frame can realize the protection to all video frame images.
During concrete enforcement, from all video frame images obtained, select P frame to be encrypted, also can reach the effect that video data is encrypted.Particularly, various coded format by different parameters, can represent different frames, by the parameter that I frame is corresponding, from all video frame images, can select the video frame image that frame type is key frame.
S103: utilize predetermined encryption algorithm, treats encrypted video picture frame and is encrypted the video data after obtaining encryption.
Wherein, predetermined encryption algorithm can be the one in rivest, shamir, adelman, or the one in symmetric encipherment algorithm, according to practical application situation Choice encryption algorithm, can not limit cryptographic algorithm.
Particularly, utilize predetermined encryption algorithm, treat encrypted video picture frame and be encrypted, comprising:
Search the frame head data of video frame image to be encrypted;
Utilize predetermined encryption algorithm, other video datas treated in the video data of encrypted video picture frame except frame head data are encrypted.
Particularly, various coded format can by different marks, and represent the head and the tail of frame head data, the head and the tail according to frame head data identify, and can find the frame head data of video frame image to be encrypted, determine the border of frame head data.
Particularly, other video datas treated in the video data of encrypted video picture frame except frame head data are encrypted, and comprising:
Obtain the total bytes of other video datas in the video data of video frame image to be encrypted except frame head data;
When the total bytes of other video datas is greater than predetermined word joint number threshold value, from other video datas, selected part video data is encrypted, and wherein, the total bytes of partial video data is predetermined word joint number threshold value; When the total bytes of other video datas is less than or equal to predetermined word joint number threshold value, chooses all other video datas and be encrypted.
Wherein, the value of predetermined word joint number threshold value can be arranged according to the cryptographic algorithm etc. adopted, the cryptographic algorithm such as adopted is AES (Advanced Encryption Standard, Advanced Encryption Standard) cryptographic algorithm, the encryption unit of AES encryption algorithm is 128Bit (bit), then can arrange predetermined word joint number threshold value is the integral multiple of 128, conveniently realizes encryption.The cryptographic algorithm such as adopted again is DES (Data Encryption Standard, data encryption standard) cryptographic algorithm, the encryption unit of des encryption algorithm is 64bit, then also can arrange predetermined word joint number threshold value is the integral multiple of 64, conveniently realizes encryption.According to practical application situation, the value of predetermined word joint number threshold value can be selected flexibly, this is not specifically limited.
Video encryption method described in the present embodiment, from all video frame images, choose the video frame image to be encrypted meeting predetermined encryption condition, utilize predetermined encryption algorithm, treat encrypted video picture frame and be encrypted the video data after obtaining encryption, only need to encrypt a part of video data, the system resource reducing operand He expend.Video frame image to be encrypted is I-frame video image, and the data volume of I-frame video image is very little, the system resource further reducing operand He expend.When encrypting, only other video datas in I-frame video image except frame head data are encrypted, the system resource further reducing again operand He expend.When other video datas in I-frame video image except frame head data are encrypted, only encryption is less than or equal to the partial video data of predetermined word joint number threshold value, then the system resource further reducing operand and expend.
embodiment two
For the ease of understanding, below with video frame image to be encrypted for I-frame video image, predetermined word joint number threshold value is 128 to be further described for example, and see Fig. 2, be a kind of video encryption method that the embodiment of the present invention two provides, it can specifically comprise:
S201: obtain all video frame images in video data corresponding to video file, read a frame video image frame from all video frame images.
S202: using the video frame image that reads as current video image frame.
S203: judge whether current video image frame is I-frame video image, if I-frame video image, then performs S206; Otherwise, perform S204.
Particularly, various coded format by different parameters, can represent different frames, by the parameter that I-frame video image is corresponding, can judge whether current video image frame is I-frame video image.
S204: judge that whether current video image frame is the last frame video frame image in all video frame images, if not, then perform S205; Otherwise, terminate.
S205: the next frame video frame image reading current video image frame from all video frame images, then performs S202.
S206: the frame head data of searching I-frame video image.
S207: judge whether the total bytes of other video datas in the video data of I-frame video image except frame head data is greater than 128, if be greater than, then performs S208; Otherwise, perform S210.
S208: selected part video data from other video datas except frame head data, wherein, the total bytes of partial video data is 128.
S209: utilize AES encryption algorithm, partial video data is encrypted, then perform S204.
S210: utilize AES encryption algorithm, chooses all other video datas and is encrypted, then perform S204.
The method of the video frame image encryption described in the present embodiment, from all video frame images, choosing video frame image to be encrypted is I-frame video image, when other video datas in I-frame video image except frame head data are encrypted, only encryption is less than or equal to the partial video data of predetermined word joint number threshold value, the system resource that can reduce operand He expend.
It should be noted that, adopt the video-encryption of the present embodiment for the ease of understanding after, how to be decrypted, citing is below specifically described:
embodiment three
The method of a kind of video data deciphering that Fig. 3 provides for the embodiment of the present invention three; As shown in Figure 3, it can specifically comprise:
S301: obtain all video frame images in video data corresponding to video file, wherein, in all video frame images, a part of video frame image is encrypted.
Particularly, the coded format of the video data of video frame image can be MPEG2, H.264, AVS etc., the coded format of the video data of video frame image is not limited.
S302: from all video frame images, choose the video frame image of encryption.
Particularly, from all video frame images, choose the video frame image of encryption, comprising:
From all video frame images, choose the video frame image that frame type is the encryption of key frame.
Particularly, decrypting end hold corresponding with encryption, and decrypting end learns that the video frame image of to be frame type the be key frame encrypted is held in encryption in advance.Further, the video frame image after encryption, frame type still exists, and according to frame type, can select the video frame image of encryption during deciphering.
S303: utilize and preset decipherment algorithm, is decrypted the video frame image of encryption.
Wherein, decrypting end is held corresponding with encryption, and decrypting end learns the predetermined encryption algorithm that encryption end uses in advance, thus adopts the default decipherment algorithm corresponding with predetermined encryption algorithm to be decrypted.
Particularly, utilize and preset decipherment algorithm, the video frame image of encryption is decrypted, comprises:
Search the frame head data of the video frame image of encryption;
Utilize and preset decipherment algorithm, other video datas in the video data of the video frame image of encryption except frame head data are decrypted.
Particularly, other video datas in the video data of the video frame image of encryption except frame head data are decrypted, comprise:
Obtain the total bytes of other video datas in the video data of the video frame image of encryption except frame head data;
When the total bytes of other video datas is greater than predetermined word joint number threshold value, the partial video data choosing encryption from other video datas is decrypted, and wherein, the total bytes of the partial video data of encryption is predetermined word joint number threshold value;
When the total bytes of other video datas is less than or equal to predetermined word joint number threshold value, other video datas whole in the video data of the video frame image of encryption except frame head data are decrypted.
The method of the video data deciphering described in the present embodiment, during due to encryption, only treat encrypted video picture frame and be encrypted the video frame image after obtaining encryption, only encrypt a part of video frame image, when therefore deciphering, also only need decipher a part of video frame image, decrypt operation amount and consume system resources minimum, can fast decryption be realized.
embodiment four
For the ease of understanding, below with the I-frame video image of the video frame image of encryption for encryption, predetermined word joint number threshold value is 128 to be further described, see Fig. 4 for example, for the method for a kind of video data deciphering that the embodiment of the present invention four provides, it can specifically comprise:
S401: obtain all video frame images in video data corresponding to video file, read a frame video image frame from all video frame images, wherein, in all video frame images, a part of video frame image is encrypted.
S402: using the video frame image that reads as current video image frame.
S403: judge whether current video image frame is the I-frame video image encrypted, if the I-frame video image of encryption, then performs S406; Otherwise, perform S404.
Particularly, various coded format by different parameters, can represent different frames, by the parameter that the I-frame video image of encryption is corresponding, can judge whether current video image frame is the I-frame video image encrypted.
S404: judge that whether current video image frame is the last frame video frame image in all video frame images, if not, then perform S405; Otherwise, terminate.
S405: the next frame video frame image reading current video image frame from all video frame images, then performs S402.
S406: the frame head data of searching the I-frame video image of encryption.
S407: judge whether the total bytes of other video frame images in the video data of the I-frame video image encrypted except frame head data is greater than 128, if be greater than, then performs S408; Otherwise perform S410.
S408: selected part video data from other video datas except frame head data, wherein, the total bytes of partial video data is 128.
S409: utilize AES encryption algorithm, partial video data is decrypted, then perform S404.
S410: utilize AES encryption algorithm, is decrypted other video datas whole except frame head data, then performs S404.
The method of the video data deciphering described in the present embodiment, when other video datas in I-frame video image except frame head data are decrypted, deciphering is only needed to be less than or equal to the partial video data of predetermined word joint number threshold value, decrypt operation amount and consume system resources minimum, can fast decryption be realized.
embodiment five
A kind of video-encryption device that Fig. 5 provides for the embodiment of the present invention five; As shown in Figure 5, it can specifically comprise:
Acquisition module 501, for obtaining all video frame images in video data corresponding to video file;
Choose module 502, for from all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition;
Encrypting module 503, for utilizing predetermined encryption algorithm, treating encrypted video picture frame and being encrypted the video data after obtaining encryption.
Preferably, choose module 501 to comprise:
Choose unit, for from all video frame images, choose all video frame images that frame type is key frame;
Processing unit, for being that all video frame images of key frame are as video frame image to be encrypted using frame type.
During concrete enforcement, choose unit, can also be used for from all video frame images, choose all video frame images that frame type is P frame;
Accordingly, processing unit, can also be used for stating frame type is that all video frame images of P frame are as video frame image to be encrypted.
Preferably, encrypting module 503 comprises:
Search unit, for searching the frame head data of video frame image to be encrypted;
Ciphering unit, for utilizing predetermined encryption algorithm, other video datas treated in the video data of encrypted video picture frame except frame head data are encrypted.
Preferably, ciphering unit comprises:
Obtain subelement, for obtain video frame image to be encrypted video data in the total bytes of other video datas except frame head data;
First encryption sub-unit operable, during for being greater than predetermined word joint number threshold value when the total bytes of other video datas, from other video datas, selected part video data is encrypted, and wherein, the total bytes of partial video data is predetermined word joint number threshold value;
Second encryption sub-unit operable, during for being less than or equal to predetermined word joint number threshold value when the total bytes of other video datas, choosing all other video datas and is encrypted.
Video-encryption device described in the present embodiment, from all video frame images, choose the video frame image to be encrypted meeting predetermined encryption condition, utilize predetermined encryption algorithm, treat encrypted video picture frame and be encrypted the video frame image after obtaining encryption, only need to encrypt a part of video frame image, the system resource reducing operand He expend.Video frame image to be encrypted is I-frame video image, and the data volume of I-frame video image is very little, the system resource further reducing operand He expend.When encrypting, only other video frame images in the video data of I-frame video image except frame head data are encrypted, the system resource further reducing again operand He expend.Other in the video data to I-frame video image except frame head data are according to when being encrypted, and only encryption is less than or equal to the partial video data of predetermined word joint number threshold value, then the system resource further reducing operand and expend.
Described device describes corresponding with aforesaid method flow, and weak point describing with reference to said method flow process, repeats no longer one by one.
Above-mentioned explanation illustrate and describes some preferred embodiments of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection range of claims of the present invention.

Claims (10)

1. a video encryption method, is characterized in that, described method comprises:
Obtain all video frame images in video data corresponding to video file;
From the described all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition;
Utilize predetermined encryption algorithm, the video data after obtaining encryption is encrypted to described video frame image to be encrypted.
2. the method for claim 1, is characterized in that, from the described all video frame images obtained, chooses the video frame image to be encrypted meeting predetermined encryption condition, comprising:
From described all video frame images, choose all video frame images that frame type is key frame;
Be that all video frame images of key frame are as described video frame image to be encrypted using described frame type.
3. the method for claim 1, is characterized in that, from the described all video frame images obtained, chooses the video frame image to be encrypted meeting predetermined encryption condition, comprising:
From described all video frame images, choose all video frame images that frame type is P frame;
Be that all video frame images of P frame are as described video frame image to be encrypted using described frame type.
4. method as claimed in claim 2 or claim 3, is characterized in that, utilize predetermined encryption algorithm, be encrypted, comprise described video frame image to be encrypted:
Search the frame head data of described video frame image to be encrypted;
Utilize described predetermined encryption algorithm, other video datas in the video data of described video frame image to be encrypted except described frame head data are encrypted.
5. method as claimed in claim 4, is characterized in that, be encrypted, comprise other video datas in the video data of described video frame image to be encrypted except described frame head data:
Obtain the total bytes of other video datas in the video data of described video frame image to be encrypted except described frame head data;
When the total bytes of other video datas described is greater than predetermined word joint number threshold value, from other video datas described, selected part video data is encrypted, and wherein, the total bytes of described partial video data is described predetermined word joint number threshold value;
When the total bytes of other video datas described is less than or equal to described predetermined word joint number threshold value, chooses all other video datas described and be encrypted.
6. a video-encryption device, is characterized in that, described device comprises:
Acquisition module, for obtaining all video frame images in video data corresponding to video file;
Choose module, for from the described all video frame images obtained, choose the video frame image to be encrypted meeting predetermined encryption condition;
Encrypting module, for utilizing predetermined encryption algorithm, is encrypted the video data after obtaining encryption to described video frame image to be encrypted.
7. device as claimed in claim 6, is characterized in that, described in choose module and comprise:
Choose unit, for from described all video frame images, choose all video frame images that frame type is key frame;
Processing unit, for being that all video frame images of key frame are as described video frame image to be encrypted using described frame type.
8. device as claimed in claim 6, is characterized in that, described in choose module and comprise:
Choose unit, for from described all video frame images, choose all video frame images that frame type is P frame;
Processing unit, for being that all video frame images of P frame are as described video frame image to be encrypted using described frame type.
9. device as claimed in claim 7 or 8, it is characterized in that, described encrypting module comprises:
Search unit, for searching the frame head data of described video frame image to be encrypted;
Ciphering unit, for utilizing described predetermined encryption algorithm, is encrypted other video datas in the video data of described video frame image to be encrypted except described frame head data.
10. device as claimed in claim 9, it is characterized in that, described ciphering unit comprises:
Obtain subelement, for obtain described video frame image to be encrypted video data in the total bytes of other video datas except described frame head data;
First encryption sub-unit operable, during for being greater than predetermined word joint number threshold value when the total bytes of other video datas described, from other video datas described, selected part video data is encrypted, and wherein, the total bytes of described partial video data is described predetermined word joint number threshold value;
Second encryption sub-unit operable, during for being less than or equal to described predetermined word joint number threshold value when the total bytes of other video datas described, choosing all other video datas described and is encrypted.
CN201410851904.5A 2014-12-31 2014-12-31 Video encryption method and device Pending CN104581201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410851904.5A CN104581201A (en) 2014-12-31 2014-12-31 Video encryption method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410851904.5A CN104581201A (en) 2014-12-31 2014-12-31 Video encryption method and device

Publications (1)

Publication Number Publication Date
CN104581201A true CN104581201A (en) 2015-04-29

Family

ID=53096256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410851904.5A Pending CN104581201A (en) 2014-12-31 2014-12-31 Video encryption method and device

Country Status (1)

Country Link
CN (1) CN104581201A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208404A (en) * 2015-08-26 2015-12-30 北京新东方迅程网络科技有限公司 Video encryption and decryption method and device
CN105763887A (en) * 2015-12-17 2016-07-13 国家电网公司 Blowfish algorithm-based H.264 video coding method and transmission encryption system
CN105959800A (en) * 2016-06-01 2016-09-21 乐视控股(北京)有限公司 Video decryption method and device
CN106470345A (en) * 2015-08-21 2017-03-01 阿里巴巴集团控股有限公司 Video-encryption transmission method and decryption method, apparatus and system
CN106534868A (en) * 2015-09-15 2017-03-22 三星电子株式会社 Image processing device and image processing method performing selective image encryption
CN106921848A (en) * 2015-12-28 2017-07-04 北京计算机技术及应用研究所 A kind of Video security control device
CN107172433A (en) * 2017-04-28 2017-09-15 安徽四创电子股份有限公司 A kind of video encryption method
CN108769807A (en) * 2018-04-19 2018-11-06 上海大学 A kind of video encryption method based on Android platform
CN109327711A (en) * 2018-10-22 2019-02-12 高斯贝尔数码科技股份有限公司 Content format layered structure, encryption method, decryption method and the terminal of audio-video
CN110149521A (en) * 2019-04-09 2019-08-20 西安万像电子科技有限公司 Data processing method and system
CN111031353A (en) * 2019-12-11 2020-04-17 上海乐相科技有限公司 Video encryption method and device
CN111586442A (en) * 2020-04-23 2020-08-25 深圳奇迹智慧网络有限公司 Stream media encryption method and device, computer equipment and storage medium
CN113051592A (en) * 2021-03-31 2021-06-29 深圳市声扬科技有限公司 File encryption method and device, electronic equipment and storage medium
CN114938464A (en) * 2022-05-11 2022-08-23 北京欣博电子科技有限公司 Video encryption method and device and video decryption method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452840A (en) * 2000-05-02 2003-10-29 通用仪器公司 Method and apparatus for enabling random access to individual pictures in encrypted video stream
US20040223611A1 (en) * 2003-05-06 2004-11-11 Rong Yan Encrypting and decrypting a data stream
CN1933580A (en) * 2005-09-14 2007-03-21 乐金电子(中国)研究开发中心有限公司 Encoding/decoding method and device for digital content
CN101094057A (en) * 2006-06-20 2007-12-26 国际商业机器公司 Content dividing method, device and system
CN101163228A (en) * 2007-10-24 2008-04-16 中国电信股份有限公司 Video data encrypted system and method for network video monitoring
CN101247506A (en) * 2007-02-14 2008-08-20 中国科学院声学研究所 File enciphering method and enciphered file structure in digital media broadcasting system
CN101253768A (en) * 2005-06-23 2008-08-27 松下航空电子公司 System and method for providing searchable data transport stream encryption
CN103607272A (en) * 2013-11-26 2014-02-26 曙光信息产业股份有限公司 Video encryption method
CN104077541A (en) * 2014-06-20 2014-10-01 纵横壹旅游科技(成都)有限公司 Selective encryption method and device based on multimedia data

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452840A (en) * 2000-05-02 2003-10-29 通用仪器公司 Method and apparatus for enabling random access to individual pictures in encrypted video stream
US20040223611A1 (en) * 2003-05-06 2004-11-11 Rong Yan Encrypting and decrypting a data stream
CN1549491A (en) * 2003-05-06 2004-11-24 �Ҵ���˾ Encrypting and deencrypting method and apparatus for data flow
CN101253768A (en) * 2005-06-23 2008-08-27 松下航空电子公司 System and method for providing searchable data transport stream encryption
CN1933580A (en) * 2005-09-14 2007-03-21 乐金电子(中国)研究开发中心有限公司 Encoding/decoding method and device for digital content
CN101094057A (en) * 2006-06-20 2007-12-26 国际商业机器公司 Content dividing method, device and system
CN101247506A (en) * 2007-02-14 2008-08-20 中国科学院声学研究所 File enciphering method and enciphered file structure in digital media broadcasting system
CN101163228A (en) * 2007-10-24 2008-04-16 中国电信股份有限公司 Video data encrypted system and method for network video monitoring
CN103607272A (en) * 2013-11-26 2014-02-26 曙光信息产业股份有限公司 Video encryption method
CN104077541A (en) * 2014-06-20 2014-10-01 纵横壹旅游科技(成都)有限公司 Selective encryption method and device based on multimedia data

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106470345B (en) * 2015-08-21 2020-02-14 阿里巴巴集团控股有限公司 Video encryption transmission method, video decryption method, video encryption transmission device, video decryption device and video encryption transmission system
CN106470345A (en) * 2015-08-21 2017-03-01 阿里巴巴集团控股有限公司 Video-encryption transmission method and decryption method, apparatus and system
CN105208404A (en) * 2015-08-26 2015-12-30 北京新东方迅程网络科技有限公司 Video encryption and decryption method and device
CN106534868A (en) * 2015-09-15 2017-03-22 三星电子株式会社 Image processing device and image processing method performing selective image encryption
CN105763887A (en) * 2015-12-17 2016-07-13 国家电网公司 Blowfish algorithm-based H.264 video coding method and transmission encryption system
CN106921848A (en) * 2015-12-28 2017-07-04 北京计算机技术及应用研究所 A kind of Video security control device
CN105959800A (en) * 2016-06-01 2016-09-21 乐视控股(北京)有限公司 Video decryption method and device
CN107172433A (en) * 2017-04-28 2017-09-15 安徽四创电子股份有限公司 A kind of video encryption method
CN108769807A (en) * 2018-04-19 2018-11-06 上海大学 A kind of video encryption method based on Android platform
CN109327711A (en) * 2018-10-22 2019-02-12 高斯贝尔数码科技股份有限公司 Content format layered structure, encryption method, decryption method and the terminal of audio-video
CN110149521A (en) * 2019-04-09 2019-08-20 西安万像电子科技有限公司 Data processing method and system
CN114640855A (en) * 2019-04-09 2022-06-17 西安万像电子科技有限公司 Data processing method and system
CN111031353A (en) * 2019-12-11 2020-04-17 上海乐相科技有限公司 Video encryption method and device
CN111031353B (en) * 2019-12-11 2022-08-23 上海乐相科技有限公司 Video encryption method and device
CN111586442A (en) * 2020-04-23 2020-08-25 深圳奇迹智慧网络有限公司 Stream media encryption method and device, computer equipment and storage medium
CN111586442B (en) * 2020-04-23 2022-05-20 深圳奇迹智慧网络有限公司 Stream media encryption method and device, computer equipment and storage medium
CN113051592A (en) * 2021-03-31 2021-06-29 深圳市声扬科技有限公司 File encryption method and device, electronic equipment and storage medium
CN114938464A (en) * 2022-05-11 2022-08-23 北京欣博电子科技有限公司 Video encryption method and device and video decryption method and device

Similar Documents

Publication Publication Date Title
CN104581201A (en) Video encryption method and device
CN108965302B (en) Media data transmission system, method, device and storage medium
KR102649892B1 (en) Portioned video streaming concepts
CN107004070B (en) Media decoding control with hardware protected digital rights management
US8526612B2 (en) Selective and persistent application level encryption for video provided to a client
KR101603136B1 (en) Support for short cryptoperiods in template mode
US20120269340A1 (en) Hierarchical encryption/decryption device and method thereof
US10523417B2 (en) Apparatus for encryption and search and method thereof
US9342666B2 (en) Providing security support for digital rights management in different formats
CN102164034A (en) Device and method for establishing secure trust key
KR20140134692A (en) Systems and methods for providing content to a wireless display screen
TWI431999B (en) Supporting multiple key ladders using a common private key set
CN107040797B (en) Apparatus and method for processing image
US10102386B2 (en) Decrypting content protected with initialization vector manipulation
US20170244677A1 (en) Operation method based on white-box cryptography and secure terminal for performing the method
CN101416438A (en) Control word key store for multiple data streams
KR101697868B1 (en) Method for encrypting data for sharing or searching the data and apparatus for performing the method
US8402280B1 (en) System, method, and computer program product for buffering in association with audio/video digital rights management (DRM) processing
Son et al. SC-DVR: a secure cloud computing based framework for DVR service
US9735956B2 (en) Key ladder apparatus and method
CN108985109A (en) A kind of date storage method and device
KR101812311B1 (en) User terminal and data sharing method of user terminal based on attributed re-encryption
US10873773B2 (en) Countermeasure for cryptographic cribs
US10939173B2 (en) Systems and methods for encrypting video
JP2018007200A (en) Content decryption device, content decryption method, receiver, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150429

WD01 Invention patent application deemed withdrawn after publication