Video processing method and system, storage medium and electronic equipment

By performing frame analysis and separation encryption of videos, and using the AES-256 algorithm to encrypt video frames, the problem of security protection of video content is solved, and efficient encryption and security guarantee of video content is achieved.

CN119071540APending Publication Date: 2024-12-03EAPIL
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411048531.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The prior art is difficult to effectively protect the security of video content and prevent illegal copying and tampering, resulting in infringement of the rights and interests of original creators and economic losses.

Method used

By analyzing video frames for processing, determining the target encryption algorithm based on the characteristics of the frame data, separating and encrypting the keyframes and predicted frames, and using the AES-256 encryption algorithm for encryption to form the encrypted target video.

Benefits of technology

It realizes refined control and distributed encryption of video content, enhances overall security, prevents unauthorized access and tampering, and ensures the confidentiality and integrity of video content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071540A_ABST
    Figure CN119071540A_ABST
Patent Text Reader

Abstract

The invention relates to the field of video processing, in particular to a video processing method and system, a storage medium and electronic equipment. The video processing method comprises the following steps: acquiring a to-be-processed video; performing video frame analysis on the to-be-processed video to obtain video frame data, the video frame data comprising video data corresponding to each data frame type in the to-be-processed video, and the data frame types comprising key frames and prediction frames; determining a target encryption algorithm corresponding to the to-be-processed video according to the data characteristics of the video frame data; and based on the target encryption algorithm, encrypting the video frame data to obtain an encrypted target video corresponding to the to-be-processed video. Through the method, each data frame of the to-be-processed video can be independently encrypted, the overall security of the video content is enhanced, and the confidentiality and integrity of the video content are ensured to be effectively protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of video processing, and in particular to a video processing method, system, storage medium and electronic device. Background Art

[0002] With the popularization of digital media technology, video content has become an indispensable part of people's daily lives. From traditional TV and movies to today's online videos, live broadcasts, VR videos, etc., the types and forms of video content are becoming increasingly diverse. This diversification not only enriches people's entertainment life, but also promotes the development of online education, remote office, security monitoring and other fields.

[0003] With the widespread dissemination and high sharing of video content, its security issues are becoming increasingly prominent. The illegal copying, dissemination and tampering of video content not only infringes the rights of the original creator, but may also cause serious economic losses and social impact. Therefore, it has become an urgent need to encrypt and protect video content to prevent unauthorized access and distribution. Summary of the invention

[0004] The main purpose of the present disclosure is to provide a video processing method, system, storage medium and electronic device, aiming to solve the technical problems in the prior art.

[0005] To achieve the above objectives, the present disclosure proposes a video processing method, comprising:

[0006] Get the video to be processed;

[0007] Performing video frame parsing on the video to be processed to obtain video frame data, wherein the video frame data includes video data corresponding to each data frame type in the video to be processed, and the data frame types include key frames and predicted frames;

[0008] Determining a target encryption algorithm corresponding to the video to be processed according to data characteristics of the video frame data;

[0009] Based on the target encryption algorithm, the video frame data is encrypted to obtain an encrypted target video corresponding to the video to be processed.

[0010] Optionally, encrypting the video to be processed based on the video frame data and a target encryption algorithm to obtain an encrypted target video includes:

[0011] Based on the video frame data, determining key frame data and predicted frame data of the video to be processed;

[0012] Determining a first encryption range of the key frame data and a second encryption range of the predicted frame data;

[0013] Based on the target encryption algorithm, determining a first encryption parameter of the key frame data and a second encryption parameter of the predicted frame data;

[0014] Encrypting the first encryption range according to the first encryption parameter, and encrypting the second encryption range according to the second encryption parameter to obtain the target video;

[0015] The first encryption parameters include a key, an initial vector, other encryption-related parameters, and header information of the key frame data for encrypting the key frame data, and the second encryption parameters include a key, an initial vector, and other encryption-related parameters for encrypting the predicted frame data.

[0016] Optionally, the first encryption range is the first 1024 bytes of the key frame data, and the second encryption range is the first 256 bytes of the predicted frame data.

[0017] Optionally, encrypting the first encryption range according to the first encryption parameter, and encrypting the second encryption range according to the second encryption parameter to obtain the target video includes:

