A content tracing method and system

By using technologies such as RSA encryption and CRC check codes in the content traceability system, the privacy and robustness issues of digital watermarks in surveillance and face recognition applications are solved, real-time content traceability and verification are achieved, and the security of the content is ensured. and copyright protection, reducing the risk of piracy.

CN118338094BActive Publication Date: 2024-09-10NANJING ALLCAM INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410764147.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-10
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Existing digital watermarking technology may touch personal privacy in surveillance and face recognition applications, and the watermark's high robustness may affect media quality under various processing and transmission conditions, and there is a risk of malicious attacks, causing the watermark to be deleted. , tampered with or forged, making it difficult to ensure the authenticity and security of the content.

Method used

By using processors, players and controllers in the content traceability system, using RSA encryption algorithm and CRC check code and other technologies, the watermark encoding is written into the key frames of the video, and strong encoding is performed through the anti-erasure algorithm to ensure The security and integrity of watermarks during the distribution process enable real-time content traceability and verification.

Benefits of technology

Effectively prevent content forgery and tampering, ensure copyright protection, enhance the credibility of information, provide data analysis and market insights, protect creators' rights and interests, ensure legal compliance and evidence collection, reduce piracy losses, and increase content creators' income.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118338094B
    Figure CN118338094B
Patent Text Reader

Abstract

The present invention provides a content tracing method and system, the content tracing system includes: a processor, a player and a controller, the method includes: obtaining a coded file, the coded file includes a watermark code and a content code; performing a first decoding on the content code to obtain content information and playing the content information; using a watermark extraction algorithm to perform a second decoding on the watermark code to obtain watermark information; performing a first verification on the watermark information to obtain a first result, uploading the first result to the controller, and issuing an alarm when the first result does not meet a preset condition. Through real-time content tracing, the distribution of content can be tracked and monitored to prevent unauthorized piracy and infringement, and improve the security of content distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of computer application and signal processing, and in particular to a content tracing method and system. Background Art

[0002] Content tracing technology covers multiple technical fields such as digital media, image processing, computer vision, information hiding, digital signal processing, etc., to achieve the traceability, protection and identification of media content. Digital watermark technology is the core of video tracing, which allows some additional data to be embedded in media content, which is visually or auditorily imperceptible. Digital watermarks can be divided into visible watermarks and invisible watermarks. Visible watermarks are usually displayed on media content in the form of text, images, icons, etc., while invisible watermarks are embedded in media data in the form of digital signal processing, which does not affect the user's viewing experience.

[0003] Image processing and computer vision play an important role in video tracing technology. They are used to analyze, process and extract watermark information embedded in videos, as well as perform related image analysis and target detection. In video tracing, watermark information needs to be embedded in the video and extracted when needed. Image processing technology can be used to embed watermarks into video frames, ensuring that the embedding process does not cause obvious visual differences. Computer vision technology is used to accurately extract watermark information from videos, maintaining a certain degree of extractability even after lossy compression or other processing.

[0004] Video tracing technology involves information hiding, which overlaps with the fields of information hiding and encryption technology. Information hiding focuses on how to embed information into the media, while encryption focuses on the protection and secure transmission of information.

[0005] Watermarks are usually used to trace the source and protect the authenticity of the content, but in some cases they may affect personal privacy, especially when it comes to applications such as surveillance and face recognition. Embedding watermarks involves personal information and may cause privacy issues.

[0006] Related technical solutions include video blind watermarking technology, which embeds identification information directly into the frequency domain of video RGB or YUV, which basically does not affect the viewing quality of the original video and is not easy to be perceived or noticed. Through this information hidden in the carrier, the content creator and user can be confirmed or whether the video has been tampered with. In order to ensure that the watermark can be extracted under various processing and transmission conditions, a certain degree of redundancy and transformation needs to be introduced in the embedding process. However, over-emphasis on robustness may cause the watermark to be too obvious, affecting media quality or causing visual or auditory distortion. Although watermarking technology helps protect content, it may also be subject to malicious attacks. Attackers may try to delete, tamper with or forge watermarks to evade detection or destroy the authenticity of the content. Implementing watermarking technology may require complex system deployment and maintenance to ensure that the watermark is always effective during distribution and transmission. Summary of the invention

