Video encryption processing method and device, storage medium and computer device

By embedding blockchain fingerprints into video encoding data and using cryptographic algorithms to generate authentication fingerprints, the problem of insufficient anti-theft protection for medical video resources is solved, the uniqueness of video resources and playback permission authentication are realized, and the anti-theft capability is enhanced.

CN115811611BActive Publication Date: 2026-05-19KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
Filing Date
2022-11-15
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing technologies, medical video resources lack sufficient protection against theft. Piracy methods can remove digital watermarks, which significantly reduces the ability of video resource copyright holders to trace video resources.

Method used

By embedding blockchain fingerprints in the transformation units of video encoding data and generating authentication fingerprints using cryptographic algorithms, combined with entropy encoding and entropy decoding technologies, it is ensured that only legitimate users can decrypt and strip the blockchain fingerprints to obtain the original video.

Benefits of technology

It enhances the anti-theft protection capabilities of video resources, ensures the uniqueness of video resources and the authentication of playback permissions, and prevents the theft and tampering of video resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115811611B_ABST
    Figure CN115811611B_ABST
Patent Text Reader

Abstract

The application discloses a video encryption processing method and device, a storage medium and computer equipment. The method comprises the following steps: obtaining video coding data of an original video, wherein the video coding data is obtained by compressing and coding the original video, and the video coding data comprises a plurality of transform units; obtaining a blockchain fingerprint, and encrypting the blockchain fingerprint based on a preset encryption algorithm to obtain an authentication fingerprint, wherein the blockchain fingerprint and fingerprint stripping data corresponding to the blockchain fingerprint are pre-stored in a blockchain; selecting a target transform unit from the plurality of transform units, and embedding the authentication fingerprint in the target transform unit to obtain process video data; performing entropy coding on the process video data to obtain a video coding bit stream, and sending the video coding bit stream to a client, so that the client decodes the video coding bit stream based on the fingerprint stripping data to obtain the original video. The method can significantly enhance the anti-theft security protection capability of medical video data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video encoding technology, and in particular to a video encryption processing method, apparatus, storage medium, and computer equipment. Background Technology

[0002] With the development of video encoding and transmission technology, various medical information platforms often use medical videos for technical explanations or medical diagnoses, leading to increasing emphasis on the copyright protection of medical video resources. To prevent the dissemination of critical information due to the misuse of medical video resources, medical information platforms often employ digital watermarking to embed specific digital signals into the video resources, protecting their copyright, integrity, preventing copying, and enabling traceability.

[0003] However, current piracy methods can locate the digital watermark in video resources and remove it through technical means to steal the video resources. This also eliminates the copyright holder's ability to trace the video resources, resulting in a significant reduction in the ability to prevent theft of medical video resources. Summary of the Invention

[0004] In view of this, this application provides a video encryption processing method, apparatus, storage medium and computer equipment, the main purpose of which is to solve the technical problem of low anti-theft protection capability of medical video resources.

[0005] According to a first aspect of the present invention, a video encryption processing method is provided, applied to a server, the method comprising:

[0006] The video encoding data of the original video is obtained, wherein the video encoding data is obtained by compression encoding of the original video, and the video encoding data contains multiple transform units;

[0007] A blockchain fingerprint is obtained and encrypted using a preset encryption algorithm to obtain an authentication fingerprint. The blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are pre-stored in the blockchain.

[0008] A target transformation unit is selected from the plurality of transformation units, and the authentication fingerprint is embedded in the target transformation unit to obtain process video data;

[0009] The process video data is entropy encoded to obtain a video encoded bitstream, and the video encoded bitstream is sent to the client so that the client can decode the video encoded bitstream based on the fingerprint stripping data to obtain the original video.

[0010] According to a second aspect of the present invention, a video encryption processing method is provided, applied to a client, the method comprising:

[0011] In response to a playback request for the original video, the system receives the video encoded bitstream corresponding to the original video from the server and performs entropy decoding on the video encoded bitstream to obtain the process video data.

[0012] The target transformation unit in the process video data is identified, and the authentication fingerprint in the target transformation unit is authenticated and decrypted based on a preset decryption algorithm to obtain the blockchain fingerprint;

[0013] The blockchain fingerprint is verified, and the fingerprint stripping data corresponding to the blockchain fingerprint is obtained on the blockchain.

[0014] Based on the fingerprint stripping data, a fingerprint stripping operation is performed on the target transformation unit of the process video data to obtain video encoded data, and the video encoded data is decoded to obtain the original video.

[0015] Optionally, before verifying the blockchain fingerprint and obtaining the fingerprint stripping data corresponding to the blockchain fingerprint on the blockchain, the method further includes:

[0016] Monitor the decryption result of the authentication fingerprint in the target transformation unit;

[0017] Determine whether the decryption result of the authentication fingerprint in the target transformation unit is the blockchain fingerprint;

[0018] If the decryption result of the authentication fingerprint in the target transformation unit is not the blockchain fingerprint, then the video encoded bitstream is destroyed.

[0019] Optionally, before verifying the blockchain fingerprint and obtaining the fingerprint stripping data corresponding to the blockchain fingerprint on the blockchain, the method further includes:

[0020] Monitor the transformation unit that performs authentication and decryption;

[0021] Determine whether the transformation unit to which authentication and decryption are performed is the target transformation unit;

[0022] If the transformation unit to which authentication and decryption are performed is not the target transformation unit, then the video encoded bitstream is destroyed.

[0023] According to a third aspect of the present invention, a video encryption processing apparatus is provided, the apparatus comprising:

[0024] The video acquisition module is used to acquire the video encoding data of the original video, wherein the video encoding data is obtained by compressing and encoding the original video, and the video encoding data contains multiple transformation units;

