Metadata generation method and electronic device

By generating privacy identifiers in the metadata of media content, the problem of how to effectively determine whether the media content metadata contains user privacy information, and the use/display restrictions on media assets are realized, and the security of user privacy is improved.

WO2025050986A1PCT designated stage expired Publication Date: 2025-03-13HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/113620
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-06
Filing Date
2024-08-21
Publication Date
2025-03-13

AI Technical Summary

Technical Problem

How to effectively determine whether the metadata of media content contains user privacy information, thereby reducing the risk of user privacy leakage.

Method used

By generating a privacy identifier in the metadata of the media content, the first information indicating that the media content is disclosed or non-public information, thereby restricting the use/display according to the privacy identifier.

Benefits of technology

It is realized that according to the privacy identifier, which information in the media content metadata is private information, thereby restricting the use/display of media assets accordingly, improving the security of user privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024113620_13032025_PF_FP_ABST
    Figure CN2024113620_13032025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a metadata generation method and an electronic device. The method comprises: acquiring media content; and generating metadata of the media content, the metadata of the media content comprising first information of the media content and a privacy identifier, and the privacy identifier being used for indicating that the first information of the media content being public information or non-public information. In this way, non-public information and public information in metadata of media content can be determined on the basis of privacy identifiers, so as to impose corresponding service / display restrictions on media assets. For example, when the metadata of the media content is to be displayed, only the public information is displayed, and for another example, when the media content is to be used, only the media content of which the metadata has public information as target information is used.
Need to check novelty before this filing date? Find Prior Art

Description

Metadata generation method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on September 6, 2023, with application number 202311148567.9 and application name “Method for generating metadata and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of data processing, and more particularly to a method for generating metadata and an electronic device. Background Art

[0003] With the popularity 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 and edit media content (such as images, music, and videos) is getting lower and lower; and with the increase in the use scenarios of media content (such as sending it to other users through various instant messaging software; and publishing it on various social software (or trading platforms)), people's motivation to create / edit media content has been further increased, resulting in a blowout development of media content.

[0004] Media content often includes metadata, such as the time and location of a photo, and the person who took it. This metadata can help creators and consumers better understand the content and, in many scenarios, can be used to verify its authenticity. However, some metadata in media content may involve user privacy. Setting usage conditions for media content with metadata containing user privacy can mitigate the risk of privacy leaks. Therefore, determining whether metadata in media content contains user privacy is crucial.

[0005] Summary of the Invention

[0006] In view of this, the present application provides a metadata generation method and electronic device. The metadata of media content generated by the method includes a privacy identifier, so that subsequent use / display restrictions can be imposed on the media asset based on the privacy identifier included in the metadata of the media content.

[0007] In a first aspect, an embodiment of the present application provides a method for generating metadata, the method comprising: first, acquiring media content; then, generating metadata for the media content, the metadata for the media content comprising first information of the media content and a privacy identifier; the privacy identifier being used to indicate whether the first information of the media content is public information or non-public information.

[0008] In this way, the privacy identifier can be used to determine which information in the metadata of media content is private (i.e., non-public information) and which is non-private (i.e., public information), and thus, to impose corresponding usage / display restrictions on the media asset. For example, when displaying the metadata of media content, only public information is displayed; for another example, when using media content, only media content whose target information in the metadata is public information is used; and so on.

[0009] Exemplarily, the first information of the media content may refer to information associated with the media content; for example, a generation address of the media content, a generation time of the media content, and the like.

[0010] Illustratively, 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.

[0011] 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, generating it using an AI model, or taking a screenshot, etc.

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

[0013] For example, a media asset may include media content and metadata associated with the media content. The metadata associated with the media content is bound to the media content (or associated with the media content). It should be noted that in some scenarios, media assets are also referred to as media files.

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

[0015] For example, the privacy flag can be set by the electronic device's system or by a user-defined setting, which is not limited in this application. During the media asset generation phase, after obtaining the media content, a privacy flag setting interface can be displayed, allowing the user to set the privacy flag on the privacy flag interface. During the media asset editing phase, after obtaining the edited media content, a privacy flag setting interface can also be displayed, allowing the user to set the privacy flag on the privacy flag interface.

[0016] Exemplarily, the privacy indicator is used to directly indicate whether the first information of the media content is public information or non-public information, and may also be used to indirectly indicate whether the first information of the media content is public information or non-public information.

[0017] According to the first aspect, the privacy identifier is used to indicate a privacy level of first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

[0018] In this case, the privacy indicator can be used to indirectly indicate whether the third information of the media content is public information or non-public information.

[0019] In one possible approach, a privacy level can be set for the first information of the media content in advance (or during the process of generating metadata for the media content) according to a second preset rule; and the first information of the media content that exceeds the level threshold is determined to be non-public information, while the first information of the media content that does not exceed the level threshold is determined to be public information. The second preset rule can be set by the electronic device system or can be customized 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 media content is L1, the privacy level of the generation method of the media content and the privacy level of the digital content identifier of the media content are L2, the privacy level of the generation time of the media content is L3, the privacy level of the generation location of the media content, the privacy level of the author name of the media content and the privacy level of the information of the generation device of the media content are L4; among which, the privacy levels corresponding to L1 to L4 are from low to high.

[0021] It should be understood that the second preset rule can be set according to specific needs, and this application does not limit this.

[0022] According to the first aspect, or any implementation method of the first aspect above, the privacy level is used to indicate whether the first information of the media content is public information or non-public information, including: the first information of the media content above the privacy level is public information, and the first information of the media content below or equal to the privacy level is non-public information; or, 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.

[0023] For example, if the value of the privacy identifier is L2, when the first information of media content with a higher privacy level is non-public information, and the first information of media content with a lower or equal privacy level is public information, then the hard binding of the media content, the method for generating the media content, and the digital content identifier of the media content in the above example are public information, and the information about the generation time of the media content, the generation location of the media content, the author name of the media content, and the device for generating 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 or equal privacy level is non-public information, then the hard binding of the media content, the method for generating the media content, and the digital content identifier of the media content in the above example are non-public information, and the information about the generation time of the media content, the generation location of the media content, the author name of the media content, and the device for generating the media content are public information.

[0024] It should be noted that, in one possible manner, the privacy identifier can be used to directly indicate whether the first 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 first information of the media content; that is, 1 bit in the privacy identifier corresponds to 1 first information. In one possible manner, for 1 bit in the privacy identifier, when the value of the bit is "1", it indicates that the first information of the corresponding media content is public information, and when the value of the bit is "0", it indicates that the first 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 first information of the corresponding media content is non-public information, and when the value of the bit is "0", it indicates that the first information of the corresponding media content is public information; this application does not impose any restrictions on this.

[0025] In one possible approach, it is possible to determine in advance (or during the process of generating metadata for the media content) which of the first information of the media content is public information and which is non-public information based on a first preset rule. The first preset rule can be set by the electronic device system or customized by the user, and this application does not limit this.

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

[0027] It should be understood that the first preset rule can be set according to specific needs, and this application does not limit this.

[0028] According to the first aspect, or any implementation of the first aspect above, the privacy identifier is used to indicate whether part or all of the information in the first information is public information or non-public information.

[0029] According to the first aspect, or any implementation of the first aspect above, the first information of the media content includes the second information, and the privacy flag is specifically used to indicate that the second information is public information. In other words, the second information is the public information in the first information of the media content; in one possible scenario, the metadata of the media content includes the public information in the first information of the media content and the privacy flag.

[0030] Exemplarily, the second information is at least part of the first information of the media content.

[0031] Exemplarily, the privacy level of the second information is not higher than the privacy level indicated by the privacy identifier.

[0032] According to the first aspect, or any implementation of the first aspect above, the metadata of the media content also includes fourth information, which is obtained by privacy protection processing based on the third information, and the privacy identifier is also used to indicate that the third information is non-public information.

[0033] That is, the third information is non-public information in the first information of the media content; wherein the third information may be information in the first information of the media content except the second information.

