Metadata generation method and electronic equipment

By protecting the metadata of media content privacy, the problem of user privacy information being easily leaked when the media content is shared or published is solved, and the security of user privacy is achieved.

CN119577163APending Publication Date: 2025-03-07HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311149600.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-06
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

When media content is shared or published, user privacy information is easily leaked, resulting in privacy and security issues.

Method used

By obtaining the metadata of media content, privacy protection processing, such as encryption processing or hard binding processing, ensure that user privacy information cannot be viewed or obtained by other users.

Benefits of technology

It effectively avoids the leakage of user privacy information and ensures the security of user privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119577163A_ABST
    Figure CN119577163A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a metadata generation method and electronic equipment. The method comprises the following steps: acquiring media content; metadata of the media content is generated, the metadata of the media content comprises first information, the first information is obtained through privacy protection processing based on second information, and the second information is at least part of information in third information of the media content. Wherein the second information is invisible after being subjected to privacy protection processing, so that other users cannot view or acquire the second information subjected to privacy protection processing; therefore, the security of the second information subjected to privacy protection processing can be ensured, and leakage of the second information subjected to privacy protection processing is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing, and in particular to a metadata generation method and an electronic device. Background Art

[0002] With the popularization of portable camera devices such as mobile phones and the development of various simple and efficient media editing software, the threshold for people to create media content (such as images, music, and videos) and edit media content is getting lower and lower; and with the increase in the use scenarios of media content (for example, sending it to other users through various instant messaging software; for example, publishing it on various social software (or trading platforms)), people's motivation to create / edit media content has been further increased, making media content a blowout development.

[0003] Media content generally carries metadata, such as the time when the photo was taken, the location where the photo was taken, and the author of the photo. These metadata can help the creators or consumers of media content to better understand the media content, and can be used to prove the authenticity of media content in many scenarios. However, some metadata of media content involves user privacy. After the media content is sent to other users or published on social platforms (or trading platforms), user privacy may be leaked. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a metadata generation method and an electronic device. The method can avoid leakage of user privacy and ensure user privacy security.

[0005] In a first aspect, an embodiment of the present application provides a method for generating metadata, the method comprising: first, acquiring media content, and then generating metadata of the media content; wherein the metadata of the media content comprises first information, the first information is obtained by performing privacy protection processing based on second information, and the second information is at least part of third information of the media content.

[0006] Among them, the second information is invisible after privacy protection processing, so other users cannot view or obtain the second information that has been processed with privacy protection; thereby, the security of the second information that has been processed with privacy protection can be guaranteed, and the leakage of the second information that has been processed with privacy protection can be avoided.

[0007] When the second information that has undergone privacy protection processing is the user's private information, leakage of the user's privacy can be avoided and the user's privacy security can be guaranteed.

[0008] Exemplarily, the second information is all or part of the third information of the media content. “The first information is obtained by performing privacy protection processing based on the second information, and the second information is at least part of the third information of the media content” can be understood as the first information is obtained by performing privacy protection processing based on all or part of the third information.

[0009] For example, private information may refer to information that is not willing to be disclosed, and may also be referred to as non-public information.

[0010] Exemplarily, the third information of the media content may refer to information associated with the media content; for example, the generation address of the media content, the generation time of the media content, etc. The third information of the media content may include the type of the third information and the value of the third information (that is, the value of the type); for example, the generation location of the media content is: "Address: ** Province", then the type of the third information refers to "address", and the value of the third information refers to "** Province". The above-mentioned privacy protection processing based on the second information refers to the privacy protection processing of the value of the second information.

[0011] Exemplarily, the first aspect can also be described as follows: obtain media content, perform privacy protection processing based on second information in the third information of the media content, and obtain first information; the first information is recorded in the metadata of the media content, and the second information is at least part of the information in the third information of the media content.

[0012] Exemplarily, the present application may be applied to the generation (creation) stage of media assets, and may also be applied to the editing and processing stage of media assets, and the present application does not impose any limitation on this.

[0013] Exemplarily, the media content in the generation stage of the media asset can be generated by an electronic device. For example, if the media content is an image, it can be obtained by shooting with a camera or generated using an AI model or taking a screenshot, etc.

[0014] Exemplarily, the media content used for editing processing in the editing processing stage of the media asset can be obtained from other electronic devices.

[0015] Exemplarily, a media asset (MediaAsset) may include media content (Media Content) and metadata (Metadata) of the media content. The metadata of the media content is bound to the media content (or the metadata of the media content is associated with the media content). It should be noted that in some scenarios, media assets are also referred to as media files.

[0016] Exemplarily, the media content may include at least one of the following: images, videos, audios, graphics, or texts; it should be understood that the media content may also include other types of media content, which is not limited in the present application.

[0017] In one possible manner, it is possible to determine in advance (or in the process of generating metadata of the media content) which of the third information of the media content is public information and which is non-public information according to the first preset rule. The first preset rule may be set by the system of the electronic device or may be set by the user, and this application does not limit this.

[0018] For example, the first preset rule may be that hard binding of media content, generation method of media content and digital content identifier of media content are public information, and generation time of media content, generation location of media content, author name of media content and information of generation device of media content are non-public information.

[0019] In one possible manner, a privacy level can be set for the third information of the media content in advance (or in the process of generating metadata of the media content) according to a second preset rule; and the third information of the media content that is higher than the level threshold is determined as non-public information, and the third information of the media content that is not higher than the level threshold is determined as public information. The second preset rule can be set by the system of the electronic device or can be set by the user, and this application does not limit this.

[0020] For example, the second preset rule may be: the privacy level of the hard binding of the media content is L1, the privacy level of the media content generation method and the privacy level of the digital content identifier of the media content are L2, the privacy level of the media content generation time is L3, the privacy level of the media content generation location, the privacy level of the media content author name and the privacy level of the media content generation device information is L4; wherein, the privacy levels corresponding to L1 to L4 are from low to high; the level threshold is L2. In this way, the hard binding of the media content, the media content generation method and the digital content identifier of the media content are public information, and the media content generation time, media content generation location, media content author name and media content generation device information are non-public information.

[0021] It should be understood that the first preset rule and the second preset rule can be set specifically according to requirements, and the above examples do not constitute a limitation to the first preset rule and the second preset rule.

[0022] According to the first aspect, the privacy protection process includes at least one of an encryption process or a hard binding process.

[0023] Exemplarily, hard binding processing may refer to: using a one-way function to process the original information, the result obtained cannot be used to derive the original information, and it is also impossible to forge other original information that uses the one-way function to process to obtain the same result. Among them, hash calculation is a kind of hard binding processing.

[0024] Exemplarily, encryption processing may refer to processing original information using an encryption algorithm and a key.

[0025] It should be understood that privacy protection processing may also include other processing such as commitment processing (using a commitment algorithm to process the original information, which is a data confidentiality algorithm), etc., and this application does not impose any restrictions on this.

[0026] According to the first aspect, or any implementation of the first aspect above, there are multiple second information, and the first information is obtained by encrypting multiple second information using multiple keys; wherein one key is used to encrypt at least one second information.

[0027] Exemplarily, in this case, the first information is the ciphertext of the second information.

[0028] For example, there are X1 (X1 is a positive integer) pieces of second information, and there may be X2 (X2 is a positive integer) keys; wherein X1 is greater than or equal to X2. When X1 is greater than X2, one key can be used to encrypt multiple pieces of second information, that is, multiple pieces of second information in the X1 pieces of second information share one key. When X1 is equal to X2, one key can be used to encrypt one piece of second information, that is, different pieces of second information in the X1 pieces of second information correspond to different keys.

[0029] Exemplarily, the key used for encryption processing may be referred to as a first key; that is, the first information is obtained by encrypting multiple second information using multiple first keys.

[0030] According to the first aspect, or any implementation of the first aspect above, the multiple keys are obtained by processing at least a master key using a key derivation algorithm.

[0031] Exemplarily, a key derivation algorithm may be used to process at least the master key and the third information of the media content to obtain multiple keys. For example, a key derivation algorithm may be used to process at least the hard binding of the master key and the media content to obtain multiple keys.

[0032] It should be understood that multiple keys can also be obtained by processing the master key and other information using a key derivation algorithm, and this application does not impose any restrictions on this.

[0033] According to the first aspect, or any implementation of the first aspect above, the second information is multiple; the first information is obtained by hard binding processing based on multiple random numbers and multiple second information; wherein at least one random number is used for hard binding processing with at least one second information.

[0034] In one possible manner, at least one random number may be used to perform a hash calculation on a second information to obtain a first information. Specifically, at least one random number and a second information may be connected; then, a hash algorithm may be used to perform a hash calculation on the information obtained by connecting the at least one random number and the second information to obtain the first information.

[0035] In one possible manner, at least one random number may be used to perform a hash calculation on information obtained by combining multiple second information to obtain a first information. Specifically, at least one random number and multiple second information may be connected; then, a hash algorithm may be used to perform a hash calculation on the information obtained by connecting the at least one random number and multiple second information to obtain a first information.

[0036] Since the value of the second information with a relatively simple value can be reversely deduced by looking up a table after hard binding, the present application connects the value of the second information with a random number and performs hard binding processing, which can avoid the value of the second information from being reversely deduced and prevent the value of the second information from being leaked.

[0037] According to the first aspect, or any implementation of the first aspect, there are multiple second information, there are multiple first information, and one first information is obtained by performing privacy protection processing based on at least one second information.

[0038] Exemplarily, a second information may be processed for privacy protection to obtain a first information; or a combination of multiple second information may be processed for privacy protection to obtain a first information; this application does not impose any restrictions on this.

[0039] According to the first aspect, or any implementation of the first aspect above, the metadata of the media content further includes at least one of the following: a declaration or a digital signature, the declaration is determined based on at least the first information, and the digital signature is a signature of the declaration.

[0040] Exemplarily, the claim may include at least one of the following: a hard binding of the first information, a hard binding of the fourth information (information in the third information of the media content that has not been processed for privacy protection), a hard binding of the media content, or a hard binding determined based on the hard binding of the first information, the fourth information, and the media content. It should be understood that the claim may also include other information, which is not limited in this application.

[0041] Exemplarily, a digital signature algorithm may be used to sign the claim to obtain a digital signature of the claim (ClaimSignature). It should be understood that the present application does not limit the digital signature algorithm.

[0042] According to the first aspect, or any implementation of the first aspect, there are multiple second information, and the privacy levels of the multiple second information are the same or different.

[0043] According to the first aspect, or any implementation of the first aspect above, there are multiple second information, and the privacy level of the multiple second information is greater than the level threshold.

[0044] According to the first aspect, or any implementation of the first aspect above, the metadata of the media content further includes fourth information, and the fourth information is information in the third information of the media content that has not been processed for privacy protection.