[0025] A fingerprint encryption module is used to acquire a blockchain fingerprint and encrypt the blockchain fingerprint based on a preset encryption algorithm to obtain an authentication fingerprint. The blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are pre-stored in the blockchain.

[0026] The target determination module is used to select a target transformation unit from the plurality of transformation units and embed the authentication fingerprint into the target transformation unit to obtain process video data;

[0027] The data sending module is used to entropy encode the process video data to obtain a video encoded bitstream, and send the video encoded bitstream to the client so that the client can decode the video encoded bitstream based on the fingerprint stripping data to obtain the original video.

[0028] According to a fourth aspect of the present invention, a video encryption processing apparatus is provided, the apparatus comprising:

[0029] The request and response module is used to respond to the playback request of the original video, receive the video encoded bitstream corresponding to the original video from the server, and perform entropy decoding on the video encoded bitstream to obtain the process video data.

[0030] The fingerprint acquisition module is used to determine the target transformation unit in the process video data, and to authenticate and decrypt the authentication fingerprint in the target transformation unit based on a preset decryption algorithm to obtain the blockchain fingerprint;

[0031] The fingerprint stripping module is used to verify the blockchain fingerprint and obtain the fingerprint stripping data corresponding to the blockchain fingerprint on the blockchain.

[0032] The video acquisition module is used to perform fingerprint stripping operation on the target transformation unit of the process video data based on the fingerprint stripping data to obtain video encoded data, and to decode the video encoded data to obtain the original video.

[0033] According to a fifth aspect of the present invention, a storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described video encryption processing method.

[0034] According to a sixth aspect of the present invention, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described video encryption processing method.

[0035] This invention provides a video encryption processing method, apparatus, storage medium, and computer equipment, wherein the server first obtains the video encoding data to be encrypted and the blockchain fingerprint. ; Subsequently, the blockchain fingerprint is encrypted using an encryption algorithm to create an authentication fingerprint, which is then embedded into a target transformation unit selected from the transformation units. Next, entropy encoding is performed on the video encoded data to obtain a video encoded bitstream. Finally, the video encoded bitstream is sent to the client that requested playback of the original video. Further, the client receiving the original video receives the corresponding video encoded bitstream; then, entropy decoding is performed on the video encoded bitstream to obtain video encoded data with the embedded authentication fingerprint. Next, the target transformation unit in the video encoded data is determined, and the authentication fingerprint in the target transformation unit is decrypted to obtain the blockchain fingerprint. The decryption algorithm used by the client is the same as the encryption algorithm used by the server. Then, based on the blockchain fingerprint, fingerprint stripping data is obtained from the blockchain for stripping the blockchain fingerprint. Finally, the fingerprint stripping data is used to strip the blockchain fingerprint embedded in the video encoded data, generating video encoded data that can be decoded by the client into the original video. This application allows setting a blockchain fingerprint on video resources. By verifying the blockchain fingerprint on the blockchain, unique fingerprint stripping data can be obtained. Only after stripping the blockchain fingerprint using this unique fingerprint stripping data can the video resource be decoded and viewed. Setting the fingerprint stripping data on the blockchain ensures its uniqueness and effectively prevents tampering, thereby avoiding the theft of video resources and enhancing their anti-theft protection capabilities. Furthermore, this application avoids deleting the blockchain fingerprint on the video resource, ensuring the traceability of video resource copies. In addition, encrypting the blockchain fingerprint of the video resource using an encryption algorithm ensures that only users with video playback permissions can decrypt the blockchain fingerprint using the encryption algorithm to obtain the blockchain fingerprint and perform subsequent decoding operations, enhancing the authentication capability of video resource playback permissions and further strengthening the anti-theft protection capabilities of medical video resources.

[0036] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0037] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0038] Figure 1 This illustration shows one of the flowcharts of a video encryption processing method provided by an embodiment of the present invention;

[0039] Figure 2 This diagram illustrates a conventional video encoding process provided by an embodiment of the present invention.

[0040] Figure 3 This is a second schematic flowchart of a video encryption processing method provided by an embodiment of the present invention;

[0041] Figure 4 This figure shows one of the structural schematic diagrams of a video encryption processing device provided in an embodiment of the present invention;

[0042] Figure 5 This is a second schematic diagram of the structure of a video encryption processing device provided in an embodiment of the present invention;

[0043] Figure 6 This is shown as a third schematic diagram of the structure of a video encryption processing device provided in an embodiment of the present invention;

[0044] Figure 7 The fourth schematic diagram shows the structure of a video encryption processing device provided in an embodiment of the present invention. Detailed Implementation

[0045] The present invention will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the present application can be combined with each other.

[0046] Currently, medical video resources held by medical information platforms can be easily obtained through various means and channels, leading to video copyright theft. This makes it difficult to protect the professional copyrights and intellectual property rights of medical video resources. At present, the only solution to this problem is human intervention, specifically effective protection within high-traffic companies. However, this method has weak anti-theft capabilities and high costs.

[0047] To address the above problems, in one embodiment, such as Figure 1 As shown, a video encryption processing method is provided. Taking the application of this method on the server side as an example, the method includes the following steps:

[0048] 101. Obtain the video encoding data of the original video, wherein the video encoding data is obtained by compressing and encoding the original video, and the video encoding data contains multiple transform units.