[0034] In other words, the metadata of the media content includes the public information in the first information of the media content, the information obtained by privacy protection processing of the non-public information in the first information of the media content, and the privacy identifier. In this way, it is easy for users to know which first information of the media content has been privacy-protected.

[0035] Furthermore, after privacy protection, the third-party information becomes invisible, preventing other users from viewing or accessing it. This ensures the security of the third-party information and prevents its leakage. When the third-party information is the user's private information, this prevents leakage of the user's privacy and ensures the security of the user's privacy.

[0036] Exemplarily, the privacy level of the third information is higher than the privacy level indicated by the privacy identifier.

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

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

[0039] For example, hard binding refers to processing original information using a one-way function, where the result cannot be used to derive the original information, and it is also impossible to forge other original information that uses the same result processed using the one-way function. Hash calculation is a type of hard binding.

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

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

[0042] According to the first aspect, or any implementation of the first aspect above, the fourth information is obtained by encrypting multiple third information using multiple keys; wherein one key is used to encrypt at least one third information.

[0043] For example, if there are X1 (X1 is a positive integer) pieces of third information, there may be X2 (X2 is a positive integer) keys; where X1 is greater than or equal to X2. When X1 is greater than X2, one key can be used to encrypt multiple pieces of third information; in other words, multiple pieces of third information share the same key. When X1 is equal to X2, one key can be used to encrypt one piece of third information; in other words, different keys correspond to X1 pieces of third information.

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

[0045] 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.

[0046] Exemplarily, a key derivation algorithm may be used to process at least the master key and the first 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 between the master key and the media content to obtain multiple keys.

[0047] 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.

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

[0049] In one possible approach, a third piece of information may be hashed using at least one random number to obtain a fourth piece of information. Specifically, the at least one random number and the third piece of information may be concatenated; then, a hash algorithm may be used to hash the concatenated information to obtain the fourth piece of information.

[0050] In one possible approach, at least one random number may be used to perform a hash calculation on information obtained by combining multiple pieces of third information to obtain the fourth information. Specifically, the at least one random number and the multiple pieces of third information may be concatenated; then, a hash algorithm may be used to perform a hash calculation on the concatenation of the at least one random number and the multiple pieces of third information to obtain the fourth information.

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

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

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

[0054] 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 of the media content, and the digital signature is a signature of the declaration.

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

[0056] For example, a digital signature algorithm may be used to sign the claim to obtain a digital signature of the claim (Claim Signature). It should be understood that this application does not impose any restrictions on this digital signature algorithm.

[0057] According to the first aspect, or any implementation of the first aspect above, the first 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 media content 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.

[0058] For example, the media content's initial information may include the time the media content was generated, the name of the media content's author, the media content's digital content identifier, the media content's generation location, information about the media content's generation device, the media content's generation method, the media content's resolution, the media content's size, the media content's media type, the media content's copyright information, and the media content's training identifier. The initial information of the media content may refer to information generated when the media content was generated; the initial information of the media content may also include other information, which is not limited in this application.

[0059] For example, information about media content editing operations, the time of media content editing, the location of media content editing, information about media content editing tools, or information about media content editing equipment can be referred to as media content editing information. Media content editing information can refer to information related to the editing process of media content; it should be understood that media content editing information can also include other information, which is not limited in this application.

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

[0061] According to the first aspect, or any implementation of the first aspect above, the method further includes: obtaining first information and a privacy identifier of the media content; determining second information in the first information of the media content based on the privacy identifier; and encapsulating at least the second information and the privacy identifier to obtain first encapsulated data.

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

[0063] Illustratively, the second encapsulation data may include at least one of the following encapsulation data 1 to encapsulation data 6.

[0064] Exemplarily, when in the generation stage of a media asset, the privacy identifier, the second information and the fourth information can be encapsulated to obtain encapsulated data (hereinafter referred to as encapsulated data 1 (or called a Mandatory Assertion)). Then, the encapsulated data 1, the declaration and the digital signature are encapsulated to obtain encapsulated data 2 (or called a Trust Declaration). After that, the encapsulated data 2 is encapsulated to obtain encapsulated data 3 (or called a Trust Record). It should be noted that the second information in the encapsulated data 1, or the third information used to generate the fourth information in the encapsulated data 1, may include 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 or the training identifier of the media content.

[0065] Exemplarily, when in the editing and processing stage of a media asset, the privacy identifier, the second information, and the fourth information can be encapsulated to obtain encapsulated data 4 (or an assertion). It should be noted that the second information in the encapsulated data 4, or the third information used to generate the fourth information in the encapsulated data 4, can 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. Then, the encapsulated data 4, the declaration, and the digital signature are encapsulated to obtain encapsulated data 5 (or a trust manifest). Afterwards, the encapsulated data 2 (generated in the generation stage of the media asset) and the encapsulated data 5 can be encapsulated to obtain encapsulated data 6 (or a trust record).

[0066] Illustratively, in the process of generating metadata of media content, after performing privacy protection processing on the third information to obtain fourth information, the third information can be replaced by the fourth information, and at least the fourth information can be encapsulated into the metadata of the media content.

[0067] In a second aspect, an embodiment of the present application provides a method for displaying media assets, which is applied to an electronic device with a display. The method includes: receiving 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 of the media content and a privacy identifier, where the privacy identifier is used to indicate whether the first information of the media content is public information or non-public information; and displaying the public information and privacy identifier in the first information of the media content in response to the operation on the media asset. In this way, the public information and privacy identifier in the metadata of the media content can be viewed for media assets generated by the electronic device or obtained from other electronic devices.

[0068] For example, the operation on the media asset may be an operation of viewing metadata of the media asset.

[0069] According to a second aspect, in response to an operation on a media asset, a privacy indicator is also displayed.

[0070] According to the second aspect, or any implementation of the second aspect above, the metadata of the media content further includes fourth information, which is obtained by privacy protection processing based on the third information, and the third information is non-public information within the first information of the media content. In response to an operation on the media asset, the fourth information is also displayed. In this way, the user cannot access the third information in the metadata of the media content, thereby ensuring the information security of the third information to a certain extent.

[0071] According to the second aspect, or any implementation of the second aspect above, the metadata of the media content further includes fourth information, the fourth information including information obtained by encrypting third information using the first key, the third information being non-public information within the first information of the media content; if the electronic device holds multiple first keys, in response to an operation on the media asset, the electronic device also displays the third information obtained by decrypting the fourth information using the first key. In this way, the electronic device can decrypt the fourth information using the first key it holds to obtain the third information, and can then display the non-public information.

[0072] According to the second aspect, or any implementation of the second aspect above, the privacy identifier is used to indicate a privacy level of the first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

[0073] 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.

[0074] For example, in response to an operation on a media asset, the type of the second information and / or the type of the third information may also be displayed.

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

[0076] 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 be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

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

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

[0079] The generation module is used to generate metadata of the media content. The metadata of the media content includes first information of the media content and a privacy identifier; the privacy identifier is used to indicate whether the first information of the media content is public information or non-public information.

[0080] According to a third aspect, the privacy identifier is used to indicate a privacy level of the first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

[0081] According to the third aspect, or any implementation method of the third aspect above, the privacy level is used to indicate whether the first information of the media content is public information or non-public information, including: the first information of the media content above the privacy level is public information, and the first information of the media content below or equal to the privacy level is non-public information; or, 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.

[0082] According to the third aspect, or any implementation of the third aspect above, the privacy identifier is used to indicate whether part or all of the information in the first information is public information or non-public information.

[0083] According to the third aspect, or any implementation of the third aspect above, the first information of the media content includes the second information, and the privacy identifier is specifically used to indicate that the second information is public information.

[0084] According to the third aspect, or any implementation of the third aspect above, the metadata of the media content also includes fourth information, which is obtained by privacy protection processing based on the third information, and the privacy identifier is also used to indicate that the third information is non-public information.

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

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

[0087] According to the third aspect, or any implementation of the third aspect, the fourth information is obtained by encrypting multiple third information using multiple keys; wherein one key is used to encrypt at least one third information.

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