[0007] Digital watermarking technology has been widely used in practice, providing a feasible technical basis for real-time video traceability. Many existing digital watermarking algorithms have been verified in the field of images and videos, so these algorithms can be applied to real-time video streams. Current computer hardware and processing power are sufficient to support real-time video decoding, watermark extraction and verification and other processing steps. Therefore, it is feasible to extract and verify watermarks during real-time playback. Embedding watermarks is usually carried out according to the characteristics and specific locations of the video content to ensure that the watermark has the least impact on the audio-visual experience. This trade-off can achieve the concealment of the watermark without significantly affecting the content quality. Based on this, the present invention provides a content tracing method and system. In the first aspect, the present invention provides a content tracing method, which is applied to a content tracing system. The content tracing system includes: a processor, a player and a controller. The method includes: obtaining an encoded file, the encoded file includes a watermark code and a content code; performing a first decoding on the content code to obtain content information and playing the content information; using a watermark extraction algorithm to perform a second decoding on the watermark code to obtain watermark information; performing a first verification on the watermark information to obtain a first result, uploading the first result to the controller, and issuing an alarm when the first result does not meet a preset condition.

[0008] In some embodiments, before obtaining the encoded file, the method also includes: obtaining original content and a predefined watermark respectively; performing a first encoding on the original content to generate a content code, and performing a second encoding on the predefined watermark to generate a watermark code; writing the watermark code into a key frame of the content code at a predetermined position of the content code to generate an intermediate file; writing a checksum into the intermediate file through a CRC algorithm to generate an initial encoded file; and strongly encoding the initial encoded file using an anti-erasure algorithm to generate an encoded file.

[0009] In some embodiments, after the encoded file is decoded in real time to obtain watermark information and content information, the method further includes: performing a security operation on the check code, and when the operation result does not meet the expected conditions, marking the encoded file as abnormal.

[0010] In some embodiments, the second encoding of the predefined watermark to generate the watermark code includes: encrypting the predefined watermark through the RSA algorithm to obtain an encrypted watermark; dividing the encrypted watermark into encrypted watermark data segments according to the number of key frames, and adding header information to each of the encrypted watermark data segments to generate the watermark code.

[0011] In some embodiments, encrypting the predefined watermark by using an RSA algorithm to obtain an encrypted watermark includes: encrypting the predefined watermark by using an RSA algorithm to obtain an initial encrypted watermark; and performing a salted hash digest on the initial encrypted watermark to obtain the encrypted watermark.

[0012] In some embodiments, the watermark code is secondly decoded by a watermark extraction algorithm to obtain watermark information, including: extracting the watermark code from the encoded file, and performing RSA security verification on the watermark code; when the RSA security verification passes, performing RSA decryption on the watermark code to obtain a predefined watermark; reading the predefined watermark, and drawing the predefined watermark frame by frame through a timestamp corresponding to the content information to obtain the watermark information.

[0013] In a second aspect, the present invention provides a content tracing system for implementing the content tracing method as described above, the system comprising: a processor, a player and a controller, wherein the player comprises: an acquisition module for acquiring an encoded file, the encoded file comprising a watermark code and a content code; a decoding module for performing a first decoding on the content code to obtain content information; a playback module for playing the content information; the decoding module is also used to perform a second decoding on the watermark code using a watermark extraction algorithm to obtain watermark information; a security module for performing a first verification on the watermark information to obtain a first result, and uploading the first result to the controller; the controller is used to issue an alarm when the first result does not meet a preset condition.

[0014] In some embodiments, the processor is used to: obtain original content and a predefined watermark respectively; perform a first encoding on the original content to generate a content code, and perform a second encoding on the predefined watermark to generate a watermark code; write the watermark code into a key frame of the content code at a predetermined position of the content code to generate an intermediate file; write a check code into the intermediate file through a CRC algorithm to generate an initial encoded file; and use an anti-erasure algorithm to strongly encode the initial encoded file to generate an encoded file.

[0015] In some embodiments, the security module is further used to: perform a security operation on the verification code, and when the operation result does not meet the expected conditions, mark the encoded file as abnormal.

[0016] In some embodiments, the security module is also used to extract the watermark code from the encoded file and perform RSA security verification on the watermark code; the player also includes: a rendering module, which is used to perform RSA decryption on the watermark code to obtain a predefined watermark after the RSA security verification is passed, read the predefined watermark, and draw the predefined watermark frame by frame through the timestamp corresponding to the content information to obtain the watermark information.

