Media content processing method and apparatus, and device and medium
Patent Information
- Application Number
- PCT/CN2024/117931
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-11
- Filing Date
- 2024-09-10
- Publication Date
- 2025-05-08
AI Technical Summary
Effect marks added to images or videos in a preset application may be lost after local editing or other application editing, resulting in the effect marks lost when used in the preset application again.
By acquiring the first media content (image or video), in response to a local storage or media content generation operation, the image thereof is processed to embed special effect information, obtain the second media content, and store the content. Then, in response to the publishing operation, the third media content is parsed to determine the special effect information, and the special effect entrance corresponding to the special effect information is displayed thereon.
Ensure that special effects information is not lost during the editing and publishing of media content, improves the interactivity of media content, and helps to recommend and use special effects information.
Smart Images

Figure CN2024117931_08052025_PF_FP_ABST
Abstract
Description
A media content processing method, device, equipment and medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese invention patent application with application number 202311169981.8, entitled “A media content processing method, device, equipment and medium” and filing date September 11, 2023, and the entire application is incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of image processing technology, and in particular to a method, apparatus, device, and medium for processing media content. Background Art
[0004] In the related art, special effect marks added to images or videos in a preset application may be affected after being edited locally or by other applications, resulting in the loss of the special effect marks when used again in the preset application.
[0005] Summary of the Invention
[0006] In order to solve the above technical problems, the present disclosure provides a media content processing method, apparatus, device and medium.
[0007] The present disclosure provides a method for processing media content, which is applied to a first application. The method includes:
[0008] Acquire first media content, wherein the first media content is an image or a video;
[0009] In response to a local storage operation or a media content generation operation on the first media content, processing an image of the first media content to embed special effect information to obtain second media content, and storing the second media content;
[0010] Acquiring third media content, wherein the third media content is obtained through an editing operation in the second application and / or a local editing operation;
[0011] In response to a publishing operation on the third media content, the third media content is parsed to determine the special effect information, and a special effect entry corresponding to the special effect information is displayed on the third media content.
[0012] The present disclosure also provides a media content processing device, which is provided in a first application, and includes:
[0013] A first acquisition module, configured to acquire first media content, wherein the first media content is an image or a video;
[0014] an embedding module, configured to, in response to a local storage operation or a media content generation operation on the first media content, process the image of the first media content to embed special effect information, obtain second media content, and store the second media content;
[0015] A second acquisition module is configured to acquire third media content, wherein the third media content is obtained through an editing operation in the second application and / or a local editing operation;
[0016] The parsing module is configured to, in response to a publishing operation on the third media content, parse the third media content to determine the special effect information, and display a special effect entry corresponding to the special effect information on the third media content.
[0017] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; the processor for reading the executable instructions from the memory and executing the instructions to implement the media content processing method provided in the embodiment of the present disclosure.
[0018] The embodiments of the present disclosure further provide a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the media content processing method provided by the embodiments of the present disclosure.
[0019] The embodiments of the present disclosure further provide a computer program product, which includes instructions, and when executed by a processor, implements the media content processing method provided in the embodiments of the present disclosure.
[0020] In the media content processing solution provided by the embodiments of the present disclosure, a first application obtains first media content, wherein the first media content is an image or a video; in response to a local storage operation or a media content generation operation on the first media content, the image of the first media content is processed to embed special effect information to obtain second media content, and the second media content is stored; third media content is obtained, wherein the third media content is obtained through an editing operation in the second application and / or a local editing operation; in response to a publishing operation on the third media content, the third media content is parsed to determine the special effect information, and a special effect entry corresponding to the special effect information is displayed on the third media content. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0022] FIG1 is a flow chart of a method for processing media content according to an embodiment of the present disclosure;
[0023] FIG2 is a schematic diagram of an associated page provided by an embodiment of the present disclosure;
[0024] FIG3 is a schematic diagram of a watermark embedding method provided by an embodiment of the present disclosure;
[0025] FIG4 is a schematic diagram of a watermark extraction method provided by an embodiment of the present disclosure;
[0026] FIG5 is a schematic structural diagram of a media content processing device provided by an embodiment of the present disclosure;
[0027] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] In related technologies, special effect tags added to images or videos in preset applications may be affected after being edited locally or by other applications, resulting in the loss of special effect tags when published again in the preset application, and then the loss of relevant special effect information such as the materials corresponding to the special effects. Other users can no longer interact by shooting the same works based on the published special effects, resulting in reduced interactivity of the image or video and loss of relevant information.
[0035] The embodiments of the present disclosure provide a method for processing media content, which will be described below in conjunction with specific embodiments.
[0036] FIG1 is a flow chart of a method for processing media content provided by an embodiment of the present disclosure. The method can be executed by a media content processing device, wherein the device can be implemented using software and / or hardware and can generally be integrated into an electronic device. As shown in FIG1 , the method is applied to a first application and includes:
[0037] Step 101: Acquire first media content, where the first media content is an image or a video.
[0038] The first media content may be media content currently being processed, media content acquired by an image acquisition module, or locally opened media content, without limitation. The first media content may be an image or a video. The media content processing method of the disclosed embodiment is applied to a first application, which may be an application that supports acquiring media content and performing special effects processing, storage, creation of works, and publication of the media content, without limitation.
[0039] In some embodiments, the first application may obtain the first media content, and then may add a special effect object to the first media content in response to a special effect adding operation by the user, or may not perform other operations.
[0040] Step 102 : In response to a local storage operation or a media content generation operation on the first media content, the image of the first media content is processed to embed special effect information to obtain second media content, and the second media content is stored.
[0041] The special effects information may be attribute information related to the special effects included in the first media content. In the embodiment of the present disclosure, the special effects information may include at least one special effects identifier associated with the first media content, and a special effects identifier is used to represent a special effects object. A special effects object may be an element that can add special display effects to media content. Different special effects objects have different functions. The embodiment of the present disclosure does not limit the specific special effects objects. For example, a special effects object may include at least one of a template, makeup, filter, special effect, sticker, text, etc. The second media content may be the first media content with added special effects information.
[0042] Special effect information is embedded in the form of a dark watermark. Watermarking technology can be used to embed some identification information as a watermark into digital carriers such as media content, documents, and software, or indirectly represent it. A dark watermark can refer to a watermark that is hidden in the media content and difficult to see. The disclosed embodiment uses dark watermark technology to embed special effect information into the first media content. Dark watermarks have the characteristics of being difficult to remove and robust, and can resist operations such as compression, cropping, painting, and rotation. By adding a dark watermark, special effect information can be retained without affecting the visual effect of the media content.
[0043] After acquiring the first media content, the first application may directly receive a local storage operation for the first media content, or receive a local storage operation for the first media content after adding a special effect object to the first media content, or receive a media content generation operation for the first media content, where the media content generation operation may be an operation for generating a multimedia work. The first application may embed at least one existing special effect information into an image of the first media content to obtain second media content, and store the second media content locally or online. Specifically, when the first media content needs to be stored locally or a media work needs to be generated, the special effect information is embedded in the first media content to obtain the second media content.
[0044] In some embodiments, processing an image of the first media content to embed special effects information includes: processing the image of the first media content to embed multiple special effects information associated with the first media content, wherein the multiple special effects information are used to generate at least one associated special effects information of the first media content, and the at least one associated special effects information is displayed on an associated page of the first media content after publication.
[0045] The associated special effect information may be information that specifically introduces at least one special effect object corresponding to the special effect information. The associated special effect information may include attribute information of at least one special effect object. The attribute information of the special effect object may include the special effect identifier, special effect name, and special effect icon, etc. The display format of the associated special effect information is not limited. For example, the associated special effect information may be displayed in the form of a card. The associated page may be a page that displays the specific details of the special effect information associated with the first media content. Through this associated page, the relevant content of each special effect object corresponding to the special effect information can be understood. For example, the associated page may be a special effect details page including special effect objects such as music and filters.
[0046] The first application processes the image of the first media content and can embed multiple special effect information associated with the first media content therein; subsequently, after the first media content is released, the associated page of the first media content can be displayed in response to a trigger operation, and at least one associated special effect information can be generated based on the special effect information of the first media content, and the at least one associated special effect information can be displayed in the associated page. The specific display method is not limited, for example, at least one associated special effect information can be displayed in the form of a card.
[0047] Exemplarily, Figure 2 is a schematic diagram of an associated page provided by an embodiment of the present disclosure. As shown in Figure 2, an associated page 200 is shown in the figure. Three associated special effect information can be displayed in the form of cards in the associated page 200, specifically including card 201, card 202 and card 203, which correspond to three special effect objects: A filter, B makeup and C sticker, respectively. Each associated special effect information includes a special effect name and a special effect icon of a special effect object. Optionally, each associated special effect information can also include a trial component. The user can try the special effect object corresponding to the associated special effect information by triggering the usage component. The trial component in the figure is the "trial special effect" in the card. The associated pages and associated special effect information in Figure 2 are only examples and are not limiting.
[0048] In the above solution, by displaying the associated special effect information of the special effect information on the associated page of the published media content, the user can quickly use the corresponding special effect elements based on the associated special effect information, which is conducive to the use and recommendation of the special effect information.
[0049] Step 103: Acquire third media content, where the third media content is obtained through an editing operation in the second application and / or a local editing operation.
[0050] The second application may be an application different from the first application. For example, the second application may be an application dedicated to editing media content. The editing operations and / or local editing operations in the second application include at least one of the following: media content splicing, media content overlaying, media content cropping, subtitle addition, and compression.
[0051] In some embodiments, the second media content also includes a special effects information field, wherein the special effects information field is destroyed after an editing operation in the second application and / or a local editing operation. The special effects information field can be one type of field information included in the second media content. The second media content can include multiple types of fields, and the special effects field information includes special effects information associated with the first media content. The special effects information field is generated by the first application and can be used in the first application, but will be destroyed after an editing operation in the second application and / or a local editing operation.
[0052] Step 104 : In response to the publishing operation on the third media content, the third media content is parsed to determine special effect information, and a special effect entry corresponding to the special effect information is displayed on the third media content.
[0053] The publishing operation can be understood as a user uploading media content to a media content platform, editing the media content's publishing information, and then publishing it for other users to see. The special effect entry can be understood as a portal that allows users to quickly access the details page of a special effect object and use the special effect object. The presentation of the special effect entry can be set according to actual circumstances, for example, the special effect entry can be the special effect name of the special effect object.
[0054] After obtaining the third media content as described above, if the first application receives a publishing operation for the third media content, it can parse the third media content to determine the special effects information included therein. Specifically, it can use a transform domain watermark algorithm to extract a target watermark from the third media content, that is, convert the third media content into a transform domain image to read the target watermark therein, and read the special effects information in the target watermark. Then, after publishing the third media content, it can display the third media content and display a special effects entry corresponding to the special effects information on the third media content.
[0055] In some embodiments, when the special effect information includes multiple special effect identifiers, displaying the special effect entry corresponding to the special effect information on the third media content may include: determining the target special effect identifier based on the embedding time of the multiple special effect identifiers, and displaying the special effect name and / or special effect icon of the corresponding target special effect object on the third media content based on the target special effect identifier.
[0056] The embedding time can be understood as the specific time when the special effect identifier is added to the first media content. The embedding times of different special effect identifiers can be the same or different. The target special effect identifier can be the special effect identifier among multiple special effect identifiers whose special effect entry needs to be displayed. The attribute information of a special effect object can include the above-mentioned special effect identifier, special effect name, special effect icon, etc. This attribute information can serve as the special effect entry of the special effect object.
[0057] When the first application displays the special effect entry corresponding to the special effect information on the third media content, when the special effect information includes a special effect identifier, the special effect name and / or special effect icon of the special effect object corresponding to the special effect identifier can be directly displayed; and when the special effect information includes multiple special effect identifiers, a special effect identifier can be selected as the target special effect identifier based on the embedding time of each special effect identifier. The specific selection method is not limited. For example, the special effect identifier with the earliest embedding time can be used as the target special effect identifier; then the special effect name and / or special effect icon of the target special effect object corresponding to the target special effect identifier can be displayed as the special effect entry on the third media content; the special effect name can be used as the special effect anchor point of the target special effect object. After receiving the trigger operation on the special effect entry, the special effect details page of the target special effect object can be displayed, and at least one associated special effect information corresponding to the special effect information can be displayed on the special effect details page, that is, multiple associated special effect information of multiple special effect objects corresponding to multiple special effect identifiers. The specific display position can be set in the top area, for example, so that the user can use the above-mentioned multiple special effect objects on the special effect details page.
[0058] Optionally, determining the target special effect identifier based on the embedding time of multiple special effect identifiers may include: if the embedding time of multiple special effect identifiers is the same, determining the special effect identifier with the earliest parsing time among the multiple special effect identifiers as the target special effect identifier; otherwise, determining the special effect identifier with the latest embedding time among the multiple special effect identifiers as the target special effect identifier.
[0059] When determining the target special effect identifier, the first application can determine whether the embedding time of multiple special effect identifiers is the same. If so, the parsing time of each special effect identifier is compared. The parsing time of a special effect identifier indicates the specific time point when the special effect identifier is parsed when parsing the third media content. The special effect identifier with the earliest parsing time is determined as the target special effect identifier; if the embedding time of multiple special effect identifiers is different, the embedding time of each special effect identifier is compared, and the special effect identifier with the latest embedding time is determined as the target special effect identifier.
[0060] In the above scheme, when the special effect information includes a special effect identifier, the special effect entrance of the special effect object corresponding to the special effect identifier can be directly displayed on the third media content; when the special effect information includes multiple special effect identifiers, the target special effect identifier can be determined according to the embedding time and the special effect entrance of the target special effect object corresponding to the target special effect identifier can be displayed on the third media content, so that the display of the special effect entrance is more flexible, more in line with the actual needs of users, and helps to improve the recommendation and use efficiency of special effects.
[0061] The media content processing scheme provided by the embodiment of the present disclosure is as follows: a first application obtains first media content, wherein the first media content is an image or video; in response to a local storage operation or a media content generation operation on the first media content, processes the image of the first media content to embed special effect information, obtains second media content, and stores the second media content; obtains third media content, wherein the third media content is obtained through an editing operation and / or a local editing operation in the second application; in response to a publishing operation on the third media content, parses the third media content to determine the special effect information, and displays a special effect entry corresponding to the special effect information on the third media content. By adopting the above technical scheme, the first application can embed the corresponding special effect information when storing or generating media content, so that when the media content edited by the second application is subsequently obtained and then published, the special effect information can be parsed and the corresponding special effect entry can be displayed. Since the special effect information is embedded in the media content, it is ensured that the special effect information will not be lost due to editing by other applications, thereby improving the interactivity of the media content and facilitating the recommendation and use of related special effects.
[0062] In some embodiments, embedding special effect information into the first media content to obtain the second media content may include: using a transform domain watermark algorithm to convert the special effect information into a target watermark and embedding the target watermark into the first media content to obtain the second media content.
[0063] Among them, the transform domain watermark algorithm can be to convert the pixel information of the image into the transform domain, and then convert it into the spatial domain after adding information in the transform domain. In this process, the spatial domain information will also be modified, so the transform domain watermark can also be understood as an indirect spatial domain watermark. In the embodiment of the present disclosure, the transform domain watermark algorithm can include at least two of the discrete cosine transform domain watermark algorithm (Discrete Cosine Transform, DCT), discrete wavelet transform domain watermark algorithm (Discrete Wavelet Transformation, DWT), and discrete Fourier transform domain watermark algorithm (Discrete Fourier Transform, DFT). DCT can convert the image into the discrete cosine transform domain to achieve watermark embedding and extraction, DWT can convert the image into the discrete wavelet transform domain to achieve watermark embedding and extraction, and DFT can convert the image into the Fourier transform domain to achieve watermark embedding and extraction.
[0064] The first application can convert the first media content into a transform domain image through a transform domain watermark algorithm. The number of transform domain images is one or more. When the first media content is an image, it is converted into one transform domain image. When the first media content is a video, it is converted into multiple transform domain images. Then, the special effect information is encoded, and part of the pixel values of the above transform domain image is modified into the encoded special effect information. The transform domain image with the added special effect information is inversely transformed using the transform domain watermark algorithm to obtain a watermark image. The special effect information is converted into a target watermark through the above inverse transformation. The watermark image includes the target watermark. Then, the video synthesized by the watermark image or multiple watermark images is determined as the second media content.
[0065] In the above scheme, special effects information is embedded in the media content through the transform domain watermark algorithm. Due to the strong robustness of the transform domain watermark algorithm, under reasonable algorithm configuration, it can resist a certain degree of common attack methods such as compression, noise, occlusion, etc., ensuring that the special effects information will not be lost due to editing, thereby improving the interactivity of the media content.
[0066] In some embodiments, when the first media content is a video, embedding special effect information in the first media content to obtain the second media content may include: extracting at least one target image frame from the video; embedding special effect information in the at least one target image frame to obtain a watermarked image frame; and synthesizing the second media content based on the at least one watermarked image frame and other video frames in the video other than the target image frame. Optionally, the target image frames may be image frames extracted from the video at preset time intervals or all image frames of the video.
[0067] The target image frame may be an image frame into which special effect information is to be embedded. The target image frame may be part of or all of the image frames included in the video. The watermarked image frame may be an image frame already embedded with special effect information. The preset time interval may be the time interval for extracting image frames from the video as target image frames. The specific time interval may be set based on actual conditions. For example, the preset time interval may be 4 seconds, with one image frame extracted from the video every 4 seconds as the target image frame. Alternatively, the preset time interval may be set to the inverse of the video's frame rate. The frame rate may be the number of images refreshed per second in the video. In this way, all image frames in the video can be determined as target images.
[0068] When the first media content is a video, the media content processing device can first extract image frames from the video when embedding special effects information in the first media content, determine at least one extracted image frame as at least one target image frame, then embed special effects information in each target image frame to obtain a corresponding watermark image frame, thereby obtaining at least one watermark image frame; and synthesize the at least one watermark image frame with other video frames in the video except the target image frame to obtain a new video, i.e., the second media content. By adding special effects information to at least one image frame of the video, the special effects information can be retained even if the image frames of the video are subsequently deleted, thereby improving the robustness of the special effects information.
[0069] In some embodiments, processing the image of the first media content to embed special effect information to obtain the second media content may include: for each special effect identifier, comparing the number of free bits of a preset field of the image of the first media content with the number of complete special effect identifier bits of the current special effect identifier to determine whether to add the special effect identifier.
[0070] When the first media content is an image, special effect information is embedded in the image, or when the first media content is a video, special effect information is embedded in each target image frame, that is, the image of the first media content is the target image frame, and each special effect identifier can be embedded in sequence; for each special effect identifier, before embedding, it is determined whether the image of the first media content supports the addition of the special effect identifier. Specifically, the number of free bits of the preset field of the image of the first media content can be compared with the number of complete special effect identifier bits of the current special effect identifier. If it is determined that the number of free bits is greater than or equal to the number of complete special effect identifier bits of the current special effect identifier, if so, the embedding of the current special effect identifier is executed; otherwise, the embedding of the current special effect identifier is stopped. The preset field can refer to a specific field for adding special effect characters to an image. The total number of bits of the preset field is the maximum number of characters supported by an image. For example, the total number of bits of the preset field can be 19. The number of free bits can be the number of free bits in the preset field to which characters have not yet been added. By determining whether the embedding of the complete special effect identifier is supported before embedding the special effect identifier, and stopping the embedding if it is not supported, the truncation of the special effect identifier and the corresponding incorrect special effect object can be avoided, thereby improving the accuracy of embedding the special effect information and helping to improve the accuracy of subsequent use of special effect objects.
[0071] Next, the embedding and extraction process of the special effect information as a watermark in the embodiment of the present disclosure will be described by taking the first media content as an image and the transform domain watermark algorithm including DWT and DCT as an example. For example, FIG3 is a schematic diagram of a watermark embedding provided by the embodiment of the present disclosure, in which the original image is the first media content mentioned above, and the original image is subjected to DWT transform and DCT transform to obtain a transform domain image; the special effect information is watermark-encoded, and the specific encoding method can be, for example, converting the special effect information into binary information, and modifying some pixel values in the transform domain image to the special effect information after the watermark encoding to achieve the embedding of the special effect information; the transform domain image embedded with the special effect information is subjected to inverse DCT transform and inverse DWT transform to obtain a watermark image with the target watermark added.
[0072] For example, Figure 4 is a schematic diagram of a watermark extraction process provided by an embodiment of the present disclosure. A watermark image is subjected to a DWT transform and a DCT transform to obtain a transform domain image. Hidden information, which is the special effect information encoded by the watermark, is read from the transform domain image. The hidden information is then watermark-decoded and validity-verified to obtain the special effect information. The validity-verification process here can be used to determine whether the decoded special effect information is correct, and can be implemented through self-verification.
[0073] In the disclosed embodiment, special effect information is embedded in media content through a transform domain watermark algorithm. Due to the strong robustness of the transform domain watermark algorithm, under reasonable algorithm configuration, it can resist a certain degree of common attack methods such as compression, noise, and occlusion, ensuring that the special effect information will not be lost due to editing, thereby improving the interactivity of the media content.
[0074] FIG5 is a schematic diagram of the structure of a media content processing device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. As shown in FIG5 , the device includes:
[0075] A first acquisition module 501 is configured to acquire first media content, wherein the first media content is an image or a video;
[0076] an embedding module 502 for processing an image of the first media content to embed special effect information in response to a local storage operation or a media content generation operation on the first media content, obtaining second media content, and storing the second media content;
[0077] A second acquisition module 503 is configured to acquire third media content, wherein the third media content is obtained through an editing operation in the second application and / or a local editing operation;
[0078] The parsing module 504 is configured to, in response to a publishing operation on the third media content, parse the third media content to determine the special effect information, and display a special effect entry corresponding to the special effect information on the third media content.
[0079] Optionally, the editing operation and / or local editing operation in the second application includes at least one of the following: a media content splicing operation, a media content overlay operation, a media content cropping operation, a media content compression operation, and a subtitle adding operation.
[0080] Optionally, the embedding module 502 is used to:
[0081] The image of the first media content is processed to embed special effect information associated with the first media content, wherein the special effect information is used to generate at least one associated special effect information of the first media content, and the at least one associated special effect information is displayed on an associated page of the first media content after release.
[0082] Optionally, the second media content further includes a special effect information field, wherein the special effect information field is destroyed after an editing operation in the second application and / or a local editing operation.
[0083] Optionally, the special effect information is embedded in the form of a dark watermark.
[0084] Optionally, the embedding module 502 is used to:
[0085] The special effect information is converted into a target watermark using a transform domain watermark algorithm and embedded into the first media content to obtain the second media content.
[0086] Optionally, the parsing module 504 includes an extraction unit configured to:
[0087] The target watermark is extracted from the third media content using the transform domain watermark algorithm, and the special effect information in the target watermark is read.
[0088] Optionally, the transform domain watermark algorithm includes at least two of a discrete cosine transform domain watermark algorithm, a discrete wavelet transform domain watermark algorithm, and a discrete Fourier transform domain watermark algorithm.
[0089] Optionally, when the first media content is a video, the embedding module 502 is configured to:
[0090] extracting at least one target image frame from the video;
[0091] The special effect information is embedded in at least one of the target image frames to obtain a watermark image frame, and the second media content is synthesized based on the at least one watermark image frame and other video frames in the video except the target image frame.
[0092] Optionally, the target image frames are image frames extracted from the video at preset time intervals or all image frames of the video.
[0093] Optionally, the special effect information includes at least one special effect identifier associated with the first media content, and one special effect identifier is used to represent one special effect object.
[0094] Optionally, when the special effect information includes multiple special effect identifiers, the parsing module 504 includes an entry unit configured to:
[0095] A target special effect identifier is determined based on the embedding time of the multiple special effect identifiers, and a special effect name and / or special effect icon of a corresponding target special effect object is displayed on the third media content based on the target special effect identifier.
[0096] Optionally, the inlet unit is used to:
[0097] If the embedding time of the multiple special effect identifiers is the same, the special effect identifier with the earliest parsing time among the multiple special effect identifiers is determined as the target special effect identifier; otherwise, the special effect identifier with the latest embedding time among the multiple special effect identifiers is determined as the target special effect identifier.
[0098] Optionally, the embedding module 502 is used to:
[0099] For each special effect identifier, the number of free bits in the preset field of the image of the first media content is compared with the number of complete special effect identifier bits of the current special effect identifier to determine whether to add the special effect identifier.
[0100] The media content processing device provided by the embodiments of the present disclosure can execute the media content processing method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0101] The embodiments of the present disclosure further provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the media content processing method provided by any embodiment of the present disclosure.
[0102] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
[0103] 6 , which illustrates a schematic diagram of the structure of an electronic device 600 suitable for implementing embodiments of the present disclosure. The electronic device 600 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable media players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device illustrated in FIG6 is merely an example and should not limit the functionality or scope of use of the embodiments of the present disclosure.
[0104] As shown in Figure 6, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0105] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 shows the electronic device 600 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0106] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the media content processing method of the embodiment of the present disclosure are performed.
[0107] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0108] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0109] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0110] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device is enabled to: obtain first media content, wherein the first media content is an image or video; in response to a local storage operation or a media content generation operation on the first media content, process the image of the first media content to embed special effect information to obtain second media content, and store the second media content; obtain third media content, wherein the third media content is obtained through an editing operation in a second application and / or a local editing operation; in response to a publishing operation on the third media content, parse the third media content to determine the special effect information, and display a special effect entry corresponding to the special effect information on the third media content.
[0111] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0112] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0114] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0115] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0116] It is understandable that before using the technical solutions disclosed in the embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0117] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0118] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0119] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A media content processing method, applied to a first application, and comprising: Acquire first media content, wherein the first media content is an image or a video; In response to a local storage operation or a media content generation operation on the first media content, processing an image of the first media content to embed special effect information to obtain second media content, and storing the second media content; Acquire third media content, wherein the third media content is obtained through an editing operation in the second application and / or a local editing operation; In response to a publishing operation on the third media content, the third media content is parsed to determine the special effect information, and a special effect entry corresponding to the special effect information is displayed on the third media content.
2. The method according to claim 1, wherein the editing operation and / or local editing operation in the second application includes at least one of the following: a media content splicing operation, a media content overlay operation, a media content cropping operation, a media content compression operation, and a subtitle adding operation.
3. The method according to claim 1, wherein processing the image of the first media content to embed special effect information comprises: The image of the first media content is processed to embed special effect information associated with the first media content, wherein the special effect information is used to generate at least one associated special effect information of the first media content, and the at least one associated special effect information is displayed on an associated page of the first media content after release.
4. The method according to claim 2, wherein the second media content further includes a special effect information field, wherein: The special effect information field is destroyed after an editing operation in the second application and / or a local editing operation. The method according to claim 1 , wherein the special effect information is embedded in the form of a dark watermark.
6. The method according to claim 1, wherein embedding special effect information in the first media content to obtain the second media content comprises: The special effect information is converted into a target watermark by using a transform domain watermark algorithm and embedded into the first media content to obtain the second media content.
7. The method according to claim 6, wherein parsing the third media content to determine the special effect information comprises: The target watermark is extracted from the third media content using the transform domain watermark algorithm, and the special effect information in the target watermark is read.
8. The method according to claim 6 or 7, wherein the transform domain watermark algorithm comprises at least two of a discrete cosine transform domain watermark algorithm, a discrete wavelet transform domain watermark algorithm, and a discrete Fourier transform domain watermark algorithm.
9. The method according to claim 1, wherein when the first media content is a video, embedding special effect information in the first media content to obtain the second media content comprises: extracting at least one target image frame from the video; The special effect information is embedded in at least one of the target image frames to obtain a watermark image frame, and the second media content is synthesized based on the at least one watermark image frame and other video frames in the video except the target image frame. 10 . The method according to claim 9 , wherein the target image frames are image frames extracted from the video at preset time intervals or all image frames of the video. 11 . The method according to claim 1 , wherein the special effect information comprises at least one special effect identifier associated with the first media content, and one special effect identifier is used to represent one special effect object.
12. The method according to claim 11, wherein when the special effect information includes a plurality of special effect identifiers, displaying the special effect entry corresponding to the special effect information on the third media content comprises: A target special effect identifier is determined based on the embedding time of the multiple special effect identifiers, and a special effect name and / or special effect icon of a corresponding target special effect object is displayed on the third media content based on the target special effect identifier.
13. The method according to claim 12, wherein determining a target special effect identifier based on the embedding time of the plurality of special effect identifiers comprises: If the embedding time of the multiple special effect identifiers is the same, determining the special effect identifier with the earliest parsing time among the multiple special effect identifiers as the target special effect identifier; Otherwise, the special effect identifier with the latest embedding time among the multiple special effect identifiers is determined as the target special effect identifier.
14. The method according to claim 11, wherein processing the image of the first media content to embed special effect information to obtain the second media content comprises: For each of the special effect identifiers, the number of free bits in the preset field of the image of the first media content is compared with the number of complete special effect identifier bits of the current special effect identifier to determine whether to add the special effect identifier.
15. A media content processing device, arranged in a first application, and comprising: A first acquisition module, configured to acquire first media content, wherein the first media content is an image or a video; an embedding module, configured to, in response to a local storage operation or a media content generation operation on the first media content, process the image of the first media content to embed special effect information, obtain second media content, and store the second media content; A second acquisition module, configured to acquire third media content, wherein the third media content is obtained through an editing operation in the second application and / or a local editing operation; The parsing module is used to parse the third media content to determine the special effect information in response to the publishing operation of the third media content, and display the special effect entry corresponding to the special effect information on the third media content.
16. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the media content processing method described in any one of claims 1-14.
17. A computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program is used to execute the media content processing method according to any one of claims 1 to 14.
18. A computer program product comprising instructions, which when executed by a processor implement the method of any one of claims 1-14.