[0089] According to the third aspect, or any implementation of the third aspect above, the fourth information is obtained by hard binding multiple random numbers and multiple third information; wherein at least one random number is used for hard binding with at least one third information.

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

[0091] According to the third aspect, or any implementation of the third 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 of the media content, and the digital signature is a signature of the declaration.

[0092] According to the third aspect, or any implementation of the third aspect above, the first 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 media content 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.

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

[0094] The acquisition module is further used to obtain the first information and privacy identifier of the media content;

[0095] The device also includes:

[0096] a privacy processing module, configured to determine second information in the first information of the media content based on the privacy identifier;

[0097] The encapsulation module is used to encapsulate at least the second information and the privacy identifier to obtain first encapsulated data.

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

[0099] The acquisition module is further used to obtain the first information and privacy identifier of the media content;

[0100] The device also includes:

[0101] An information determination module, configured to determine, based on the privacy identifier, second information and third information in the first information of the media content;

[0102] a privacy processing module, configured to perform privacy protection processing on the third information to obtain fourth information;

[0103] The encapsulation module is used to encapsulate at least the second information, the privacy identifier and the fourth information to obtain second encapsulated data.

[0104] 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 be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

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

[0106] 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 of the media content and a privacy identifier, wherein the privacy identifier is used to indicate whether the first information of the media content is public information or non-public information;

[0107] The display module is configured to display public information in the first information of the media content in response to an operation on the media asset.

[0108] According to a fourth aspect, the display module is configured to display a privacy indicator in response to an operation on a media asset.

[0109] According to the fourth aspect, or any implementation of the fourth aspect above, the metadata of the media content also includes fourth information, which is obtained by privacy protection processing based on the third information, and the third information is non-public information in the first information of the media content; the display module is used to display the fourth information in response to operations on the media assets.

[0110] According to the fourth aspect, or any implementation of the fourth aspect above, the metadata of the media content also includes fourth information, the fourth information includes information obtained by encrypting third information using the first key, and the third information is non-public information in the first information of the media content; the display module is used to, when the electronic device holds the first key, respond to the operation on the media asset, and also display the third information obtained by decrypting the fourth information using the first key.

[0111] According to the fourth aspect, or any implementation of the fourth aspect above, the privacy identifier is used to indicate a privacy level of the first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

[0112] 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.

[0113] 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 be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0114] 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 of the first aspect or any possible implementation of the first aspect.

[0115] 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 be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0116] In a sixth 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 method for displaying media assets in the second aspect or any possible implementation of the second aspect.

[0117] 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 be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0118] 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 signals from a memory of an electronic device and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the metadata generation method in the first aspect or any possible implementation of the first aspect.

[0119] 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 be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0120] 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.

[0121] 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 be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0122] 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.

[0123] 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 be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0124] In a 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.

[0125] 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 be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0126] 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.

[0127] 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 be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, and will not be repeated here.

[0128] 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.

[0129] 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 be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0130] FIG1A is a schematic diagram illustrating an exemplary application scenario;

[0131] FIG1B is a schematic diagram illustrating an exemplary application scenario;

[0132] FIG1C is a schematic diagram illustrating an exemplary application scenario;

[0133] FIG1D is a schematic diagram illustrating an exemplary application scenario;

[0134] FIG1E is a schematic diagram illustrating an exemplary application scenario;

[0135] FIG2A is a schematic diagram illustrating an exemplary metadata generation process;

[0136] FIG2B is a schematic diagram showing an exemplary structure of metadata;

[0137] FIG2C is a schematic diagram showing an exemplary structure of metadata;

[0138] FIG3A is a schematic diagram illustrating an exemplary visualization of metadata;

[0139] FIG3B is a schematic diagram illustrating exemplary metadata;

[0140] FIG3C is a schematic diagram illustrating exemplary metadata;

[0141] FIG3D is a schematic diagram illustrating the structure of metadata of media content;

[0142] FIG4A is a schematic diagram showing an exemplary structure of metadata;

[0143] FIG4B is a schematic diagram showing an exemplary structure of metadata;

[0144] FIG5A is a schematic diagram illustrating an exemplary encryption process;

[0145] FIG5B is a schematic diagram illustrating an exemplary encryption process;

[0146] FIG5C is a schematic diagram illustrating the structure of metadata;

[0147] FIG5D is a schematic diagram illustrating an exemplary hash calculation process;

[0148] FIG5E is a schematic diagram showing an exemplary structure of metadata;

[0149] FIG5F is a schematic diagram illustrating the structure of metadata;

[0150] FIG6 is a schematic diagram of an exemplary apparatus for generating metadata;

[0151] FIG7 is a schematic diagram of a display device exemplarily showing a media asset;

[0152] FIG8 is a schematic structural diagram of an exemplary device. DETAILED DESCRIPTION

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

[0154] The term "and / or" in this article is merely a description of the association relationship between 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.

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

[0156] In the embodiments of this application, words such as "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 this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0157] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0158] Figure 1A is a schematic diagram of an exemplary application scenario, which illustrates a scenario of sharing media content.

[0159] For example, media content can also be referred to as 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 exists in digital form. It can be stored on digital media such as optical discs and hard drives and distributed through means such as the Internet. Digital content is the overall product or service that integrates images, text, audio, and other 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 required to understand or present the content (for example, color profiles or encoding parameters).

[0160] For example, digital technology is a science and technology that has grown alongside computers. It refers to the technology that uses certain equipment to convert various types of information, including images, text, sound, and video, into binary digits "0" and "1" that computers can recognize, and then perform operations, processing, storage, transmission, dissemination, and restoration. Because computers are used to encode, compress, and decode information during operations and storage, it is also called digital technology, computer digital technology, etc. Digital technology is also known as digital control technology.