[0017] The present invention generates a coded file by sequentially writing watermark codes into key frames of content codes, and obtains watermark codes through a series of encryption algorithms, thereby ensuring security during content distribution and preventing content forgery or tampering. The present invention has the following technical effects: Copyright protection and anti-counterfeiting: Through real-time content tracing, copyright holders can track and monitor the distribution of content to prevent unauthorized piracy and infringement. Content authenticity verification: The audience can confirm the authenticity and source of the content by extracting and verifying the watermark, thereby enhancing the credibility of the information. Data analysis and market insight: The extracted watermark information can be used to analyze audience behavior, content popularity, etc., and provide content providers with useful information about market trends. Content monitoring and management: Real-time content tracing enables content providers to monitor the distribution path of content in real time, thereby better managing distribution channels and compliance. Creator rights protection: Through watermark tracing, the copyright of creators can be better protected, encouraging more people to participate in content creation. Anti-tampering and data integrity: Watermark technology can detect tampering and forgery of content, ensuring the data integrity and authenticity of the content. Legal compliance and evidence collection: Watermark information can be used as evidence in legal proceedings to maintain compliance and protect rights. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the implementation process of the blind watermark technology in the related technology;

[0019] Figure 2 A schematic diagram of the process of the method provided in Example 1 of the present application;

[0020] Figure 3 A schematic diagram of the composition of the content tracing system provided in Example 2 of the present application. DETAILED DESCRIPTION

[0021] The specific implementation of the present invention will be described in more detail below in conjunction with the schematic diagram. The advantages and features of the present invention will become clearer based on the following description. It should be noted that the drawings are all in a very simplified form and are not in exact proportions, and are only used to facilitate and clearly assist in explaining the purpose of the embodiments of the present invention.

[0022] The video blind watermarking technology in the related art is to embed the watermark information directly into the frequency domain of the video RGB or YUV through a watermark plug-in, which basically does not affect the viewing quality of the original video and is not easy to be perceived or noticed. Through this information hidden in the carrier, the content creator, user or whether the video has been tampered with can be confirmed. This technology is usually provided by professional copyright protection service providers for broadcasting and television copyright protection, and is highly commercial. Blind watermarking is a digital watermarking technology that allows the existence and content of the watermark to be detected without knowing the original media content. Simply put, blind watermarking technology can embed an invisible mark or information in an image, video, audio or other digital media file. This mark can prove the ownership, source or identity authentication of the media without affecting the quality of the original media. The characteristic of blind watermarking is that when extracting the watermark information, the original unwatermarked media file is not required. This is different from non-blind watermarking technology, which needs to be compared with the original file when extracting the watermark. This feature of blind watermarking technology makes it particularly useful in protecting copyright, preventing illegal copying, and providing media file identity authentication. In implementation, blind watermarks usually embed information by making slight modifications to the frequency domain of media files (such as using discrete cosine transform (DCT) or discrete wavelet transform (DWT)). Such modifications are almost imperceptible to human senses, and the embedded information can remain stable even when the media file is converted or compressed, thereby achieving effective marking and protection of digital content. Figure 1 This is a schematic diagram of the implementation process of the blind watermarking technology in the related technology, see Figure 1The implementation principle of blind watermark is to complete the watermark information superposition in the frequency domain, and implement the blind watermark plug-in through the adapter framework in the filter module (S1). Then set the local video (S2), and the transformation methods include discrete Fourier transform, wavelet transform, etc. For example, Fourier transform is used to complete the text image superposition in the real and imaginary parts, and then the video frame is displayed through inverse transform. After starting the preview (S3), the method of extracting watermark information from the video frame is to use a third party to take a screenshot of the video frame (S4), perform a Fourier transform on the screenshot again, obtain frequency domain data, display the frequency domain amplitude, that is, energy, obtain the frequency domain amplitude diagram, and solve the watermark image (S5), which will display the previously superimposed watermark information. This method of embedding watermarks through a watermark plug-in requires a third party to take a screenshot to extract the watermark information when the watermark is subsequently parsed. Not only is the implementation process complicated, but there is also a risk of watermark information being tampered with or erased during this process.