[0045] Exemplarily, the privacy level of the fourth information is less than or equal to a level threshold; the privacy levels of the fourth information are the same or different.

[0046] According to the first aspect, or any implementation of the first aspect above, the method also includes: obtaining third information of the media content; performing privacy protection processing on second information in the third information of the media content to obtain first information; and at least encapsulating the first information to obtain encapsulated data.

[0047] Illustratively, the encapsulation data may include at least one of the following first encapsulation data, second encapsulation data, third encapsulation data, fourth encapsulation data, fourth encapsulation data, and sixth encapsulation data.

[0048] Exemplarily, when in the generation stage of a media asset, the first information and the fourth information can be encapsulated to obtain encapsulated data (hereinafter referred to as the first encapsulated data (or referred to as a mandatory assertion (MandatoryAssertion))). Then, the first encapsulated data, the declaration and the digital signature are encapsulated again to obtain the second encapsulated data (or referred to as a trust declaration (TrustDeclaration)). After that, the second encapsulated data is encapsulated to obtain the third encapsulated data (or referred to as a trust record (TrustRecord)). It should be noted that the second information (or the fourth information) used to generate the first information in the first encapsulated data may include at least one of the following: the generation time of the media content, the name of the author of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the hard binding of the media content, the copyright information of the media content, or the training identifier of the media content.

[0049] Exemplarily, when in the editing processing stage of a media asset, the first information and the fourth information may be encapsulated to obtain fourth encapsulated data (or assertion). It should be noted that the second information (or fourth information) used to generate the first information in the fourth encapsulated data may include at least one of the following: editing operation information of the media content, editing time of the media content, editing location of the media content, editing tool information of the media content, or information of the editing device of the media content. Next, the fourth encapsulated data, the declaration, and the digital signature are encapsulated to obtain the fifth encapsulated data (or trust manifests). Afterwards, the second encapsulated data (generated in the generation stage of the media asset) and the fifth encapsulated data may be encapsulated to obtain the sixth encapsulated data (or trust record).

[0050] Illustratively, in the process of generating metadata of media content, after performing privacy protection processing on the second information to obtain the first information, the second information may be replaced by the first information, and at least the first information may be encapsulated into the metadata of the media content.

[0051] According to the first aspect, or any implementation manner of the first aspect above, the third information of the media content includes at least one of the following: the generation time of the media content, the author name of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the hard binding of the media content, the copyright information of the media content, the training identifier of the media content, the editing operation information of the media content, the editing time of the media content, the editing location of the media content, the editing tool information of the media content, or the information of the editing device of the media content.

[0052] For example, the generation time of the media content, the name of the author of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the copyright information of the media content, and the training identifier of the media content can be referred to as the initial information of the media content. The initial information of the media content can refer to the information generated when the media content is generated; the initial information of the media content can also include other information, which is not limited by the present application.

[0053] Exemplarily, the editing operation information of the media content, the editing time of the media content, the editing location of the media content, the editing tool information of the media content, or the information of the editing device of the media content can be referred to as the editing information of the media content. The editing information of the media content can refer to the information related to the editing process of the media content; it should be understood that the editing information of the media content can also include other information, which is not limited in the present application.

[0054] It should be noted that the hard binding of media content is not the second information, that is, this application does not perform privacy protection processing on the hard binding of media content.

[0055] According to the first aspect, or any implementation of the first aspect above, the metadata of the media content also includes a privacy indicator; the privacy indicator is used to indicate whether the third information of the media content is public information or non-public information. In this way, corresponding usage / display restrictions can be made based on the privacy indicator.

[0056] Exemplarily, the privacy identifier can be set by the system of the electronic device or can be set by the user, and this application does not limit this. In the media asset creation stage, after the media content is obtained, a privacy identifier setting interface can be displayed, and the user can set the privacy identifier in the privacy identifier interface; in the media asset editing stage, after the edited media content is obtained, a privacy identifier setting interface can also be displayed, and the user can set the privacy identifier in the privacy identifier interface.

[0057] In one possible manner, the privacy identifier can be used to directly indicate whether the third information of the media content is public information or non-public information. Exemplarily, the privacy identifier can be represented by h (h is a positive integer) bits, where h can refer to the number of third information of the media content; that is, 1 bit in the privacy identifier corresponds to 1 third information of the media content. In one possible manner, for 1 bit in the privacy identifier, when the value of the bit is "1", it indicates that the third information of the corresponding media content is public information, and when the value of the bit is "0", it indicates that the third information of the corresponding media content is non-public information. In one possible manner, for 1 bit in the privacy identifier, when the value of the bit is "1", it indicates that the third information of the corresponding media content is non-public information, and when the value of the bit is "0", it indicates that the third information of the corresponding media content is public information; this application does not impose any restrictions on this.

[0058] In one possible way, the privacy identifier can be used to indirectly indicate whether the third information of the media content is public information or non-public information. Exemplarily, the privacy identifier can be used to indicate the privacy level of the third information of the media content, and the privacy level can be used to indicate whether the third information of the media content is non-public information or non-public information; specifically, the third information of the media content above the privacy level is public information, and the third information of the media content below or equal to the privacy level is non-public information; or, the third information of the media content above the privacy level is non-public information, and the third information of the media content below or equal to the privacy level is public information. Among them, the value of the privacy level indicated by the privacy identifier can be the level threshold involved above. Exemplarily, if the value of the privacy identifier is L2, and the privacy level of the first information is set according to the second preset rule, then when the first information of the media content above the privacy level is non-public information, and the first information of the media content below or equal to the privacy level is public information, the hard binding of the media content, the generation method of the media content and the digital content identifier of the media content are public information, and the generation time of the media content, the generation location of the media content, the author name of the media content and the information of the generation device of the media content are non-public information. When the first information of media content with a higher privacy level is public information, and the first information of media content with a lower privacy level or equal to the privacy level is non-public information, the hard binding of the media content, the generation method of the media content and the digital content identifier of the media content are non-public information, and the generation time of the media content, the generation location of the media content, the author name of the media content and the information of the generation device of the media content are public information.

[0059] According to the first aspect, or any implementation of the first aspect above, there are multiple second information, and the method also includes: using multiple keys to encrypt the multiple second information to obtain at least one first information; wherein one key is used to encrypt at least one second information.

[0060] According to the first aspect, or any implementation of the first aspect above, there are multiple second information, and the method also includes: performing hard binding processing based on multiple random numbers and multiple second information to obtain at least one first information; wherein, at least one random number is used for hard binding processing with at least one second information.

[0061] In a second aspect, an embodiment of the present application provides a method for displaying a media asset, which is applied to an electronic device with a display, the method comprising: obtaining an operation on a media asset, the media asset comprising media content and metadata of the media content, the metadata of the media content comprising first information and fourth information, the first information being obtained by performing privacy protection processing based on the second information, the second information being at least part of the third information of the media content, and the fourth information being information in the third information of the media content that has not been subjected to privacy protection processing; in response to the operation on the media asset, the fourth information is displayed. In this way, the fourth information (i.e., public information) in the metadata of the media content can be viewed for media assets generated by the electronic device or obtained from other electronic devices.

[0062] For example, the operation on the media asset may be a metadata viewing operation on the media asset.

[0063] According to the second aspect, in response to the operation on the media asset, the first information is also displayed. In this way, the user can know that the metadata of the media content contains the first information; when the second information needs to be obtained later, the electronic device that performs the privacy protection process can be requested for the second information.

[0064] According to the second aspect, or any implementation of the second aspect above, the first information includes information obtained by encrypting the second information using the first key, and when the electronic device holds the first key, in response to an operation on the media asset, the second information obtained by decrypting the first information using the first key is also displayed.

[0065] According to the second aspect, or any implementation of the second aspect above, the privacy protection processing includes at least one of encryption processing or hard binding processing.

[0066] According to the second aspect, or any implementation of the second aspect above, there are multiple first keys and multiple second information, and one first key is used to encrypt at least one second information; the multiple first keys are obtained by processing at least a master key using a key derivation algorithm.

[0067] Exemplarily, the type of the fourth information and the type of the second information may also be displayed in response to an operation on the media asset.

[0068] It should be understood that the present application does not limit which information in the metadata of the media content is displayed.

[0069] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0070] In a third aspect, an embodiment of the present application provides a metadata generation device, the device comprising:

[0071] An acquisition module, used to acquire media content;

[0072] The generation module is used to generate metadata of media content, where the metadata of the media content includes first information, where the first information is obtained by performing privacy protection processing based on second information, and the second information is at least part of the third information of the media content.

[0073] According to a third aspect, the privacy protection process includes at least one of an encryption process or a hard binding process.

[0074] According to the third aspect, or any implementation of the third aspect, there are multiple second information, and the first information is obtained by encrypting multiple second information using multiple keys; wherein one key is used to encrypt at least one second information.

[0075] According to the third aspect, or any implementation of the third aspect, the multiple keys are obtained by processing at least a master key using a key derivation algorithm.

[0076] According to the third aspect, or any implementation method of the third aspect above, the second information is multiple; the first information is obtained by hard binding processing based on multiple random numbers and multiple second information; wherein, at least one random number is used for hard binding processing with at least one second information.

[0077] According to the third aspect, or any implementation of the third aspect, there are multiple second information, there are multiple first information, and one first information is obtained by performing privacy protection processing based on at least one second information.

[0078] According to the third aspect, or any implementation of the third aspect, the metadata of the media content further includes at least one of the following: a declaration or a digital signature, the declaration is determined based on at least the first information, and the digital signature is a signature of the declaration.

[0079] According to the third aspect, or any implementation of the third aspect, there are multiple second information, and the privacy levels of the multiple second information are the same or different.

[0080] According to the third aspect, or any implementation of the third aspect, there are multiple second information, and the privacy level of the multiple second information is greater than the level threshold.

[0081] According to the third aspect, or any implementation of the third aspect, the metadata of the media content further includes fourth information, and the fourth information is information in the third information of the media content that has not been processed for privacy protection.

[0082] According to the third aspect, or any implementation of the third aspect above,

[0083] The acquisition module is also used to acquire third information of the media content;

[0084] The device also includes:

[0085] A privacy processing module, used for performing privacy protection processing on the second information in the third information of the media content to obtain the first information;

[0086] The encapsulation module is used to encapsulate at least the first information to obtain encapsulated data.

[0087] According to the third aspect, or any implementation manner of the third aspect above, the third information of the media content includes at least one of the following: generation time of the media content, name of the author of the media content, digital content identifier of the media content, generation location of the media content, information of the media content generation device, generation method of the media content, resolution of the media content, size of the media content, media type of the media content, hard binding of the media content, copyright information of the media content, training identifier of the media content, editing operation information of the media content, editing time of the media content, editing location of the media content, editing tool information of the media content, or information of the editing device of the media content.