[0018] Encrypting the video frame data within the first encryption range according to the first encryption parameter to obtain first encrypted data; and

[0019] Encrypting the video frame data within the second encryption range according to the second encryption parameter to obtain second encrypted data;

[0020] Based on the first encrypted data and the first non-encrypted data in the key frame data, data combination is performed to obtain a key frame data packet; and

[0021] Combining data based on the second encrypted data and the second non-encrypted data in the predicted frame data to obtain a predicted frame data packet;

[0022] The target video is determined according to the key frame data packet and the predicted frame data packet.

[0023] Optionally, determining the target video according to the key frame data packet and the predicted frame data packet includes:

[0024] Obtaining the first order of the key frame data packets in the video to be processed; and

[0025] Obtaining a second order of the predicted frame data packets in the video to be processed;

[0026] Based on the first order and the second order, data encapsulation is performed on the key frame data packet and the predicted frame data packet to obtain the target video.

[0027] Optionally, the target encryption algorithm is an AES-256 encryption algorithm.

[0028] In addition, to achieve the above objectives, the present disclosure also provides a video processing system, including:

[0029] The video encryption device is used to receive the video to be processed and encrypt the video to be processed according to the target encryption algorithm to obtain the encrypted target video;

[0030] A key management device, used for generating, storing, distributing and updating keys required for encrypting the video to be processed;

[0031] A video decryption device, used for receiving the target video and decrypting the target video according to the target encryption algorithm to obtain a decrypted video file;

[0032] A user authentication device, used for authenticating the user so as to authorize the user to obtain the decrypted video file;

[0033] The acceleration device is used to increase the encryption speed of the video to be processed and the decryption speed of the target video.

[0034] Optionally, the video encryption device comprises:

[0035] An acquisition module is used to acquire the video to be processed;

[0036] A parsing module, used for parsing the video frame to be processed to obtain video frame data, wherein the video frame data includes video data corresponding to each data frame type in the video to be processed;

[0037] A determination module, used to determine a target encryption algorithm corresponding to the video to be processed according to data characteristics of the video frame data;

[0038] The encryption module is used to encrypt the video frame data based on the target encryption algorithm to obtain the encrypted target video corresponding to the video to be processed.

[0039] In addition, to achieve the above-mentioned purpose, the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the above-mentioned video processing method.

[0040] In addition, to achieve the above-mentioned purpose, the present disclosure also provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-mentioned video processing method.

[0041] In addition, to achieve the above objectives, the present disclosure also provides a computer program product, which implements the above video processing method when executed by a processor.

[0042] The video processing method, system, storage medium and electronic device proposed in the embodiment of the present disclosure perform video frame parsing on the video to be processed to obtain the video data corresponding to each data frame type in the video to be processed, and then determine the target encryption algorithm corresponding to the video to be processed according to the data characteristics of the video frame data, and encrypt the video frame data based on the target encryption algorithm to obtain the encrypted target video corresponding to the video to be processed. In this way, through video frame parsing, each frame of data and its type in the video can be obtained. This fine-grained analysis enables the encryption process to perform separate encryption processing on each frame, thereby achieving refined control of the video content. According to different frame types and content characteristics, different encryption algorithms are selected to achieve the optimal encryption effect and performance balance. Furthermore, since the data of each data frame type is encrypted separately, even if some frames are intercepted or damaged during transmission or storage, it will not affect the decryption and recovery of other frames. This decentralized encryption method enhances the overall security of the video content, making unauthorized access and tampering more difficult, thereby ensuring that the confidentiality and integrity of the video content are effectively protected. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0044] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present disclosure;

[0045] Figure 2 A schematic diagram of a video processing method according to an embodiment of the present disclosure;

[0046] Figure 3 The present invention is a structural block diagram of a video processing system involved in an embodiment of the present disclosure.

[0047] Figure 4 The present invention is a structural block diagram of a video encryption device involved in an embodiment of the present disclosure.

[0048] The realization of the objectives, functional features and advantages of the present disclosure will be further described in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0050] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present disclosure.

[0051] Typically, the device comprises: at least one processor 301, a memory 302, and a video processing program stored in the memory 302 and executable on the processor 301, wherein the video processing program is configured to implement the steps of the video processing method as described above.