[0161] For example, media content and its metadata can constitute a media asset. The metadata of the media content is bound to the media content (or, in other words, 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.

[0162] Exemplarily, metadata may include data used to describe media content; for example, metadata may include information describing properties of the media content. Exemplarily, metadata may be a trust record. Exemplarily, a trust record of media content may be a type of metadata for the media content, which records information related to the generation and changes (e.g., editing) of the media content and may be used to trace the source of the media content.

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

[0164] For example, the first information of the media content may refer to information associated with the media content, and the first 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 first information of the media content may also include other information, and this application does not limit this.

[0165] Exemplarily, the initial information of the media content may refer to 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, information about the device used to generate 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.

[0166] 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, information about the editing operation of the media content, the time of editing the media content, the location of editing the media content, information about the editing tool used for the media content, or information about the editing device used for the media content. It should be understood that the editing information of media content may also include other information, which is not limited in this application.

[0167] Exemplarily, hard binding of media content may refer to information obtained by hard binding the media content. Hard binding processing may refer to: processing the original information using a one-way function, where the result obtained cannot be used to derive the original information, and it is also impossible to forge other original information that obtains the same result by processing using a one-way function. Hash calculation is a type of hard binding processing, that is, the hard binding of media content may be a hash value obtained by hashing the media content (the hard binding of media content may also be referred to as the hash value of the media content).

[0168] 1A , illustratively, after user B generates an image using mobile phone B (e.g., by capturing it with a camera; by using an AI model; by taking a screenshot; etc.), mobile phone B can obtain first information about the image. Next, mobile phone B can generate metadata for the image based on the first information and the generated image to obtain a media asset (this process corresponds to the Creator stage of the media asset). In the embodiment of FIG1A , the image metadata can include the image's hard binding and the image's initial information.

[0169] For example, some of the first information of the image may be private information for user B (that is, information that user B does not want to disclose, which can also be called non-public information); therefore, when mobile phone B generates the metadata of the image, it can add a privacy identifier to the metadata of the image. The privacy identifier can be used to indicate whether the first information contained in the metadata of the image is public information or non-public information.

[0170] Exemplarily, the visual representation of the metadata of the image generated by mobile phone B can be as shown in Example 1 in Figure 1A; it should be noted that the metadata of the image shown in Example 1 in Figure 1A 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 ways, and this application does not impose any restrictions on this.

[0171] Referring to Figure 1A , illustratively, the metadata of the image in Example 1 may include seven pieces of first information about the image. The privacy identifier may be represented by seven bits, with each bit corresponding to one piece of first information. For example, the first bit from left to right in the privacy identifier corresponds to the image author's name, the second bit from left to right in the privacy identifier corresponds to the image generation time, and so on. In Figure 1A , a bit of "0" in the privacy identifier indicates that the corresponding first information is non-public information, while a bit of "1" indicates that the corresponding first information is public information. That is, in Figure 1A , the image author's name, the image generation time, the image generation location, and the image generation device are non-public information, while the image name, the image media type, and the image generation method are public information.

[0172] For example, when user B later wants to share the image with user A, user B can use the communication software on phone B to send the image to user A's phone A (wherein the image's metadata is also sent to phone A). For example, after phone A receives the image (and the image's metadata), when user A wants to view the image's metadata, they can perform a metadata viewing operation. In this way, phone A can display the image's metadata in response to the metadata viewing operation, as shown in Example 2 in Figure 1A. It should be noted that when phone A reads the image's metadata in response to the metadata viewing operation, it can first read the privacy identifier; then, based on the privacy identifier, it determines which first information to read from the image's metadata. For example, in Figure 1A, if the privacy identifier is "0011100," the image's name, media type, and generation method are determined to be public information. In this case, only the image's name, media type, and generation method are read and displayed.

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

[0174] Figure 1B is a schematic diagram of an exemplary application scenario. Figure 1B shows a media content viewing scenario based on user level and privacy indicator.

[0175] 1B , exemplarily, a server stores media assets, which include images and metadata for the images, as shown in Example 1 of FIG1B . The metadata for the images may be generated during the Creator phase of the media assets. In Example 1 of FIG1B , the metadata for the images may include initial information about the media content and a privacy identifier. The privacy identifier may be used to indicate a privacy level (e.g., L2) for the first information of the image. Initial information not higher than the privacy level indicated by the privacy identifier is public information, and initial information higher than the privacy level indicated by the privacy identifier is non-public information.

[0176] For example, a privacy level may be set in advance for the first information of the media content according to a preset rule; wherein the preset rule may be set by the system of the electronic device or may be customized by the user, and this application does not impose any restrictions on this.

[0177] For example, the preset rules may be: the hard-binding privacy level of media content is L1, the privacy level of the generation method of media content and the privacy level of the digital content identifier of the media content are L2, the privacy level of the generation time of the media content is L3, the privacy level of the generation location of the media content, the privacy level of the author name of the media content and the privacy level of the information of the generation device of the media content are L4; among which, the privacy levels corresponding to L1 to L4 are from low to high.

[0178] When the privacy level indicated by the privacy identifier is L1, it can be determined that the hard binding of the media content is public information, and the generation method of the media content, the digital content identifier of the media content, 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.

[0179] When the privacy level indicated by the privacy identifier is L2, it can be determined that 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.

[0180] When the privacy level indicated by the privacy identifier is L3, it can be determined that the hard binding of the media content, the generation method of the media content, the digital content identifier of the media content and the generation time of the media content are public information, and 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.

[0181] In Example 1 of Figure 1B , the privacy level indicated by the privacy identifier is L2, so the name of the author of the image, the time when the image was generated, the location where the image was generated, and the name of the device that generated the image are non-public information, and the name of the image, the media type of the image, and the method by which the image was generated are public information.

[0182] For example, in FIG1B , the user levels corresponding to P1 to P4 are from low to high. For users whose user level is less than or equal to P2, the initial information with a privacy level less than or equal to L2 can be read from the metadata of the image. For example, after user 1 with a user level of P1 obtains the image from the server through PC1, the metadata that can be viewed include: the name of the image, the method of generating the image, and the media type of the image, as shown in Example 2 in FIG1B . For another example, after user 2 with a user level of P2 obtains the image from the server through PC2, the metadata that can be viewed include: the name of the image, the method of generating the image, and the media type of the image, as shown in Example 3 in FIG1B .

[0183] For example, in Figure 1B , for users with a user level greater than P2, initial information with a privacy level greater than L2 can be read from the image's metadata. For example, after user n (n is a positive integer) with a user level of P4 retrieves the image from the server via PCn, the metadata available for viewing includes: the image's name, image generation method, image media type, image author name, image generation time, image generation location, and image generation device information, as shown in Example 4 in Figure 1B .

[0184] It should be noted that the metadata of the image shown in Examples 1 to 4 of Figure 1B 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 ways, and this application does not limit this.

[0185] That is to say, for users whose user level is not higher than the preset threshold, only the first information whose privacy level is not higher than the privacy level indicated by the privacy identifier can be read from the metadata of the image; for users whose user level is higher than the preset threshold, the first information whose privacy level is not higher than the privacy level indicated by the privacy identifier, and the first information whose privacy level is higher than the privacy level indicated by the privacy identifier can be read from the metadata of the image.

[0186] Figure 1C is a schematic diagram illustrating an exemplary application scenario. Figure 1C illustrates a media content usage scenario based on privacy identification.

[0187] For example, in FIG1C , in the process of generating metadata of an image, privacy protection processing is performed on the first information (i.e., non-public information) in the initial information of the media content whose privacy level is higher than the privacy level indicated by the privacy identifier, so that the non-public information in the first information of the image is invisible.

[0188] 1C , illustratively, some information in the metadata of an image is ciphertext (or some information is ciphertext of non-public information in the first information of the media content; wherein the ciphertext may be represented in a variety of forms, for example, a string of at least one of numbers, letters, or symbols), and some information is plaintext (or some information is the public information itself in the first 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 method of generating the image) is ciphertext, the generation location of the image is ciphertext, and the name of the device that generated the image is ciphertext; the name of the image is plaintext, and the media type of the image is plaintext. The non-public information that is ciphertext is invisible.

[0189] For example, in Figure 1C, when a user uses an image in an application (APP), the application can read the privacy identifier in the image's metadata. When the value of the privacy identifier meets the media content's usage conditions, the user can be allowed to use the image; when the value of the privacy identifier does not meet the usage conditions, the user can be denied access to the image. After the APP uses the image, the non-public information in the image's metadata has been privacy-protected, preventing the APP from obtaining this non-public information, thus ensuring the security of this non-public information.

[0190] For example, the APP can pre-set the usage conditions of media content, for example, media content with a privacy identifier of L2 in the metadata is not allowed to be used; for another example, media content with a privacy identifier of L2 in the metadata is allowed to be used; for another example, media content with a value of "0" in the 7th bit of the privacy identifier is not allowed to be used; for another example, media content with a value of "1" in the 6th bit of the privacy identifier is allowed to be used; and so on. The specific settings can be made according to the needs, and this application does not impose any restrictions on this.

[0191] 1C , for example, the usage conditions for media content of APP1 (e.g., an instant messaging app) and APPm (e.g., a social app) may be: media content with a privacy identifier of L2 in the metadata is allowed to be used; thus, the user can use the image in APP1 and APPm. In FIG1C , the usage conditions for media content of APP2 (e.g., an encyclopedia app) may be: media content with a privacy identifier of L2 in the metadata is not allowed to be used; thus, the user cannot use the image in APP2.

[0192] Figures 1D and 1E are schematic diagrams of exemplary application scenarios. Figures 1D and 1E illustrate display scenarios of media assets.

[0193] Referring to Figure 1D (1), exemplarily, after a mobile phone receives an image (or generates an image) from another electronic device and stores it locally, when a 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 image thumbnails, video thumbnails, time, etc., which are not limited in this application. The user can click on the image they want 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, as shown in Figure 1D (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.

[0194] Continuing to refer to FIG1D (2), illustratively, when the user wants to view the metadata of the image, he or she can click on the metadata viewing option 13, and the mobile phone displays the metadata of the image in response to the user's operation, as shown in FIG1E.

[0195] Assume that the metadata of the image includes information in the first information of the image that has not been processed for privacy protection (hereinafter referred to as the second information), information obtained by performing privacy protection processing based on the third information (wherein the information subjected to privacy protection processing is hereinafter referred to as the third information) (the information obtained by performing privacy protection processing on the third information is referred to as the fourth information) and a privacy identifier; then the metadata of the image displayed in Figure 1E may include multiple situations; wherein, the second information may include the name of the image and the type of media content, and the third information may include the name of the author of the image, the time when the image was generated, the method of generating the image, the location where the image was generated, and information on the device that generated the image.

[0196] In one possible manner, the value of the second information, the type of the second information, the ciphertext obtained by encrypting the third information, the type of the third information, and the privacy flag are displayed. Referring to FIG1E(1), for example, the name of the image (which can be understood as a type of the second 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 second 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 third 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 third information) and the ciphertext of the value of the generation time of the image (i.e., 001010132jdh) are displayed. , the image generation method (which can be understood as a type of third information) and the ciphertext of the value of the image generation method (i.e., 098suyal01076), the image generation location (which can be understood as a type of third information) and the ciphertext of the value of the image generation location (i.e., hoxjy90631k9), as well as the information of the image generation device (which can be understood as a type of third information) and the ciphertext of the value of the image generation device information (i.e., mihxiy987hya); and the display privacy identifier (which can be understood as a type of information) and the value of the privacy identifier (L2).

[0197] In one possible manner, the value of the second information, the type of the second information, the hash value obtained by performing hash calculation on the third information, the type of the third information, and the privacy identifier are displayed. 1E(2), exemplarily, the name of the image (which can be understood as a type of the second 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 second 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 third 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 third 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 third 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 third 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 image generation device (which can be understood as a type of the third information) and the hash value of the value of the information of the image generation device (i.e., hash5) are displayed; and, the privacy identifier (which can be understood as a type of information) and the value of the privacy identifier (0010100) are displayed.

[0198] In one possible manner, the value of the second information, the type of the second information, and the type of the third information are displayed. Referring to FIG1E (3), for example, the name of the image (which can be understood as a type of the second information) and the value of the image name (i.e., sunset at the seaside), the type of the media content (which can be understood as a type of the second information) and the value of the type of the media content (i.e., image) are displayed; and the author name of the image (which can be understood as a type of the third information), the time when the image was generated (which can be understood as a type of the third information), the method of generating the image (which can be understood as a type of the third information), the location where the image was generated (which can be understood as a type of the third information), and the information of the device that generated the image (which can be understood as a type of the third information) are displayed.

[0199] In one possible embodiment, only the type and value of the second information are displayed, and the type of the third information and the information obtained by performing privacy protection processing on the value of the third information are not displayed. Referring to FIG1E(4), for example, the name of an image (which can be understood as a type of second information) and the value of the image name (i.e., seaside sunset) are displayed, as well as the type of media content (which can be understood as a type of second information) and the value of the media content type (i.e., image).

[0200] It should be understood that in one possible manner, the value of the second information, the type of the second information, and the ciphertext obtained by encrypting the third information are displayed. In one possible manner, the value of the second information, the type of the second information, and the hash value obtained by hashing the third information are displayed. In one possible manner, the value of the second information, the type of the second information, the type of the third information, and the privacy identifier are displayed. In one possible manner, only the value of the second information, the type of the second information, and the privacy identifier are displayed, and the type of the third information and the information obtained by performing privacy protection processing on the value of the third information are not displayed. It should be understood that this application does not limit which information in the metadata of the media content is displayed.

[0201] The following describes the process of generating metadata for a media asset.

[0202] FIG. 2A is a schematic diagram illustrating an exemplary metadata generation process.

[0203] S201: Acquire media content.

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

[0205] Illustratively, 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.

[0206] 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, generating it using an AI model, or taking a screenshot, etc.

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

[0208] S202 : Generate metadata of the media content. The metadata of the media content includes first information of the media content and a privacy identifier. The privacy identifier is used to indicate whether the first information of the media content is public information or non-public information.

[0209] Exemplarily, the first information and the privacy identifier of the media content may also be obtained; then, metadata of the media content may be generated based on the first information and the privacy identifier of the media content.

[0210] Exemplarily, during the generation phase of the media asset, the acquired first information of the media content may include a hard binding of the initial information and the generated media content.

[0211] For example, during the editing process of the media asset, the acquired first information of the media content may include a hard binding between the editing information and the edited media content.

[0212] For example, the privacy flag can be set by the electronic device's system or by a user-defined setting, which is not limited in this application. During the media asset creation (Creation) phase, after obtaining the media content, a privacy flag setting interface can be displayed, where the user can set the privacy flag. During the media asset editing and processing interface, after obtaining the edited media content, a privacy flag setting interface can also be displayed, where the user can set the privacy flag.

[0213] In one possible manner, the privacy identifier can be used to directly indicate whether the first 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 first information of the media content; that is, 1 bit in the privacy identifier corresponds to 1 first 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 first information of the corresponding media content is public information, and when the value of the bit is "0", it indicates that the first 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 first information of the corresponding media content is non-public information, and when the value of the bit is "0", it indicates that the first information of the corresponding media content is public information; this application does not impose any restrictions on this.

[0214] FIG2B is a schematic diagram showing an exemplary structure of metadata.

[0215] In FIG2B , the initial information of the media content is 5, and the privacy flag (Privacy Flag) can be identified by 5 bits such as "00011", wherein the first bit of the privacy flag from left to right is used to indicate whether the generation location (Location) of the media content is non-public information or public information, and the first bit is "0", which indicates that the generation location (Location) of the media content is non-public information; the second bit from left to right is used to indicate whether the generation time (Time) of the media content is non-public information or public information, and the second bit is "0", which indicates that the generation time (Time) of the media content is non-public information; the third bit from left to right is used to indicate whether the author name (Creator) of the media content is non-public information or public information, and the third bit is "0", which indicates that the author name (Creator) of the media content is non-public information; the fourth bit from left to right is used to indicate the hash value (Media The 4th bit is "1", indicating that the hash value (Media Hash) of the media content is public information; the 5th 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. The 5th bit is "1", indicating that the digital content identifier (Content ID) of the media content is public information.

[0216] It should be noted that FIG. 2B is only an example of metadata of media content, and this application does not limit the location of information included in the metadata of the media content in FIG. 2B .

[0217] In one possible way, the privacy identifier can be used to indirectly indicate whether the first 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 first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information; specifically, the first information of the media content above the privacy level is public information, and the first information of the media content below or equal to the privacy level is non-public information; or, 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. This application is explained by taking the example that 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.

[0218] Exemplarily, the first 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 method of generating the media content and the privacy level of the digital content identifier of the media content are L2, the privacy level of the time of generating the media content is L3, the privacy level of the location of generating the media content, the privacy level of the author name of the media content, and the privacy level of the information of the device that generates the media content are L4; wherein, the privacy levels corresponding to L1 to L4 are from low to high.

[0219] FIG2C is a schematic diagram showing the structure of metadata.

[0220] In Figure 2C, the privacy flag (Privacy Flag) is L2. Assume that the privacy level of the hard binding (Media Hash) of the media content 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 (Time) of the media content is L3, and the privacy level of the generation location (Location) of the media content and the privacy level of the author name (Creator) of the media content are L4; then the privacy level of the generation location of the media content, the privacy level of the author name of the media content, and the generation time of the media content are non-public information; the hard binding of the media content and the digital content identifier of the media content are public information.

[0221] It should be noted that FIG. 2C is only an example of metadata of media content, and the present application does not limit the location of information included in the metadata of the media content in FIG. 2C .

[0222] For ease of description below, the public information in the first information of the media content is referred to as the second information; and the non-public information in the first information of the media content is referred to as the third information.

[0223] In one possible approach, the metadata of the media content includes the second information, the third information, and the privacy indicator; the structure of the metadata of the media content may be as shown in Figures 2B and 2C, which are not described in detail here. The visual representation of the metadata of the media content corresponding to Figure 2B may be as shown in Figure 3A.

[0224] In one possible approach, the metadata of the media content includes the second information and the privacy identifier. The metadata structure of the media content may be as shown in FIG3B(1), and the visual representation of the metadata of the media content may be as shown in FIG3B(2). In this way, after other users obtain the media content and the metadata of the media content, they cannot read the third information, thereby protecting the third information and preventing the leakage of private information.

[0225] In one possible approach, metadata for media content includes second information, fourth information (the fourth information may be information obtained by performing privacy protection processing on the third information), and a privacy identifier. For example, the second and third information within the first information of the media content may be determined based on the privacy identifier; then, the third information may be privacy-protected to obtain the fourth information; and then, the second and fourth information, along with the privacy identifier, may be used to generate metadata for the media content.

[0226] When a privacy indicator is used to indicate the privacy level of first information of media content, the privacy level of second information is no higher than the privacy level indicated by the privacy indicator, and the privacy level of third information is higher than the privacy level indicated by the privacy indicator. The second information may include multiple pieces of first information, each of which may have the same or different privacy levels. For example, multiple pieces of third information may include multiple pieces of third information, each of which may have the same or different privacy levels.

[0227] FIG3C is a schematic diagram showing exemplary metadata.

[0228] Exemplarily, the metadata structure of the media content may be as shown in FIG3C(1); wherein, “Location(Privacy)” indicates the location where the media content processed for privacy protection is generated; “Time(Privacy)” indicates the time when the media content processed for privacy protection is generated; and “Creator(Privacy)” indicates the name of the author of the media content processed for privacy protection.

[0229] Exemplarily, the visual representation of the metadata of the media content can be shown as shown in Figure 3C(2); wherein, "Creator: Privacy" indicates that the name of the author of the media content is the information obtained by performing privacy protection processing on the name of the author of the media content, "Time: Privacy" indicates that the generation time of the media content is the information obtained by performing privacy protection processing on the generation time of the media content, and "Location: Privacy" indicates that the generation location of the media content is the information obtained by performing privacy protection processing on the generation location of the media content.

[0230] In this way, after other users obtain the media content and the metadata of the media content, they can only read the fourth information obtained by performing privacy protection processing on the third information, and cannot read the third information, thereby protecting the third information and preventing private information from being leaked.

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

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

[0233] For example, a digital signature algorithm may be used to sign the statement to obtain a digital signature of the statement. It should be understood that this application does not limit the digital signature algorithm.

[0234] FIG3D is a schematic diagram illustrating the structure of metadata of media content.

[0235] 3D , exemplarily, the metadata of the media content includes a privacy flag (Privacy Flag), 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 (Media Hash), the digital content identifier of the media content (Content ID), a claim (Claim), and a digital signature (Claim Signature).

[0236] It should be noted that FIG. 3A to FIG. 3D are merely examples of metadata of media content, and this application does not limit the location of information contained in the metadata of the media content in FIG. 3A to FIG. 3D .

[0237] Exemplarily, when in the generation stage of a media asset, the privacy identifier, the second information and the fourth information can be encapsulated to obtain encapsulated data (hereinafter referred to as encapsulated data 1 (or called a Mandatory Assertion)). Then, the encapsulated data 1, the declaration and the digital signature are encapsulated to obtain encapsulated data 2 (or called a Trust Declaration). After that, the encapsulated data 2 is encapsulated to obtain encapsulated data 3 (or called a Trust Record). It should be noted that the second information in the encapsulated data 1 or the third information used to generate the fourth information in the encapsulated data 1 may include 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 or the training identifier of the media content.

[0238] FIG4A is a schematic diagram showing an exemplary structure of metadata.

[0239] 4A , illustratively, a privacy flag (Privacy Flag), the name of the author of the privacy-protected media content (Creator(Privacy)), the location of the privacy-protected media content (Location(Privacy)), the time of the privacy-protected media content (Time(Privacy)), the hash value of the media content (Media Hash), and the digital content identifier (Content ID) of the media content are encapsulated into a Mandatory Assertion; the Mandatory Assertion, the Declaration Claim, and the digital signature (Claim Signature) are encapsulated into a Trust Declaration; the Trust Declaration is encapsulated into a Trust Record; and the Trust Record is encapsulated into metadata of the media content.

[0240] It should be noted that the dotted box in FIG4A represents optional information, that is, the declaration (Declaration Claim) and the digital signature (Claim Signature) are optional information.

[0241] Exemplarily, when in the editing processing stage of a media asset, the privacy identifier, the second information, and the fourth information can be encapsulated to obtain encapsulated data 4 (or an assertion). It should be noted that the second information in the encapsulated data 4 or the third information used to generate the fourth information in the encapsulated data 4 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. Then, the encapsulated data 4, the declaration, and the digital signature are encapsulated to obtain encapsulated data 5 (or a trust manifest). Afterwards, the encapsulated data 2 (generated in the generation stage of the media asset) and the encapsulated data 5 can be encapsulated to obtain encapsulated data 6 (or a trust record).

[0242] FIG4B is a schematic diagram showing an exemplary structure of metadata.

[0243] 4B , illustratively, a privacy flag (Privacy Flag), a privacy-protected edit time (Edit Time (Privacy)), a privacy-protected edit location (Edit Location (Privacy)), a privacy-protected editor name (Editor, (Privacy)), a media content hash value (Media Hash 1) (a hash value of the edited media content), information about the media content editing device (Device), and information about the media content editing tool (Tool) are encapsulated into an Assertion; an Assertion, a Claim (Claim), and a digital signature (Claim Signature) are encapsulated into Trust Manifests; and Trust Manifests and Trust Declaration are encapsulated into a Trust Record. A description of the Trust Declaration can be found in FIG4A and will not be repeated here.

[0244] It should be noted that the dotted box in FIG4B represents optional information, that is, the declaration (Declaration Claim or Claim) and the digital signature (Claim Signature) are optional information.

[0245] It should be noted that FIG. 4A and FIG. 4B are merely examples of metadata of media content, and the present application does not limit the location of information contained in the metadata of the media content in FIG. 4A and FIG. 4B .

[0246] The following describes the privacy protection process.

[0247] In one possible approach, the privacy protection process is encryption, and accordingly, the fourth information may be ciphertext, that is, the fourth information is the ciphertext of the third information.

[0248] In one possible manner, a key may be used to encrypt a third information to obtain a fourth information.

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

[0250] Illustratively, the encryption keys for different third information may be the same or different, and this application does not impose any limitation on this.

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

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

[0253] FIG5A is a schematic diagram illustrating an exemplary encryption process.

[0254] In Figure 5A , the three third pieces of information are x, y, and z; the three keys are K1, K2, and K3. K1 can be used to encrypt x to obtain the fourth piece of information Enc(x, K1); K2 can be used to encrypt y to obtain the fourth piece of information Enc(y, K2); and K3 can be used to encrypt z to obtain the fourth piece of information Enc(z, K3).

[0255] It should be understood that FIG5A 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 third information.

[0256] In one possible approach, when multiple keys are used to encrypt multiple third 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 first information of the media content using a key derivation algorithm. It should be noted that the intersection of the first information and the third information used to generate the key may or may not be empty, and this application does not impose any restrictions on this. For example, the first information used to generate the key can be a hard binding to the media content.

[0257] FIG5B is a schematic diagram illustrating an exemplary encryption process.

[0258] In Figure 5B , the three third pieces of information are: x, y, and z. First, a master key (Master Key) K can be generated. Next, a key derivation algorithm is used to hard-bind the master key to the media content, resulting in three subkeys: K1, K2, and K3. K1 can be used to encrypt x, resulting in the fourth piece of information Enc(x, K1); K2 can be used to encrypt y, resulting in the fourth piece of information Enc(y, K2); and K3 can be used to encrypt z, resulting in the fourth piece of information Enc(z, K3).

[0259] It should be understood that FIG. 5B is merely an example of the present application, and the present application does not limit which key is used to encrypt which correlation in the third information.

[0260] It should be understood that when there are multiple keys used to encrypt multiple third information, these multiple keys can also be generated in other ways, such as random generation. This application does not limit the method of generating multiple keys.

[0261] FIG5C is a schematic diagram showing an exemplary structure of metadata.

[0262] 5C , exemplarily, the metadata of the media content may include a privacy flag (Privacy Flag), an encrypted generation location (Enc(Location, K1)), an encrypted generation time (Enc(Time, K2)), an encrypted author name (Enc(Creator, K1)), a hard binding of the media content (Media Hash), and a digital content identifier (Content ID) of the media content.

[0263] It should be noted that FIG. 5A to FIG. 5C are merely examples of metadata of media content, and the present application does not limit the location of information contained in the metadata of the media content in FIG. 5A to FIG. 5C .

[0264] In one possible approach, the privacy protection process is a hard binding process. This application takes the hard binding process as a hash calculation as an example for illustration, and correspondingly, the fourth information is the hash value of the third information.

[0265] In one possible approach, a third piece of information may be hashed using at least one random number to obtain a fourth piece of information. Specifically, the at least one random number and the third piece of information may be concatenated; then, a hash algorithm may be used to hash the concatenated information to obtain the fourth piece of information.

[0266] In one possible approach, at least one random number may be used to perform a hash calculation on information obtained by combining multiple pieces of third information to obtain the fourth information. Specifically, the at least one random number and the multiple pieces of third information may be concatenated; then, a hash algorithm may be used to perform a hash calculation on the concatenation of the at least one random number and the multiple pieces of third information to obtain the fourth information.

[0267] For example, the random numbers used for hash calculations on different third information may be the same or different, and this application does not impose any limitation on this.

[0268] For example, the random numbers used in hash calculations for third information with different privacy levels may be the same or different, and this application does not impose any limitation on this.

[0269] For example, the random numbers used in the hash calculation for the third information with the same privacy level may be the same or different, and this application does not impose any limitation on this.

[0270] FIG5D is a schematic diagram illustrating an exemplary hash calculation process.

[0271] In FIG5D , the three third pieces of information are x, y, and z, and the three randomly generated random numbers are r, s, and t. A hash algorithm can be used to hash the concatenated r and x to obtain fourth information hash(x||r); a hash algorithm can be used to hash the concatenated s and y to obtain fourth information hash(y||s); and a hash algorithm can be used to hash the concatenated t and z to obtain fourth information hash(z||t).

[0272] It should be understood that FIG5D is only an example of the present application, and the present application does not limit which random number is used in conjunction with which of the third information for hash calculation.

[0273] FIG5E is a schematic diagram showing the structure of metadata.

[0274] 5E , exemplarily, the metadata of the media content may include a privacy flag (Privacy Flag), 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 hard binding of the media content (Media Hash), and a digital content identifier (Content ID) of the media content.

[0275] It should be noted that there is no need to generate a random number. In one possible approach, only one piece of third information may be hashed to obtain one piece of fourth information. In another possible approach, only multiple pieces of third information may be hashed to obtain one piece of fourth information.

[0276] It should be noted that FIG5E is only an example of metadata of the media content, and this application does not limit the location of the information contained in the metadata of the media content in FIG5E.

[0277] It should be noted that the first information of the media content may include the type of the first information and the value of the first information (i.e., the value of the type). For example, if the location of the media content is "Address: ** Province", the type of the first information is "Address" and the value of the first information is "** Province". The aforementioned privacy protection processing based on the third information refers to privacy protection processing based on the value of the third information, that is, privacy protection processing is performed on the value of the third information to obtain the second information.

[0278] For example, in the above embodiment, Creator(Privacy) may refer to the value of the author name of the privacy-protected media content; Location(Privacy) may refer to the value of the location where the privacy-protected media content was generated; Time(Privacy) may refer to the value of the time when the privacy-protected media content was generated; and Content ID may refer to the value of the digital content identifier of the media content. Furthermore, Privacy Flag(L2) in the above embodiment indicates that the value of the privacy flag is L2.

[0279] In one possible manner, the metadata of the media content may further include the type of the second information and / or the type of the third information.

[0280] FIG5F is a schematic diagram showing the structure of metadata.

[0281] 5F , exemplarily, the metadata of the media content includes a privacy flag (Privacy Flag) and a value of the privacy flag (Value_Privacy Flag(L2)), a value of the author name of the media content processed for privacy protection (Value_Creator(Privacy)) and the author name of the media content (Creator), a value of the generation location of the media content processed for privacy protection (Value_Location(Privacy)) and the generation location (Location) of the media content, a generation time of the media content processed for privacy protection (Value_Time(Privacy)) and the generation time (Time) of the media content, a hard binding of the media content (Media Hash), a value of the digital content identifier of the media content (Value_Content ID) and the digital content identifier (Content ID) of the media content.

[0282] It should be understood that the Value_Privacy Flag (L2) in Figure 5F is equivalent to the Privacy Flag (L2) in the above embodiment; the Value_Creator (Privacy) in Figure 5F is equivalent to the Creator (Privacy) in the above embodiment; the Value_Location (Privacy) in Figure 5F is equivalent to the Location (Privacy) in the above embodiment; the Value_Time (Privacy) in Figure 5F is equivalent to the Time (Privacy) in the above embodiment; the Value_Content ID in Figure 5F is equivalent to the Content ID in the above embodiment.

[0283] Figure 6 is a schematic diagram of an exemplary metadata generation device. The metadata generation device can be used to execute the method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0284] 6 , illustratively, the metadata generating device may include:

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

[0286] The generating module 602 is configured to generate metadata of the media content. The metadata of the media content includes first information of the media content and a privacy identifier. The privacy identifier is used to indicate whether the first information of the media content is public information or non-public information.

[0287] Exemplarily, the privacy identifier is used to indicate a privacy level of the first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

[0288] Exemplarily, the privacy level is used to indicate whether the first information of the media content is public information or non-public information, including: the first information of the media content above the privacy level is public information, and the first information of the media content below or equal to the privacy level is non-public information; or, 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.

[0289] Exemplarily, the privacy identifier is used to indicate whether part or all of the first information is public information or non-public information.

[0290] Exemplarily, the first information of the media content includes the second information, and the privacy identifier is specifically used to indicate that the second information is public information.

[0291] Exemplarily, the metadata of the media content further includes fourth information, where the fourth information is obtained by performing privacy protection processing on the third information, and the privacy identifier is further used to indicate that the third information is non-public information.

[0292] Exemplarily, the privacy level of the second information is not higher than the privacy level indicated by the privacy identifier.

[0293] Exemplarily, there are multiple pieces of second information, and the privacy levels of the multiple pieces of second information are the same or different.

[0294] Exemplarily, the privacy level of the third information is higher than the privacy level indicated by the privacy identifier.

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

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

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

[0298] Exemplarily, there are multiple third information, and the fourth information is obtained by hard binding multiple random numbers and multiple third information; wherein, at least one random number is used for hard binding with at least one third information.

[0299] Exemplarily, there are multiple third information and multiple fourth information, and one fourth information is obtained by performing privacy protection processing based on at least one third information.

[0300] 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 of the media content, and the digital signature is a signature of the statement.

[0301] Exemplarily, the first 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, information of the media content 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.

[0302] Exemplarily, the acquisition module 601 is further configured to acquire the first information and the privacy identifier of the media content;

[0303] The metadata generation device further includes: an information determination module and a packaging module;

[0304] An information determination module, configured to determine second information in the first information of the media content based on the privacy identifier;

[0305] The encapsulation module is used to encapsulate at least the second information and the privacy identifier to obtain first encapsulated data.

[0306] Exemplarily, the information determination module is further configured to determine the second information and the third information in the first information of the media content based on the privacy identifier; the metadata generation device further includes: a privacy protection module configured to perform privacy protection processing on the third information to obtain fourth information;

[0307] The encapsulation module is further used to encapsulate at least the second information, the privacy identifier and the fourth information to obtain second encapsulated data.

[0308] Figure 7 is a schematic diagram of an exemplary display device for media assets. The display device for media assets can be used to execute the method of the aforementioned embodiment. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0309] 7 , illustratively, a display device for a media asset may include:

[0310] A receiving module 701 is configured to receive an operation on a media asset, where the media asset includes media content and metadata of the media content. The metadata of the media content includes first information of the media content and a privacy flag, where the privacy flag is used to indicate whether the first information of the media content is public information or non-public information.

[0311] The display module 702 is configured to display public information in the first information of the media content in response to an operation on the media asset.

[0312] Exemplarily, the display module 702 is configured to display the privacy indicator in response to the operation on the media asset.

[0313] Exemplarily, the metadata of the media content also includes fourth information, which is obtained by privacy protection processing based on the third information, and the third information is non-public information of the first information of the media content; the display module 702 is used to display the fourth information in response to operations on the media assets.

[0314] Exemplarily, the metadata of the media content also includes fourth information, which includes information obtained by encrypting third information using the first key, and the third information is non-public information in the first information of the media content; the display module 702 is used to display the third information obtained by decrypting the fourth information using the first key in response to operations on the media asset when the electronic device holds multiple first keys.

[0315] Exemplarily, the privacy identifier is used to indicate a privacy level of the first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

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

[0317] In an example, FIG8 shows a schematic block diagram of an apparatus 800 according to an embodiment of the present application. The apparatus 800 may include: a processor 801 and a transceiver / transceiver pin 802 , and optionally, a memory 803 .

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

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

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

[0321] 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.

[0322] The present application also provides a chip comprising one or more interface circuits and one or more processors. The one or more processors receive or send data via the one or more interface circuits. When the one or more processors execute computer instructions, the electronic device implements the metadata generation method described in the above embodiment by performing the above-mentioned related method steps. The interface circuit is transceiver / transceiver pin 802.

[0323] This embodiment further provides a computer-readable storage medium, which stores computer instructions. 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.

[0324] 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.

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

[0326] 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.

[0327] 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 distributed and completed by 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.

[0328] In the several embodiments provided in this 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 merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, 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.

[0329] Units described as separate components may or may not be physically separate, and 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 places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0330] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0331] Any content of each embodiment of this 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 this application.