[0088] According to the third aspect, or any implementation of the third aspect above, the metadata of the media content also includes a privacy identifier; the privacy identifier is used to indicate whether the third information of the media content is public information or non-public information.

[0089] According to the third aspect, or any implementation method of the third aspect above, the second information is multiple, and the privacy processing module is specifically used to use multiple keys to encrypt the multiple second information to obtain at least one first information; wherein, one key is used to encrypt at least one second information.

[0090] According to the third aspect, or any implementation method of the third aspect above, the second information is multiple, and the privacy processing module is specifically used to perform hard binding processing based on multiple random numbers and multiple second information to obtain at least one first information; wherein, at least one random number is used to perform hard binding processing with at least one second information.

[0091] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0092] In a fourth aspect, an embodiment of the present application provides a device for displaying media assets, the device comprising:

[0093] A receiving module, configured to receive an operation on a media asset, wherein the media asset includes media content and metadata of the media content, wherein the metadata of the media content includes first information and fourth information, wherein the first information is obtained by performing privacy protection processing based on the second information, the second information is at least part of the third information of the media content, and the fourth information is information in the third information of the media content that has not been subjected to privacy protection processing;

[0094] The display module is configured to display fourth information in response to an operation on the media asset.

[0095] According to a fourth aspect, the display module is configured to display first information in response to an operation on a media asset.

[0096] According to the fourth aspect, or any implementation of the third aspect, the first information includes information obtained by encrypting the second information using the first key,

[0097] The display module is used for displaying second information obtained by decrypting first information using the first key in response to an operation on a media asset when the electronic device holds the first key.

[0098] According to the fourth aspect, or any implementation of the fourth aspect above, the privacy protection processing includes at least one of encryption processing or hard binding processing.

[0099] According to the fourth aspect, or any implementation method of the fourth aspect, there are multiple first keys and multiple second information, and one first key is used to encrypt at least one second information; the multiple first keys are obtained by processing at least a master key using a key derivation algorithm.

[0100] The fourth aspect and any implementation of the fourth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0101] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the metadata generation method in the first aspect or any possible implementation of the first aspect.

[0102] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0103] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method for displaying media assets in the second aspect or any possible implementation of the second aspect.

[0104] The sixth aspect and any implementation of the sixth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0105] In the seventh aspect, an embodiment of the present application provides a chip, comprising one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send a signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the metadata generation method in the first aspect or any possible implementation of the first aspect.

[0106] The seventh aspect and any implementation of the seventh aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the seventh aspect and any implementation of the seventh aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0107] In an eighth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the method for displaying media assets in the second aspect or any possible implementation of the second aspect.

[0108] The eighth aspect and any implementation of the eighth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the eighth aspect and any implementation of the eighth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0109] In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the metadata generation method in the first aspect or any possible implementation of the first aspect.

[0110] The ninth aspect and any implementation of the ninth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the ninth aspect and any implementation of the ninth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0111] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the method for displaying media assets in the fourth aspect or any possible implementation of the fourth aspect.

[0112] The tenth aspect and any implementation of the tenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the tenth aspect and any implementation of the tenth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0113] In the eleventh aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer or the processor executes the metadata generation method in the first aspect or any possible implementation of the first aspect.

[0114] The eleventh aspect and any implementation of the eleventh aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the eleventh aspect and any implementation of the eleventh aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0115] In the twelfth aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer or the processor executes the encoding method in the second aspect or any possible implementation of the second aspect.

[0116] The twelfth aspect and any implementation of the twelfth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the twelfth aspect and any implementation of the twelfth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0117] Figure 1A is a schematic diagram of an application scenario shown as an example;

[0118] Figure 1B is a schematic diagram of an application scenario shown as an example;

[0119] Figure 1C is a schematic diagram of an application scenario shown as an example;

[0120] Figure 1D is a schematic diagram of an application scenario shown as an example;

[0121] Figure 1E is a schematic diagram of an application scenario shown as an example;

[0122] Figure 1F is a schematic diagram of an application scenario shown as an example;

[0123] Figure 1G is a schematic diagram of an application scenario shown as an example;

[0124] Figure 2A The schematic diagram of the metadata generation process is shown as an example;

[0125] Figure 2B The schematic diagram of the structure of the metadata of the media content is shown as an example;

[0126] Figure 2C The schematic diagram of the structure of the metadata of the media content is shown as an example;

[0127] Figure 2D The schematic diagram of the structure of the metadata of the media content is shown as an example;

[0128] Figure 3A is a schematic diagram of an exemplary encryption process;

[0129] Figure 3B is a schematic diagram of an exemplary encryption process;

[0130] Figure 3C is a schematic diagram of the structure of metadata shown as an example;

[0131] Figure 3D A schematic diagram of a hash calculation process is shown as an example;

[0132] Figure 3E is a schematic diagram of the structure of metadata shown as an example;

[0133] Figure 4A is a schematic diagram of the structure of metadata shown as an example;

[0134] Figure 4B is a schematic diagram of the structure of metadata shown as an example;

[0135] Figure 5A is a schematic diagram of the structure of metadata shown as an example;

[0136] Figure 5B is a schematic diagram of the structure of metadata shown as an example;

[0137] Figure 5C is a schematic diagram of the structure of metadata shown as an example;

[0138] Figure 6 is a schematic diagram of an exemplary metadata generation device;

[0139] Figure 7 A schematic diagram of a display device for exemplarily showing media assets;

[0140] Figure 8 Schematic diagram of the structure of the device shown as an example. DETAILED DESCRIPTION

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

[0142] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0143] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0144] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0145] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0146] Figure 1A The figure is a schematic diagram of an exemplary application scenario. Figure 1A Shown is a scenario of sharing media content.

[0147] Exemplarily, media content can also be called digital content. Media content can be part of a media asset, representing the actual content of the media. Digital content is content of different content types such as text, images, and sounds that exist in digital form. It can be stored on digital carriers such as CDs and hard disks, and transmitted through the Internet and other means. Digital content is the overall product or service that integrates images, text, audio and video content through digital technology. It is the product of the combination of digital media technology and cultural creativity. For example, media content can be the pixel data of an image, as well as any additional technical metadata (for example, color profiles or encoding parameters) required to understand or present the content.

[0148] For example, digital technology is a science and technology that is closely associated with electronic computers. It refers to the technology that uses certain equipment to convert various information, including pictures, text, sound, and images, into binary numbers "0" and "1" that can be recognized by electronic computers for calculation, processing, storage, transmission, dissemination, and restoration. Since computers are used to encode, compress, and decode information in the calculation and storage process, it is also called digital technology, computer digital technology, etc. Digital technology is also called digital control technology.

[0149] Exemplarily, media content and metadata of the media content can constitute a media asset. The metadata of the media content is bound to the media content (or the metadata of the media content is associated with the media content). It should be noted that in some scenarios, media assets are also called media files.

[0150] Exemplarily, metadata may include data for describing media content; for example, metadata may include information describing properties of media content. Exemplarily, metadata may be a trust record. Exemplarily, a TrustRecord of media content may be a type of metadata of the media content, which records relevant information about the generation and change (e.g., editing) of the media content and may be used for tracing the source of the media content.

[0151] Exemplarily, metadata of the media content may be generated based on the media content and third information of the media content.

[0152] Exemplarily, the third information of the media content may refer to information associated with the media content, and the third information of the media content may include but is not limited to: initial information of the media content, hard binding of the media content, and editing information of the media content. It should be understood that the third information of the media content may also include other information, which is not limited in this application.

[0153] Exemplarily, the initial information of the media content may refer to the information generated when the media content is generated. For example, the initial information of the media content may include, but is not limited to: the generation time of the media content, the name of the author of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the hard binding of the media content, the copyright information of the media content, the training identifier of the media content, etc.; it should be understood that the initial information of the media content may also include other information, which is not limited in this application.

[0154] Exemplarily, the editing information of media content may refer to information related to the editing process of the media content. For example, the editing information of media content may include, but is not limited to: the editing operation information of the media content, the editing time of the media content, the editing location of the media content, the editing tool information of the media content, or the information of the editing device of the media content. It should be understood that the editing information of the media content may also include other information, which is not limited in the present application.

[0155] Exemplarily, the hard binding of media content may refer to information obtained by hard binding the media content. Among them, the hard binding process may refer to: using a one-way function to process the original information, the result obtained cannot be used to derive the original information, and it is also impossible to forge other original information that uses a one-way function to process and obtain the same result. Among them, hash calculation is a kind of hard binding process, that is, the hard binding of media content can be a hash value obtained by hash calculation based on the media content (the hard binding of media content can also be called the hash value of the media content).

[0156] Reference Figure 1A For example, after user B generates an image using mobile phone B (e.g., by calling a camera to take a picture; or by using an AI model to generate the image; or by taking a screenshot; etc.), mobile phone B can obtain the third information of the image. Then, mobile phone B can generate metadata of the image based on the third information of the image and the generated image to obtain a media asset (this process corresponds to the creation stage of the media asset). Figure 1A In an embodiment of the present invention, the metadata of the image may include hard binding of the image and initial information of the image.

[0157] For example, some of the third information of the image may be private information to user B (that is, information that user B does not want to disclose, also known as non-public information); therefore, when generating metadata of the image, mobile phone B may perform privacy protection processing on the non-public information in the third information of the image. The non-public information after the privacy protection processing is not visible to other users.

[0158] For example, when user B wants to share the image with user A later, user B can send the image to user A's mobile phone A through the communication software in mobile phone B (wherein the metadata of the image is also sent to mobile phone A). For example, after mobile phone A receives the image (and also receives the metadata of the image), when user A wants to view the metadata of the image, he can perform a metadata viewing operation; thus, mobile phone A can display the metadata of the media content in response to the metadata viewing operation, such as Figure 1A shown.

[0159] It should be noted that Figure 1A The metadata of the image shown is a visual representation of the metadata of the image. It should be understood that the metadata of the image can also be represented in other visual representations, and the present application does not limit this.

[0160] Reference Figure 1AExemplarily, part of the information in the metadata of the image of Example 1 is ciphertext (or part of the information is the ciphertext of the non-public information in the third information of the media content; wherein the representation of the ciphertext may include multiple forms, for example, a string composed of at least one of numbers, letters or symbols), and part of the information is plaintext (or part of the information is the public information itself in the third information of the media content). For example, the author name of the image is ciphertext, the generation time of the image is ciphertext, the AIGC identifier (the generation method of the image) is ciphertext, the generation location of the image is ciphertext, and the name of the generation device of the image is ciphertext; the name of the image is plaintext, and the media type of the image is plaintext. Among them, the non-public information that is ciphertext is invisible.