[0052] The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. The processor 301 may also include an AI (Artificial Intelligence) processor, which is used to process operations related to the video processing method, so that the video processing method model can be trained and learned autonomously to improve efficiency and accuracy.

[0053] The memory 302 may include one or more storage media, which may be non-transitory. The memory 302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory storage medium in the memory 302 is used to store at least one instruction, which is used to be executed by the processor 301 to implement the video processing method provided by the method embodiment of the present disclosure.

[0054] In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected via a bus or a signal line. Each peripheral device may be connected to the communication interface 303 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 304, a display screen 305 and a power supply 306.

[0055] The communication interface 303 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 301 and the memory 302. In some embodiments, the processor 301, the memory 302, and the communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302, and the communication interface 303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0056] The radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 304 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 304 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 304 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.

[0057] The display screen 305 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to collect touch signals on the surface or above the surface of the display screen 305. The touch signal can be input to the processor 301 as a control signal for processing. At this time, the display screen 305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 305 can be one, the front panel of the electronic device; in other embodiments, the display screen 305 can be at least two, respectively arranged on different surfaces of the electronic device or in a folding design; in some embodiments, the display screen 305 can be a flexible display screen, arranged on a curved surface or a folding surface of the electronic device. Even, the display screen 305 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 305 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0058] The power supply 306 is used to power various components in the electronic device. The power supply 306 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When the power supply 306 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology. Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0059] In addition, the embodiment of the present disclosure further proposes a storage medium, on which a video processing program is stored, and when the video processing program is executed by a processor, the steps of the video processing method described above are implemented. Therefore, it will not be described in detail here. In addition, the description of the beneficial effects of adopting the same method will not be described in detail. For technical details not disclosed in the storage medium embodiment involved in the present disclosure, please refer to the description of the method embodiment of the present disclosure. As an example, the program instructions can be deployed to be executed on one device, or on multiple devices located at one location, or on multiple devices distributed at multiple locations and interconnected by a communication network.

[0060] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the above-mentioned program can be stored in a storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0061] Reference Figure 2 , Figure 2 The following is a flow chart of a video processing method according to an embodiment of the present disclosure, comprising the following steps:

[0062] Step S11: Obtain the video to be processed.

[0063] Step S12: parsing the video frame to be processed to obtain video frame data, where the video frame data includes video data corresponding to each data frame type in the video to be processed, and the data frame types include key frames and predicted frames.

[0064] Step S13: Determine a target encryption algorithm corresponding to the video to be processed according to the data characteristics of the video frame data.

[0065] Step S14: Encrypt the video frame data based on the target encryption algorithm to obtain an encrypted target video corresponding to the video to be processed.

[0066] Through the above technical scheme, by parsing the video frame to be processed, the video data corresponding to each data frame type in the video to be processed is obtained, and then according to the data characteristics of the video frame data, the target encryption algorithm corresponding to the video to be processed is determined, and based on the target encryption algorithm, the video frame data is encrypted to obtain the encrypted target video corresponding to the video to be processed. In this way, through video frame parsing, each frame of data and its type in the video can be obtained. This fine-grained analysis enables the encryption process to perform separate encryption processing on each frame, thereby achieving refined control of the video content. According to different frame types and content characteristics, different encryption algorithms are selected to achieve the optimal encryption effect and performance balance. Further, since the data of each data frame type is encrypted separately, even if some frames are intercepted or damaged during transmission or storage, it will not affect the decryption and recovery of other frames. This decentralized encryption method enhances the overall security of the video content, making unauthorized access and tampering more difficult, thereby ensuring that the confidentiality and integrity of the video content are effectively protected.

[0067] It should be understood that AES-256 (Advanced Encryption Standard with a 256-bit key) is a block cipher with a block length and plaintext length of 128 bits, but a key length of 256 bits. This means that it uses a 256-bit key to encrypt and decrypt data. At the same time, the AES-256 encryption algorithm is an efficient, secure and widely used symmetric encryption algorithm that protects the confidentiality and integrity of data through a complex encryption process and a strong key length.

[0068] Therefore, in a possible manner, the target encryption algorithm is the AES-256 encryption algorithm.

[0069] Of course, in actual application scenarios, the data characteristics corresponding to the video frame data of the video to be processed may also be used, and the present disclosure does not make any specific limitation on this.