[0049] Specifically, video encoded data can be obtained by compressing and encoding the original video using video encoding technology. Please refer to [link / reference]. Figure 2 , Figure 2 A video encoding flowchart using H.264 video encoding technology as an example is given, such as... Figure 2 As shown: The original video is used as the input signal. After transformation, scaling, and quantization, video encoded data including multiple transform units (TUs) is generated. Subsequently, the transform units, filter control data, motion data, and intra-frame prediction data are encoded using header information encoding and entropy encoding (CABAC) to generate an encoded bitstream, i.e., the video encoded bitstream. The receiving end decodes the video encoded bitstream to obtain the original video. In the embodiments of this application, the process data of the original video after transformation, scaling, and quantization, but before entropy encoding, can be obtained as video encoded data. Simultaneously, multiple transform units in the video encoded data are obtained as the basis for subsequent steps. It should be noted that this embodiment uses the H.264 video encoding process as an example for illustration; other different video encoding technologies are also applicable to this embodiment.

[0050] 102. Obtain the blockchain fingerprint and encrypt the blockchain fingerprint based on a preset encryption algorithm to obtain the authentication fingerprint, wherein the blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are pre-stored in the blockchain.

[0051] The blockchain fingerprint and its corresponding fingerprint stripping data are pre-stored in the blockchain, and the fingerprint stripping data can be a binary address. Furthermore, the blockchain fingerprint can be a binary string, with a unique correspondence between it and the binary address. The binary address can be obtained by verifying and auditing the blockchain address on the blockchain. The blockchain fingerprint can be embedded in the transformation unit corresponding to the original video for purposes such as ownership verification, copyright protection, video integrity, anti-copying, and tracking. The blockchain fingerprint can only be stripped from the transformation unit based on the fingerprint stripping data in the blockchain, thus preventing other thieves from stripping the blockchain fingerprint from the video using forged fingerprint stripping data, ensuring the anti-theft capability of the video work. Simultaneously, after the decoder obtains the video encoded bitstream generated by video encoding technology from the original video and performs entropy decoding, if it detects the presence of a transformation unit with a blockchain fingerprint, it cannot perform further decoding to obtain the original video, thereby preventing thieves without fingerprint stripping data from decoding the video and avoiding the theft of the original video. After generating the blockchain fingerprint and the corresponding fingerprint stripping data, both can be added to the blockchain. When the original video needs to be encoded, the pre-generated blockchain fingerprint can be obtained to perform the subsequent encoding process.

[0052] Specifically, the encryption algorithm can be RSA encryption, generating an encryption public key and a decryption private key. By encrypting the blockchain fingerprint using the RSA-encrypted public key, an authentication fingerprint can be obtained. Further, when video decoding is required, a user with video viewing permissions uses the obtained decryption private key to authenticate and decrypt the authentication fingerprint, obtaining the blockchain fingerprint. This blockchain fingerprint is then verified on the blockchain. Once verified, fingerprint stripping data corresponding to this blockchain fingerprint is obtained. This fingerprint is then stripped in the transformation module, allowing for further decoding of the video to obtain the original video. Conversely, if a user does not have video viewing permissions, they cannot use the decryption private key and therefore cannot decode the original video.

[0053] 103. Select a target transformation unit from the plurality of transformation units, and embed the authentication fingerprint into the target transformation unit to obtain process video data.

[0054] In this process, after the original video undergoes transformation, scaling, and quantization, each frame of the resulting video encoded data will contain a corresponding number of transformation units.

[0055] Specifically, a predetermined number of transformation units can be selected from multiple transformation units in the acquired video encoded data as target transformation units for embedding the authentication fingerprint. Further, the authentication fingerprint is embedded into the selected target transformation units to obtain the process video data.

[0056] 104. Perform entropy encoding on the target video data to obtain a video encoded bitstream, and send the video encoded bitstream to the client so that the client can decode the video encoded bitstream based on the fingerprint stripping data to obtain the original video.

[0057] The client can be a client that sends a request to the server to play the original video. After receiving the playback request from the client, the server can send the encoded video bitstream to the client. Furthermore, the client can be a customized player from the video resource provider, integrating features to determine whether the user has permission to play the requested original video.

[0058] The video encryption method provided in this embodiment can set a blockchain fingerprint on the video resource. By verifying the blockchain fingerprint on the blockchain, unique fingerprint stripping data can be obtained. Only after stripping the blockchain fingerprint using the unique fingerprint stripping data can the video resource that can be decoded and viewed be obtained. Setting the fingerprint stripping data on the blockchain can ensure the uniqueness of the fingerprint stripping data, effectively preventing the fingerprint stripping data from being tampered with, thereby avoiding the theft of video resources and enhancing the anti-theft protection capability of video resources. Furthermore, this application can avoid deleting the blockchain fingerprint on the video resource, ensuring the traceability capability of video resource copies. In addition, encrypting the blockchain fingerprint of the video resource based on an encryption algorithm can ensure that users with video playback permissions can decrypt the blockchain fingerprint according to the encryption algorithm, obtain the blockchain fingerprint, and perform subsequent decoding operations, enhancing the authentication capability of video resource playback permissions and further enhancing the anti-theft protection capability of video resources.

[0059] In one embodiment, step 102 can be implemented as follows: First, obtain the blockchain fingerprint and a preset encryption public key and decryption private key. The decryption private key is used to authenticate and decrypt the authentication fingerprint to obtain the blockchain fingerprint. Further, the encryption algorithm can be the RSA encryption algorithm. Specifically, a pre-generated blockchain fingerprint can be obtained, and an encryption public key and decryption private key can be randomly generated based on the RSA encryption algorithm. Then, the decryption private key is sent to the client. The client can be a customized player from the video resource provider, used to decode and play video resources sent by the server. After receiving the decryption key, the client verifies the user's identity information to determine if the user has permission to play the video resource. If the user has permission to play the video resource, the obtained decryption private key is allowed to authenticate and decrypt the authentication fingerprint for subsequent video decoding; if the user does not have permission to play the video resource, the obtained decryption private key is not allowed to authenticate and decrypt the authentication fingerprint, preventing the user from playing the video. Finally, the blockchain fingerprint is encrypted based on the encryption public key to obtain the authentication fingerprint. In the embodiments of this application, the blockchain fingerprint is encrypted to obtain the authentication fingerprint, which can prevent users without video playback permissions from decrypting the authentication fingerprint into a blockchain fingerprint and obtaining the fingerprint stripping data on the blockchain in order to decode the video encoded bitstream into the original video, thus ensuring that the video resources are not stolen.

