Metadata generation method and electronic equipment
By generating privacy identifiers in the metadata of media content, the problem of how to determine whether the metadata of media content contains user privacy is solved, and the effective use and display restrictions on media assets are achieved to protect user privacy.
Patent Information
- Application Number
- CN202311148567.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2025-03-07
AI Technical Summary
How to determine whether the metadata of media content contains user privacy to reduce the risk of user privacy leakage.
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 performing corresponding usage/display restrictions.
Determine which information in the metadata of media content is private information and which is non-private information based on the privacy identifier, thereby achieving effective use and display restrictions on media assets and protecting user privacy.
Smart Images

Figure CN119577162A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing, and in particular to a metadata generation method and an electronic device. Background Art
[0002] With the popularization of portable camera devices such as mobile phones and the development of various simple and efficient media editing software, the threshold for people to create media content (such as images, music, and videos) and edit media content is getting lower and lower; and with the increase in the use scenarios of media content (for example, sending it to other users through various instant messaging software; for example, publishing it on various social software (or trading platforms)), people's motivation to create / edit media content has been further increased, making media content a blowout development.
[0003] Media content generally also carries metadata, such as the time when the photo was taken, the location where the photo was taken, the author of the photo, etc. These metadata can help the creators or consumers of media content to better understand the media content, and can be used to prove the authenticity of media content in many scenarios. However, some metadata of media content involves user privacy. Setting usage conditions for media content whose metadata contains user privacy can reduce the risk of user privacy leakage to a certain extent. Therefore, it is very important to determine whether the metadata of media content contains user privacy. Summary of the invention
[0004] In view of this, the present application provides a metadata generation method and electronic device. The metadata of the media content generated by the method includes a privacy identifier, so that the use / display restrictions can be made on the media assets according to the privacy identifier included in the metadata of the media content.
[0005] 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 of the media content, the metadata of the media content comprising 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.
[0006] In this way, it is possible to determine which information in the metadata of the media content is private information (i.e., non-public information) and which is non-private information (i.e., public information) based on the privacy identifier, and then impose corresponding usage / display restrictions on the media assets. For example, when displaying the metadata of the media content, only public information is displayed; for another example, when using the media content, only the media content whose target information in the metadata of the media content is public information is used; and so on.
[0007] 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.
[0008] Exemplarily, the present application may be applied to the generation (creation) stage of media assets, and may also be applied to the editing and processing stage of media assets, and the present application does not impose any limitation on this.
[0009] Exemplarily, the media content in the generation stage of the media asset can be generated by an electronic device. For example, if the media content is an image, it can be obtained by shooting with a camera or generated using an AI model or taking a screenshot, etc.
[0010] Exemplarily, the media content used for editing processing in the editing processing stage of the media asset can be obtained from other electronic devices.
[0011] Exemplarily, a media asset (MediaAsset) may include media content (Media Content) and metadata (Metadata) of the media content. The metadata of the media content is bound to the media content (or the metadata of the media content is associated with the media content). It should be noted that in some scenarios, media assets are also referred to as media files.
[0012] Exemplarily, the media content may include at least one of the following: images, videos, audios, graphics, or texts; it should be understood that the media content may also include other types of media content, which is not limited in the present application.
[0013] Exemplarily, the privacy mark can be set by the system of the electronic device or can be set by the user, and this application does not limit this. In the generation stage of the media asset, after the media content is obtained, a privacy mark setting interface can be displayed, and the user can set the privacy mark in the privacy mark interface; in the editing and processing stage of the media asset, after the edited media content is obtained, a privacy mark setting interface can also be displayed, and the user can set the privacy mark in the privacy mark interface.
[0014] 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.
[0015] 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.
[0016] 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.
[0017] In one possible manner, a privacy level can be set for the first information of the media content in advance (or in the process of generating metadata of the media content) according to a second preset rule; and the first information of the media content that is higher than the level threshold is determined as non-public information, and the first information of the media content that is not higher than the level threshold is determined as public information. The second preset rule can be set by the system of the electronic device or can be set by the user, and this application does not limit this.
[0018] For example, the second preset rule may be: the hard-binding privacy level of the media content is L1, the privacy level of the media content generation method and the privacy level of the digital content identifier of the media content are L2, the privacy level of the media content generation time is L3, the privacy level of the media content generation location, the privacy level of the media content author name and the privacy level of the information of the media content generation device is L4; wherein, the privacy levels corresponding to L1 to L4 are from low to high.
[0019] It should be understood that the second preset rule can be set according to specific needs, and this application does not limit this.
[0020] 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.
[0021] Exemplarily, if the value of the privacy identifier is L2, when the first information of the media content above the privacy level is non-public information, and the first information of the media content below or equal to the privacy level is public information, then the hard binding of the media content, the generation method of the media content, and the digital content identifier of the media content in the above example are public information, and the generation time of the media content, the generation location of the media content, the name of the author of the media content, and the information of the generation device of the media content are non-public information. When 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, then the hard binding of the media content, the generation method of the media content, and the digital content identifier of the media content in the above example are non-public information, and the generation time of the media content, the generation location of the media content, the name of the author of the media content, and the information of the generation device of the media content are public information.
[0022] 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.
[0023] In one possible manner, it is possible to determine in advance (or in the process of generating metadata of the media content) which of the first information of the media content is public information and which is non-public information according to the first preset rule. The first preset rule may be set by the system of the electronic device or may be set by the user, and this application does not limit this.
[0024] For example, the first preset rule may be that hard binding of media content, generation method of media content and digital content identifier of media content are public information, and generation time of media content, generation location of media content, author name of media content and information of generation device of media content are non-public information.
[0025] It should be understood that the first preset rule can be set according to specific needs, and this application does not limit this.
[0026] 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.
[0027] 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 identifier 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 and the privacy identifier in the first information of the media content.
[0028] Exemplarily, the second information is at least part of the first information of the media content.
[0029] Exemplarily, the privacy level of the second information is not higher than the privacy level indicated by the privacy identifier.
[0030] According to the first aspect, or any implementation of the first aspect above, the metadata of the media content also includes fourth information, the fourth information is obtained by performing privacy protection processing on the third information, and the privacy identifier is also used to indicate that the third information is non-public information.
[0031] 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.
[0032] That is, the metadata of the media content includes the public information in the first information of the media content, the information obtained by performing privacy protection processing on the non-public information in the first information of the media content, and the privacy identifier. In this way, it is convenient for users to know which first information of the media content is privacy protected.
[0033] In addition, the third information is invisible after privacy protection processing, so other users cannot view or obtain the third information, thereby ensuring the security of the third information and avoiding the leakage of the third information. When the third information is the user's private information, the user's privacy can be avoided from being leaked and the user's privacy security can be ensured.
[0034] Exemplarily, the privacy level of the third information is higher than the privacy level indicated by the privacy identifier.
[0035] According to the first aspect, or any implementation of the first aspect, there are multiple second information, and the privacy levels of the multiple second information are the same or different.
[0036] 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.
[0037] Exemplarily, hard binding processing may refer to: using a one-way function to process the original information, the result obtained cannot be used to derive the original information, and it is also impossible to forge other original information that uses the one-way function to process to obtain the same result. Among them, hash calculation is a kind of hard binding processing.
[0038] Exemplarily, encryption processing may refer to processing original information using an encryption algorithm and a key.
[0039] It should be understood that privacy protection processing may also include other processing such as commitment processing (using a commitment algorithm to process the original information, which is a data confidentiality algorithm), etc., and this application does not impose any restrictions on this.
[0040] 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.
[0041] For example, the third information is X1 (X1 is a positive integer), and the key can be X2 (X2 is a positive integer); wherein X1 is greater than or equal to X2. When X1 is greater than X2, one key can be used to encrypt multiple third information, that is, multiple third information share one key. When X1 is equal to X2, one key can be used to encrypt one third information, that is, the keys corresponding to X1 third information are different.
[0042] 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.
[0043] 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.
[0044] 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 of the master key and the media content to obtain multiple keys.
[0045] 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.
[0046] According to the first aspect, or any implementation of the first aspect above, the fourth information is obtained by hard binding processing based on multiple random numbers and multiple second information; wherein at least one random number is used for hard binding processing with at least one third information.
[0047] In one possible manner, at least one random number may be used to perform a hash calculation on a third information to obtain a fourth information. Specifically, at least one random number and a third information may be connected; then, a hash algorithm may be used to perform a hash calculation on the information obtained by connecting the at least one random number and the third information to obtain the fourth information.
[0048] In one possible manner, at least one random number may be used to perform a hash calculation on information obtained by combining multiple third information to obtain a fourth information. Specifically, at least one random number and multiple third information may be connected; then, a hash algorithm may be used to perform a hash calculation on the information obtained by connecting the at least one random number and multiple third information to obtain a fourth information.
[0049] Since the value of the third information with a relatively simple value can be reversely deduced by looking up a table after hard binding, the present application connects the value of the third information with a random number and 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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 in this application.
[0054] Exemplarily, a digital signature algorithm may be used to sign the claim to obtain a digital signature of the claim (ClaimSignature). It should be understood that the present application does not limit the digital signature algorithm.
[0055] According to the first aspect, or any implementation manner of the first aspect above, 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 the 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 the editing device of the media content.
[0056] For example, the generation time of the media content, the name of the author of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the copyright information of the media content, and the training identifier of the media content can be referred to as the initial information of the media content. The initial information of the media content can refer to the information generated when the media content is generated; the initial information of the media content can also include other information, which is not limited by the present application.
[0057] Exemplarily, the editing operation information of the media content, the editing time of the media content, the editing location of the media content, the editing tool information of the media content, or the information of the editing device of the media content can be referred to as the editing information of the media content. The editing information of the media content can refer to the information related to the editing process of the media content; it should be understood that the editing information of the media content can also include other information, which is not limited in the present application.
[0058] 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.
[0059] 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 in the first information of the media content; and encapsulating at least the second information and the privacy identifier to obtain first encapsulated data.
[0060] 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.
[0061] Illustratively, the second encapsulation data may include at least one of the following encapsulation data 1 to encapsulation data 6.
[0062] 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 name of the author of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the hard binding of the media content, the copyright information of the media content, or the training identifier of the media content.
[0063] Exemplarily, when in the editing and processing stage of a media asset, the privacy identifier, the second information, and the fourth information may 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, 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. Next, the encapsulated data 4, the declaration, and the digital signature are encapsulated to obtain encapsulated data 5 (or a trust list). Afterwards, the encapsulated data 2 (generated in the generation stage of the media asset) and the encapsulated data 5 may be encapsulated to obtain encapsulated data 6 (or a trust record).
[0064] Exemplarily, 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.
[0065] In a second aspect, an embodiment of the present application provides a method for displaying a media asset, which is applied to an electronic device with a display, and the method includes: receiving an operation on a media asset, 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 identifier, and 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, displaying the public information and the privacy identifier in the first information of the media content. In this way, the public information and the 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.
[0066] For example, the operation on the media asset may be a metadata viewing operation on the media asset.
[0067] According to a second aspect, in response to an operation on a media asset, a privacy indicator is also displayed.
[0068] According to the second aspect, or any implementation of the second aspect above, the metadata of the media content also 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. In this way, the user cannot know the third information in the metadata of the media content, and the information security of the third information is guaranteed to a certain extent.
[0069] According to the second aspect, or any implementation of the second aspect above, the metadata of the media content also includes fourth information, the fourth information includes information obtained by encrypting the third information using the first key, and the third information is non-public information in the first information of the media content; when the electronic device holds multiple first keys, in response to an operation on the media asset, the third information obtained by decrypting the fourth information using the first key is also displayed. In this way, the electronic device can decrypt the fourth information using the first key it holds to obtain the third information, and then the non-public information can be displayed.
[0070] According to the second aspect, or any implementation of the second 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.
[0071] 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.
[0072] Exemplarily, 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.
[0073] It should be understood that the present application does not limit which information in the metadata of the media content is displayed.
[0074] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.
[0075] In a third aspect, an embodiment of the present application provides a metadata generation device, the device comprising:
[0076] An acquisition module, used to acquire media content;
[0077] The generation module is used to generate metadata of 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.
[0078] 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.
[0079] According to the third aspect, or any implementation method of the third aspect above, the privacy level is used to indicate that the first information of the media content is public information or non-public information, including: the first information of the media content higher than the privacy level is public information, and the first information of the media content lower than or equal to the privacy level is non-public information; or, the first information of the media content higher than the privacy level is non-public information, and the first information of the media content lower than or equal to the privacy level is public information.
[0080] According to the third aspect, or any implementation of the third aspect, 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.
[0081] According to the third aspect, or any implementation of the third aspect, 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.
[0082] According to the third aspect, or any implementation of the third aspect above, the metadata of the media content also includes fourth information, the fourth information is obtained by performing privacy protection processing on the third information, and the privacy identifier is also used to indicate that the third information is non-public information.
[0083] According to the third aspect, or any implementation of the third aspect, there are multiple second information, and the privacy levels of the multiple second information are the same or different.
[0084] According to the third aspect, or any implementation of the third aspect, the privacy protection processing includes at least one of encryption processing or hard binding processing.
[0085] 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.
[0086] According to the third aspect, or any implementation of the third aspect, the multiple keys are obtained by processing at least a master key using a key derivation algorithm.
[0087] According to the third aspect, or any implementation of the third aspect above, 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.
[0088] According to the third aspect, or any implementation of the third aspect, 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.
[0089] According to the third aspect, or any implementation of the third aspect above, the metadata of the media content also 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.
[0090] 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.
[0091] According to the third aspect, or any implementation of the third aspect above,
[0092] The acquisition module is further used to acquire the first information and the privacy identifier of the media content;
[0093] The device also includes:
[0094] A privacy processing module, used to determine the second information in the first information of the media content based on the privacy identifier;
[0095] The encapsulation module is used to encapsulate at least the second information and the privacy identifier to obtain the first encapsulated data.
[0096] According to the third aspect, or any implementation of the third aspect above,
[0097] The acquisition module is further used to acquire the first information and the privacy identifier of the media content;
[0098] The device also includes:
[0099] An information determination module, used to determine the second information and the third information in the first information of the media content based on the privacy identifier;
[0100] A privacy processing module, used for performing privacy protection processing on the third information to obtain fourth information;
[0101] The encapsulation module is used to encapsulate at least the second information, the privacy identifier and the fourth information to obtain second encapsulated data.
[0102] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.
[0103] In a fourth aspect, an embodiment of the present application provides a device for displaying media assets, the device comprising:
[0104] 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;
[0105] The display module is configured to display the public information in the first information of the media content in response to an operation on the media asset.
[0106] According to a fourth aspect, a display module is configured to display a privacy indicator in response to an operation on a media asset.
[0107] 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 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 respond to operations on the media assets and also display the fourth information.
[0108] According to the fourth aspect, or any implementation of the fourth aspect, 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 display the third information obtained by decrypting the fourth information using the first key in response to an operation on the media asset when the electronic device holds the first key.
[0109] According to the fourth aspect, or any implementation of the fourth 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.
[0110] 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.
[0111] The fourth aspect and any implementation of the fourth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.
[0112] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the metadata generation method in the first aspect or any possible implementation of the first aspect.
[0113] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.
[0114] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method for displaying media assets in the second aspect or any possible implementation of the second aspect.
[0115] The sixth aspect and any implementation of the sixth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.
[0116] In the seventh aspect, an embodiment of the present application provides a chip, comprising one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send a signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the metadata generation method in the first aspect or any possible implementation of the first aspect.
[0117] The seventh aspect and any implementation of the seventh aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the seventh aspect and any implementation of the seventh aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.
[0118] 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.
[0119] The eighth aspect and any implementation of the eighth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the eighth aspect and any implementation of the eighth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.
[0120] 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.
[0121] The ninth aspect and any implementation of the ninth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the ninth aspect and any implementation of the ninth aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.
[0122] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the method for displaying media assets in the fourth aspect or any possible implementation of the fourth aspect.
[0123] The tenth aspect and any implementation of the tenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the tenth aspect and any implementation of the tenth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.
[0124] 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.
[0125] The eleventh aspect and any implementation of the eleventh aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the eleventh aspect and any implementation of the eleventh aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.
[0126] 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.
[0127] The twelfth aspect and any implementation of the twelfth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the twelfth aspect and any implementation of the twelfth aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0128] Figure 1A is a schematic diagram of an application scenario shown as an example;
[0129] Figure 1B is a schematic diagram of an application scenario shown as an example;
[0130] Figure 1C is a schematic diagram of an application scenario shown as an example;
[0131] Figure 1Dis a schematic diagram of an application scenario shown as an example;
[0132] Figure 1E is a schematic diagram of an application scenario shown as an example;
[0133] Figure 2A The figure is a schematic diagram of the metadata generation process shown as an example;
[0134] Figure 2B is a schematic diagram of the structure of metadata shown as an example;
[0135] Figure 2C is a schematic diagram of the structure of metadata shown as an example;
[0136] Figure 3A A schematic diagram of a visual representation of metadata is shown as an example;
[0137] Figure 3B A schematic diagram of metadata is shown as an example;
[0138] Figure 3C A schematic diagram of metadata is shown as an example;
[0139] Figure 3D The schematic diagram of the structure of the metadata of the media content is shown as an example;
[0140] Figure 4A is a schematic diagram of the structure of metadata shown as an example;
[0141] Figure 4B is a schematic diagram of the structure of metadata shown as an example;
[0142] Figure 5A is a schematic diagram of an exemplary encryption process;
[0143] Figure 5B is a schematic diagram of an exemplary encryption process;
[0144] Figure 5C is a schematic diagram of the structure of metadata shown as an example;
[0145] Figure 5D A schematic diagram of a hash calculation process is shown as an example;
[0146] Figure 5E is a schematic diagram of the structure of metadata shown as an example;
[0147] Fig. 5F is a schematic diagram of the structure of metadata shown as an example;
[0148] Figure 6 is a schematic diagram of an exemplary metadata generation device;
[0149] Figure 7 A schematic diagram of a display device for exemplarily showing media assets;
[0150] Figure 8 Schematic diagram of the structure of the device shown as an example. DETAILED DESCRIPTION
[0151] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0152] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0153] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.
[0154] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0155] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
[0156] Figure 1A The figure is a schematic diagram of an exemplary application scenario. Figure 1A Shown is a scenario of sharing media content.
[0157] Exemplarily, media content can also be called digital content. Media content can be part of a media asset, representing the actual content of the media. Digital content is content of different content types such as text, images, and sounds that exist in digital form. It can be stored on digital carriers such as CDs and hard disks, and transmitted through the Internet and other means. Digital content is the overall product or service that integrates images, text, audio and video content through digital technology. It is the product of the combination of digital media technology and cultural creativity. For example, media content can be the pixel data of an image, as well as any additional technical metadata (for example, color profiles or encoding parameters) required to understand or present the content.
[0158] For example, digital technology is a science and technology that is closely associated with electronic computers. It refers to the technology that uses certain equipment to convert various information, including pictures, text, sound, and images, into binary numbers "0" and "1" that can be recognized by electronic computers for calculation, processing, storage, transmission, dissemination, and restoration. Since computers are used to encode, compress, and decode information in the calculation and storage process, it is also called digital technology, computer digital technology, etc. Digital technology is also called digital control technology.
[0159] Exemplarily, media content and metadata of the media content can constitute a media asset. The metadata of the media content is bound to the media content (or the metadata of the media content is associated with the media content). It should be noted that in some scenarios, media assets are also called media files.
[0160] Exemplarily, metadata may include data for describing media content; for example, metadata may include information describing properties of media content. Exemplarily, metadata may be a trust record. Exemplarily, a TrustRecord of media content may be a type of metadata of the media content, which records relevant information about the generation and change (e.g., editing) of the media content and may be used for tracing the source of the media content.
[0161] Exemplarily, metadata of the media content may be generated based on the media content and the first information of the media content.
[0162] Exemplarily, 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, which is not limited in this application.
[0163] Exemplarily, the initial information of the media content may refer to the information generated when the media content is generated. For example, the initial information of the media content may include, but is not limited to: the generation time of the media content, the name of the author of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the hard binding of the media content, the copyright information of the media content, the training identifier of the media content, etc.; it should be understood that the initial information of the media content may also include other information, which is not limited in this application.
[0164] Exemplarily, the editing information of media content may refer to information related to the editing process of the media content. For example, the editing information of media content may include, but is not limited to: the editing operation information of the media content, the editing time of the media content, the editing location of the media content, the editing tool information of the media content, or the information of the editing device of the media content. It should be understood that the editing information of the media content may also include other information, which is not limited in the present application.
[0165] Exemplarily, the hard binding of media content may refer to information obtained by hard binding the media content. Among them, the hard binding process may refer to: using a one-way function to process the original information, the result obtained cannot be used to derive the original information, and it is also impossible to forge other original information that uses a one-way function to process and obtain the same result. Among them, hash calculation is a kind of hard binding process, that is, the hard binding of media content can be a hash value obtained by hash calculation based on the media content (the hard binding of media content can also be called the hash value of the media content).
[0166] Reference Figure 1A For example, after user B generates an image using mobile phone B (for example, by calling a camera to shoot; for example, by using an AI model to generate; for example, by taking a screenshot; etc.), mobile phone B can obtain the first information of the image. Then, mobile phone B can generate metadata of the image based on the first information of the image and the generated image to obtain a media asset (this process corresponds to the generation (Creator) stage of the media asset). Figure 1A In an embodiment of the present invention, the metadata of the image may include hard binding of the image and initial information of the image.
[0167] For example, some of the first information of the image may contain information that is private to user B (that is, information that user B does not want to disclose, which may also be referred to as non-public information); therefore, when mobile phone B generates metadata for the image, it may add a privacy identifier to the metadata for the image. The privacy identifier may be used to indicate whether the first information contained in the metadata for the image is public information or non-public information.
[0168] For example, the visual representation of the metadata of the image generated by mobile phone B can be as follows: Figure 1A As shown in Example 1 in ; it should be noted that Figure 1A The metadata of the image shown in Example 1 is a visual representation of the metadata of the image. It should be understood that the metadata of the image can also be represented in other visual representations, and the present application does not limit this.
[0169] Reference Figure 1A For example, the metadata of the image in Example 1 may include 7 first information of the image, and the privacy identifier may be represented by 7 bits, and one bit may correspond to one first information; for example, the first bit from left to right in the privacy identifier corresponds to the author name of the image, the second bit from left to right in the privacy identifier corresponds to the generation time of the image, and so on. Figure 1A In the privacy flag, a bit of "0" indicates that the corresponding first information is non-public information, and a bit of "1" indicates that the corresponding first information is public information; that is, in Figure 1A The author name of the image, the time when the image was generated, the location where the image was generated, and the device on which the image was generated are non-public information, while the name of the image, the media type of the image, and the method by which the image was generated are public information.
[0170] For example, when user B wants to share the image with user A later, user B can send the image to user A's mobile phone A through the communication software in mobile phone B (wherein the metadata of the image is also sent to mobile phone A). For example, after mobile phone A receives the image (and also receives the metadata of the image), when user A wants to view the metadata of the image, he can perform a metadata viewing operation; thus, mobile phone A can display the metadata of the image in response to the metadata viewing operation, such as Figure 1A As shown in Example 2 in . It should be noted that when mobile phone A reads the metadata of the image in response to the metadata viewing operation, it can first read the privacy identifier; then, according to the privacy identifier, determine which first information to read from the metadata of the image. For example, Figure 1AIn the example, if the privacy identifier is "0011100", the name of the image, the media type of the image, and the method for generating the image are determined to be public information. In this case, only the name of the image, the media type of the image, and the method for generating the image are read and displayed.
[0171] In this way, user A cannot obtain the non-public information of user B, which can prevent the privacy information of user B from being leaked, and ensure the security of the privacy information of user B to a certain extent.
[0172] Figure 1B The figure is a schematic diagram of an exemplary application scenario. Figure 1B Shown are media content viewing scenarios based on user ratings and privacy indicators.
[0173] Reference Figure 1B For example, the server stores media assets, which include images and metadata of the images. Figure 1B As shown in Example 1 in . The metadata of the image can be generated in the Creator stage of the media asset. Figure 1B In Example 1, the metadata of the image may include initial information of the media content and a privacy identifier. The privacy identifier may be used to indicate a privacy level (e.g., L2) of 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.
[0174] Exemplarily, 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 limitation on this.
[0175] For example, the preset rules may be: the hard-binding privacy level of media content is L1, the privacy level of the media content generation method and the privacy level of the digital content identifier of the media content are L2, the privacy level of the media content generation time is L3, the privacy level of the media content generation location, the privacy level of the media content author name and the privacy level of the information of the media content generation device is L4; wherein, the privacy levels corresponding to L1 to L4 are from low to high.
[0176] 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 media content generation device are non-public information.
[0177] 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 media content generation device are non-public information.
[0178] 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 media content generation device are non-public information.
[0179] exist Figure 1B In Example 1, the privacy level indicated by the privacy flag is L2, then 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.
[0180] For example, in Figure 1B In the figure, 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, which can be viewed as follows: Figure 1B As shown in Example 2 in FIG. 2 . For another example, after user 2 with user level 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, which can be as follows: Figure 1B This is shown in Example 3.
[0181] For example, in Figure 1B For users with a user level greater than P2, the initial information with a privacy level greater than L2 can be read from the metadata of the image. For example, after user n (n is a positive integer) with a user level of P4 obtains the image from the server through PCn, the metadata that can be viewed includes: the name of the image, the image generation method, the image media type, the image author name, the image generation time, the image generation location and the image generation device information, which can be as follows Figure 1B This is shown in Example 4.
[0182] It should be noted that Figure 1B The metadata of the image shown in Examples 1 to 4 is a visual representation of the metadata of the image. It should be understood that the metadata of the image can also be represented in other visual representations, and the present application does not limit this.
[0183] 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.
[0184] Figure 1C The diagram is a schematic diagram of an exemplary application scenario. Figure 1C What is shown is a media content usage scenario based on privacy identification.
[0185] For example, in Figure 1C In the process of generating metadata of an image, 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 is subjected to privacy protection processing, so that the non-public information in the first information of the image is invisible.
[0186] Reference Figure 1C Exemplarily, part of the information in the metadata of the image is ciphertext (or part of the information is the ciphertext of the non-public information in the first information of the media content; wherein the representation of the ciphertext may include multiple forms, for example, a string composed of at least one of numbers, letters or symbols), and part of the information is plaintext (or part of the information is the public information itself in the 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 generation method of the image) is ciphertext, the generation location of the image is ciphertext, and the name of the generation device of the image is ciphertext; the name of the image is plaintext, and the media type of the image is plaintext. Among them, the non-public information that is ciphertext is invisible.
[0187] For example, in Figure 1C In the APP, when a user uses an image in an application (Application, APP), the application can read the privacy identifier in the metadata of the image; when the value of the privacy identifier meets the usage conditions of the media content, the user can be allowed to use the image; when the value of the privacy identifier does not meet the usage conditions, the user may not be allowed to use the image. After the APP uses the image, the non-public information in the metadata of the image is privacy-protected, which can prevent the APP from obtaining the non-public information and ensure the security of the non-public information.
[0188] For example, the APP can pre-set the usage conditions of the 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 requirements, and this application does not impose any restrictions on this.
[0189] Reference Figure 1C For example, the use conditions of media content of APP1 (e.g., instant messaging APP) and APPm (e.g., social APP) may be: media content with a privacy identifier of L2 in metadata is allowed to be used; thus, the user can use the image in APP1 and APPm. Figure 1C In the example, the use condition of the media content of APP2 (such as an encyclopedia APP) may be: the media content with the privacy identifier L2 in the metadata is not allowed to be used; in this way, the user cannot use the image in APP2.
[0190] Figure 1D and Figure 1E The figure is a schematic diagram of an exemplary application scenario. Figure 1D and Figure 1E Shown is a display scenario of a media asset.
[0191] Reference Figure 1D (1), illustratively, after the mobile phone receives an image (or generates an image) from other electronic devices and stores it locally, when the user wants to view the image or the metadata of the image, the album interface 11 can be opened. The album interface 11 may include one or more controls, including but not limited to thumbnails of images, thumbnails of videos, time, etc., which are not limited in this application. The user can click on the image he wants to view in the album interface 11, and the mobile phone can display the image in the display interface 12 in response to the user's operation behavior, such as Figure 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.
[0192] Continue to refer to Figure 1D (2) For example, when the user wants to view the metadata of the image, the user can click on the metadata view option 13, and the mobile phone displays the metadata of the image in response to the user's operation, such as Figure 1E shown.
[0193] Assume that the metadata of the image includes information that has not been processed for privacy protection in the first information of the image (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 Figure 1E The metadata of the image displayed in the video may include multiple situations; among them, the second information may include the name of the image and the type of media content, and the third information may include the author name of the image, the time when the image was generated, the way the image was generated, the location where the image was generated, and the information of the device that generated the image.
[0194] 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. Figure 1E (1), 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., 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); 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), FIG. The ciphertext of the image generation method (which can be understood as a type of third information) and 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 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 flag (which can be understood as a type of information) and the value of the privacy flag (L2).
[0195] 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 flag are displayed. Figure 1E(2) 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 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 flag (which can be understood as a type of information) and the value of the privacy flag (0010100) are displayed.
[0196] 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. Figure 1E (3) 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., 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), the time when the image was generated (which can be understood as a type of the third information), the way the image was generated (which can be understood as a type of the third information), the location when 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.
[0197] In one possible manner, only the type of the second information and the 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. Figure 1E (4) 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 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.
[0198] 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 the present application does not limit which information in the metadata of the media content is displayed.
[0199] The following describes the process of generating metadata for a media asset.
[0200] Figure 2A The figure is a schematic diagram of the metadata generation process for example.
[0201] S201, acquiring media content.
[0202] Exemplarily, the media content may include at least one of the following: images, videos, audios, graphics, or texts; it should be understood that the media content may also include other types of media content, which is not limited in the present application.
[0203] Exemplarily, the present application may be applied to the generation (creation) stage of media assets, and may also be applied to the editing and processing stage of media assets, and the present application does not impose any limitation on this.
[0204] Exemplarily, the media content in the generation stage of the media asset can be generated by an electronic device. For example, if the media content is an image, it can be obtained by shooting with a camera or generated using an AI model or taking a screenshot, etc.
[0205] Exemplarily, the media content used for editing processing in the editing processing stage of the media asset can be obtained from other electronic devices.
[0206] S202, generating metadata of the media content, where 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.
[0207] Exemplarily, the first information and the privacy identifier of the media content may also be acquired; then, metadata of the media content may be generated based on the first information and the privacy identifier of the media content.
[0208] Exemplarily, in the generation phase of the media asset, the first information of the acquired media content may include a hard binding of the initial information and the generated media content.
[0209] Exemplarily, in the editing process stage of the media asset, the first information of the acquired media content may include a hard binding of the editing information and the edited media content.
[0210] Exemplarily, the privacy mark can be set by the system of the electronic device or can be set by the user, and this application does not limit this. In the media asset creation (Creation) stage, after obtaining the media content, a privacy mark setting interface can be displayed, and the user can set the privacy mark in the privacy mark interface; in the media asset editing and processing interface, after obtaining the edited media content, a privacy mark setting interface can also be displayed, and the user can set the privacy mark in the privacy mark interface.
[0211] 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.
[0212] Figure 2B The schematic diagram of the structure of metadata is shown as an example.
[0213] exist Figure 2B, the initial information of the media content is 5, then the privacy flag (Privacy Flag) can be identified by 5 bits such as "00011", where 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", that is, indicating 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", that is, indicating 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", that is, indicating that the author name (Creator) of the media content is non-public information; the fourth bit from left to right is used to indicate whether the hash value (Media Hash) of the media content is non-public information or public information, and the fourth bit is "1", that is, indicating that the hash value (Media Hash) of the media content is non-public information or public information. The fifth bit from left to right is used to indicate whether the digital content identifier (Content ID) of the media content is non-public information or public information. The fifth bit is "1", indicating that the digital content identifier (Content ID) of the media content is public information.
[0214] It should be noted that Figure 2B This is only an example of metadata for media content. Figure 2B The location of the information contained in the metadata of the media content is not restricted.
[0215] In one possible manner, a 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. The present application is described 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.
[0216] Exemplarily, the level of the first information of the media content can be set 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 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; wherein, the privacy levels corresponding to L1 to L4 are from low to high.
[0217] Figure 2C The schematic diagram of the structure of metadata is shown as an example.
[0218] exist 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, 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.
[0219] It should be noted that Figure 2C This is only an example of metadata for media content. Figure 2C The location of the information contained in the metadata of the media content is not restricted.
[0220] 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.
[0221] In one possible manner, the metadata of the media content includes the second information, the third information and the privacy identifier; the structure of the metadata of the media content may be as follows: Figure 2B and Figure 2C As shown, no further details will be given here. Figure 2B The visual representation of the metadata of the corresponding media content can be as follows Figure 3A shown.
[0222] In one possible manner, the metadata of the media content includes the second information and the privacy identifier. The metadata structure of the media content may be as follows: Figure 3B As shown in (1), the visual representation of the metadata of the media content can be as follows Figure 3B(2) As shown in FIG. 1 , other users cannot read the third information after obtaining the media content and the metadata of the media content, thereby protecting the third information and preventing the privacy information from being leaked.
[0223] In one possible manner, the metadata of the media content includes the second information, the fourth information (the fourth information may refer to the information obtained by performing privacy protection processing on the third information) and the privacy identifier. Exemplarily, the second information and the third information in the first information of the media content may be determined according to the privacy identifier; then, the third information may be privacy protected to obtain the fourth information; and then, the second information, the fourth information and the privacy identifier may be used to generate the metadata of the media content.
[0224] In the case where the privacy identifier is used to indicate the privacy level of the first information of the media content, the privacy level of the second information is not higher than the privacy level indicated by the privacy identifier, and the privacy level of the third information is higher than the privacy level indicated by the privacy identifier. The second information may include multiple first information, and the privacy levels of the multiple second information are the same or different. Exemplarily, the third information is multiple, and the privacy levels of the multiple third information are the same or different.
[0225] Figure 3C A schematic diagram of metadata is shown as an example.
[0226] Exemplarily, the metadata structure of the media content may be as follows: Figure 3C (1); wherein, “Location (Privacy)” indicates the location where the media content processed with privacy protection is generated; “Time (Privacy)” indicates the time when the media content processed with privacy protection is generated; and “Creator (Privacy)” indicates the name of the author of the media content processed with privacy protection.
[0227] For example, the visual representation of the metadata of the media content may be as follows: Figure 3C (2) as shown; 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 time at which the media content was generated is the information obtained by performing privacy protection processing on the time at which the media content was generated, and “Location: Privacy” indicates that the location at which the media content was generated is the information obtained by performing privacy protection processing on the location at which the media content was generated.
[0228] 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 the privacy information from being leaked.
[0229] Exemplarily, the metadata of the media content may further include at least one of the following: a statement or a digital signature, the statement is determined based on at least the first information, and the digital signature is a signature of the statement.
[0230] 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 in this application.
[0231] Exemplarily, a digital signature algorithm may be used to sign the statement to obtain a digital signature of the statement. It should be understood that the present application does not limit the digital signature algorithm.
[0232] Figure 3D The schematic diagram is a structural diagram of metadata of media content shown as an example.
[0233] Reference Figure 3D Exemplarily, the metadata of the media content includes a privacy flag (Privacy Flag), the author name of the media content processed with privacy protection (Creator(Privacy)), the generation location of the media content processed with privacy protection (Location(Privacy)), the generation time of the media content processed with privacy protection (Time(Privacy)), the hash value of the media content (Media Hash), the digital content identifier of the media content (Content ID), the claim (Claim) and the digital signature (Claim Signature).
[0234] It should be noted that Figure 3A to Figure 3D This is only an example of metadata for media content. Figure 3A to Figure 3D The location of the information contained in the metadata of the media content is not restricted.
[0235] 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 name of the author of the media content, the digital content identifier of the media content, the generation location of the media content, the information of the generation device of the media content, the generation method of the media content, the resolution of the media content, the size of the media content, the media type of the media content, the hard binding of the media content, the copyright information of the media content or the training identifier of the media content.
[0236] Figure 4A The schematic diagram of the structure of metadata is shown as an example.
[0237] Reference Figure 4A For example, a privacy flag (Privacy Flag), the author name of the media content processed with privacy protection (Creator(Privacy)), the generation location of the media content processed with privacy protection (Location(Privacy)), the generation time of the media content processed with privacy protection (Time(Privacy)), the hash value of the media content (Media Hash) and the digital content identifier (Content ID) of the media content are encapsulated into a MandatoryAssertion; a MandatoryAssertion, a declaration (Declaration Claim) and a digital signature (Claim Signature) are encapsulated into a TrustDeclaration; a TrustDeclaration is encapsulated into a TrustRecord; and a Trust Record is encapsulated into metadata of the media content.
[0238] It should be noted that in Figure 4A The dashed box in the middle represents optional information, that is, the declaration (DeclarationClaim) and digital signature (Claim Signature) are optional information.
[0239] Exemplarily, when in the editing and processing stage of a media asset, the privacy identifier, the second information, and the fourth information may 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, 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. Next, the encapsulated data 4, the declaration, and the digital signature are encapsulated to obtain encapsulated data 5 (or a trust list). Afterwards, the encapsulated data 2 (generated in the generation stage of the media asset) and the encapsulated data 5 may be encapsulated to obtain encapsulated data 6 (or a trust record).
[0240] Figure 4B The schematic diagram of the structure of metadata is shown as an example.
[0241] Reference Figure 4B For example, the privacy flag (Privacy Flag), the edit time (Edit Time(Privacy)) processed with privacy protection, the edit location (Edit Location(Privacy)) processed with privacy protection, the editor name (Editor, (Privacy)) processed with privacy protection, the hash value of the media content (MediaHash 1) (the hash value of the media content processed with editing), the information of the media content editing device (Device) and the media content editing tool information (Tool) are encapsulated into Assertion; Assertion, declaration (Claim) and digital signature (Claim Signature) are encapsulated into Trust Manifests; Trust Manifests and Trust Declaration are encapsulated into Trust Record. The description of Trust Declaration can refer to Figure 4A , I will not go into details here.
[0242] It should be noted that in Figure 4B The dashed box in the middle represents optional information, that is, the declaration (Declaration Claim or Claim) and the digital signature (Claim Signature) are optional information.
[0243] It should be noted that Figure 4A to Figure 4B This is only an example of metadata for media content. Figure 4A to Figure 4B The location of the information contained in the metadata of the media content is not restricted.
[0244] The following is an explanation of the privacy protection process.
[0245] In one possible manner, the privacy protection process is an encryption process. Correspondingly, the fourth information may be a ciphertext, that is, the fourth information is the ciphertext of the third information.
[0246] In one possible manner, a third information may be encrypted using a key to obtain a fourth information.
[0247] In one possible manner, a key may be used to encrypt information obtained by combining multiple third information to obtain a fourth information.
[0248] Exemplarily, the encryption keys for different third information may be the same or different, and this application does not impose any limitation on this.
[0249] Exemplarily, 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.
[0250] Exemplarily, 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.
[0251] Figure 5A The figure is a schematic diagram showing an exemplary encryption process.
[0252] exist Figure 5A In the example, the three third 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 information Enc(x, K1); K2 can be used to encrypt y to obtain the fourth information Enc(y, K2); K3 can be used to encrypt z to obtain the fourth information Enc(z, K3).
[0253] It should be understood that Figure 5A This is only an example of the present application, and the present application does not limit which key is used to encrypt which related information in the third information.
[0254] In one possible manner, when there are multiple keys for encrypting 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 be empty or not empty, and this application does not limit this. For example, the first information used to generate the key may be a hard binding of the media content.
[0255] Figure 5B The figure is a schematic diagram showing an exemplary encryption process.
[0256] exist Figure 5B In the example, the three third information are: x, y and z. First, a master key (Master Key) K can be generated; then, the hard binding between the master key and the media content is processed using a key derivation algorithm to obtain three subkeys: K1, K2 and K3. K1 can be used to encrypt x to obtain the fourth information Enc(x, K1); K2 can be used to encrypt y to obtain the fourth information Enc(y, K2); K3 can be used to encrypt z to obtain the fourth information Enc(z, K3).
[0257] It should be understood that Figure 5B This is only an example of the present application, and the present application does not limit which key is used to encrypt which related information in the third information.
[0258] 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 randomly generated, and this application does not limit the method of generating multiple keys.
[0259] Figure 5C The schematic diagram of the structure of metadata is shown as an example.
[0260] Reference Figure 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 (MediaHash), and a digital content identifier (Content ID) of the media content.
[0261] It should be noted that Figure 5A to Figure 5C This is only an example of metadata for media content. Figure 5A to Figure 5C The location of the information contained in the metadata of the media content is not restricted.
[0262] In one possible manner, the privacy protection process is a hard binding process. This application takes the hard binding process as a hash calculation as an example for explanation, and correspondingly, the fourth information is the hash value of the third information.
[0263] In one possible manner, at least one random number may be used to perform a hash calculation on a third information to obtain a fourth information. Specifically, at least one random number and a third information may be connected; then, a hash algorithm may be used to perform a hash calculation on the information obtained by connecting the at least one random number and the third information to obtain the fourth information.
[0264] In one possible manner, at least one random number may be used to perform a hash calculation on information obtained by combining multiple third information to obtain a fourth information. Specifically, at least one random number and multiple third information may be connected; then, a hash algorithm may be used to perform a hash calculation on the information obtained by connecting the at least one random number and multiple third information to obtain a fourth information.
[0265] Exemplarily, 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.
[0266] Exemplarily, the random numbers used for hash calculations on third information with different privacy levels may be the same or different, and this application does not impose any limitation on this.
[0267] Exemplarily, the random numbers used for hash calculation for third information with the same privacy level may be the same or different, and this application does not impose any limitation on this.
[0268] Figure 5D The figure is a schematic diagram showing an exemplary hash calculation process.
[0269] exist Figure 5D In the example, the three third information are: x, y and z; the three randomly generated random numbers are: r, s and t. A hash algorithm can be used to perform hash calculation on the connected r and x to obtain the fourth information hash(x||r); a hash algorithm can be used to perform hash calculation on the connected s and y to obtain the fourth information hash(y||s); a hash algorithm can be used to perform hash calculation on the connected t and z to obtain the fourth information hash(z||t).
[0270] It should be understood that Figure 5D This is only an example of the present application, and the present application does not limit which random number is used and which one is related to the third information for hash calculation.
[0271] Figure 5E The schematic diagram of the structure of metadata is shown as an example.
[0272] Reference Figure 5EExemplarily, 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 (MediaHash), and a digital content identifier (Content ID) of the media content.
[0273] It should be noted that there is no need to generate a random number. In one possible manner, only one third information may be hashed to obtain one fourth information. In one possible manner, only multiple third information may be hashed to obtain one fourth information.
[0274] It should be noted that Figure 5E This is only an example of metadata for media content. Figure 5E The location of the information contained in the metadata of the media content is not restricted.
[0275] 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 (that is, the value of the type); for example, the location where the media content is generated is: "Address: ** Province", the type of the first information is "Address", and the value of the first information is "** Province". The above-mentioned 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.
[0276] For example, in the above embodiment, Creator (Privacy) may refer to the value of the author name of the media content that has been processed for privacy protection; Location (Privacy) may refer to the value of the location where the media content that has been processed for privacy protection is generated; Time (Privacy) may refer to the value of the time when the media content that has been processed for privacy protection is generated; Content ID may refer to the value of the digital content identifier of the media content. In addition, Privacy Flag (L2) in the above embodiment indicates that the value of the privacy identifier is L2.
[0277] In a 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.
[0278] Fig. 5F The schematic diagram of the structure of metadata is shown as an example.
[0279] Reference Fig. 5FExemplarily, 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 of the media content (Location), a generation time of the media content processed for privacy protection (Value_Time(Privacy)) and the generation time of the media content (Time), 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 of the media content (Content ID).
[0280] It should be understood that Fig. 5F The Value_Privacy Flag (L2) in the embodiment is equivalent to the Privacy Flag (L2) in the above embodiment; Fig. 5F The Value_Creator(Privacy) in the above embodiment is equivalent to the Creator(Privacy) in the above embodiment; Fig. 5F Value_Location(Privacy) in the example is equivalent to Location(Privacy) in the above embodiment; Fig. 5F Value_Time(Privacy) in the above embodiment is equivalent to Time(Privacy) Fig. 5F The Value_Content ID in is equivalent to the Content ID in the above embodiment.
[0281] Figure 6 The schematic diagram of the metadata generation device is shown as an example. The metadata generation device can be used to execute the method of the above embodiment, so the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.
[0282] Reference Figure 6 , exemplarily, the metadata generating device may include:
[0283] Acquisition module 601, used to acquire media content;
[0284] The generation module 602 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.
[0285] 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.
[0286] 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.
[0287] Exemplarily, 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.
[0288] 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.
[0289] Exemplarily, the metadata of the media content also includes fourth information, where the fourth information is obtained by performing privacy protection processing on the third information, and the privacy identifier is also used to indicate that the third information is non-public information.
[0290] Exemplarily, the privacy level of the second information is not higher than the privacy level indicated by the privacy identifier.
[0291] Exemplarily, there are multiple pieces of second information, and the privacy levels of the multiple pieces of second information are the same or different.
[0292] Exemplarily, the privacy level of the third information is higher than the privacy level indicated by the privacy identifier.
[0293] Exemplarily, the privacy protection process includes at least one of an encryption process or a hard binding process.
[0294] 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.
[0295] Exemplarily, the multiple keys are obtained by processing at least a master key using a key derivation algorithm.
[0296] 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.
[0297] 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.
[0298] 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.
[0299] Exemplarily, 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 the editing device of the media content.
[0300] Exemplarily, the acquisition module 601 is further used to acquire the first information and the privacy identifier of the media content;
[0301] The metadata generation device also includes: an information determination module and a packaging module;
[0302] An information determination module, configured to determine second information in the first information of the media content based on the privacy identifier;
[0303] The encapsulation module is used to encapsulate at least the second information and the privacy identifier to obtain the first encapsulated data.
[0304] Exemplarily, the information determination module is further used 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 also includes: a privacy protection module, which is used to perform privacy protection processing on the third information to obtain fourth information;
[0305] 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.
[0306] Figure 7 The media asset display device can be used to execute the method of the above embodiment, so the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.
[0307] Reference Figure 7 , exemplarily, the display device of the media asset may include:
[0308] The receiving module 701 is used to receive an operation on a media asset, where the media asset includes media content and metadata of the media content, where the metadata of the media content includes first information 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;
[0309] 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.
[0310] Exemplarily, the display module 702 is configured to display the privacy indicator in response to the operation on the media asset.
[0311] Exemplarily, the metadata of the media content also includes fourth information, which is obtained by performing privacy protection processing 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.
[0312] Exemplarily, 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 702 is used to display the third information obtained by decrypting the fourth information using the first key in response to an operation on the media asset when the electronic device holds multiple first keys.
[0313] 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.
[0314] Exemplarily, the privacy protection process includes at least one of an encryption process or a hard binding process.
[0315] In one example, Figure 8 A schematic block diagram of a device 800 according to an embodiment of the present application is shown. The device 800 may include: a processor 801 and a transceiver / transceiver pin 802 , and optionally, a memory 803 .
[0316] The components of the device 800 are coupled together via a bus 804, wherein the bus 804 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, all buses are referred to as bus 804 in the figure.
[0317] Optionally, the memory 803 may be used to store instructions in the aforementioned method embodiment. The processor 801 may be used to execute instructions in the memory 803, and control the receiving pin to receive a signal, and control the sending pin to send a signal.
[0318] The apparatus 800 may be the electronic device or a chip of the electronic device in the above method embodiment.
[0319] 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.
[0320] The embodiment of the present application also provides a chip, including one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device implements the metadata generation method in the above embodiment through the above-mentioned related method steps. The interface circuit is a transceiver / transceiver pin 802.
[0321] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the metadata generation method in the above-mentioned embodiment.
[0322] 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.
[0323] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the chip executes the metadata generation method in the above-mentioned method embodiments.
[0324] 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.
[0325] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0326] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0327] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0328] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0329] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of the present application.
[0330] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0331] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0332] 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 CD-ROM (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0333] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0334] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for generating metadata, characterized in that: The method comprises: Get media content; Metadata of the media content is generated, 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, which, when executed by a computer or a processor, cause the steps of the method according to any one of claims 1 to 22 to be performed.
Citation Information
Cited By
Metadata generation method and electronic device
EP4764929A1
Metadata generation method and electronic device
WO2025050986A1