Media content processing method and device, equipment and medium

By embedding special effects information in image or video media content and parsing and displaying special effects portal after editing, the problem of special effects tags being lost during the editing process is solved, improving the security of media content and the availability of special effects information.

CN119449962APending Publication Date: 2025-02-14BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
CN202311169981.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-08-07
Filing Date
2023-09-11
Publication Date
2025-02-14

Smart Images

  • Figure CN119449962A_ABST
    Figure CN119449962A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a media content processing method and device, equipment and a medium, and the method is applied to a first application, and comprises the steps: obtaining first media content which 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 the special effect information to obtain a second media content, and storing the second media content; third media content is obtained, and the third media content is obtained through editing operation in the second application and / or local editing operation; and in response to a release operation on the third media content, analyzing the third media content to determine the special effect information, and displaying a special effect entry corresponding to the special effect information on the third media content. The special effect information is embedded into the media content, so that the special effect information cannot be lost due to editing of other applications, the safety of the media content is improved, and recommendation and use of related special effects are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to a media content processing method, device, equipment and medium. Background Art

[0002] In the related art, the special effect marks added to the images or videos in the preset applications may be affected after being edited locally or by other applications, resulting in the loss of the special effect marks and then the loss of the relevant special effect information corresponding to the special effect, resulting in the reduced security of the images or videos and the loss of relevant information. Summary of the invention

[0003] In order to solve the above technical problems, the present disclosure provides a media content processing method, apparatus, device and medium.

[0004] The present disclosure provides a media content processing method, which is applied to a first application. The method includes:

[0005] Acquire first media content, wherein the first media content is an image or a video;

[0006] 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;

[0007] 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;

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

[0009] The embodiment of the present disclosure further provides a media content processing device, which is arranged in a first application, and the device includes:

[0010] A first acquisition module, configured to acquire first media content, wherein the first media content is an image or a video;

[0011] 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;

[0012] 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;

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

[0014] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of 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 provided by the embodiment of the present disclosure.

[0015] The embodiment of the present disclosure further provides 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 embodiment of the present disclosure.

[0016] The technical solution provided by the embodiment of the present disclosure has the following advantages over the prior art: the media content processing solution provided by the embodiment of the present disclosure, the first application obtains the first media content, wherein the first media content is an image or a video; in response to the local storage operation or the media content generation operation of the first media content, the image of the first media content is processed to embed special effect information, obtain the second media content, and store the second media content; obtain the third media content, wherein the third media content is obtained through the editing operation and / or the local editing operation in the second application; in response to the publishing operation of the third media content, the third media content is parsed to determine the special effect information, and the special effect entry corresponding to the special effect information is displayed on the third media content. With the above technical solution, the first application can embed the corresponding special effect information when storing or generating the 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 to obtain the special effect information 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 the editing of other applications, the security of the media content is improved, and it is helpful to recommend and use related special effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0018] Figure 1 A flowchart of a media content processing method provided by an embodiment of the present disclosure;

[0019] Figure 2 A schematic diagram of an association page provided in an embodiment of the present disclosure;

[0020] Figure 3 A schematic diagram of watermark embedding provided by an embodiment of the present disclosure;

[0021] Figure 4 A schematic diagram of watermark extraction provided by an embodiment of the present disclosure;

[0022] Figure 5 A schematic diagram of the structure of a media content processing device provided by an embodiment of the present disclosure;

[0023] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail below 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 being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

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

[0026] The term "including" and its variations used herein are open inclusions, 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"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0027] It should be noted that the concepts such as "first" and "second" mentioned in the present 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.

[0028] It should be noted that the modifications of "one" and "plurality" 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, it should be understood as "one or more".

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

[0030] The embodiments of the present disclosure provide a method for processing media content, which will be described below in conjunction with specific embodiments.

[0031] Figure 1 The present invention provides a flow chart of a method for processing media content, which can be executed by a media content processing device, wherein the device can be implemented by software and / or hardware, and can generally be integrated in an electronic device. Figure 1 As shown, the method is applied to a first application, comprising:

[0032] Step 101: Acquire first media content, where the first media content is an image or a video.

[0033] The first media content may be the media content currently being processed, may be the media content acquired by the image acquisition module, or may be the media content opened locally, without limitation, and 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, and the first application may be an application that supports the acquisition of media content and performs special effects processing, storage, work generation, and publishing on the media content, without limitation.

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

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

[0036] Among them, the special effect information may be the relevant attribute information of the special effect included in the first media content. In the embodiment of the present disclosure, the special effect information may include at least one special effect identifier associated with the first media content, and a special effect identifier is used to represent a special effect object. The special effect object may be an element that can add special display effects to the media content. Different special effect objects have different functions. The embodiment of the present disclosure does not limit the specific special effect objects. For example, the special effect 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 special effect information added.

[0037] The special effect information is embedded in the form of a dark watermark. Watermark technology can be to embed some identification information as a watermark into a digital carrier such as media content, documents, software, or indirectly express it. A dark watermark can refer to a watermark that is hidden in the media content and difficult to see. The embodiment of the present disclosure embeds the special effect information into the first media content through the dark watermark technology. The dark watermark has 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, the special effect information can be retained without affecting the picture effect of the media content.

[0038] After acquiring the first media content, the first application directly receives a local storage operation for the first media content, or receives a local storage operation for the first media content after adding a special effect object to the first media content, or receives 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, and may embed at least one existing special effect information in the image of the first media content to obtain the second media content, and store the second media content locally or online. That is, 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.

[0039] In some embodiments, processing an image of the first media content to embed special effect information includes: processing the image of the first media content to embed multiple special effect information associated with the first media content, wherein the multiple 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.

[0040] 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 above-mentioned special effect identification, special effect name and special effect icon, etc. The display form 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 the 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.

[0041] The first application processes the image of the first media content and may embed therein a plurality of special effect information associated with the first media content; subsequently, after the first media content is released, an associated page of the first media content may be displayed in response to a trigger operation, and at least one associated special effect information may be generated based on the special effect information of the first media content, and at least one associated special effect information may be displayed in the associated page. The specific display method is not limited, for example, at least one associated special effect information may be displayed in the form of a card.

[0042] For example, Figure 2 A schematic diagram of an associated page provided by an embodiment of the present disclosure, such as Figure 2 As shown, the figure shows an associated page 200, in which three associated special effect information can be displayed in the form of cards, specifically including card 201, card 202 and card 203, which correspond to three special effect objects, namely filter A, makeup B and sticker C, 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 out the special effect object corresponding to the associated special effect information by triggering the use component. The trial component in the figure is the "trial special effect" in the card. Figure 2 The associated pages and associated special effect information are only examples and are not limiting.

[0043] In the above scheme, by displaying the associated special effect information of the special effect information in the associated page of the published media content, the user can quickly use the corresponding special effect element based on the associated special effect information, which is helpful for the use and recommendation of the special effect information.

[0044] Step 103: 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.

[0045] 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 operation and / or local editing operation in the second application includes at least one of the following: media content splicing operation, media content overlay operation, media content cropping operation, subtitle adding operation, and compression operation.

[0046] In some embodiments, the second media content also 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 special effect information field may be one of the field information included in the second media content, the second media content may include multiple types of fields, and the special effect field information includes special effect information associated with the first media content. The special effect 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.

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

[0048] The publishing operation can be understood as a user uploading media content to a media content platform, editing the publishing information of the media content, and then publishing it so that other users can see it. The special effect entrance can be understood as an entrance that can quickly enter the details page of the special effect object and use the special effect object. The presentation form of the special effect entrance can be set according to the actual situation. For example, the special effect entrance can be the special effect name of the special effect object.

[0049] After the first application obtains the third media content as described above, if it receives a publishing operation for the third media content, it can parse the third media content to determine the special effect 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 effect information in the target watermark. Then, after publishing the third media content, it displays the third media content, and displays a special effect entry corresponding to the special effect information on the third media content.

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