[0060] In one embodiment, the method for selecting a target transform unit from the plurality of transform units in step 103 is as follows: First, an identification identifier is set for all transform units in the video encoded data. Specifically, all transform units in the compressed and decoded video encoded data can be obtained, and a number identifier or location information identifier can be set for each transform unit so that each transform unit can be quickly located based on the number identifier or location information identifier during decoding. Then, a target transform unit is selected from the transform units, and the identification identifier corresponding to the target transform unit is sent to the client. The identification identifier corresponding to the target transform unit is used to enable the client to determine the target transform unit from all the transform units. Specifically, a preset number of transform units can be selected as target transform units from the transform units after setting the identification identifier, according to a preset number of transform units that need to embed authentication fingerprints. Further, the identification identifier corresponding to the target transform unit can be sent to the client. The client can be a customized player of the video resource provider, used to decode and play video resources sent by the server. After receiving the identification identifier corresponding to the target transform unit, the client will verify the user's identity information to determine whether the user has the permission to play the video resource. If the user has permission to play the video resource, they are allowed to use the identification identifier corresponding to the obtained target transform unit to filter the target transform unit embedded with the authentication fingerprint from other transform units. This allows for quick location of the target transform unit and faster authentication and decryption of the authentication fingerprint, thereby accelerating the decoding speed of the video resource. In the embodiments of this application, an identification identifier is set in the transform unit, and the identification identifier of the target transform unit with the embedded authentication fingerprint is sent to the client, enabling the client to quickly locate the target transform unit and increase the efficiency of video decoding.

[0061] In one embodiment, after step 104, the method further includes: First, monitoring the decoding result of the video encoded bitstream by the client. Specifically, the decoding result of the video encoded bitstream by the client can be monitored in real time through the network connection between the server and the client. Then, it is determined whether the video encoded bitstream has been decoded into the original video by the client. Finally, if the video encoded bitstream has been decoded into the original video by the client, the blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint in the blockchain are updated, and based on the updated blockchain fingerprint, the step of encrypting the blockchain fingerprint based on a preset encryption algorithm to obtain the authentication fingerprint is executed. Specifically, if the client successfully decodes the video encoded bitstream into the original video, the blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are re-acquired, wherein the blockchain fingerprint and fingerprint stripping data are blockchain fingerprints and fingerprint stripping data that have never been used at the current location to ensure the validity of the blockchain fingerprint and fingerprint stripping data. Furthermore, the blockchain fingerprint can be encrypted again based on the encryption algorithm to obtain the authentication fingerprint. In the embodiments of this application, after the client decodes the video encoded bitstream into the original video, the blockchain fingerprint and fingerprint stripping data used in the original video encoding process are updated to prevent the fingerprint stripping data from being reused or used to decode other video encoded bitstreams obtained from the original video encoding, thereby preventing the theft of video resources.

[0062] The video encryption processing method provided in this embodiment can set a blockchain fingerprint on the video resource. By verifying the blockchain fingerprint on the blockchain, unique fingerprint stripping data can be obtained. Only after stripping the blockchain fingerprint using the unique fingerprint stripping data can the video resource that can be decoded and viewed be obtained. Setting the fingerprint stripping data on the blockchain can ensure the uniqueness of the fingerprint stripping data, effectively preventing the fingerprint stripping data from being tampered with, thereby avoiding the theft of video resources and enhancing the anti-theft protection capability of video resources. At the same time, this embodiment can set an identifier for the target transformation unit, speeding up the decoding efficiency of the video encoded bitstream by the client. Furthermore, this application can avoid deleting the blockchain fingerprint on the video resource, ensuring the traceability capability of the video resource copy. In addition, encrypting the blockchain fingerprint of the video resource based on an encryption algorithm can ensure that users with video playback permissions can decrypt the blockchain fingerprint according to the encryption algorithm, obtain the blockchain fingerprint, and perform subsequent decoding operations, enhancing the authentication capability of video resource playback permissions. Furthermore, the server can update the blockchain fingerprint and fingerprint stripping data based on the usage of the original video, preventing the fingerprint stripping data from being reused or used to decode other video encoded bitstreams obtained from the original video encoding, thus further enhancing the anti-theft protection capabilities for medical video resources.

[0063] In one embodiment, such as Figure 3 As shown, a video encryption processing method is provided. Taking the application of this method to a client as an example, the method includes the following steps:

[0064] 201. In response to the playback request of the original video, receive the video encoded bitstream corresponding to the original video from the server, and perform entropy decoding on the video encoded bitstream to obtain the process video data.

[0065] The client can be a customized player for the video resource provider, used to decode and play video resources sent by the server. It also receives user identity information and determines the user's video playback permissions.

[0066] Specifically, based on the user's request to play the original video, the server can send and retrieve the video encoded bitstream corresponding to the original video, and then perform entropy decoding on the video encoded bitstream to obtain the process video data.

[0067] 202. Determine the target transformation unit in the process video data, and authenticate and decrypt the authentication fingerprint in the target transformation unit based on a preset decryption algorithm to obtain the blockchain fingerprint.