[0070] In a possible manner, based on the video frame data and the target encryption algorithm, the video to be processed is encrypted to obtain the encrypted target video, including:

[0071] Based on the video frame data, determining key frame data and predicted frame data of the video to be processed;

[0072] Determining a first encryption range of the key frame data and a second encryption range of the prediction frame data;

[0073] Based on the target encryption algorithm, determining a first encryption parameter of the key frame data and a second encryption parameter of the predicted frame data;

[0074] Encrypting the first encryption range according to the first encryption parameter, and encrypting the second encryption range according to the second encryption parameter to obtain the target video;

[0075] The first encryption parameters include a key, an initial vector, other encryption-related parameters, and header information of the key frame data for encrypting the key frame data, and the second encryption parameters include a key, an initial vector, and other encryption-related parameters for encrypting the predicted frame data.

[0076] For example, before determining the key frame data and predicted frame data of the video to be processed, each frame of data can be parsed from the video stream to be processed. According to the video coding standard (such as H.264, HEVC, etc.), distinguish which frames are key frames (I frames) and which frames are predicted frames (P frames or B frames). After determining the key frames and predicted frames, it is necessary to decide which parts of the data need to be encrypted. This can be the entire frame data or a specific part of the frame (such as a macroblock, pixel block, etc.).

[0077] Then, encryption parameters are set for key frames and prediction frames respectively, including key, initialization vector (IV), encryption mode (such as CBC, ECB, CTR, etc.) and other related encryption configurations. It is worth noting that the selection of key and IV should ensure sufficient randomness and security. The selection of encryption mode should take into account the characteristics and security requirements of the data.

[0078] Next, the first encryption range and the second encryption range are encrypted using the determined first encryption parameter and the second encryption parameter, respectively, so as to encrypt the key frame and the predicted frame. The encrypted frame data will replace the original frame data to form an encrypted video stream. The second encryption parameter may be the same as the first encryption parameter or may be different from the first encryption parameter, depending on the actual security requirements, which is not specifically limited in the embodiments of the present disclosure.

[0079] In addition, the header information of the key frame data may include the encoding parameters, timestamp, resolution, etc. of the key frame. In this way, the header information of the key frame that appears for the first time may be encrypted using a target encryption algorithm to ensure the security of the header information.

[0080] For example, an index table can be created for all key frames in the video stream, recording the position of each key frame (such as timestamp or frame number), encrypted header information (optional, if the header information is small enough or does not need to be encrypted for transmission), and other necessary metadata. In the header of the video stream or file, the index table is encoded in an efficient data structure and transmitted to the receiving end. The receiving end will use this index table to quickly locate and decode the video frame.

[0081] For subsequent key frames (I frames) and predicted frames (P / B frames), only their indexes (such as frame numbers) and encrypted data blocks are transmitted. The data blocks can be complete frame data or data processed by compression techniques such as differential coding and transform coding.

[0082] Thus, in the decryption stage of the target video, the receiver first parses the index table to obtain the position of each key frame and the encrypted header information, then uses the corresponding decryption algorithm to decrypt the encrypted data block, and uses the video decoder to reconstruct the video frame according to the index and the encrypted data block, so that the decoded video frame can be subsequently sent to the video player for playback.

[0083] The decryption of the target video will be explained later and will not be repeated here.

[0084] In a possible manner, the first encryption range is the first 1024 bytes of the key frame data, and the second encryption range is the first 256 bytes of the prediction frame data.

[0085] It should be understood that the key frame contains complete image information and is the focus of video encryption. Therefore, the first 1024 bytes of the I frame (usually containing important frame header information and part of the image data) can be encrypted. The predicted frame depends on the previous frame for compression, so the first 256 bytes (containing the necessary inter-frame prediction information) can be encrypted. This can ensure encryption efficiency and reduce the impact on video decoding performance.

[0086] In a possible manner, encrypting a first encryption range according to a first encryption parameter, and encrypting a second encryption range according to a second encryption parameter to obtain a target video includes:

[0087] Encrypting the video frame data within the first encryption range according to the first encryption parameter to obtain first encrypted data; and

[0088] Encrypting the video frame data within the second encryption range according to the second encryption parameter to obtain second encrypted data;