[0051] The embedding time can be understood as the specific time when the special effect identifier is added to the first media content. The embedding time of different special effect identifiers can be the same or different. The target special effect identifier can be the special effect identifier whose special effect entrance needs to be displayed among multiple special effect identifiers. The attribute information of a special effect object may include the above-mentioned special effect identifier, special effect name and special effect icon, etc. These attribute information can be used as the special effect entrance of the special effect object.

[0052] 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 according to the embedding time of each special effect identifier, and 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, and then 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, for example, in the top area, so that the user can use the above-mentioned multiple special effect objects on the special effect details page.

[0053] Optionally, determining a 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.

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

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

[0056] The media content processing scheme provided by the disclosed embodiment is that the first application obtains the 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, thereby obtaining the second media content, and storing the second media content; obtaining the 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, 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. With the above technical scheme, the first application can embed the corresponding special effect information when storing or generating the 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 to obtain the special effect information 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 security of the media content and facilitating the recommendation and use of related special effects.

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

[0058] Among them, the transform domain watermark algorithm can be to convert the pixel information of the image to the transform domain, and then convert it to 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 an image into a discrete cosine transform domain to achieve watermark embedding and extraction, DWT can convert an image into a discrete wavelet transform domain to achieve watermark embedding and extraction, and DFT can convert an image into a Fourier transform domain to achieve watermark embedding and extraction.

[0059] 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 are modified into the encoded special effect information. The transform domain image with the 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.

[0060] In the above scheme, special effect 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 compression, noise, occlusion and other common attack methods, ensuring that the special effect information will not be lost due to editing, thereby improving the security of the media content.

[0061] 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 watermark image frame, and synthesizing the second media content based on the at least one watermark image frame and other video frames in the video except the target image frame. Optionally, the target image frame is an image frame extracted from the video at a preset time interval or all image frames of the video.

[0062] The target image frame may be an image frame that is about to be embedded with special effect information, and the target image frame may be part of the image frame or all of the image frames included in the video. The watermark image frame may be an image frame that has been embedded with special effect information. The preset time interval may be a time interval for extracting image frames from the video as target image frames, which may be set according to actual conditions. For example, the preset time interval may be 4 seconds, and one frame of image may be extracted from the video every 4 seconds as the target image frame. For another example, the preset time interval may be set to the inverse of the frame rate of the video, and the frame rate may be the number of images refreshed per second in the video, so that all image frames of the video may be determined as target images.

[0063] When the first media content is a video, when the media content processing device embeds special effect information in the first media content, it can first extract image frames from the video, determine at least one extracted image frame as at least one target image frame, and then embed special effect information in each target image frame to obtain a corresponding watermark image frame, thereby obtaining at least one watermark image frame; synthesize 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 effect information to at least one image frame of the video, the special effect information can be retained even if the image frame of the video is subsequently deleted, thereby improving the robustness of the special effect information.

[0064] In some embodiments, processing an image of a first media content to embed special effect information to obtain a second media content may include: for each special effect identifier, comparing the number of free bits in 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.

[0065] 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, determine whether the image of the first media content supports adding 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, and 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 to the wrong 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 the special effect objects.

[0066] 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. Figure 3A schematic diagram of watermark embedding provided by an embodiment of the present disclosure, in which the original image is the above-mentioned first media content, 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 may, for example, convert the special effect information into binary information, and modify part of the 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 a target watermark added.

[0067] For example, Figure 4 A schematic diagram of watermark extraction provided by an embodiment of the present disclosure is provided. The watermark image is subjected to DWT transformation and DCT transformation to obtain a transform domain image. Hidden information is read from the transform domain image. The hidden information is the special effect information after the watermark is encoded. The hidden information is then watermark decoded and validity judged to obtain special effect information. The validity judgment here can be used to judge whether the special effect information after the watermark is decoded is correct, which can be achieved by self-checking.