[0161] Reference Figure 1A Exemplarily, part of the information in the metadata of the image of Example 2 is the hash value of the non-public information in the third information of the media content, and part of the information is the public information itself in the third information of the media content. For example, the author name of the image is a hash value (i.e., hash1), the generation time of the image is a hash value (i.e., hash2), the AIGC identifier is a hash value (i.e., hash3), the generation location of the image is a hash value (i.e., hash4), and the name of the image generation device is a hash value (i.e., hash5); the name of the image is plain text, and the media type of the image is plain text. Among them, the non-public information that is a hash value is invisible.

[0162] In this way, user A cannot obtain the non-public information of user B, which can prevent the privacy information of user B from being leaked, and ensure the security of the privacy information of user B to a certain extent.

[0163] Figure 1B The figure is a schematic diagram of an exemplary application scenario. Figure 1B Shown is a scenario of editing processing of media content.

[0164] For example, after user 1 sends generated image 1 to PC 2 via PC 1 , PC 2 may edit image 1 in response to an editing operation of user 2 to obtain image 2 .

[0165] It should be noted that when user 1 determines that there is no non-public information in the initial information of image 1, in the process of generating the metadata of image 1, the initial information of image 1 may not be processed for privacy protection; in this way, the initial information of image 1 in the metadata of image 1 is visible to other users, such as Figure 1B As shown; it should be noted that Figure 1B The metadata of the image 1 shown is a visual representation of the metadata of the image 1. It should be understood that the metadata of the image 1 can also be represented in other visual representations, and the present application does not limit this.

[0166] Reference Figure 1B , exemplarily, in the metadata of Image 1, the author name of the image, the generation time of the image, the AIGC identifier, the generation location of the image, the name of the device generating the image, the name of the image, and the media type of the image are all visible.

[0167] It should be understood that in Figure 1B In one possible embodiment, in the process of generating metadata of image 1, PC1 may perform privacy protection processing on non-public information in the initial information of image 1, so that the non-public information in the initial information of image 1 is not visible in the metadata of image 1, which can be referred to Figure 1A , I will not go into details here.

[0168] Exemplarily, after PC2 receives image 1, when user 2 needs to edit image 1, an editing operation (for example, adding a filter operation, a rotation operation, a scaling operation, etc.) can be performed; correspondingly, PC2 can edit media content 1 (such as adding a filter, rotating, scaling, etc.) in response to the editing operation of user 2 to obtain image 2.

[0169] For example, during the editing process of image 1 or after completing the editing process of image 1 to obtain image 2, PC2 can generate metadata of image 2 based on image 2, third information of image 2 (that is, editing information of image 2) and metadata of image 1.

[0170] For example, when there is private information for user 2 in the editing information of image 2, in the process of generating metadata of image 2, privacy protection processing can be performed on the non-public information in the editing information of image 2, so that the non-public information in the editing information of image 2 is invisible to other users, so as to avoid the leakage of user 2's private information, thereby ensuring the security of user 2's private information to a certain extent.

[0171] It should be noted that Figure 1B The metadata of the image 2 shown is a visual representation of the metadata of the image 2. It should be understood that the metadata of the image 2 may also be represented in other visual representations, and the present application does not impose any limitation on this.

[0172] Reference Figure 1B For example, PC2 performs privacy protection processing on the editing location of Image 2 and the name of the editor of Image 2; thus, the editing location of Image 2 and the name of the editor of Image 2 are not visible to other users.

[0173] For example, in some scenarios, users are required to provide metadata proof of media content to prove the authenticity of the media content; please refer to the following Figure 1C to Figure 1EThe scene described in .

[0174] It should be noted that Figure 1C to Figure 1E In the embodiment, the metadata of the media content includes information obtained by performing privacy protection processing on the non-public information in the third information of the media content; furthermore, the non-public information in the third information of the media content cannot be read or viewed from the metadata of the media content.

[0175] Figure 1C The figure is a schematic diagram of an exemplary application scenario. Figure 1C The figure shows a scenario in which a seller provides metadata proof to a data trading platform when placing a media asset on the data trading platform for sale.

[0176] S11, the mobile phone sends a media asset sale request to the server of the data trading platform.

[0177] Exemplarily, a seller may send a media asset sale request to a server of a data trading platform via a mobile phone; the media asset sale request may include information such as the media asset, the price of the media asset (or the price of the media content), and content description information of the media content (such as the subject and object of the image).

[0178] For example, Figure 1C In the embodiment, the information of the media content generation method, the author name of the media content, the media content generation time, the media content generation location and the media content generation device in the metadata of the media content is privacy protected.

[0179] S12, the server of the data trading platform reads metadata of the media content.

[0180] For example, before the client of the data trading platform releases the media content, the server of the data trading platform can determine whether the media content meets the selling conditions according to the metadata of the media content. The selling conditions can be set according to the requirements, and this application does not limit this; for example, the image is taken by a certain model of mobile phone; for example, the image is not AIGC; for example, the image is an original image, etc.

[0181] Exemplarily, the server of the data trading platform determines the third information to be read (hereinafter referred to as target information) according to the selling conditions, and then reads the target information from the metadata of the media content. When the target information cannot be read from the metadata of the media content, S13 can be executed.

[0182] like Figure 1C As shown, when the target information is the generation time of the media content and the generation location of the media content, S13 may be executed.

[0183] It should be noted that Figure 1CThe metadata of the media content shown is a visual representation of the metadata of the media content. It should be understood that the metadata of the media content can also be represented in other visual representations, and this application does not limit this.

[0184] S13, the server of the data trading platform sends a certification request to the mobile phone.

[0185] Illustratively, the attestation request may include an identification of the target information.

[0186] S14, the mobile phone sends a key to the server of the data trading platform.

[0187] Exemplarily, the mobile phone may send a key for encrypting the target information to a server of the data trading platform.

[0188] S15, the server of the data trading platform decrypts the encrypted information according to the key.

[0189] Exemplarily, the server of the data trading platform may use a key to decrypt the encrypted target information to obtain the target information (ie, the decryption result).

[0190] S16, when the server of the data trading platform determines that the media asset meets the selling conditions based on the decryption result, it sends a publishing request to the PC.

[0191] For example, when the server of the data trading platform determines that the decrypted target information meets the selling conditions, it can send a publishing request to the PC of the client of the data trading platform. The publishing request can include a sample of the media content, the price of the media content, and the content description information of the media content, so as to facilitate the display of the client of the data trading platform.

[0192] It should be understood that when the mobile phone and the data trading platform are in the same space (that is, when the seller and the management user of the data trading platform server are in the same space), the seller can use the key on the mobile phone to decrypt the encrypted target information, obtain the target information and display the target information; in this way, after the management user checks the target information through the seller's mobile phone, when it is determined that the target information meets the selling conditions, it instructs the server of the data trading platform to execute S16. It should be understood that this application does not limit whether the encrypted target information is decrypted by the electronic device that performs privacy protection processing on the target information or by other electronic devices.

[0193] S17, the PC publishes the media content on the client of the data trading platform.

[0194] Exemplarily, the PC publishing the media content on the client of the data trading platform may include the PC displaying a sample of the media content, a price of the media content, and content description information of the media content on a sales interface of the client of the data trading platform.

[0195] For example, when the buyer successfully pays, the server of the data trading platform can send the media assets to the buyer's terminal device. It should be noted that in the metadata of the media assets sent by the server of the data trading platform to the buyer's terminal device, the non-public information is still processed for privacy protection (for example, the non-public information is encrypted); in this way, the privacy information of the seller can be guaranteed.

[0196] Figure 1D Schematic diagram of an exemplary application scenario. Figure 1D The illustrated scenario is when a journalist sends a media asset to a news media publishing platform and provides metadata proof to the news media publishing platform.

[0197] S21, mobile phone 1 sends media assets to the server of the news media publishing platform.

[0198] Exemplarily, a journalist may send media assets to a server of a news media publishing platform via mobile phone 1 .

[0199] For example, Figure 1D In the embodiment, information on the author name of the media content, the generation time of the media content, the generation location of the media content, and the generation device of the media content in the metadata of the media content is processed for privacy protection.

[0200] S22, the server of the news media publishing platform reads metadata of the media content.

[0201] For example, before the client of the news media publishing platform publishes the media content, the server of the news media publishing platform can determine whether the media content meets the news publishing conditions according to the metadata of the media content. The news publishing conditions can be set according to the requirements, and this application does not limit this; for example, the shooting location of the image matches the news content, and for example, the shooting time of the image matches the news content.

[0202] Exemplarily, the server of the news media publishing platform determines the third information (hereinafter referred to as target information) of the media content to be read according to the news publishing conditions; then, the target information is read from the metadata of the media content. When the target information cannot be read from the metadata of the media content, S23 can be executed.

[0203] like Figure 1D As shown, when the target information is the generation time of the media content and the generation location of the media content, S23 may be executed.

[0204] It should be noted that Figure 1D The metadata of the media content shown is a visual representation of the metadata of the media content. It should be understood that the metadata of the media content can also be represented in other visual representations, and this application does not limit this.

[0205] S23, the server of the news media publishing platform sends a certification request to mobile phone 1.

[0206] Exemplarily, S23 may refer to the description of S13 above, which will not be repeated here.

[0207] S24, mobile phone 1 sends the generation time and location of the media content and the hash algorithm identifier to the server of the news media publishing platform.

[0208] For example, in Figure 1D In the media content, the metadata includes the hash value of the target information; therefore, the target information and the corresponding hash algorithm identifier can be sent to the server of the news media publishing platform so that the news media publishing platform can determine the authenticity of the target information and whether it meets the news publishing conditions.

[0209] exist Figure 1D In the example, the target information may refer to the generation time of the media content and the generation location of the media content.

[0210] S25, the server of the news media publishing platform uses a hash algorithm to perform hash calculations on the generation time and generation location of the media content respectively.

[0211] S26, when the server of the news media publishing platform determines that the hash value of the generation time of the media content is the same as hash2, the hash value of the generation location of the media content is the same as hash3, and the generation time and generation location of the media content meet the news publishing conditions, the news is sent to mobile phone 2.

[0212] Exemplarily, when the hash value of the media content generation time determined by the hash calculation is the same as hash2, and the hash value of the media content generation location is the same as hash3, it is determined that the media content generation time and generation location are true; then, it can be determined whether the media content generation time and generation location meet the news release conditions. When the media content generation time and generation location meet the news release conditions, news can be generated and sent to mobile phone 2 on which the client of the news media release platform is installed.