[0023] Based on this, the present invention implements the insertion of watermark information into the key frames of the video content through secondary encryption through algorithm coding, and subsequent analysis does not require third-party screenshots, thereby improving the security of the watermark embedding and transmission process.

[0024] Example 1

[0025] Embodiment 1 of the present application provides a method for implementing content tracing, which is applied to a content tracing system. The content tracing system includes: a processor, a player, and a controller. The content tracing in the embodiment of the present application is to perform real-time content tracing during the player playing content, such as real-time tracing of video content or audio content. Figure 2 This is a flow chart of the method provided in Example 1 of the present application, refer to Figure 2 , the method comprising:

[0026] Step S201: Obtaining a coded file, the coded file including a watermark code and a content code; in the embodiment of the present application, the coded file is pre-generated by a processor, and before step S201, the method further includes: steps S211 to S215, specifically including:

[0027] Step S211: respectively obtain the original content and the predefined watermark; here, the original content may include video content or audio content and other formats of content, and the predefined watermark may be a digital string, an image, a text content, etc. The predefined watermark can select the information and type of the watermark to be added, and the user can choose to disclose personal information such as mobile phone number, email address, or only display custom text, which will effectively select the content.

[0028] Step S212: performing a first encoding on the original content to generate a content code, and performing a second encoding on the predefined watermark to generate a watermark code; Here, the process of performing a first encoding on the original content to generate a content code and performing a second encoding on the predefined watermark to generate a watermark code using conventional technology in the art includes steps S221 and S222:

[0029] Step S221: Encrypt the predefined watermark using the RSA algorithm to obtain an encrypted watermark.

[0030] Step S221 specifically includes: encrypting the predefined watermark by using the RSA algorithm to obtain an initial encrypted watermark; and performing a salted hash digest on the initial encrypted watermark to obtain the encrypted watermark.

[0031] The embodiment of the present application adopts the RSA encryption algorithm and signature to complete the second encoding process. Here, the principle of the RSA encryption algorithm is: the sender S wants to transmit file information to the receiver R. In order to avoid information leakage, the key issuer R generates a key pair through the RSA encryption algorithm in advance, and gives the public key to S in advance, and keeps the private key for himself. When S transmits information to R, it first encrypts the file with the public key provided by R, and then transmits the encrypted file to R. After R obtains the encrypted file, it decrypts the encrypted file with the private key it holds alone. Even if the encrypted file is eavesdropped, the eavesdropper does not have the private key and cannot decrypt it. The public key is open to the public, and the private key is kept by the user. Since the public key is public, anyone can get it (it will be given to multiple people at the same time), and can use the public key to encrypt and send forged content. Therefore, it is very important to verify the identity of the sender and ensure the security of the file. Consider a situation: when the sender S obtains the public key of the receiver R, the middleman A obtains the public key, encrypts the information with the public key, and pretends to be S to send a tampered file to R. Similarly, after receiving the information, R can also decrypt the file data with the private key it holds. The receiver cannot identify the identity of the data sender, and there is a risk of illegal modification of the file. In order to distinguish the identity of the sender, we need to use a signature at this time. The principle of the signature is to make a summary of the file to prevent tampering. The sender makes a salted hash summary of the original file, and sends the encrypted original text and the summary to the receiver. After the receiver decrypts it, it uses the same hash method to calculate and compare the summary to determine whether the original text has been tampered with. The specific signing process is as follows: the sender S also generates a pair of secret keys and gives the public key to R in advance. Before sending the message, the file is first encrypted with the public key given by R, and then signed with S's own private key. Finally, the encrypted file and the signature are sent to R together. After receiving the data sent by the sender S, the receiver R first uses S's public key to verify the signature information and confirm the identity information. If it is confirmed to be the sender S, then R uses the private key to decrypt the encrypted file, thereby isolating the reception of illegal data packets.

[0032] Step S222: Divide the encrypted watermark into encrypted watermark data segments according to the number of key frames, and add header information to each encrypted watermark data segment to generate a watermark code. The header information here is the md5 encoding information of the video file and the encrypted watermark. This information ensures that the header file content cannot be guaranteed to be consistent after the file content is modified, thereby ensuring the authenticity and consistency of the file content.

[0033] Then, step S213 is performed: the watermark code is written into the key frame of the content code at the predetermined position of the content code to generate an intermediate file; the predetermined position here is the embedding position of the watermark information in the original content, generally embedded in the corner, bottom or transparent area of ​​the original content picture.