[0068] In the disclosed embodiment, special effect information is embedded in the media content through a transform domain watermark algorithm. Since the transform domain watermark algorithm is highly robust, under reasonable algorithm configuration, it can resist a certain degree of common attack methods such as compression, noise, occlusion, etc., to ensure that the special effect information will not be lost due to editing, thereby improving the security of the media content.

[0069] Figure 5 This 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. Figure 5 As shown, the device comprises:

[0070] A first acquisition module 501 is used to acquire first media content, wherein the first media content is an image or a video;

[0071] The embedding module 502 is used for processing the 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 a second media content, and storing the second media content;

[0072] A second acquisition module 503, 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;

[0073] The parsing module 504 is used to parse the third media content to determine the special effect information in response to the publishing operation on the third media content, and display the special effect entry corresponding to the special effect information on the third media content.

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

[0075] Optionally, the embedding module 502 is used to:

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

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

[0078] Optionally, the special effect information is embedded in the form of a dark watermark.

[0079] Optionally, the embedding module 502 is used to:

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

[0081] Optionally, the parsing module 504 includes an extraction unit, configured to:

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

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

[0084] Optionally, when the first media content is a video, the embedding module 502 is used to:

[0085] extracting at least one target image frame from the video;

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

[0087] Optionally, the target image frames are image frames extracted from the video at preset time intervals or all image frames of the video.

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

[0089] Optionally, when the special effect information includes multiple special effect identifiers, the parsing module 504 includes an entry unit for:

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

[0091] Optionally, the inlet unit is used to:

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

[0093] Optionally, the embedding module 502 is used to:

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

[0095] The media content processing device provided in the embodiments of the present disclosure can execute the media content processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0096] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which implements the media content processing method provided by any embodiment of the present disclosure when the computer program / instruction is executed by a processor.

[0097] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.

[0098] The following specific reference Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The electronic device 600 in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable media content players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0099] like Figure 6 As shown, 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. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. 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.

[0100] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, 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 Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0101] 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 contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a 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 executed.

[0102] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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 of the above.

[0103] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may 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 future developed network.

[0104] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0105] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: 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, processes the image of the first media content to embed special effect information to obtain second media content, and stores the second media content; obtains 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, 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.

[0106] 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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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).

[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0109] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0110] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may 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 may 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.

[0111] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the information involved in the present 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.

[0112] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0113] 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 are 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.

[0114] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A media content processing method, characterized in that: Applied to the first application, including: 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, characterized in that 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, characterized in that The processing of the image of the first media content to embed special effect information includes: 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, characterized in that: 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.

5. The method according to claim 1, characterized in that The special effect information is embedded in the form of a dark watermark.

6. The method according to claim 1, characterized in that Embedding special effect information in the first media content to obtain second media content includes: 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, characterized in that Parsing the third media content to determine the special effect information includes: 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, characterized in that: 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.

9. The method according to claim 1, characterized in that: When the first media content is a video, embedding special effect information in the first media content to obtain the second media content includes: 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, characterized in that 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, characterized in that: 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.

12. The method according to claim 11, characterized in that When the special effect information includes a plurality of special effect identifiers, displaying a special effect entry corresponding to the special effect information on the third media content includes: 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, characterized in that Determining a target special effect identifier based on the embedding time of the multiple special effect identifiers includes: 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.

14. The method according to claim 11, characterized in that Processing the image of the first media content to embed special effect information to obtain second media content includes: 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, characterized in that: Set in the first application, including: 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, characterized in that: The electronic device comprises: 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, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the media content processing method described in any one of claims 1 to 14.

Citation Information

Patent Citations

  • Picture re-editing method and apparatus, and computer readable storage medium

    CN107797737A

  • Image processing method and device, electronic equipment and computer readable storage medium

    CN112581567A

  • Video reproducing device, video edit device and recording medium

    JP2001346157A

  • Method for sharing multimedia file, sending end device, and receiving end device

    WO2023142731A1

Cited By

  • Media content processing method and apparatus, and device and medium

    EP4779964A1