[0213] It should be understood that when mobile phone 1 and the news media publishing platform are in the same space (that is, when the reporter and the management user of the server of the news media publishing platform are in the same space), the reporter can use the hash algorithm on mobile phone 1 to perform hash calculation on the target information, obtain the hash value of the target information and display the hash value of the target information; in this way, after the management user checks the hash value of the target information through the reporter's mobile phone 1, it is determined that the hash value of the target information determined by the hash calculation of mobile phone 1 is the same as the hash value of the target information in the metadata of the media asset sent by mobile phone 1. If it is determined that the target information meets the news release conditions, the server of the news media publishing platform is instructed to execute S26. It should be understood that this application does not limit whether the target information for hash calculation is hashed by an electronic device that performs privacy protection processing on the target information, or by other electronic devices.

[0214] For example, news may include samples of media assets or media content. It should be noted that the non-public information in the metadata of the media assets contained in the news is still processed for privacy protection (for example, the non-public information is its hash value); in this way, subsequent users of the news media publishing platform cannot obtain the journalist's private information after downloading the media content and the metadata of the media content in the client of the news media publishing platform.

[0215] S27, mobile phone 2 displays the news on the client of the news media publishing platform.

[0216] Figure 1E Schematic diagram of an exemplary application scenario. Figure 1E A scenario showing infringement determination of media content.

[0217] S31, PC1 sends media asset 1 to the server of the social software.

[0218] S32, PC 2 sends media asset 2 to the server of the social software.

[0219] S33, when the server of the social software determines that the media content 1 and the media content 2 are identical / similar, it sends a certification request to PC1 and PC2 respectively.

[0220] S34, PC1 sends a key to the server of the social software.

[0221] S35, PC2 sends the key to the server of the social software.

[0222] S36 , the server of the social software decrypts the encrypted information in the metadata of the media content 1 , and decrypts the encrypted information in the metadata of the media content 2 .

[0223] For example, S31 to S36 can refer to the above Figure 1C The description in will not be repeated here.

[0224] S37, the server of the social software determines whether the media content 1 or the media content 2 is infringing based on the decryption result.

[0225] For example, assuming that the third information of media content 1 contained in the metadata of media content 1 is the same as the third information of media content 2 contained in the metadata of media content 2, if the author name of media content 1 and the user name of PC1 are the same, and the author name of media content 2 and the user name of PC2 are different, then media content 2 is determined to be infringing.

[0226] For another example, assuming that the third information of media content 1 contained in the metadata of media content 1 and the third information of media content 2 contained in the metadata of media content 2 are different, it is determined that neither media content 1 nor media content 2 is infringing.

[0227] It should be noted that Figure 1E The metadata of the media content shown (including the metadata of media content 1 and the metadata of media content 2) is a visual representation of the metadata of the media content. It should be understood that the metadata of the media content can also be represented in other visual representations, and this application does not limit this.

[0228] Figure 1F and Figure 1G The figure is a schematic diagram of an exemplary application scenario. Figure 1F and Figure 1G Shown is a display scenario of a media asset.

[0229] Reference Figure 1F (1), illustratively, after the mobile phone receives an image (or generates an image) from other electronic devices and stores it locally, when the user wants to view the image or the metadata of the image, the album interface 11 can be opened. The album interface 11 may include one or more controls, including but not limited to thumbnails of images, thumbnails of videos, time, etc., which are not limited in this application. The user can click on the image he wants to view in the album interface 11, and the mobile phone can display the image in the display interface 12 in response to the user's operation behavior, such as Figure 1F (2) The display interface 12 may include one or more controls, including but not limited to images, metadata viewing options 13, etc., which are not limited in this application.

[0230] Continue to refer to Figure 1F (2) For example, when the user wants to view the metadata of the image, the user can click on the metadata view option 13, and the mobile phone displays the metadata of the image in response to the user's operation, such as Figure 1G shown.

[0231] Assume that the metadata of the image includes information in the third information of the image that has not been processed for privacy protection (hereinafter referred to as fourth information), and information (hereinafter referred to as first information) obtained by performing privacy protection processing based on at least part of the information in the third information of the image (wherein the information that has been processed for privacy protection is hereinafter referred to as second information); then Figure 1G The metadata of the image displayed in the video may include multiple situations; among them, the fourth information may include the name of the image and the type of media content, and the second information may include the author name of the image, the time when the image was generated, the way the image was generated, the location where the image was generated, and the information of the device that generated the image.

[0232] In one possible manner, the value of the fourth information, the type of the fourth information, the ciphertext obtained by encrypting the second information, and the type of the second information are displayed. Figure 1G (1) For example, the name of the image (which can be understood as a type of the fourth information) and the value of the name of the image (i.e., sunset at the seaside), the type of media content (which can be understood as a type of the fourth information) and the value of the type of media content (i.e., image) are displayed; and the author name of the image (which can be understood as a type of the second information) and the ciphertext of the value of the author name of the image (i.e., 9981h6hd71s9), the generation time of the image (which can be understood as a type of the second information) and the ciphertext of the value of the generation time of the image (i.e., 001010132jdh), the generation method of the image (which can be understood as a type of the second information) and the ciphertext of the value of the generation method of the image (i.e., 098suyal01076), the generation location of the image (which can be understood as a type of the second information) and the ciphertext of the value of the generation location of the image (i.e., hoxjy90631k9), and the information of the generation device of the image (which can be understood as a type of the second information) and the ciphertext of the value of the information of the generation device of the image (i.e., mihxiy987hya) are displayed.

[0233] In one possible manner, the value of the fourth information, the type of the fourth information, the hash value obtained by performing a hash calculation on the second information, and the type of the second information are displayed. Figure 1G(2) Exemplarily, the name of the image (which can be understood as a type of the fourth information) and the value of the image name (i.e., sunset at the seaside), the type of media content (which can be understood as a type of the fourth information) and the value of the type of media content (i.e., image) are displayed; and the author name of the image (which can be understood as a type of the second information) and the hash value of the value of the author name of the image (i.e., hash1) are displayed, the generation time of the image (which can be understood as a type of the second information) and the hash value of the value of the generation time of the image (i.e., hash2) are displayed, the generation method of the image (which can be understood as a type of the second information) and the hash value of the value of the generation method of the image (i.e., hash3) are displayed, the generation location of the image (which can be understood as a type of the second information) and the hash value of the value of the generation location of the image (i.e., hash4) are displayed, and the information of the device that generated the image (which can be understood as a type of the second information) and the hash value of the value of the information of the device that generated the image (i.e., hash5) are displayed.

[0234] In one possible manner, the value of the fourth information, the type of the fourth information and the type of the second information are displayed. Figure 1G (3) Exemplarily, the name of the image (which can be understood as a type of the fourth information) and the value of the image name (i.e., seaside sunset), the type of media content (which can be understood as a type of the fourth information) and the value of the type of media content (i.e., image) are displayed; and the author name of the image (which can be understood as a type of the second information), the time when the image was generated (which can be understood as a type of the second information), the way the image was generated (which can be understood as a type of the second information), the location when the image was generated (which can be understood as a type of the second information) and the information of the device that generated the image (which can be understood as a type of the second information) are displayed.

[0235] In one possible manner, only the value of the fourth information and the type of the fourth information are displayed, and the type of the second information and the information obtained by performing privacy protection processing on the second information are not displayed. Figure 1G (4) For example, the name of the image (which can be understood as a type of the fourth information) and the value of the image name (i.e., sunset at the seaside), the type of media content (which can be understood as a type of the fourth information) and the value of the type of media content (i.e., image) are displayed.

[0236] The following describes the process of generating metadata for media content.

[0237] Figure 2A The figure is a schematic diagram of the metadata generation process shown as an example.

[0238] S201, acquiring media content.

[0239] Exemplarily, the media content may include at least one of the following: images, videos, audios, graphics, or texts; it should be understood that the media content may also include other types of media content, which is not limited in the present application.

[0240] Exemplarily, the present application may be applied to the generation (creation) stage of media assets, and may also be applied to the editing and processing stage of media assets, and the present application does not impose any limitation on this.

[0241] Exemplarily, the media content in the generation stage of the media asset can be generated by an electronic device. For example, if the media content is an image, it can be obtained by shooting with a camera or generated using an AI model or taking a screenshot, etc.

[0242] Exemplarily, the media content used for editing in the editing process stage of the media asset can be obtained from other electronic devices.

[0243] S202: Generate metadata of the media content, where the metadata of the media content includes first information, and the first information is obtained by performing privacy protection processing based on at least part of third information of the media content.

[0244] Exemplarily, third information of the media content may also be obtained, and privacy protection processing may be performed on at least part of the third information of the media content to obtain first information; wherein at least part of the third information of the media content is non-public information. For the convenience of subsequent description, at least part of the third information of the media content that is subjected to privacy protection processing may be referred to as second information.

[0245] Exemplarily, in the generation phase of the media asset, the third information of the acquired media content may include a hard binding of the initial information and the generated media content.

[0246] Exemplarily, in the editing process stage of the media asset, the acquired third information of the media content may include a hard binding between the editing information and the edited media content.

[0247] In one possible manner, it is possible to determine in advance (or in the process of generating metadata of the media content) which of the third information of the media content is public information and which is non-public information according to the first preset rule. The first preset rule may be set by the system of the electronic device or may be set by the user, and this application does not limit this.

[0248] For example, the first preset rule may be that hard binding of media content, generation method of media content and digital content identifier of media content are public information, and generation time of media content, generation location of media content, author name of media content and information of generation device of media content are non-public information.

[0249] In one possible manner, a privacy level can be set for the third information of the media content in advance (or in the process of generating metadata of the media content) according to a second preset rule; and the third information of the media content above the level threshold is determined as non-public information, and the third information of the media content not above the level threshold is determined as public information; or, the third information of the media content above the level threshold is determined as public information, and the third information of the media content not above the level threshold is determined as non-public information (this application takes the example of determining the third information of the media content above the level threshold as non-public information and determining the third information of the media content not above the level threshold as public information) as an example. The second preset rule can be set by the system of the electronic device or by a user, and this application does not limit this.

[0250] For example, the second preset rule may be: the privacy level of the hard binding of the media content is L1, the privacy level of the media content generation method and the privacy level of the digital content identifier of the media content are L2, the privacy level of the media content generation time is L3, the privacy level of the media content generation location, the privacy level of the media content author name and the privacy level of the media content generation device information is L4; wherein, the privacy levels corresponding to L1 to L4 are from low to high; the level threshold is L2. In this way, the hard binding of the media content, the media content generation method and the digital content identifier of the media content are public information, and the media content generation time, media content generation location, media content author name and media content generation device information are non-public information.

[0251] It should be understood that the first preset rule and the second preset rule can be set specifically according to requirements, and the above examples do not constitute a limitation to the first preset rule and the second preset rule.