[0332] 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 and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0333] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

[0334] 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 (Read Only 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 disc (CD-ROM) or any other form of storage medium well 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.

[0335] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using 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 communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0336] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for generating metadata, characterized in that: The method comprises: Get media content; Metadata of the media content is generated, wherein the metadata of the media content includes first information of the media content and a privacy identifier; the privacy identifier is used to indicate whether the first information of the media content is public information or non-public information.

2. The method according to claim 1, characterized in that The privacy identifier is used to indicate a privacy level of the first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

3. The method according to claim 2, characterized in that The privacy level is used to indicate whether the first information of the media content is public information or non-public information, including: 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 privacy level or equal to the privacy level is non-public information; or, The first information of the media content that is higher than the privacy level is non-public information, and the first information of the media content that is lower than or equal to the privacy level is public information.

4. The method according to any one of claims 1 to 3, characterized in that: The privacy identifier is used to indicate whether part or all of the information in the first information is public information or non-public information.

5. The method according to any one of claims 1 to 4, characterized in that: The first information of the media content includes second information, and the privacy identifier is specifically used to indicate that the second information is public information.

6. The method according to any one of claims 1 to 5, characterized in that: The metadata of the media content also includes fourth information, which is obtained by performing privacy protection processing on the third information. The privacy identifier is also used to indicate that the third information is non-public information.