[0089] Based on the first encrypted data and the first non-encrypted data in the key frame data, data combination is performed to obtain a key frame data packet; and

[0090] Combining data based on the second encrypted data and the second non-encrypted data in the predicted frame data to obtain a predicted frame data packet;

[0091] The target video is determined according to the key frame data packet and the predicted frame data packet.

[0092] For example, based on the first encryption range being the first 1024 bytes of the key frame data, and the second encryption range being the first 256 bytes of the predicted frame data, the first encryption parameter can be used to encrypt the video frame data within the first encryption range, and after the encryption process is completed, the first encrypted data is obtained. The second encryption parameter is used to encrypt the video frame data within the second encryption range, and after the encryption process is completed, the second encrypted data is obtained.

[0093] Then, in order to ensure that the order and structure of the key frames and predicted frames of the encrypted data are consistent with the original video, so that they can be correctly parsed and played after decryption. The first encrypted data can be combined with the remaining non-encrypted data in the key frame data (i.e., the part except the first 1024 bytes) to obtain a key frame data packet. The second encrypted data is combined with the remaining non-encrypted data in the predicted frame data (i.e., the part except the first 256 bytes) to obtain a predicted frame data packet. Use the combined key frame data packet and predicted frame data packet to reconstruct the video stream according to the video coding standard. Ensure that the order and structure of the key frames and predicted frames are consistent with the original video. After the construction is completed, the encrypted target video is obtained, which can be decrypted and played on a player that supports the corresponding decryption algorithm.

[0094] In a possible manner, determining a target video according to a key frame data packet and a predicted frame data packet includes:

[0095] Get the first order of the key frame data packets in the video to be processed; and

[0096] Obtaining a second order of the predicted frame data packets in the video to be processed;

[0097] Based on the first order and the second order, data encapsulation is performed on the key frame data packet and the prediction frame data packet to obtain a target video.

[0098] For example, first, the timestamp or frame number of each key frame data packet in the original video can be obtained from the video source before encrypting or encapsulating the data packet. Based on this information, the first order of the key frame data packets in the video to be processed can be determined. And the second order of the prediction frame data packets in the video to be processed can be determined according to the method.

[0099] Then, an empty video container file (such as MP4, AVI, etc.) can be created to store the final target video. In the first order, each key frame data packet is added to the video container file, and in the second order, each predicted frame data packet is added to the video container file to ensure that each data packet is correctly placed in its corresponding position.

[0100] It is worth noting that the predicted frame should immediately follow the key frame it depends on.

[0101] Specifically, during the encapsulation process, some additional metadata may be added, such as frame type, timestamp, encoding information, etc., so that the player can correctly parse and play the video.

[0102] Figure 3 FIG. 1 is a structural block diagram of a video processing system involved in the embodiment of the present disclosure. Figure 3 As shown, the video processing system includes:

[0103] The video encryption device is used to receive the video to be processed and encrypt the video to be processed according to the target encryption algorithm to obtain the encrypted target video;

[0104] A key management device, used for generating, storing, distributing and updating keys required for encrypting the video to be processed;

[0105] A video decryption device, used to receive a target video and decrypt the target video according to a target encryption algorithm to obtain a decrypted video file;

[0106] A user authentication device, used to authenticate the user so as to authorize the user to obtain the decrypted video file;

[0107] The acceleration device is used to increase the encryption speed of the video to be processed and the decryption speed of the target video.

[0108] Through the video processing system, the video encryption device ensures the security of video content during transmission and storage. By using the target encryption algorithm, the video to be processed is converted into an encrypted form that is difficult for unauthorized users to directly understand, thereby effectively preventing the illegal acquisition and tampering of the video content.

[0109] The key management device provides comprehensive key lifecycle management, including key generation, storage, distribution and key update. This management mechanism not only ensures the security of keys, but also improves the flexibility and efficiency of key use. By regularly updating keys, the security of the system can be further enhanced to prevent security risks caused by key leakage.

[0110] The video decryption device can quickly and accurately decrypt the encrypted video according to the target encryption algorithm and restore the original video content. This is very important for users who need to quickly access video content, especially in application scenarios with high real-time requirements.

[0111] The user authentication device ensures that only authorized users can access the decrypted video files through the identity authentication mechanism. This access control mechanism effectively prevents unauthorized access and illegal dissemination, and protects the intellectual property rights and privacy of video content.