[0252] Exemplarily, when there are multiple second information, there may also be multiple corresponding first information. Among them, one second information may be processed for privacy protection to obtain one first information; or the information obtained by combining multiple second information may be processed for privacy protection to obtain one first information; this application does not limit this.

[0253] Exemplarily, the privacy protection process may include at least one of encryption process or hard binding process. Exemplarily, the encryption process may refer to processing the original information (the original information in this application refers to the second information) using an encryption algorithm and a key to obtain encrypted information.

[0254] It should be understood that privacy protection processing may also include other processing such as commitment processing (using a commitment algorithm to process the original information, which is a data confidentiality algorithm), etc., and this application does not impose any restrictions on this.

[0255] Exemplarily, metadata of the media content may be generated based on the first information. For example, the first information may be directly used as a part of the metadata of the media content.

[0256] Figure 2B The schematic diagram is a structural diagram of metadata of media content shown as an example.

[0257] Exemplarily, the metadata of the media content may include a plurality of first information. Figure 2B For example, the metadata of the media content may include the author name of the privacy-protected media content (Creator(Privacy)), the generation location of the privacy-protected media content (Location(Privacy)), and the generation time of the privacy-protected media content (Time(Privacy)).

[0258] It should be noted that the present application does not limit the location of each first information in the metadata of the media content.

[0259] Exemplarily, the metadata of the media content may further include fourth information, wherein the fourth information may refer to information in the third information of the media content that has not been processed for privacy protection, and the fourth information may be public information.

[0260] Figure 2C The schematic diagram is a structural diagram of metadata of media content shown as an example.

[0261] Exemplarily, the metadata of the media content may include a plurality of first information and a plurality of fourth information. Figure 2C Exemplarily, the metadata of the media content includes the author name of the privacy-protected media content (Creator(Privacy)), the generation location of the privacy-protected media content (Location(Privacy)), the generation time of the privacy-protected media content (Time(Privacy)), the hash value of the media content (MediaHash) and the digital content identifier of the media content (Content ID).

[0262] It should be noted that the present application does not limit the position of each first information and the position of multiple fourth information in the metadata of the media content.

[0263] Exemplarily, the metadata of the media content may further include at least one of the following: a statement or a digital signature, the statement is determined based on at least the first information, and the digital signature is a signature of the statement.

[0264] Exemplarily, the claim may include at least one of the following: a hard binding of the first information, a hard binding of the fourth information, a hard binding of the media content, or a hard binding determined based on the hard binding of the first information, the fourth information, and the media content. It should be understood that the claim may also include other information, which is not limited in this application.

[0265] Exemplarily, a digital signature algorithm may be used to sign the statement to obtain a digital signature of the statement. It should be understood that the present application does not limit the digital signature algorithm.

[0266] Figure 2D The schematic diagram is a structural diagram of metadata of media content shown as an example.

[0267] Exemplarily, the metadata of the media content may include a plurality of first information, a plurality of fourth information, a statement, and a digital signature. Figure 2D Exemplarily, the metadata of the media content includes the author name of the media content processed with privacy protection (Creator(Privacy)), the generation location of the media content processed with privacy protection (Location(Privacy)), the generation time of the media content processed with privacy protection (Time(Privacy)), the hash value of the media content (MediaHash), the digital content identifier of the media content (Content ID), the claim (Claim) and the digital signature (ClaimSignature).

[0268] It should be noted that the present application does not limit the position of each first information, the position of multiple fourth information, the position of the declaration and the position of the signature in the metadata of the media content.

[0269] The following is an explanation of the privacy protection process.

[0270] In one possible manner, the privacy protection process is an encryption process. Correspondingly, the first information may be a ciphertext, that is, the first information is the ciphertext of the second information.

[0271] In one possible manner, a key may be used to encrypt a second information to obtain a first information.

[0272] In one possible manner, a key may be used to encrypt information obtained by combining multiple pieces of second information to obtain a first piece of information.

[0273] Exemplarily, the encryption keys for different second information may be the same or different, and this application does not impose any limitation on this.

[0274] Exemplarily, the encryption keys for the second information with different privacy levels may be the same or different, and this application does not impose any limitation on this.

[0275] Exemplarily, the encryption keys for the second information with the same privacy level may be the same or different, and this application does not impose any limitation on this.

[0276] Figure 3A The figure is a schematic diagram showing an exemplary encryption process.

[0277] exist Figure 3A In the example, the three second information are x, y and z; the three keys are K1, K2 and K3. K1 can be used to encrypt x to obtain the first information Enc(x, K1); K2 can be used to encrypt y to obtain the first information Enc(y, K2); K3 can be used to encrypt z to obtain the first information Enc(z, K3).

[0278] It should be understood that Figure 3A This is only an example of the present application, and the present application does not limit which key is used to encrypt which correlation in the second information.

[0279] In one possible manner, when there are multiple keys for encrypting multiple second information, the multiple keys can be obtained by processing at least a master key using a key derivation algorithm. Exemplarily, the multiple keys can be obtained by processing at least a master key and part of the third information of the media content using a key derivation algorithm. It should be noted that the intersection of the information used to generate the key in the third information and the second information may be empty or not empty, and this application does not impose any restrictions on this. For example, the information used to generate the key in the third information may be a hard binding of the media content.

[0280] Figure 3B The figure is a schematic diagram showing an exemplary encryption process.

[0281] exist Figure 3B In the example, the three second information are: x, y and z. First, a master key (MasterKey) K can be generated; then, the hard binding between the master key and the media content is processed using a key derivation algorithm to obtain three subkeys: K1, K2 and K3. K1 can be used to encrypt x to obtain the first information Enc(x, K1); K2 can be used to encrypt y to obtain the first information Enc(y, K2); K3 can be used to encrypt z to obtain the first information Enc(z, K3).

[0282] It should be understood that Figure 3BThis is only an example of the present application, and the present application does not limit which key is used to encrypt which correlation in the second information.

[0283] It should be understood that when there are multiple keys used to encrypt multiple second information, these multiple keys can also be generated in other ways, such as randomly generated, and the present application does not limit the method of generating multiple keys.

[0284] Figure 3C The schematic diagram of the structure of metadata is shown as an example.

[0285] Reference Figure 3C Exemplarily, the metadata of the media content may include the generation location of the encrypted media content (Enc(Location, K1)), the generation time of the encrypted media content (Enc(Time, K2)), the author name of the encrypted media content (Enc(Creator, K1)), the hash value of the media content (Media Hash) and the digital content identifier (Content ID) of the media content.

[0286] In one possible manner, the privacy protection process is a hard binding process. This application takes the hard binding process as a hash calculation as an example for explanation, and correspondingly, the first information is the hash value of the second information.

[0287] In one possible manner, at least one random number may be used to perform a hash calculation on a second information to obtain a first information. Specifically, at least one random number and a second information may be connected; then, a hash algorithm may be used to perform a hash calculation on the information obtained by connecting the at least one random number and the second information to obtain the first information.

[0288] In one possible manner, at least one random number may be used to perform a hash calculation on information obtained by combining multiple second information to obtain a first information. Specifically, at least one random number and multiple second information may be connected; then, a hash algorithm may be used to perform a hash calculation on the information obtained by connecting the at least one random number and multiple second information to obtain a first information.

[0289] Exemplarily, the random numbers used for hash calculations on different second information may be the same or different, and this application does not impose any limitation on this.

[0290] Exemplarily, the random numbers used for hash calculation for the second information with different privacy levels may be the same or different, and this application does not impose any limitation on this.

[0291] Exemplarily, the random numbers used for hash calculation for the second information with the same privacy level may be the same or different, and this application does not impose any limitation on this.

[0292] Figure 3D The figure is a schematic diagram showing an exemplary hash calculation process.

[0293] exist Figure 3D In the example, the three second information are x, y and z; the three randomly generated random numbers are r, s and t. A hash algorithm can be used to perform hash calculation on the connected r and x to obtain the first information hash(x||r); a hash algorithm can be used to perform hash calculation on the connected s and y to obtain the first information hash(y||s); a hash algorithm can be used to perform hash calculation on the connected t and z to obtain the first information hash(z||t).

[0294] It should be understood that Figure 3D This is only an example of the present application, and the present application does not limit which random number is used and which one is related to the second information for hash calculation.

[0295] Figure 3E The schematic diagram of the structure of metadata is shown as an example.

[0296] Reference Figure 3E Exemplarily, the metadata of the media content may include a hash value of the location where the media content was generated (hash(Location||r)), a hash value of the time when the media content was generated (hash(Time||s)), a hash value of the author's name of the media content (hash(Creator||t)), a hash value of the media content (MediaHash), and a digital content identifier (Content ID) of the media content.

[0297] It should be noted that there is no need to generate a random number. In one possible manner, only one second information may be hashed to obtain one first information. In one possible manner, only multiple second information may be hashed to obtain one first information.

[0298] Exemplarily, when in the generation stage of a media asset, the first information and the fourth information can be encapsulated to obtain encapsulated data (hereinafter referred to as the first encapsulated data (or referred to as a mandatory assertion (MandatoryAssertion))). Then, the first encapsulated data, the declaration and the digital signature are encapsulated again to obtain the second encapsulated data (or referred to as a trust declaration (TrustDeclaration)). After that, the second encapsulated data is encapsulated to obtain the third encapsulated data (or referred to as a trust record (TrustRecord)). It should be noted that the second information (or the fourth information) used to generate the first information in the first encapsulated data may include at least one of the following: the generation time of the media content, the name of the author of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the hard binding of the media content, the copyright information of the media content, or the training identifier of the media content.

[0299] Figure 4A The schematic diagram of the structure of metadata is shown as an example.

[0300] Reference Figure 4A Exemplarily, the generation location (Enc(Location, K1)) of the encrypted media content, the generation time (Enc(Time, K2)) of the encrypted media content, the author name (Enc(Creator, K1)) of the encrypted media content, the hash value (Media Hash) of the media content, and the digital content identifier (ContentID) of the media content are encapsulated into Mandatory Assertion; Mandatory Assertion, declaration (Declaration Claim) and digital signature (Claim Signature) are encapsulated into Trust Declaration; Trust Declaration is encapsulated into Trust Record; Trust Record is encapsulated into metadata of the media content.

[0301] It should be noted that in Figure 4A The dashed box in the middle represents optional information, that is, the declaration (DeclarationClaim) and digital signature (Claim Signature) are optional information.

[0302] Exemplarily, when in the editing processing stage of a media asset, the first information and the fourth information may be encapsulated to obtain fourth encapsulated data (or assertion). It should be noted that the second information (or fourth information) used to generate the first information in the fourth encapsulated data may include at least one of the following: editing operation information of the media content, editing time of the media content, editing location of the media content, editing tool information of the media content, or information of the editing device of the media content. Next, the fourth encapsulated data, the declaration, and the digital signature are encapsulated to obtain the fifth encapsulated data (or trust manifests). Afterwards, the second encapsulated data (generated in the generation stage of the media asset) and the fifth encapsulated data may be encapsulated to obtain the sixth encapsulated data (or trust record).