7. The method according to any one of claims 2 to 6, 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.

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

9. The method according to claim 6 or 8, characterized in that: The third information is multiple, The fourth information is obtained by encrypting multiple third information using multiple keys; wherein one key is used to encrypt at least one third information.

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

11. The method according to claim 6 or 8, characterized in that: The third information is multiple, The fourth information is obtained by hard binding processing based on multiple random numbers and multiple third information; wherein at least one random number is used for hard binding processing with at least one third information.

12. The method according to claim 6 or 8 or 9 or 10 or 11, characterized in that: There are multiple third information, there are multiple fourth information, and one fourth information is obtained by performing privacy protection processing based on at least one third information.

13. The method according to any one of claims 1 to 12, 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 of the media content, and the digital signature is a signature of the statement.

14. The method according to any one of claims 1 to 13, characterized in that: The first 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 media content generation device of 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 of the media content.

15. The method according to any one of claims 1 to 14, characterized in that The method further comprises: Acquire the first information of the media content and the privacy identifier; Based on the privacy identifier, determining second information in the first information of the media content; At least the second information and the privacy identifier are encapsulated to obtain first encapsulated data.

16. The method according to any one of claims 1 to 14, characterized in that The method further comprises: Acquire the first information of the media content and the privacy identifier; Based on the privacy identifier, determining the second information and the third information in the first information of the media content; Performing privacy protection processing on the third information to obtain the fourth information; At least the second information, the privacy identifier and the fourth information are encapsulated to obtain second encapsulated data.