[0112] The acceleration device can be a Cipher acceleration device, which improves the speed of video encryption and decryption through specialized hardware or software optimization. This is particularly important for processing large-scale video data or application scenarios that require high-speed processing capabilities, which can reduce user waiting time and improve the overall performance of the system and user experience.

[0113] Furthermore, the design of each component of the system is relatively independent, which is convenient for expansion and upgrading according to actual needs. At the same time, the system supports multiple target encryption algorithms and key management protocols, ensuring compatibility and interoperability with different systems and devices. This enables the video processing system to be flexibly integrated into various video transmission, storage and playback environments.

[0114] In summary, the video processing system realizes efficient and secure processing and management of video content by integrating functions such as video encryption, key management, video decryption, user authentication and acceleration optimization, and provides comprehensive technical support for the transmission, storage and access of video content.

[0115] The present disclosure also provides a camera, comprising the above-mentioned video processing system.

[0116] For example, the video processing system can be integrated into a low-power camera to encrypt the recorded video, ensure the security of the video data during transmission and storage, and ensure that the encryption process does not affect the normal shooting and recording functions of the camera.

[0117] Reference Figure 4 , Figure 4 This is a structural block diagram of a video encryption device involved in an embodiment of the present disclosure. Based on the same inventive concept as the above embodiment, the device includes:

[0118] An acquisition module 10 is used to acquire a video to be processed;

[0119] The parsing module 20 is used to parse the video frame of the video to be processed to obtain video frame data, wherein the video frame data includes video data corresponding to each data frame type in the video to be processed, and the data frame types include key frames and predicted frames;

[0120] A determination module 30, configured to determine a target encryption algorithm corresponding to the video to be processed according to data characteristics of the video frame data;

[0121] The encryption module 40 is used to encrypt the video frame data based on the target encryption algorithm to obtain an encrypted target video corresponding to the video to be processed.

[0122] Optionally, the encryption module 40 is used to:

[0123] Based on the video frame data, determining key frame data and predicted frame data of the video to be processed;

[0124] Determining a first encryption range of the key frame data and a second encryption range of the predicted frame data;

[0125] Based on the target encryption algorithm, determining a first encryption parameter of the key frame data and a second encryption parameter of the predicted frame data;

[0126] Encrypting the first encryption range according to the first encryption parameter, and encrypting the second encryption range according to the second encryption parameter to obtain the target video;

[0127] The first encryption parameters include a key, an initial vector, other encryption-related parameters, and header information of the key frame data for encrypting the key frame data, and the second encryption parameters include a key, an initial vector, and other encryption-related parameters for encrypting the predicted frame data.

[0128] Optionally, the first encryption range is the first 1024 bytes of the key frame data, and the second encryption range is the first 256 bytes of the predicted frame data.

[0129] Optionally, the encryption module 40 is used to:

[0130] Encrypting the video frame data within the first encryption range according to the first encryption parameter to obtain first encrypted data; and

[0131] Encrypting the video frame data within the second encryption range according to the second encryption parameter to obtain second encrypted data;

[0132] Based on the first encrypted data and the first non-encrypted data in the key frame data, data combination is performed to obtain a key frame data packet; and

[0133] Combining data based on the second encrypted data and the second non-encrypted data in the predicted frame data to obtain a predicted frame data packet;

[0134] The target video is determined according to the key frame data packet and the predicted frame data packet.

[0135] Optionally, the encryption module 40 is used to:

[0136] Obtaining the first order of the key frame data packets in the video to be processed; and

[0137] Obtaining a second order of the predicted frame data packets in the video to be processed;

[0138] Based on the first order and the second order, data encapsulation is performed on the key frame data packet and the predicted frame data packet to obtain the target video.

[0139] Optionally, the target encryption algorithm is an AES-256 encryption algorithm.

[0140] It should be noted that, since the steps executed by the device of this embodiment are the same as the steps of the aforementioned method embodiment, its specific implementation method and the technical effects that can be achieved can refer to the aforementioned embodiment and will not be repeated here.

[0141] In addition, in one embodiment, an embodiment of the present disclosure further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the steps of the method in the aforementioned embodiment when executed by the processor.