[0303] Figure 4B The schematic diagram of the structure of metadata is shown as an example.

[0304] Reference Figure 4B For example, the encrypted editing time of the media content (Enc(EditTime, K5)), the encrypted editing location of the media content (Enc(EditLocation, K4)), the encrypted editor name of the media content (Enc(Editor, K6)), the hash value of the edited media content (Media Hash 1), the information of the media content editing device (Device) and the media content editing tool information (Tool) are encapsulated into Assertion; Assertion, claim and digital signature are encapsulated into TrustManifests; TrustManifests and TrustDeclaration are encapsulated into Trust Record. The description of TrustDeclaration can refer to Figure 4A , I will not go into details here.

[0305] It should be noted that in Figure 4B The dashed box in the middle represents optional information, that is, the declaration (Declaration Claim or Claim) and the digital signature (Claim Signature) are optional information.

[0306] Exemplarily, the metadata of the media content also includes a privacy flag; the privacy flag is used to indicate whether the third information of the media content is public information or non-public information.

[0307] Exemplarily, the privacy identifier can be set by the system of the electronic device or can be set by the user, and this application does not limit this. In the media asset creation stage, after the media content is obtained, a privacy identifier setting interface can be displayed, and the user can set the privacy identifier in the privacy identifier interface; in the media asset editing stage, after the edited media content is obtained, a privacy identifier setting interface can also be displayed, and the user can set the privacy identifier in the privacy identifier interface.

[0308] In one possible manner, the privacy identifier can be used to directly indicate whether the third information of the media content is public information or non-public information. Exemplarily, the privacy identifier can be represented by h (h is a positive integer) bits, where h can refer to the number of third information of the media content; that is, 1 bit in the privacy identifier corresponds to 1 third information of the media content. In one possible manner, for 1 bit in the privacy identifier, when the value of the bit is "1", it indicates that the third information of the corresponding media content is public information, and when the value of the bit is "0", it indicates that the third information of the corresponding media content is non-public information. In one possible manner, for 1 bit in the privacy identifier, when the value of the bit is "1", it indicates that the third information of the corresponding media content is non-public information, and when the value of the bit is "0", it indicates that the third information of the corresponding media content is public information; this application does not impose any restrictions on this.

[0309] Exemplarily, the privacy indicator may be specifically used to indicate that the second information is non-public information, and to indicate that the fourth information is public information.

[0310] Figure 5A The schematic diagram of the structure of metadata is shown as an example.

[0311] exist Figure 5A, the initial information of the media content is 5, then the privacy flag (Privacy Flag) in MandatoryAssertion can be represented by 5 bits such as "00011". Among them, the first bit of the privacy identifier from left to right is used to indicate whether the generation location Enc (Location, K1) of the media content is non-public information or public information, and the first bit is "0", that is, indicating that the generation location Enc (Location, K1) of the media content is non-public information; the second bit from left to right is used to indicate whether the generation time Enc (Time, K2) of the media content is non-public information or public information, and the second bit is "0", that is, indicating that the generation time Enc (Time, K2) of the media content is non-public information; the third bit from left to right is used to indicate whether the author name Enc (Creator, K3) of the media content is non-public information or public information, and the third bit is "0", that is, indicating that the author name Enc (Creator, K3) of the media content is non-public information; the fourth bit from left to right is used to indicate whether the hash value (Media Hash 0) of the media content is non-public information or public information, and the fourth bit is "1", that is, indicating that the hash value (MediaHash 0) is public information; the fifth bit from left to right is used to indicate whether the digital content identifier (Content ID) of the media content is non-public information or public information, and the fifth bit is "1", indicating that the digital content identifier (Content ID) of the media content is public information.

[0312] exist Figure 5A, the editing information of the media content is 5, then the privacy flag (Privacy Flag) in the Assertion can be represented by 5 bits such as "00101". Among them, the first bit of the privacy flag from left to right is used to indicate whether the editing location Enc (EditLocation, K4) of the media content is non-public information or public information, and the first bit is "0", which indicates that the editing location Enc (Edit Location, K4) of the media content is non-public information; the second bit from left to right is used to indicate whether the editing time Enc (EditTime, K5) of the media content is non-public information or public information, and the second bit is "0", which indicates that the editing time Enc (Edit Time, K5) of the media content is non-public information or public information. Time, K5) is non-public information; the third bit from left to right is used to indicate whether the name of the editing device (Device) of the media content is non-public information or public information, and the third bit is "1", which indicates that the name of the editing device (Device) of the media content is public information; the fourth bit from left to right is used to indicate whether the editor name Enc (Editor, K6) of the media content is non-public information or public information, and the fourth bit is "0", which indicates that the editor name Enc (Editor, K6) of the media content is non-public information; the fifth bit from left to right is used to indicate whether the hash value (Media Hash 1) of the media content is non-public information or public information, and the fifth bit is "1", which indicates that the hash value (MediaHash 1) of the media content is public information.

[0313] It should be noted that in Figure 5A The dotted box in the middle represents optional information, that is, the privacy flag (PrivacyFlag), declaration (Declaration Claim or Claim) and digital signature (Claim Signature) are optional information.

[0314] In one possible manner, a privacy identifier can be used to indirectly indicate whether the third information of the media content is public information or non-public information. Exemplarily, the privacy identifier can be used to indicate the privacy level of the third information of the media content, and the privacy level can be used to indicate whether the third information of the media content is non-public information or non-public information; specifically, the third information of the media content above the privacy level is public information, and the third information of the media content below or equal to the privacy level is non-public information; or, the third information of the media content above the privacy level is non-public information, and the third information of the media content below or equal to the privacy level is public information. The value of the privacy level indicated by the privacy identifier can be the level threshold involved above.

[0315] Exemplarily, the third information of the media content may be set to a level in advance or in real time, for example, the privacy level of the hash value of the media content is L1, the privacy level of the media content generation method and the privacy level of the media content digital content identifier are L2, the privacy level of the media content generation time is L3, the privacy level of the media content generation location, the privacy level of the media content author name and the privacy level of the media content generation device information is L4; wherein, the privacy levels corresponding to L1 to L4 are from low to high. Exemplarily, if the value of the privacy identifier is L2, then when the first information of the media content above the privacy level is non-public information, and the first information of the media content below or equal to the privacy level is public information, the hard binding of the media content, the media content generation method and the media content digital content identifier are public information, and the media content generation time, the media content generation location, the media content author name and the media content generation device information are non-public information. When the first information of the media content with a higher privacy level is public information, and the first information of the media content with a lower or equal privacy level is non-public information, the hard binding of the media content, the generation method of the media content, and the digital content identifier of the media content are non-public information, and the generation time of the media content, the generation location of the media content, the author name of the media content, and the information of the generation device of the media content are public information. (This application takes the third information of the media content with a higher privacy level as non-public information and the third information of the media content with a lower or equal privacy level as public information as an example for explanation)

[0316] Figure 5B The schematic diagram of the structure of metadata is shown as an example.

[0317] exist Figure 5B , the privacy flag (Privacy Flag) in MandatoryAssertion is L2, the privacy level of the hash value of the media content (Media Hash0) is L1, the privacy level of the digital content identifier (Content ID) of the media content is L2, the privacy level of the generation time Enc (Time, K2) of the media content is L3, the privacy level of the generation location Enc (Location, K1) of the media content and the privacy level of the author name Enc (Creator, K3) of the media content are L4.

[0318] exist Figure 5BIn the Assertion, the privacy identifier is L3, the privacy level of the hash value of the media content (Media Hash 1) is L1, the privacy level of the name of the media content editing device (Device) is L3, the privacy level of the media content editing time Enc (EditTime, K5) is L4, the privacy level of the media content editing location Enc (EditLocation, K4) and the privacy level of the media content editor name Enc (Editor, K6) are L5.

[0319] It should be noted that in Figure 5B The dotted box in the middle represents optional information, that is, the privacy flag (PrivacyFlag), declaration (Declaration Claim or Claim) and digital signature (Claim Signature) are optional information.

[0320] It should be noted that the third information of the media content may include the type of the third information and the value of the third information (that is, the value of the type); for example, the location where the media content is generated is: "Address: ** Province", the type of the third information is "Address", and the value of the third information is "** Province". The above-mentioned privacy protection processing based on the second information refers to the privacy protection processing based on the value of the second information, that is, the privacy protection processing is performed on the value of the second information to obtain the first information.

[0321] For example, in the above embodiment, Creator (Privacy) may refer to the value of the author name of the media content that has been processed for privacy protection; Location (Privacy) may refer to the value of the generation location of the media content that has been processed for privacy protection; Time (Privacy) may refer to the value of the generation time of the media content that has been processed for privacy protection; Content ID may refer to the value of the digital content identifier of the media content.

[0322] In a possible manner, the metadata of the media content may further include the type of the fourth information and / or the type of the second information.

[0323] Figure 5C The schematic diagram of the structure of metadata is shown as an example.

[0324] Reference Figure 5CExemplarily, the metadata of the media content includes the value of the author name of the media content processed with privacy protection (Value_Creator(Privacy)) and the author name of the media content (Creator), the value of the generation location of the media content processed with privacy protection (Value_Location(Privacy)) and the generation location of the media content (Location), the generation time of the media content processed with privacy protection (Value_Time(Privacy)) and the generation time of the media content (Time), the hash value of the media content (Media Hash), the value of the digital content identifier of the media content (Value_Content ID) and the digital content identifier of the media content (Content ID).

[0325] It should be understood that Figure 5C The Value_Creator(Privacy) in the above embodiment is equivalent to the Creator(Privacy) in the above embodiment; Figure 5C Value_Location(Privacy) in the example is equivalent to Location(Privacy) in the above embodiment; Figure 5C Value_Time(Privacy) in the above embodiment is equivalent to Time(Privacy) Figure 5C The Value_Content ID in is equivalent to the Content ID in the above embodiment.

[0326] Figure 6 The schematic diagram of the metadata generation device is shown as an example. The metadata generation device can be used to execute the method of the above embodiment, so the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.

[0327] Reference Figure 6 , exemplarily, the metadata generating device may include:

[0328] Acquisition module 601, used to acquire media content;

[0329] The generation module 602 is used to generate metadata of the media content. The metadata of the media content includes first information. The first information and second information are obtained by performing privacy protection processing. The second information is at least part of the third information of the media content.

[0330] Exemplarily, the privacy protection process includes at least one of an encryption process or a hard binding process.