17. 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 of the media content and a privacy identifier; the privacy identifier is used to indicate whether the first information of the media content is public information or non-public information; In response to the operation on the media asset, public information in the first information of the media content is displayed.

18. The method according to claim 17, characterized in that In response to the operation on the media asset, the privacy indicator is also displayed.

19. The method according to claim 17 or 18, characterized in that The metadata of the media content further includes fourth information, the fourth information is obtained by performing privacy protection processing based on the third information, and the third information is non-public information in the first information of the media content; In response to the operation on the media asset, the fourth information is also displayed.

20. The method according to claim 17 or 18, characterized in that The metadata of the media content further includes fourth information, the fourth information includes information obtained by encrypting third information using the first key, and the third information is non-public information in the first information of the media content; In the case where the electronic device holds the first key, in response to the operation on the media asset, the third information obtained by decrypting the fourth information using the first key is also displayed.

21. The method according to any one of claims 17 to 20, characterized in that The privacy identifier is used to indicate a privacy level of the first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

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

23. 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, wherein the metadata of the media content includes the first information of the media content and a privacy identifier; the privacy identifier is used to indicate whether the first information of the media content is public information or non-public information.

24. The device according to claim 23, characterized in that The privacy identifier is used to indicate a privacy level of the first information of the media content, and the privacy level is used to indicate whether the first information of the media content is public information or non-public information.