[0034] Step S214: Write a check code into the intermediate file through the CRC algorithm to generate an initial encoded file. Add a check code to the watermark information through the CRC algorithm, and the check code here is used for subsequent watermark information verification. The CRC algorithm (Cyclic Redundancy Check) is a hash function that generates a short fixed-bit check code based on data such as online data packets or computer files. It is mainly used to detect or verify errors that may occur after data transmission or storage. The generated number is calculated before transmission or storage and attached to the data, and then the recipient checks to determine whether the data has changed. After the watermark code is written into the key frame of the content encoding, the embodiment of the present application adds a check code through the CRC algorithm to generate an encoded file. After the encoded file is subsequently received, the check code can be used for watermark verification by performing a secure operation, thereby further improving security.

[0035] Step S215: Strongly encode the initial encoded file using an anti-erasure algorithm to generate an encoded file. Here, strong encoding means writing encryption information into the header of the initial encoded file frame for encoding. If it cannot be decoded, the content of each frame cannot be read.

[0036] Through the above steps S211-S212, the original content is converted into coded content, and the predefined watermark is converted into watermark code. Through steps S213-S215, the watermark code is embedded in the content code, and processed by the CRC algorithm and the anti-erasure algorithm to generate an encrypted coded file. In this way, after the coded file containing the watermark code is obtained, the corresponding decryption algorithm is required to obtain the content in the coded file, thereby improving the security of content distribution.

[0037] In the embodiment of the present application, after step S201, step S216 is also included: performing a security operation on the verification code, and when the operation result does not meet the expected conditions, marking the encoded file as abnormal. The verification code here is the verification code written in step S214. After obtaining the encoded file, the verification code included in the encoded file is obtained by decoding the encoded file, and the integrity and validity of the encoded file are verified by the verification code.

[0038] Then, step S202 is performed: performing a first decoding on the content code to obtain content information and playing the content information; here, in the process of the first decoding, the content code is parsed and rendered to obtain playable content information.

[0039] Step S203: Use a watermark extraction algorithm to perform a second decoding on the watermark code to obtain watermark information. The watermark code in the embodiment of the present application is obtained after processing through steps S221-S222, and includes a series of processed watermark information. Step S203 is completed through steps S231-S233:

[0040] Step S231: extract the watermark code from the encoded file, and perform RSA security verification on the watermark code; Step S232: after the RSA security verification is passed, perform RSA decryption on the watermark code to obtain a predefined watermark; perform RSA decryption on the watermark code to obtain a predefined watermark. Before step S231, the watermark code can also be compared with a hash summary to obtain an encrypted watermark to verify the security of the watermark code during the transmission process. After obtaining the encrypted watermark, perform RSA security verification on the encrypted watermark. The two security verifications will further improve the security of content distribution and prevent the watermark information from being tampered with.

[0041] Step S233: reading the predefined watermark, and drawing the predefined watermark frame by frame using the timestamp corresponding to the content information to obtain the watermark information.

[0042] Here, the predefined watermark is pre-rendered to the screen frame of the content information, so that its performance is improved to the frame level and the integrity of the dynamic watermark is guaranteed. First, the predefined watermark file information is read and drawn frame by frame in combination with the corresponding timestamp of the content information. The static content of the watermark information is compressed, the change frame is retained, and the playback frame is read and drawn at the corresponding time point. During the content playback process, the watermark information is extracted in real time and the watermark is verified, completing the real-time content traceability, tracking and monitoring the distribution of the content, and preventing unauthorized piracy and infringement.

[0043] Step S204: Perform a first verification on the watermark information to obtain a first result, upload the first result to the controller, and issue an alarm when the first result does not meet a preset condition. The preset condition here may be whether the watermark information is consistent with the predefined watermark information. The extracted watermark information is verified by the preset condition to ensure that it is consistent with the embedded predefined watermark information. If it is inconsistent, an alarm may be issued, for example, triggering an alarm mechanism to notify an administrator or relevant personnel.