[0331] Exemplarily, there are multiple second information, and the first information is obtained by encrypting multiple second information using multiple keys; wherein one key is used to encrypt at least one second information.

[0332] Exemplarily, the multiple keys are obtained by processing at least a master key using a key derivation algorithm.

[0333] Exemplarily, there are multiple second information; the first information is obtained by hard binding processing based on multiple random numbers and multiple second information; wherein at least one random number is used for hard binding processing with at least one second information.

[0334] Exemplarily, there are multiple second information and multiple first information, and one first information is obtained by performing privacy protection processing based on at least one second information.

[0335] Exemplarily, the metadata of the media content further includes at least one of the following: a statement or a digital signature, the statement is determined based on at least the first information, and the digital signature is a signature of the statement.

[0336] Exemplarily, the privacy levels of the plurality of second information are the same or different.

[0337] Exemplarily, the privacy level of the plurality of second information is greater than a level threshold.

[0338] Exemplarily, the metadata of the media content further includes fourth information, where the fourth information is information in the third information of the media content that has not been processed for privacy protection.

[0339] Exemplarily, the acquisition module 601 is further used to acquire third information of the media content;

[0340] The device also includes:

[0341] A privacy processing module, configured to perform privacy protection processing on at least part of the third information of the media content to obtain first information;

[0342] The encapsulation module is used to encapsulate at least the first information to obtain encapsulated data.

[0343] Exemplarily, the third information of the media content includes at least one of the following: generation time of the media content, name of the author of the media content, digital content identifier of the media content, generation location of the media content, information of a device for generating the media content, generation method of the media content, resolution of the media content, size of the media content, media type of the media content, hard binding of the media content, copyright information of the media content, training identifier of the media content, editing operation information of the media content, editing time of the media content, editing location of the media content, editing tool information of the media content, or information of an editing device for the media content.

[0344] Exemplarily, the metadata of the media content also includes a privacy indicator; the privacy indicator is used to indicate whether the third information of the media content is public information or non-public information.

[0345] Exemplarily, there are multiple second information, and the privacy processing module is specifically used to use multiple keys to encrypt the multiple second information to obtain at least one first information; wherein one key is used to encrypt at least one second information.

[0346] Exemplarily, the second information is multiple, and the privacy processing module is specifically used to perform hard binding processing based on multiple random numbers and multiple second information to obtain at least one first information; wherein, at least one random number is used to perform hard binding processing with at least one second information.

[0347] Figure 7 The media asset display device can be used to execute the method of the above embodiment, so the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.

[0348] Reference Figure 7 , exemplarily, the display device of the media asset may include:

[0349] The receiving module 701 is used to receive an operation on a media asset, where the media asset includes media content and metadata of the media content, where the metadata of the media content includes first information and fourth information, where the first information is obtained by performing privacy protection processing based on the second information, the second information is at least part of the third information of the media content, and the fourth information is information in the third information of the media content that has not been subjected to privacy protection processing;

[0350] The display module 702 is configured to display fourth information in response to an operation on a media asset.

[0351] Exemplarily, the display module 702 is configured to display first information in response to an operation on a media asset.

[0352] Exemplarily, the first information includes information obtained by encrypting the second information using the first key, and the display module 702 is used to display the second information obtained by decrypting the first information using the first key in response to an operation on the media asset when the electronic device holds the first key.

[0353] Exemplarily, the privacy protection process includes at least one of an encryption process or a hard binding process.

[0354] Exemplarily, there are multiple first keys and multiple second information, and one first key is used to encrypt at least one second information; the multiple first keys are obtained by processing at least a master key using a key derivation algorithm.

[0355] In one example, Figure 8 A schematic block diagram of a device 800 according to an embodiment of the present application is shown. The device 800 may include: a processor 801 and a transceiver / transceiver pin 802 , and optionally, a memory 803 .

[0356] The components of the device 800 are coupled together via a bus 804, wherein the bus 804 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, all buses are referred to as bus 804 in the figure.

[0357] Optionally, the memory 803 may be used to store instructions in the aforementioned method embodiment. The processor 801 may be used to execute instructions in the memory 803, and control the receiving pin to receive a signal, and control the sending pin to send a signal.

[0358] The apparatus 800 may be the electronic device or a chip of the electronic device in the above method embodiment.

[0359] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0360] The embodiment of the present application also provides a chip, including one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device implements the metadata generation method in the above embodiment through the above-mentioned related method steps. The interface circuit is a transceiver / transceiver pin 802.

[0361] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the metadata generation method in the above-mentioned embodiment.

[0362] This embodiment further provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer executes the above-mentioned related steps to implement the metadata generation method in the above-mentioned embodiment.

[0363] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the chip executes the metadata generation method in the above-mentioned method embodiments.

[0364] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.

[0365] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0366] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0367] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0368] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0369] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of the present application.

[0370] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0371] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0372] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (ReadOnly Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disk (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0373] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0374] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for generating metadata, characterized in that: The method comprises: Get media content; Metadata of the media content is generated, where the metadata of the media content includes first information, where the first information is obtained by performing privacy protection processing based on second information, and the second information is at least part of the third information of the media content.

2. The method according to claim 1, characterized in that The privacy protection process includes at least one of an encryption process or a hard binding process.

3. The method according to claim 1 or 2, characterized in that: The second information is multiple, The first information is obtained by encrypting multiple second information using multiple keys; wherein one key is used to encrypt at least one second information.

4. The method according to claim 3, characterized in that: The multiple keys are obtained by processing at least a master key using a key derivation algorithm.

5. The method according to claim 1 or 2, characterized in that: The second information is multiple; The first information is obtained by hard binding processing based on multiple random numbers and multiple second information; wherein at least one random number is used for hard binding processing with at least one second information.

6. The method according to any one of claims 1 to 5, characterized in that: There are multiple pieces of second information, there are multiple pieces of first information, and one piece of first information is obtained by performing privacy protection processing based on at least one piece of second information.

7. The method according to any one of claims 1 to 6, characterized in that: The metadata of the media content further includes at least one of the following: a statement or a digital signature, the statement is determined based on at least the first information, and the digital signature is a signature of the statement.

8. The method according to any one of claims 1 to 7, characterized in that: There are multiple pieces of second information, and the privacy levels of the multiple pieces of second information are the same or different.

9. The method according to any one of claims 1 to 7, characterized in that: There are multiple pieces of second information, and the privacy levels of the multiple pieces of second information are greater than a level threshold.

10. The method according to any one of claims 1 to 9, characterized in that: The metadata of the media content also includes fourth information, where the fourth information is information in the third information of the media content that has not been processed for privacy protection.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: Acquiring third information of the media content; Performing privacy protection processing on second information in the third information of the media content to obtain the first information; At least the first information is encapsulated to obtain encapsulated data.

12. The method according to any one of claims 1 to 11, characterized in that: The third information of the media content includes at least one of the following: the generation time of the media content, the author name of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the hard binding of the media content, the copyright information of the media content, the training identifier of the media content, the editing operation information of the media content, the editing time of the media content, the editing location of the media content, the editing tool information of the media content or the information of the editing device of the media content.

13. The method according to any one of claims 1 to 12, characterized in that: The metadata of the media content also includes a privacy identifier; the privacy identifier is used to indicate whether the third information of the media content is public information or non-public information.

14. The method according to any one of claims 1 to 13, characterized in that: The second information is multiple, and the method further includes: Using multiple keys to encrypt multiple second information to obtain at least one first information; A key is used to encrypt at least one second information.

15. The method according to any one of claims 1 to 13, characterized in that The second information is multiple, and the method further includes: Perform hard binding processing based on multiple random numbers and multiple second information to obtain at least one first information; Wherein, at least one random number is used to perform hard binding processing with at least one second information.

16. A method for displaying a media asset, characterized in that: Applied to an electronic device having a display, the method comprises: An operation for obtaining a media asset, wherein the media asset includes media content and metadata of the media content, wherein the metadata of the media content includes first information and fourth information, wherein the first information is obtained by performing privacy protection processing based on second information, the second information is at least part of third information of the media content, and the fourth information is information of the third information of the media content that has not been subjected to privacy protection processing; In response to the operation on the media asset, the fourth information is displayed.

17. The method according to claim 16, characterized in that In response to the operation on the media asset, the first information is also displayed.

18. The method according to claim 16 or 17, characterized in that The first information includes information obtained by encrypting the second information using a first key, In the case where the electronic device holds the first key, in response to the operation on the media asset, second information obtained by decrypting the first information using the first key is also displayed.

19. The method according to any one of claims 16 to 18, characterized in that The privacy protection process includes at least one of an encryption process or a hard binding process.

20. The method according to claim 18, characterized in that There are multiple first keys, and multiple second information, and one first key is used to encrypt at least one second information; The multiple first keys are obtained by processing at least a master key using a key derivation algorithm.

21. A metadata generation device, characterized in that: The device comprises: An acquisition module, used to acquire media content; The generation module is used to generate metadata of the media content, where the metadata of the media content includes first information, where the first information is obtained by performing privacy protection processing based on second information, and the second information is at least part of the third information of the media content.

22. The device according to claim 21, characterized in that The privacy protection process includes at least one of an encryption process or a hard binding process.

23. The device according to claim 21 or 22, characterized in that The first information is obtained by encrypting multiple second information using multiple keys; wherein one key is used to encrypt at least one second information.

24. The device according to claim 23, characterized in that The multiple keys are obtained by processing at least a master key using a key derivation algorithm.

25. A device for displaying media assets, characterized in that: The device comprises: A receiving module, configured to receive an operation on a media asset, wherein the media asset includes media content and metadata of the media content, wherein the metadata of the media content includes first information and fourth information, wherein the first information is obtained by performing privacy protection processing based on the second information, the second information is at least part of the third information of the media content, and the fourth information is information in the third information of the media content that has not been subjected to privacy protection processing; The display module is configured to display the fourth information in response to the operation on the media asset.

26. The device according to claim 25, characterized in that The display module is configured to display the first information in response to the operation on the media asset.

27. The device according to claim 25 or 26, characterized in that The first information includes information obtained by encrypting the second information using a first key, The display module is used for displaying second information obtained by decrypting the first information using the first key in response to the operation on the media asset when the electronic device holds the first key.

28. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the metadata generation method as described in any one of claims 1 to 15.

29. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method for displaying media assets as claimed in any one of claims 16 to 20.

30. A chip, characterized in that: It includes one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the method as described in any one of claims 1 to claim 20.

31. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the method according to any one of claims 1 to 20.

32. A computer program product, characterized in that The computer program product comprises computer instructions, which, when executed by a computer or a processor, cause the steps of the method according to any one of claims 1 to 20 to be performed.