[0142] In addition, in one embodiment, an embodiment of the present disclosure further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method in the aforementioned embodiment are implemented.

[0143] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.

[0144] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0145] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0146] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0147] It should be noted that, in this article, the terms "include", "may include" or any other variations thereof are intended to cover non-exclusive inclusions, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0148] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0150] The above descriptions are only optional embodiments of the present disclosure, and are not intended to limit the patent scope of the present disclosure. All equivalent structural transformations made using the contents of the present disclosure and the drawings under the inventive concept of the present disclosure, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present disclosure.

Claims

1. A video processing method, characterized in that: include: Get the video to be processed; Performing video frame parsing on the video to be processed to obtain video frame data, wherein the video frame data includes video data corresponding to each data frame type in the video to be processed, and the data frame types include key frames and predicted frames; Determining a target encryption algorithm corresponding to the video to be processed according to data characteristics of the video frame data; Based on the target encryption algorithm, the video frame data is encrypted to obtain an encrypted target video corresponding to the video to be processed.

2. The method according to claim 1, characterized in that The method of encrypting the video to be processed based on the video frame data and the target encryption algorithm to obtain the encrypted target video includes: Based on the video frame data, determining key frame data and predicted frame data of the video to be processed; Determining a first encryption range of the key frame data and a second encryption range of the predicted frame data; Based on the target encryption algorithm, determining a first encryption parameter of the key frame data and a second encryption parameter of the predicted frame data; Encrypting the first encryption range according to the first encryption parameter, and encrypting the second encryption range according to the second encryption parameter to obtain the target video; The first encryption parameters include a key, an initial vector, other encryption-related parameters, and header information of the key frame data for encrypting the key frame data, and the second encryption parameters include a key, an initial vector, and other encryption-related parameters for encrypting the predicted frame data.

3. The method according to claim 2, characterized in that The first encryption range is the first 1024 bytes of the key frame data, and the second encryption range is the first 256 bytes of the predicted frame data.

4. The method according to claim 2, characterized in that: The step of encrypting the first encryption range according to the first encryption parameter and encrypting the second encryption range according to the second encryption parameter to obtain the target video includes: Encrypting the video frame data within the first encryption range according to the first encryption parameter to obtain first encrypted data; and Encrypting the video frame data within the second encryption range according to the second encryption parameter to obtain second encrypted data; Based on the first encrypted data and the first non-encrypted data in the key frame data, data combination is performed to obtain a key frame data packet; and Combining data based on the second encrypted data and the second non-encrypted data in the predicted frame data to obtain a predicted frame data packet; The target video is determined according to the key frame data packet and the predicted frame data packet.

5. The method according to claim 4, characterized in that The step of determining the target video according to the key frame data packet and the predicted frame data packet includes: Obtaining the first order of the key frame data packets in the video to be processed; and Obtaining a second order of the predicted frame data packets in the video to be processed; Based on the first order and the second order, data encapsulation is performed on the key frame data packet and the predicted frame data packet to obtain the target video.

6. The method according to any one of claims 1 to 5, characterized in that: The target encryption algorithm is the AES-256 encryption algorithm.

7. A video processing system, characterized in that: include: The video encryption device is used to receive the video to be processed and encrypt the video to be processed according to the target encryption algorithm to obtain the encrypted target video; A key management device, used for generating, storing, distributing and updating keys required for encrypting the video to be processed; A video decryption device, used for receiving the target video and decrypting the target video according to the target encryption algorithm to obtain a decrypted video file; A user authentication device, used for authenticating the user so as to authorize the user to obtain the decrypted video file; The acceleration device is used to increase the encryption speed of the video to be processed and the decryption speed of the target video.

8. The system according to claim 7, characterized in that The video encryption device comprises: An acquisition module is used to acquire the video to be processed; A parsing module, used for parsing the video frame to be processed to obtain video frame data, wherein the video frame data includes video data corresponding to each data frame type in the video to be processed, and the data frame types include key frames and predicted frames; A determination module, used to determine a target encryption algorithm corresponding to the video to be processed according to data characteristics of the video frame data; The encryption module is used to encrypt the video frame data based on the target encryption algorithm to obtain the encrypted target video corresponding to the video to be processed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 6.

10. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Code stream secure transmission method based on data dynamic grading and electronic equipment

    CN119316234A