[0044] In some embodiments, after the first result is uploaded to the controller, a monitoring center can be further set up. If it is necessary to monitor the distribution of the content, the extracted watermark information can be transmitted to the monitoring center for tracking and analysis. For example, a networked or stand-alone monitoring scenario. In addition, the monitoring center can also analyze the extracted watermark information to understand the viewing situation of the content, the distribution path, etc. Anti-tampering monitoring can also be implemented in the monitoring center to regularly check whether the extracted watermark information is consistent and detect tampering behavior.

[0045] The implementation method of content tracing provided by the embodiment of the present application generates a coded file by writing the watermark code into the key frame of the content code in sequence, and obtains the watermark code through a series of encryption algorithms, thereby ensuring the security of the content distribution process and preventing content forgery or tampering. The present invention adopts efficient watermark embedding and extraction, and the optimized watermark algorithm can realize efficient embedding and extraction processes and reduce performance overhead. The watermark technology is applicable to different types of media, such as dynamic video, audio, etc. The audio and video files are all effective cutting of data content, and then the content after the watermark information is encrypted is filled into the cut header of the original file, and the filled content is encapsulated and verified in the header to generate the coded file. By introducing technologies such as digital signatures and encryption, the security of watermark information is improved and the risk of malicious attacks is reduced. The following technical effects are achieved: content protection and copyright maintenance, the technology of the present invention can effectively prevent piracy and illegal distribution, and protect the rights and interests of creators and copyright holders. Information authenticity verification, users can verify whether the content they are watching is true and has not been tampered with, thereby improving the credibility of the information. Fighting against false information, by verifying watermarks, can reduce the spread of false information and improve the accuracy of social information. Reduce piracy losses, prevent piracy and unauthorized distribution, reduce losses of copyright holders, and maintain the healthy development of the digital media industry. Increase the income of content creators, protect the copyright of creators, and encourage more people to participate in content creation, thereby increasing the income of creators. Content distribution monitoring revenue, by monitoring the distribution path and viewing situation, content providers can better understand audience needs, adjust marketing strategies, and increase revenue.

[0046] Example 2

[0047] Embodiment 2 of the present application provides a content tracing system for implementing the content tracing method described in Embodiment 1. Figure 3A schematic diagram of the composition of a content tracing system 300 provided in Example 2 of the present application, wherein the system 300 includes: a processor 310, a player 320 and a controller 330, wherein the player 320 includes: an acquisition module 321 for acquiring an encoded file, wherein the encoded file includes a watermark code and a content code; and a decoding module 322 for performing a first decoding on the content code to obtain content information.

[0048] The playback module 323 is used to play the content information; the decoding module 322 is also used to use a watermark extraction algorithm to perform a second decoding on the watermark code to obtain watermark information; the security module 324 is used to perform a first verification on the watermark information to obtain a first result, and upload the first result to the controller 330; the controller 330 is used to issue an alarm when the first result does not meet a preset condition.

[0049] The processor 310 is used to: obtain original content and predefined watermark respectively; perform a first encoding on the original content to generate content code, and perform a second encoding on the predefined watermark to generate watermark code; write the watermark code into a key frame of the content code at a predetermined position of the content code to generate an intermediate file; write a check code in the intermediate file through a CRC algorithm to generate an initial encoded file; and use an anti-erasure algorithm to strongly encode the initial encoded file to generate an encoded file.

[0050] In some embodiments, the security module 324 is further used to: perform a security operation on the verification code, and when the operation result does not meet the expected conditions, mark the encoded file as abnormal.

[0051] In some embodiments, the security module 324 is further used to extract the watermark code from the encoded file and perform RSA security verification on the watermark code. The player 320 also includes a rendering module 325, which is used to perform RSA decryption on the watermark code to obtain a predefined watermark after the RSA security verification passes, read the predefined watermark, and draw the predefined watermark frame by frame through the timestamp corresponding to the content information to obtain the watermark information.

[0052] The content tracing system provided in the embodiment of the present application aims to solve a series of problems in the distribution and protection of digital media content to ensure the authenticity of the content, copyright protection, anti-counterfeiting and user privacy. The content tracing system can embed identification information such as digital watermarks to track the source and distribution path of the content, thereby ensuring copyright and preventing piracy, infringement and other phenomena. Through the watermarks or logos embedded in the content tracing system, viewers can verify the authenticity of the content when watching it to avoid false, forged or tampered content. The real-time content tracing system can embed information in the video to monitor the distribution, viewing and user behavior of the content, thereby providing valuable data for content providers and analysts. By embedding identification, the content tracing system is able to monitor violations of regulations, such as unauthorized content dissemination or inappropriate use.

