Video stream encryption and decryption method, video stream encryption and decryption device, communication terminal and storage terminal

An encryption method and technology of an encryption device, applied in the audio and video field, can solve the problems of computational complexity, increased delay, affecting real-time video transmission and requiring video image quality, etc., so as to improve the ability to resist cracking, ensure security, and reduce delay. Effect

Active Publication Date: 2013-10-09
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the embodiments of the present invention is to provide a video code stream encryption method, which aims to solve the problems of increasing computational complexity and delay when protecting video data security, affecting real-time video transmission requirements and video image quality

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Video stream encryption and decryption method, video stream encryption and decryption device, communication terminal and storage terminal
  • Video stream encryption and decryption method, video stream encryption and decryption device, communication terminal and storage terminal
  • Video stream encryption and decryption method, video stream encryption and decryption device, communication terminal and storage terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0072] figure 2 The flowchart of a method for encrypting a video code stream provided by the first embodiment of the present invention is shown.

[0073] In order to improve the error tolerance of video transmission, each frame of video is usually encoded into one or more fragments, each fragment consists of corresponding header information, a start code identifying the beginning or end of the fragment, and the data information of the fragment composition. The video code stream encryption method is a method for encrypting any fragment generated by video encoding, which is described in detail as follows:

[0074] In step S201, the header information of the slice is encrypted to obtain the ciphertext of the header information;

[0075] A video stream usually includes I frames, P frames and B frames, wherein non-I frames are frames other than I frames in the video stream, such as P frames and B frames. I frame is usually the first frame of each group of pictures (Group of Pic...

Embodiment 2

[0132] Figure 5 The structure of a video code stream encryption device provided by the second embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.

[0133] The video code stream decryption device can be a software unit, a hardware unit, or a combination of software and hardware running in a communication terminal or storage terminal, or it can be integrated into these communication terminals or storage terminals as an independent pendant or run in these communication terminals. In the application system of terminal or storage terminal. in:

[0134] An encrypted header information module 501, configured to encrypt the header information of the slices to obtain the ciphertext of the header information;

[0135] The scrambling module 502 is used to perform a scrambling operation on the ciphertext of the header information obtained by the encrypted header information mo...

Embodiment 3

[0146] Image 6 The flow of a method for decrypting a video code stream provided by the third embodiment of the present invention is shown, and the details are as follows:

[0147] In step S601, according to the ciphertext of the start code of the segment and the key obtained for encrypting the start code of the segment obtained when decrypting the previous segment, decrypt to obtain the plaintext of the start code and the key used to encrypt the start code of the next segment. The key of the initial code, and obtain the intermediate ciphertext of the fragment;

[0148] Since each slice in a video stream uses the same start code, this step is performed when the start code of the video stream at the decoding end is unknown, for example, when the first slice of the first I frame is received by the decoding end This step is required to obtain the start code. Afterwards, the start code is saved at the decoding end, which is convenient for subsequent fragment decryption. If the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention is suitable for the audio and video field and particularly relates to a video stream encryption and decryption method, a video stream encryption and decryption device, a communication terminal and a storage terminal. The video stream encryption method comprises the steps of conducting encryption processing to header information of a fragment to obtain a header information ciphertext; conducting scrambling encryption to the obtained header information ciphertext and a data information plain text of the fragment in which the header information ciphertext exists to obtain scrambling ciphertexts; conducting encryption processing to the start code of the fragment and a key for encrypting the start code of a next fragment to respectively obtain a start code ciphertext and a key ciphertext; conducting start code ciphertext anti-competition processing to ciphertexts which exist in the scrambling ciphertexts and are the same as the start code ciphertext to obtain an intermediate ciphertext; and combining the intermediate ciphertext, the start code ciphertext and the key ciphertext to form a stream ciphertext. By adopting the method, the computational complexity is greatly reduced and the video compression efficiency and the video image quality are not influenced.

Description

technical field [0001] The invention belongs to the field of audio and video, and in particular relates to a video code stream encryption and decryption method, device, communication and storage terminal. Background technique [0002] The code stream defined by high-efficiency digital video coding standards H.264 / AVC, MPEG-4, MPEG-2 and other standards is composed of syntactic elements organized into a hierarchical structure, which can be divided into sequences, images, slices, macros, etc. Blocks, sub-macroblocks, etc., and the information at each level is described by syntax elements. Among them, the syntax element is the basic unit of data in the code stream output by video encoding. Each syntax element is composed of several bits. It represents a specific physical meaning, for example, it can represent: macroblock type, quantization parameter, residual data, etc. . figure 1 It shows a hierarchical structure composed of syntax elements. In the five-layer structure, vide...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/2347H04N21/4405
Inventor 谷沉沉
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products