[0068] The target transformation unit is a transformation unit embedded with an authentication fingerprint.

[0069] Specifically, after obtaining the process video data, each transform unit in the process video data can be verified to see if an authentication fingerprint is embedded in the transform unit. Transform units with embedded authentication fingerprints are identified as target transform units for subsequent authentication and decryption. Furthermore, the decryption algorithm can be the RSA algorithm, using the decryption private key obtained from the server to authenticate and decrypt the authentication fingerprint, thus obtaining the blockchain fingerprint.

[0070] 203. Verify the blockchain fingerprint and obtain the fingerprint stripping data corresponding to the blockchain fingerprint on the blockchain.

[0071] Specifically, by verifying and auditing the blockchain fingerprint on the blockchain, fingerprint stripping data corresponding to that blockchain fingerprint can be obtained.

[0072] 204. Based on the fingerprint stripping data, perform fingerprint stripping operation on the target transformation unit of the process video data to obtain video encoded data, and decode the video encoded data to obtain the original video.

[0073] The decoding process of the original video is the reverse operation of the original video encoding. After entropy decoding of the video encoded bitstream, the resulting process video data contains the target transform unit. Authentication decoding of the authentication fingerprint in the process video data yields the blockchain fingerprint embedded in the target transform unit, allowing fingerprint stripping data to be obtained from the blockchain. Furthermore, after stripping the blockchain fingerprint based on the fingerprint stripping data, quantized video encoded data can be obtained. The original video can then be decoded from the video encoded data and other information obtained from the video encoded bitstream.

[0074] Specifically, stripping the blockchain fingerprint from the target transformation unit yields video encoded data that can be decoded into the original data. Further decoding of the video encoded data yields the original video.

[0075] The video encryption processing method provided in this embodiment can decode the video encoded bitstream in combination with the decryption private key to obtain fingerprint stripping data and remove the blockchain fingerprint embedded in the target transformation unit. It can quickly decode the video encoded bitstream sent by the server to obtain the original video that the user wants.

[0076] In one embodiment, the method for determining the target transformation unit in the video data in step 202 is as follows: First, the identification identifier corresponding to the target transformation unit sent by the server is received. Then, the user's identity information is detected to determine whether the user has permission to use the identification identifier corresponding to the target transformation unit. The user's identity information can be registration information, payment information, and permission information that can determine whether the user has permission to access the original video. Specifically, the user's identity information and preset identity information with the right to use the original video can be used for verification to determine whether the current user has permission to use the original video. If the user has permission to use the original video, it is determined that the user has permission to use the identification identifier corresponding to the target transformation unit. Conversely, if the user does not have permission to use the original video, it is determined that the user has not used the identification identifier corresponding to the target transformation unit. Finally, if the user has permission to use the identification identifier corresponding to the target transformation unit, the target transformation unit is determined from the transformation units based on the identification identifier corresponding to the target transformation unit. Conversely, if the user does not have permission to use the identification identifier corresponding to the target transformation unit, the use of the identification identifier corresponding to the target transformation unit sent by the server is prohibited. The identification identifier corresponding to the target transformation unit is set by the server for the transformation unit embedding the authentication fingerprint. Specifically, if the user has permission to use the identification identifier corresponding to the target transformation unit, the location of the transformation unit embedding the authentication fingerprint can be quickly located based on the identification identifier, enabling rapid subsequent authentication fingerprint decryption and accelerating decoding efficiency. Conversely, if the user does not have permission to use the identification identifier corresponding to the target transformation unit, multiple transformation units need to be judged one by one to locate the target transformation unit. In the embodiments of this application, obtaining the identification identifier corresponding to the target transformation unit and using the identification identifier corresponding to the target transformation unit based on user permissions enables rapid location of the target transformation unit and accelerates video decoding efficiency.

[0077] In one embodiment, the method for obtaining a blockchain fingerprint by authenticating and decrypting the authentication fingerprint in the target transformation unit based on a preset decryption algorithm in step 202 is as follows: First, obtain a decryption private key from the server. Then, detect the user's identity information to determine whether the user has permission to use the decryption private key to authenticate and decrypt the authentication fingerprint. The user's identity information can be registration information, payment information, and permission information that can determine whether the user has permission to access the original video. Specifically, the user's identity information and preset identity information with the right to use the original video can be used for verification to determine whether the current user has permission to use the original video. When the user has permission to use the original video, it is determined that the user has permission to use the decryption private key to authenticate and decrypt the authentication fingerprint. Conversely, if the user does not have permission to use the original video, it is determined that the user does not have permission to use the decryption private key to authenticate and decrypt the authentication fingerprint. Finally, if the user has permission to use the decryption private key to authenticate and decrypt the authentication fingerprint, then based on the decryption private key, the authentication fingerprint is authenticated and decrypted to obtain the blockchain fingerprint. Accordingly, if the user does not have permission to use the decryption private key to authenticate and decrypt the authentication fingerprint, then using the decryption private key to authenticate and decrypt the authentication fingerprint is prohibited. In the embodiments of this application, the system can receive the encryption private key sent by the server and determine whether the user has permission to use the original video based on the user's identity information. When the user has permission to use the original video, the authentication fingerprint is authenticated and decrypted based on the decryption private key to obtain the blockchain fingerprint for subsequent decoding operations, preventing unauthorized users from stealing the video resources.

