AVS3 coded format video processing method and device, encryption terminal and decryption terminal
By demultiplexing, encrypting and data conversion processing of AVS3 encoded format videos, combined with the use of key management services, the problem of low video encryption and decryption efficiency is solved, security and playback fluency are improved, and offline cracking is avoided.
Patent Information
- Application Number
- CN202410705666.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-01
AI Technical Summary
There is a possibility of offline cracking in the encryption of AVS3 encoded video, and the decryption efficiency is low, which affects the smooth playback of the video.
By demultiplexing, encrypting, data converting and multiplexing the plaintext TS slices of the AVS3 encoded video, an encrypted ES package is generated, and specific location information is recorded. The key management service is used to obtain the slice key for decryption, ensuring the security of the video. Security and decryption efficiency.
It improves video security and decryption efficiency, ensures smooth video playback, eliminates the possibility of offline cracking, and maintains the consistency of the video file structure.
Smart Images

Figure CN118741231A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of encryption technology, and in particular to a method and device for processing AVS3 coded format video, an encryption terminal, and a decryption terminal. Background Art
[0002] With the popularity of 8K ultra-high-definition video content and 8K terminal products based on on-demand solutions, the protection of AVS3-encoded digital media content also faces some problems. In terms of encryption, there is the possibility of offline brute force cracking, and there is a problem of low decryption efficiency during playback. Summary of the invention
[0003] The present application provides a method and device for processing AVS3 encoded format video, an encryption terminal and a decryption terminal to solve the problems existing in the related technology.
[0004] In a first aspect, the present invention provides a method for processing AVS3 encoded format video, comprising demultiplexing plaintext TS slices corresponding to the AVS3 encoded format video to obtain plaintext ES packets; encrypting the plaintext ES packets to obtain encrypted ES packets, wherein after encryption, data conversion is performed on the encrypted data at a specific position to obtain an encrypted ES packet, and specific position information is recorded after the data conversion; multiplexing the encrypted ES packets to obtain encrypted TS slices.
[0005] Optionally, encrypting the plaintext ES package includes: performing format analysis on the plaintext ES package to determine the encryption starting position, encryption length, and the number of bytes retained at the end; requesting a symmetric encryption key corresponding to the plaintext ES package from a key management service, and encrypting the plaintext ES package based on the format analysis result; performing data conversion at a specific location on the encrypted data, and recording the specific location information after the data conversion; and outputting the data after the data conversion to obtain an encrypted ES package.
[0006] Optionally, requesting the symmetric encryption key corresponding to the plaintext ES packet from the key management service, and encrypting the plaintext ES packet based on the format analysis result includes: obtaining the initialization vector mapped by the AVS3 encoding format video frame corresponding to the plaintext ES packet; obtaining the symmetric encryption key corresponding to the plaintext ES packet from the key management service; and encrypting based on the format analysis result using the initialization vector, the symmetric encryption key, and the type and mode of the preset encryption algorithm.
[0007] Optionally, the method also includes: determining an offset based on information at a specific location, and inserting the offset into an offset table; determining a slice key corresponding to a plaintext TS slice based on the symmetric encryption key, initialization vector, type and mode of a preset encryption algorithm, and an offset list.
[0008] Optionally, the method also includes: demultiplexing the encrypted TS slices to obtain encrypted ES packets; decrypting the encrypted ES packets to obtain plaintext ES packets, wherein, during decryption, the corresponding slice key is obtained from the key management service, and decryption is performed based on the slice key; decoding the plaintext ES packets to output video.
[0009] Optionally, decryption based on the slice key includes: determining a location where data restoration is to be performed based on an offset list in the slice key; restoring the data at the location where data restoration is to be performed; and decrypting the restored data using a symmetric encryption key and an initialization vector in the slice key.
[0010] In a second aspect, the present invention provides a processing device for AVS3 encoded format video, comprising a demultiplexing module, configured to demultiplex plaintext TS slices corresponding to the AVS3 encoded format video to obtain plaintext ES packets; an encryption module, configured to encrypt the plaintext ES packets to obtain encrypted ES packets, wherein ambiguous conflict processing is performed after symmetric encryption to obtain encrypted ES packets; and a multiplexing processing module, configured to multiplex the encrypted ES packets to obtain encrypted TS slices.
[0011] In a third aspect, the present invention provides an encryption terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned encryption method when executing the program.
[0012] In a fourth aspect, the present invention provides a decryption terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the decryption method when executing the program.
[0013] In a fifth aspect, the present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspects is implemented.
[0014] The present invention discloses a method and device for processing AVS3 encoded format video, an encryption terminal and a decryption terminal, wherein the method comprises demultiplexing the plaintext TS slices corresponding to the AVS3 encoded format video to obtain a plaintext ES package; encrypting the plaintext ES package to obtain an encrypted ES package, wherein after encryption, data conversion is performed on the encrypted data at a specific position to obtain an encrypted ES package, and specific position information is recorded after data conversion; the encrypted ES package is multiplexed to obtain an encrypted TS slice. The plaintext TS slice file is demultiplexed and output as a plaintext ES package; after the plaintext ES package is encrypted, a slice key is organized, and the slice key is uploaded to a key management server; the encrypted ES package is reorganized into an encrypted TS slice file through a multiplexing module. Improving the security of the video lays a foundation for improving the decryption efficiency, and lays a foundation for the smooth playback of the video. It solves the defects in the related art that the security needs to be further improved, the decryption efficiency and the video playback fluency are not good. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 A flowchart of a method for processing AVS3 coded format video in this application;
[0017] Figure 2 This is a first schematic diagram of an encryption process for this application;
[0018] Figure 3 This is a schematic diagram of video sequence encryption and packaging for this application;
[0019] Figure 4 This is the second schematic diagram of the encryption process for this application;
[0020] Figure 5 This is a schematic diagram of the decryption process for this application. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0022] The definitions of the terms involved in this embodiment include:
[0023] HLS format video: video based on the HLS streaming protocol, including multiple TS media segment files, usually refers to a complete video;
[0024] TS slice: TS media segment file, obtained by splitting TS files, usually a few seconds of video;
[0025] Video frame: a complete picture;
[0026] Strip: Based on the AVS3 encoding format, a frame of video can contain one or more strips. Usually, a strip can resolve a part of the picture.
[0027] The following is combined with Figure 1 The processing method of AVS3 encoding format video is exemplified. The method includes the following steps:
[0028] Step 101: Demultiplex the plaintext TS slices corresponding to the AVS3 encoding format video to obtain plaintext ES packets.
[0029] In this embodiment, the 8K ultra-high-definition video based on the on-demand solution usually has the characteristics of high bit rate, high video quality, and high content value, so a more secure method is needed to protect it.
[0030] AVS3 encoding format video based on the HLS encapsulation format may include multiple slices, and the plaintext TS slice file is demultiplexed and output as a plaintext ES package.
[0031] Step 102: Encrypt the plaintext ES packet to obtain an encrypted ES packet, wherein after the symmetric encryption, data conversion is performed on the encrypted data at a specific position to obtain the encrypted ES packet, and the specific position information is recorded after the data conversion.
[0032] In this embodiment, reference Figure 2 , Figure 2 In addition to the encryption process, the plaintext TS slice file is first processed by the demultiplexing module and output as a plaintext ES package; the plaintext ES package is input into the encryption module, and the encryption module first obtains the symmetric encryption key according to the content ID and the slice ID, and uses the symmetric encryption key to encrypt the ES package to obtain an encrypted ES package. Furthermore, after encryption, the slice key is organized and uploaded to the key management server for further decryption based on the slice key.
[0033] refer to Figure 3The schematic diagram of video sequence encryption packaging is shown. In order to retain the original video frame header information, the remaining part is encrypted using a symmetric encryption algorithm. At the same time, in order not to destroy the original ES structure, the 1-16 bytes at the end of the video frame are retained without encryption. The encryption method is described using the AVS3 video encoding format. The encryption of the AVS3 video encoding content is to encrypt the strips in each frame of data. After encryption, only the header information of the first strip is retained. The encryption of each frame in the same video sequence uses the same initialization vector.
[0034] After the plaintext data is encrypted to obtain the ciphertext, the data at a specific position in the ciphertext may be converted, and the specific position may be the position where the 0x00 content is located.
[0035] For example, if the plaintext data is: 11 22 33 44 55 66 77 88;
[0036] The key is: AA BB CC DD;
[0037] The ciphertext is: 09 74 67 00 90 0A 49 76
[0038] For this group of ciphertext, 00 should be replaced with a random number, and the position information of 00 should be recorded. Based on this replacement, the ciphertext is: 09 74 67AB 90 0A 49 76.
[0039] Furthermore, the specific position where the data is replaced is recorded. For example, the specific position can be identified by a unique identifier, and then the unique identifier that identifies the specific position determines an offset. The offset can be the same as the unique identifier or can be unique data determined based on the unique identifier. Taking the data replacement process of the aforementioned specific position as an example, for the ciphertext of 09 7467 00 90 0A 49 76, after the data is replaced, if the position of the first data is planned to be "00", then the specific position can be "03", that is, the position of 0x00 in the ciphertext.
[0040] The decryption method in the related art has the problem of low terminal decryption efficiency. The existing encryption method will cause an ambiguous start code conflict after encryption. The solution is to insert a 03 byte to prevent the ambiguous start code conflict. For example, assuming the ciphertext is: 0974 00 00 01 0A 49 76, 00 00 01 appears here. This data has a special meaning in the encoding and cannot appear as a ciphertext. The standard method is to change 00 00 01 to 00 00 0301, and insert a 03 to prevent the ambiguous conflict. In this case, the terminal needs to remove the 03 byte before decryption, and the terminal decryption efficiency is low. The related art also has the problem of terminal playback. In order to solve the problem of ambiguous start code conflict, a 03 byte is inserted, which causes the encrypted ciphertext length to be greater than the plaintext length. The change in the code stream length will bring about problems such as PCR jitter.
[0041] In this embodiment, the encrypted content itself is uploaded to the key server as a part of the key, and the corresponding ciphertext is replaced with a random number. Since the attacker cannot obtain the complete ciphertext content, the possibility of offline cracking is eliminated. The method of replacing the ciphertext solves the ambiguous conflict problem and improves the terminal decryption efficiency. Since the 03 byte is not inserted to solve the ambiguous conflict problem, other data is not added to the encrypted content. The length of the encrypted ciphertext is consistent with the original plaintext length, and the video file structure is consistent. Therefore, encryption has no effect on the playback effect.
[0042] As an optional implementation method of this embodiment, encrypting the plaintext ES package includes: performing format analysis on the plaintext ES package to determine the encryption starting position, encryption length, and the number of bytes retained at the end; requesting the symmetric encryption key corresponding to the plaintext ES package from the key management service, and encrypting the plaintext ES package based on the format analysis result; performing data conversion at a specific location on the encrypted data, and recording the specific location information after the data conversion; outputting the data after data conversion to obtain an encrypted ES package.
[0043] As an optional implementation method of this embodiment, requesting the symmetric encryption key corresponding to the plaintext ES package from the key management service, and encrypting the plaintext ES package based on the format analysis result includes: obtaining the initialization vector mapped by the AVS3 encoding format video frame corresponding to the plaintext ES package; obtaining the symmetric encryption key corresponding to the plaintext ES package from the key management service; and encrypting based on the format analysis result using the initialization vector, the symmetric encryption key, and the type and mode of the preset encryption algorithm.
[0044] In the above optional implementation, refer to Figure 4, which illustrates all the processing links involved in the encryption process. The plaintext ES data passes through the ES format analysis module to obtain the ES structure, determine the encryption starting position, encryption length, and the number of bytes retained at the end; the symmetric encryption module requests the symmetric encryption key from the key management service, and uses the symmetric encryption key to encrypt the ES data; the ES data encrypted with the symmetric key passes through the ambiguous conflict resolution module to resolve the ambiguous conflict and organize the offset table, organize the offset table and the symmetric encryption key into a slice key, upload the slice key to the key management service, and finally output the encrypted ES data after resolving the ambiguous conflict.
[0045] The plaintext ES data is analyzed through the ES format to obtain the ES structure, determine the encryption start position, encryption length, and the number of bytes retained at the end; request a symmetric encryption key from the key management service, and use the symmetric encryption key to encrypt the ES data; and perform ambiguous conflict resolution on the ES data encrypted with the symmetric key.
[0046] Furthermore, each slice corresponds to a set of keys. When encrypting, the key is generated according to the content ID + slice ID. The encryption of AVS3 video encoding content is to encrypt the strips in each frame of data. After encryption, only the header information of the first strip is retained. The encryption of each frame in the same video sequence uses the same initialization vector.
[0047] Content encryption encrypts the data part of the piece, and the last part less than or equal to 16 bytes is not encrypted. The encryption algorithm uses a symmetric encryption algorithm, and the encryption mode uses CBC or CTR mode.
[0048] Furthermore, the encrypted coded data needs to be converted according to the agreed conversion rules to prevent the start code from having ambiguous conflicts. If the encrypted data has no ambiguous conflicts, the ciphertext value is 0x00, and the data is replaced with a random number to ensure that part of the ciphertext data is always replaced with a random number.
[0049] For example, the encrypted coded data needs to be converted to prevent the start code from having ambiguous meanings, and the conversion rules are as follows:
[0050] 00 00 00 becomes 00 00rnd
[0051] 00 00 01 becomes 00rnd 01
[0052] 00 00 02 becomes 00rnd 02
[0053] 00 00 03 becomes 00rnd 03
[0054] Where rnd is a random number between 0x10 and 0xFF.
[0055] Furthermore, if there is no ambiguous conflict in the encrypted data, find the data with the ciphertext value of 0x00 and replace it with rnd to ensure that part of the ciphertext data is always replaced with a random number. That is, the replacement value is a random number between 0x10-0xFF. The above number is expressed in hexadecimal, which corresponds to 16-255 in decimal. That is, replace the 0 at a certain position with a random number between 16-255.
[0056] In this embodiment, the encrypted content itself is uploaded to the key server as part of the key, and the corresponding ciphertext is replaced with a random number. Since the attacker cannot obtain the complete ciphertext content, the possibility of offline cracking is eliminated. The method of replacing the ciphertext solves the ambiguity conflict problem and improves the terminal decryption efficiency. Since the 03 byte is not inserted to solve the ambiguity conflict problem, other data is not added to the encrypted content. The length of the encrypted ciphertext is consistent with the original plaintext length, and the video file structure is consistent. Therefore, encryption has no effect on the playback effect.
[0057] As an optional implementation of this embodiment, the method also includes: determining an offset based on information at a specific location, and inserting the offset into an offset table; determining a slice key corresponding to a plaintext TS slice based on the symmetric encryption key, initialization vector, type and mode of a preset encryption algorithm, offset and offset list.
[0058] In this optional implementation, reference Figure 2 ,During encryption processing, the slice key must be organized and uploaded to the key management server. The slice key includes offset information and offset list.
[0059] Exemplarily, after resolving the ambiguous conflict, an offset table is organized, the offset table is uploaded to the key management service, and finally the encrypted ES data after resolving the ambiguous conflict is output. After the data is converted, the position of each conversion is recorded, and the conversion position is inserted into the end of the offset list. The conversion position can be determined based on the position of the video frame and the position within the frame, such as offset = frame offset + offset within the frame.
[0060] The slice key format is as follows:
[0061] grammar Number of bytes Slice Key { encryption_method 1 reserved 3 Key 16 IV 16 offset_num 2 offset_list offset_num*4 }
[0062] Among them, encryption_method: encryption algorithm type; reserved: reserved; Key: symmetric encryption key; IV: initialization vector; offset_num: number of offsets; offset_list: offset list.
[0063] Step 103: Multiplex the encrypted ES packets to obtain encrypted TS slices.
[0064] In this embodiment, the encrypted ES packets are reorganized into encrypted TS slice files through the multiplexing module.
[0065] As an optional implementation method of this embodiment, the method also includes: demultiplexing the encrypted TS slices to obtain encrypted ES packets; decrypting the encrypted ES packets to obtain plaintext ES packets, wherein during decryption, the corresponding slice key is obtained from the key management service, and decryption is performed based on the slice key; decoding the plaintext ES packets to output video.
[0066] In this optional implementation, reference Figure 5 Decryption flow chart, first, the ciphertext TS slice file is processed by the demultiplexing module and output as a ciphertext ES package; the ciphertext ES package is input into the decryption module, and the decryption module first obtains the decryption slice key according to the content ID and slice ID. The slice key contains the symmetric encryption key and the offset list. First, according to the offset position in the offset list, the data at the specific position is restored to 0x00, and then the symmetric encryption key is used to decrypt the ES package to obtain the plaintext ES package; the plaintext ES is directly sent to the decoding module for decoding and outputs the video screen.
[0067] This method has greatly improved security. Since the encrypted content itself is uploaded to the key server as part of the key, the possibility of offline cracking is eliminated. There is no ambiguous conflict problem, which improves the terminal decryption efficiency. Using this protection method, the encrypted ciphertext length is consistent with the plaintext length, the video file structure is consistent, and encryption has no effect on the playback effect. Using this method, it can better support AVS3 format 8K ultra-high-definition video on demand applications.
[0068] The above is a method provided by one or more embodiments of the present application. Based on the same idea, the present application also provides a corresponding AVS3 encoding format video processing device, including a demultiplexing module, configured to demultiplex the plaintext TS slices corresponding to the AVS3 encoding format video to obtain plaintext ES packets; an encryption module, configured to encrypt the plaintext ES packets to obtain encrypted ES packets, wherein after encryption, data conversion is performed on the encrypted data at a specific position to obtain an encrypted ES packet, and the specific position information is recorded after the data conversion; a multiplexing processing module, configured to multiplex the encrypted ES packets to obtain encrypted TS slices.
[0069] As an optional implementation method of this embodiment, the encryption module is configured to: perform format analysis on the plaintext ES package to determine the encryption starting position, encryption length, and the number of bytes retained at the end; request the symmetric encryption key corresponding to the plaintext ES package from the key management service, and encrypt the plaintext ES package based on the format analysis result; perform data conversion at a specific location on the encrypted data, and record the specific location information after the data conversion; output the data after data conversion to obtain an encrypted ES package.
[0070] As an optional implementation method of this embodiment, requesting the symmetric encryption key corresponding to the plaintext ES package from the key management service, and encrypting the plaintext ES package based on the format analysis result includes: obtaining the initialization vector mapped by the AVS3 encoding format video frame corresponding to the plaintext ES package; obtaining the symmetric encryption key corresponding to the plaintext ES package from the key management service; and encrypting based on the format analysis result using the initialization vector, the symmetric encryption key, and the type and mode of the preset encryption algorithm.
[0071] The device also includes a slice key organization unit, which is configured to determine an offset based on information at a specific recorded location and insert the offset into an offset table; and determine a slice key corresponding to a plaintext TS slice based on the symmetric encryption key, initialization vector, type and mode of a preset encryption algorithm, and an offset list.
[0072] The device also includes: a demultiplexing module, configured to demultiplex the encrypted TS slices to obtain encrypted ES packets; a decryption module, configured to decrypt the encrypted ES packets to obtain plaintext ES packets, wherein during decryption, a corresponding slice key is obtained from the key management service and decryption is performed based on the slice key; a decoding module, configured to decode the plaintext ES packets and output video.
[0073] The decryption module is further configured to determine the location where data restoration is to be performed based on the offset list in the slice key; restore the data at the location where data restoration is to be performed; and decrypt the restored data using the symmetric encryption key and initialization vector in the slice key.
[0074] The present application also provides a corresponding encryption terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the aforementioned encryption method is implemented.
[0075] The present application also provides a decryption terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned decryption method when executing the program.
[0076] This embodiment provides a non-transitory computer-readable storage medium, which stores computer instructions. The computer instructions enable a computer to execute the methods provided by the above method embodiments.
[0077] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various storage media that can store program codes.
[0078] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0079] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0080] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A method for processing AVS3 coded format video, characterized in that: include: Demultiplex the plaintext TS slices corresponding to the AVS3 encoded format video to obtain plaintext ES packets; Encrypting the plaintext ES packet to obtain an encrypted ES packet, wherein after the encryption, data conversion at a specific position is performed on the encrypted data to obtain the encrypted ES packet, and the specific position information is recorded after the data conversion; The encrypted ES packets are multiplexed to obtain encrypted TS slices.
2. The method for processing AVS3 coded format video according to claim 1, characterized in that: Encrypting the plaintext ES packet includes: Performing format analysis on the plaintext ES packet to determine the encryption start position, encryption length, and the number of bytes reserved at the end; Requesting a symmetric encryption key corresponding to the plaintext ES package from a key management service, and encrypting the plaintext ES package using the plaintext ES package based on the format analysis result; Performing data conversion at a specific location on the encrypted data, and recording specific location information after the data conversion; Output the converted data to get the encrypted ES package.
3. The method for processing AVS3 coded format video according to claim 2, characterized in that: Requesting a key management service for a symmetric encryption key corresponding to the plaintext ES package, and encrypting the plaintext ES package based on the format analysis result includes: Get the initialization vector mapped to the AVS3 encoding format video frame corresponding to the plaintext ES packet; Obtaining the symmetric encryption key corresponding to the plaintext ES packet from the key management service; Based on the format analysis results, encryption is performed using an initialization vector, a symmetric encryption key, and the type and mode of a preset encryption algorithm.
4. The method for processing AVS3 coded format video according to claim 3, characterized in that: The method further comprises: Determining an offset based on the recorded specific location information and inserting the offset into an offset table; The slice key corresponding to the plaintext TS slice is determined based on the symmetric encryption key, the initialization vector, the type and mode of the preset encryption algorithm, and the offset list.
5. The method for processing AVS3 coded format video according to claim 4, characterized in that: The method further comprises: Demultiplexing the encrypted TS slices to obtain encrypted ES packets; Decrypting the encrypted ES packet to obtain a plaintext ES packet, wherein during decryption, a corresponding slice key is obtained from the key management service, and decryption is performed based on the slice key; The plaintext ES packet is decoded and the video is output.
6. The method for processing AVS3 coded format video according to claim 5, characterized in that: Decryption based on the slice key includes: determining a location where data is to be restored based on an offset list in the slice key; restoring the data at the location where data is to be restored; and decrypting the restored data using a symmetric encryption key and an initialization vector in the slice key.
7. A device for processing AVS3 coded format video, characterized in that: include: A demultiplexing module is configured to demultiplex the plaintext TS slices corresponding to the AVS3 encoding format video to obtain plaintext ES packets; an encryption module configured to encrypt the plaintext ES packet to obtain an encrypted ES packet, wherein after the encryption, data conversion at a specific position is performed on the encrypted data to obtain the encrypted ES packet, and specific position information is recorded after the data conversion; The multiplexing processing module is configured to multiplex the encrypted ES packets to obtain encrypted TS slices.
8. An encryption terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 4 is implemented.
9. A decryption terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 5 to 6 is implemented.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