[0053] The above description is only the preferred embodiment of the present invention and is not intended to limit the present invention. Any technician familiar with the profession may make various changes, modifications, substitutions and variations to these embodiments without departing from the principle and purpose of the present invention. The scope of the present invention is defined by the claims and their equivalents.

Claims

1. A content tracing method, applied to a content tracing system, the content tracing system comprising: The processor, the player and the controller are characterized in that the method comprises: Obtaining a coded file, wherein the coded file includes a watermark code and a content code; Performing a first decoding on the content code to obtain content information and playing the content information; Using a watermark extraction algorithm to perform a second decoding on the watermark code to obtain watermark information; Performing a first verification on the watermark information to obtain a first result, uploading the first result to a controller, and issuing an alarm when the first result does not meet a preset condition; Before obtaining the encoded file, the method further includes: Get the original content and predefined watermark respectively; Performing a first encoding on the original content to generate a content code, and performing a second encoding on the predefined watermark to generate a watermark code; Writing the watermark code into a key frame of the content code at a predetermined position of the content code to generate an intermediate file; Write a checksum into the intermediate file using a CRC algorithm to generate an initial encoding file; The initial encoded file is strongly encoded using an anti-erasure algorithm to generate an encoded file.

2. The method according to claim 1, characterized in that Before performing the first verification on the watermark information, the method further includes: A security operation is performed on the verification code, and when the operation result does not meet the expected conditions, the encoded file is marked as abnormal.

3. The method according to claim 2, characterized in that The step of performing a second encoding on the predefined watermark to generate a watermark code comprises: Encrypting the predefined watermark by RSA algorithm to obtain an encrypted watermark; The encrypted watermark is divided into encrypted watermark data segments according to the number of key frames, and header information is added to each encrypted watermark data segment to generate a watermark code.

4. The method according to claim 3, characterized in that The predefined watermark is encrypted by using an RSA algorithm to obtain an encrypted watermark, including: Encrypting the predefined watermark by RSA algorithm to obtain an initial encrypted watermark; The encrypted watermark is obtained by performing a salted hash digest on the initial encrypted watermark.

5. The method according to claim 1, characterized in that The step of using a watermark extraction algorithm to perform a second decoding on the watermark code to obtain watermark information includes: Extracting watermark code from the coded file, and performing RSA security verification on the watermark code; When the RSA security verification passes, the watermark code is RSA decrypted to obtain a predefined watermark; The predefined watermark is read, and the watermark information is obtained by rendering the predefined watermark frame by frame using a timestamp corresponding to the content information.

6. A content tracing system, used to implement the content tracing method as claimed in claim 1, characterized in that: The system comprises: a processor, a player and a controller, wherein the player comprises: An acquisition module, used for acquiring a coding file, wherein the coding file includes a watermark coding and a content coding; A decoding module, used for performing a first decoding on the content code to obtain content information; A playing module, used for playing the content information; The decoding module is also used to use a watermark extraction algorithm to perform a second decoding on the watermark code to obtain watermark information; A security module, configured to perform a first verification on the watermark information to obtain a first result, and upload the first result to a controller; The controller is used to issue an alarm when the first result does not meet a preset condition; The processor is used to: Get the original content and predefined watermark respectively; Performing a first encoding on the original content to generate a content code, and performing a second encoding on the predefined watermark to generate a watermark code; Writing the watermark code into a key frame of the content code at a predetermined position of the content code to generate an intermediate file; Write a checksum into the intermediate file using a CRC algorithm to generate an initial encoding file; The initial encoded file is strongly encoded using an anti-erasure algorithm to generate an encoded file.

7. The system according to claim 6, characterized in that The security module is also used for: A security operation is performed on the verification code, and when the operation result does not meet the expected conditions, the encoded file is marked as abnormal.

8. The system according to claim 7, characterized in that The security module is also used to extract the watermark code from the encoded file and perform RSA security verification on the watermark code; The player also includes: a rendering module, which is used to perform RSA decryption on the watermark code to obtain a predefined watermark after the RSA security verification is passed, read the predefined watermark, and draw the predefined watermark frame by frame according to the timestamp corresponding to the content information to obtain the watermark information.