[0078] In one embodiment, after step 202, the method further includes: First, monitoring the decryption result of the authentication fingerprint in the target transformation unit. Specifically, during the decoding of the authentication fingerprint, it can be monitored in real time whether the authentication fingerprint being decrypted into a blockchain fingerprint. Then, it is determined whether the decryption result of the authentication fingerprint in the target transformation unit is the blockchain fingerprint. Specifically, it can be determined whether the authentication fingerprint is decrypted into a blockchain fingerprint based on the decryption private key. Further, if it is determined based on the user's identity information that the user has permission to use the original video, the client will use the decryption private key to decrypt the authentication fingerprint to obtain the blockchain fingerprint. Conversely, if it is determined based on the user's identity information that the user does not have permission to use the original video, and the user attempts to decrypt the authentication fingerprint through the client, it can be determined that the user is attempting to crack the blockchain fingerprint to steal the original video. Because the fingerprint stripping data is in the blockchain, the uniqueness of the fingerprint stripping data can be guaranteed, and the authentication fingerprint can only be decrypted using the decryption private key. Therefore, if the user attempts to crack the authentication fingerprint using other means, the blockchain fingerprint will not be obtained. Finally, if the decryption result of the authentication fingerprint in the target transformation unit is not the blockchain fingerprint, the video encoded bitstream is destroyed. Specifically, if the authentication fingerprint is not decrypted into a blockchain fingerprint, it indicates that a user without video access rights is using other technical means to crack the blockchain fingerprint. In this case, the video encoded bitstream received from the server is destroyed to prevent malicious theft of video resources. In the embodiments of this application, when it is discovered that a user has attempted to crack the blockchain fingerprint, the video encoded bitstream can be destroyed in a timely manner, completely avoiding the possibility of cracking the authentication fingerprint and thus stealing video resources.

[0079] In one embodiment, after step 202, the method further includes: first, monitoring the transformation units undergoing authentication and decryption. Specifically, it can monitor in real time which transformation units in the process video data are undergoing authentication and decryption operations. Then, it determines whether the transformation unit undergoing authentication and decryption is the target transformation unit. If the transformation unit undergoing authentication and decryption is not the target transformation unit, the video encoded bitstream is destroyed. Specifically, for users with permission to use the original video, the target transformation unit with embedded authentication fingerprint is directly located among multiple transformation units based on the identification identifier corresponding to the target transformation unit obtained from the server, without decrypting transformation units without embedded authentication fingerprint. For users without permission to use the original video, when they decrypt the authentication fingerprint in the process video data, since they cannot locate the target transformation unit among many transformation units, they will perform authentication and decryption on each transformation unit to filter out the target transformation unit. When the client performs authentication and decryption on a non-target transformation unit, it can be determined that the user is using other technical means to crack the blockchain fingerprint. At this time, the video encoded bitstream can be destroyed to prevent the video resources from being maliciously stolen. In the embodiments of this application, when it is discovered that a user has attempted to crack the blockchain fingerprint, the video encoding bitstream can be destroyed in a timely manner to completely prevent the possibility of cracking the blockchain fingerprint and thus stealing video resources.

[0080] The video encryption method provided in this embodiment can determine whether a user has permission to use the original video based on the user's identity information. When it is determined that the user has permission to use the original video, the target video data can be quickly located according to the identification identifier corresponding to the target transformation unit, and the blockchain fingerprint can be decrypted using the obtained decryption private key to further decode and obtain the original video. Furthermore, when it is determined that the user has attempted to crack and decode the original video, the video encoding bitstream will be destroyed immediately to prevent the theft of medical video resources.

[0081] Furthermore, as Figure 1 The specific implementation of the method shown in this embodiment provides a video encryption processing device, such as... Figure 4 As shown, the device includes: a video acquisition module 41, a fingerprint encryption module 42, a target determination module 43, and a data transmission module 44.

[0082] The video acquisition module 41 is used to acquire video encoding data of the original video, wherein the video encoding data is obtained by compression encoding of the original video and the video encoding data contains multiple transformation units;

[0083] The fingerprint encryption module 42 is used to acquire the blockchain fingerprint and encrypt the blockchain fingerprint based on a preset encryption algorithm to obtain the authentication fingerprint. The blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are pre-stored in the blockchain.

[0084] The target determination module 43 is used to select a target transformation unit from the plurality of transformation units and embed the authentication fingerprint into the target transformation unit to obtain process video data;

[0085] Data sending module 44 is used to entropy encode the process video data to obtain a video encoded bitstream, and send the video encoded bitstream to the client so that the client can decode the video encoded bitstream based on the fingerprint stripping data to obtain the original video;

[0086] The fingerprint encryption module 42 can also be used to obtain the blockchain fingerprint and a preset encryption public key and decryption private key, wherein the decryption private key is used to decrypt the authentication fingerprint to obtain the blockchain fingerprint; send the decryption private key to the client; and encrypt the blockchain fingerprint based on the encryption public key to obtain the authentication fingerprint;

[0087] The target determination module 43 can also be used to set identification identifiers for all the transformation units in the video encoded data; select a target transformation unit among the transformation units, and send the identification identifier corresponding to the target transformation unit to the client, wherein the identification identifier corresponding to the target transformation unit is used to enable the client to determine the target transformation unit among all the transformation units;

[0088] In specific application scenarios, such as Figure 5 As shown, this device also includes a decoding monitoring module 55, which is specifically used to monitor the decoding result of the video encoded bitstream by the client; determine whether the video encoded bitstream has been decoded into the original video by the client; if the video encoded bitstream has been decoded into the original video by the client, then update the blockchain fingerprint in the blockchain and the fingerprint stripping data corresponding to the blockchain fingerprint, and based on the updated blockchain fingerprint, execute the step of encrypting the blockchain fingerprint based on a preset encryption algorithm to obtain the authentication fingerprint.