25. The device according to claim 23 or 24, characterized in that The first information of the media content includes second information, and the privacy identifier is specifically used to indicate that the second information is public information.

26. The device according to any one of claims 23 to 25, characterized in that The metadata of the media content also includes fourth information, which is obtained by performing privacy protection processing on the third information. The privacy identifier is also used to indicate that the third information is non-public information.

27. 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 of the media content and a privacy identifier, wherein the privacy identifier is used to indicate whether the first information of the media content is public information or non-public information; The display module is configured to display the public information in the first information of the media content in response to the operation on the media asset.

28. The device according to claim 27, characterized in that The display module is used to display the privacy identifier in response to the operation on the media asset.

29. The device according to claim 27 or 28, characterized in that The metadata of the media content further includes fourth information, the fourth information is obtained by performing privacy protection processing based on the third information, and the third information is non-public information in the first information of the media content; The display module is configured to display the fourth information in response to the operation on the media asset.

30. The device according to claim 27 or 28, characterized in that The metadata of the media content further includes fourth information, the fourth information includes information obtained by encrypting third information using the first key, and the third information is non-public information in the first information of the media content; The display module is used for displaying the third information obtained by decrypting the fourth information using the first key in response to the operation on the media asset when the electronic device holds the first key.

31. 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 16.

32. 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 17 to 22.

33. 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 22.

34. 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 22.

35. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed by a computer or a processor, the steps of the method according to any one of claims 1 to 22 are performed.

Citation Information

Patent Citations

  • Metadata generation method and electronic equipment

    CN119577162A

  • Restricting access to portions of sensitive metadata in media content

    CN108605201A

  • Picture processing method and device

    CN110929287A

  • Method, Apparatus, and Computer Program Product for Determining Media Item Privacy Settings

    US20100125603A1