[0089] Furthermore, as Figure 3 The specific implementation of the method shown in this embodiment provides a video encryption processing device, such as... Figure 6 As shown, the device includes: a request response module 61, a fingerprint acquisition module 62, a fingerprint stripping module 63, and a video acquisition module 64.

[0090] The request response module 61 is used to respond to the playback request of the original video, receive the video encoded bitstream corresponding to the original video from the server, and perform entropy decoding on the video encoded bitstream to obtain the process video data.

[0091] The fingerprint acquisition module 62 is used to determine the target transformation unit in the process video data, and to authenticate and decrypt the authentication fingerprint in the target transformation unit based on a preset decryption algorithm to obtain the blockchain fingerprint.

[0092] The fingerprint stripping module 63 is used to verify the blockchain fingerprint and obtain the fingerprint stripping data corresponding to the blockchain fingerprint on the blockchain.

[0093] The video acquisition module 64 is used to perform fingerprint stripping operation on the target transformation unit of the process video data based on the fingerprint stripping data to obtain video encoded data, and to decode the video encoded data to obtain the original video.

[0094] The fingerprint acquisition module 62 can also be used to receive the identification identifier corresponding to the target transformation unit sent by the server; detect the user's identity information and determine whether the user has permission to use the identification identifier corresponding to the target transformation unit; if the user has permission to use the identification identifier corresponding to the target transformation unit, then based on the identification identifier corresponding to the target transformation unit, determine the target transformation unit in the transformation unit, wherein the identification identifier corresponding to the target transformation unit is set by the server for the transformation unit embedded with the authentication fingerprint.

[0095] The fingerprint acquisition module 62 can also be used to obtain a decryption private key from the server; detect the user's identity information and determine whether the user has permission to use the decryption private key to authenticate and decrypt the authentication fingerprint; if the user has permission to use the decryption private key to authenticate and decrypt the authentication fingerprint, then based on the decryption private key, the authentication fingerprint is authenticated and decrypted to obtain a blockchain fingerprint.

[0096] In specific application scenarios, such as Figure 7 As shown, this device also includes:

[0097] The decryption monitoring module 75 is used to monitor the decryption result of the authentication fingerprint in the target transformation unit; determine whether the decryption result of the authentication fingerprint in the target transformation unit is the blockchain fingerprint; if the decryption result of the authentication fingerprint in the target transformation unit is not the blockchain fingerprint, then the video encoded bitstream is destroyed.

[0098] The unit selection module 76 is used to monitor the transformation unit to be authenticated and decrypted; determine whether the transformation unit to be authenticated and decrypted is the target transformation unit; if the transformation unit to be authenticated and decrypted is not the target transformation unit, then destroy the video encoded bitstream.

[0099] It should be noted that other corresponding descriptions of the functional units involved in the video encryption processing device provided in this embodiment can be found in [reference needed]. Figure 1 , Figure 3 The corresponding descriptions in [the document] will not be repeated here.

[0100] Based on the above, Figure 1 , Figure 3 Accordingly, this embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements the above-described method. Figure 1 , Figure 3 The video encryption method shown.

[0101] Based on this understanding, the technical solution of this application can be embodied in the form of a software product. The software product to be identified can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, or portable hard drive), including several instructions to cause a computer device (such as a personal computer, server, or network device) to execute the methods described in the various implementation scenarios of this application.

[0102] Based on the above, Figure 1 , Figure 3 The method shown, and Figure 4 , Figure 5 , Figure 6 and Figure 7 The illustrated video encryption processing device embodiment, in order to achieve the above objectives, also provides a physical device for video encryption processing. Specifically, this device can be a personal computer, server, smartphone, tablet computer, smartwatch, or other network device, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-described... Figure 1 , Figure 3 The method shown.

[0103] Optionally, the physical device may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.

[0104] Those skilled in the art will understand that the physical device structure for video encryption processing provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.

[0105] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device, supporting the operation of information processing programs and other software and / or programs to be identified. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.

[0106] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms, or it can be implemented by hardware. By applying the technical solution of this application, firstly, video encoding data of the original video is obtained, wherein the video encoding data is obtained by compressing and encoding the original video, and the video encoding data contains multiple transformation units; then, a blockchain fingerprint is obtained, and the blockchain fingerprint is encrypted based on a preset encryption algorithm to obtain an authentication fingerprint, wherein the blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are pre-stored in the blockchain; next, a target transformation unit is selected from the multiple transformation units, and the authentication fingerprint is embedded in the target transformation unit to obtain process video data; finally, the process video data is entropy encoded to obtain a video encoded bitstream, and the video encoded bitstream is sent to the client, so that the client can decode the video encoded bitstream based on the fingerprint stripping data to obtain the original video. Compared with the prior art, this enhances the authentication capability for video resource playback permissions and further strengthens the anti-theft protection capability of medical video resources.

[0107] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application. Those skilled in the art will understand that the modules in the apparatus of the embodiment can be distributed within the apparatus of the embodiment as described, or can be modified to be located in one or more apparatuses different from this embodiment. The modules of the above-described embodiment can be combined into one module, or further divided into multiple sub-modules.

[0108] The serial numbers in this application are for descriptive purposes only and do not represent the superiority or inferiority of any particular implementation scenario. The above disclosures are merely a few specific implementation scenarios of this application; however, this application is not limited thereto, and any variations conceived by those skilled in the art should fall within the protection scope of this application.

Claims

1. A video encryption processing method, applied on a server side, characterized in that, The method includes: The video encoding data of the original video is obtained, wherein the video encoding data is obtained by compression encoding of the original video, and the video encoding data contains multiple transform units; A blockchain fingerprint is obtained and encrypted using a preset encryption algorithm to obtain an authentication fingerprint. The blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are pre-stored in the blockchain. A target transformation unit is selected from the plurality of transformation units, and the authentication fingerprint is embedded in the target transformation unit to obtain process video data; The process video data is entropy encoded to obtain a video encoded bitstream, and the video encoded bitstream is sent to the client so that the client can decode the video encoded bitstream based on the fingerprint stripping data to obtain the original video; Monitor the decoding results of the video encoded bitstream by the client; Determine whether the video encoded bitstream has been decoded into the original video by the client; If the video encoded bitstream is decoded into the original video by the client, the blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are updated in the blockchain. Based on the updated blockchain fingerprint, the step of encrypting the blockchain fingerprint using a preset encryption algorithm is executed to obtain the authentication fingerprint.

2. The method according to claim 1, characterized in that, The process of obtaining a blockchain fingerprint and encrypting the blockchain fingerprint using a preset encryption algorithm to obtain an authentication fingerprint includes: Obtain the blockchain fingerprint and a preset encryption public key and decryption private key, wherein the decryption private key is used to authenticate and decrypt the authentication fingerprint to obtain the blockchain fingerprint; The decryption private key is sent to the client, and the blockchain fingerprint is encrypted based on the encryption public key to obtain the authentication fingerprint; The step of selecting a target transformation unit from the plurality of transformation units includes: Set an identification identifier for all the transform units in the video encoded data; A target transformation unit is selected from the transformation units, and the identification identifier corresponding to the target transformation unit is sent to the client. The identification identifier corresponding to the target transformation unit is used to enable the client to identify the target transformation unit among all the transformation units.

3. A video encryption processing method, applied to a client, wherein the client is connected to the server as described in claim 1 or 2, characterized in that, The method includes: In response to a playback request for the original video, the system receives the video encoded bitstream corresponding to the original video from the server and performs entropy decoding on the video encoded bitstream to obtain the process video data. The target transformation unit in the process video data is identified, and the authentication fingerprint in the target transformation unit is authenticated and decrypted based on a preset decryption algorithm to obtain the blockchain fingerprint; The blockchain fingerprint is verified, and fingerprint stripping data corresponding to the blockchain fingerprint is obtained on the blockchain. Based on the fingerprint stripping data, a fingerprint stripping operation is performed on the target transformation unit of the process video data to obtain video encoded data, and the video encoded data is decoded to obtain the original video.

4. The method according to claim 3, characterized in that, The target transformation unit for determining the process video data includes: The server sends the identification identifier corresponding to the target transformation unit. Detect the user's identity information and determine whether the user has permission to use the identification identifier corresponding to the target transformation unit; If the user has permission to use the identification identifier corresponding to the target transformation unit, then the target transformation unit is determined in the transformation unit based on the identification identifier corresponding to the target transformation unit, wherein the identification identifier corresponding to the target transformation unit is set by the server for the transformation unit that embeds the authentication fingerprint.

5. The method according to claim 3, characterized in that, The authentication fingerprint in the target transformation unit is authenticated and decrypted based on a preset decryption algorithm to obtain a blockchain fingerprint, including: Obtain the decryption private key from the server; The system detects the user's identity information and determines whether the user has permission to use the decryption private key to authenticate and decrypt the authentication fingerprint. If the user has permission to use the decryption private key to authenticate and decrypt the authentication fingerprint, then the authentication fingerprint is authenticated and decrypted based on the decryption private key to obtain the blockchain fingerprint.

6. A video encryption processing device, wherein the device is disposed on the server as described in claim 1 or 2, characterized in that, The device includes: The video acquisition module is used to acquire the video encoding data of the original video, wherein the video encoding data is obtained by compressing and encoding the original video, and the video encoding data contains multiple transformation units; A fingerprint encryption module is used to acquire a blockchain fingerprint and encrypt the blockchain fingerprint based on a preset encryption algorithm to obtain an authentication fingerprint. The blockchain fingerprint and the fingerprint stripping data corresponding to the blockchain fingerprint are pre-stored in the blockchain. The target determination module is used to select a target transformation unit from the plurality of transformation units and embed the authentication fingerprint into the target transformation unit to obtain process video data; The data sending module is used to entropy encode the process video data to obtain a video encoded bitstream, and send the video encoded bitstream to the client so that the client can decode the video encoded bitstream based on the fingerprint stripping data to obtain the original video; The decoding monitoring module is used to monitor the decoding result of the video encoded bitstream by the client; determine whether the video encoded bitstream has been decoded into the original video by the client; if the video encoded bitstream has been decoded into the original video by the client, then update the blockchain fingerprint in the blockchain and the fingerprint stripping data corresponding to the blockchain fingerprint, and based on the updated blockchain fingerprint, execute the step of encrypting the blockchain fingerprint based on a preset encryption algorithm to obtain the authentication fingerprint.

7. A video encryption processing device, wherein the device is disposed in a client as described in any one of claims 3 to 5, characterized in that, The device includes: The request and response module is used to respond to the playback request of the original video, receive the video encoded bitstream corresponding to the original video from the server, and perform entropy decoding on the video encoded bitstream to obtain the process video data. The fingerprint acquisition module is used to determine the target transformation unit in the process video data, and to authenticate and decrypt the authentication fingerprint in the target transformation unit based on a preset decryption algorithm to obtain the blockchain fingerprint; The fingerprint stripping module is used to verify the blockchain fingerprint and obtain the fingerprint stripping data corresponding to the blockchain fingerprint on the blockchain. The video acquisition module is used to perform fingerprint stripping operation on the target transformation unit of the process video data based on the fingerprint stripping data to obtain video encoded data, and to decode the video encoded data to obtain the original video.

8. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.