Media content generation method and apparatus, and device, medium and program product

WO2026200765A1PCT designated stage Publication Date: 2026-10-01BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/085137
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-25
Filing Date
2026-03-23
Publication Date
2026-10-01

Smart Images

  • Figure CN2026085137_01102026_PF_FP_ABST
    Figure CN2026085137_01102026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a media content generation method and apparatus, and a device, a medium and a program product. The method comprises: displaying first media content and a first control on a first page; in response to a trigger operation on the first control, displaying a second page, and displaying, on the second page, a set of media content associated with the first media content and a target video template, wherein the target video template represents a video of a target object in a target image template; and in response to a trigger operation on the target video template, generating second media content on the basis of the first media content and the target video template, wherein the second media content is a special-effect video generated by means of applying the target video template to the first media content.
Need to check novelty before this filing date? Find Prior Art

Description

A method, apparatus, equipment, medium, and program product for generating media content. Cross-references to related applications

[0001] This application claims priority to Chinese Patent Application No. 202510362168.5, entitled "A method, apparatus, device, medium and program product for generating media content", filed on March 25, 2025, which is incorporated herein by reference in its entirety. Technical Field

[0002] This disclosure relates to computer technology, and more particularly to a method, apparatus, device, medium, and program product for generating media content. Background Technology

[0003] With the development of computer technology, users can generate special effects images from images to be edited using image editing applications. Special effects images are static images that have had preset effects applied to the images to be edited. Compared to static images, dynamic videos offer a richer visual experience. Summary of the Invention

[0004] This disclosure provides a method, apparatus, device, medium, and program product for generating media content.

[0005] In a first aspect, embodiments of this disclosure provide a media content generation method, applied to a first application, including:

[0006] The first page displays the first media content and the first control, wherein the first media content is a special effects image generated by applying a target image template to the media content to be edited;

[0007] In response to the triggering operation of the first control, a second page is displayed, in which a collection of media content associated with the first media content and a target video template are displayed, wherein the target video template represents the video of the target object in the target image template;

[0008] In response to the triggering operation of the target video template, a second media content is generated based on the first media content and the target video template, wherein the second media content is a special effects video generated by applying the target video template to the first media content.

[0009] Secondly, this disclosure also provides a media content generation method, applied to a second application, including:

[0010] The third page displays a target video template and a third control, wherein the target video template represents the video of the target object in the target image template associated with the first application;

[0011] In response to the triggering operation of the third control, a fourth page is displayed, on which the first media content and the fourth control are displayed, wherein the first media content is a special effect image generated by the first application applying the target image template to the media content to be edited;

[0012] In response to the triggering operation of the fourth control, second media content is generated based on the first media content and the target video template, and the second media content is displayed.

[0013] Thirdly, this disclosure also provides a media content generation apparatus for a first application, the apparatus comprising:

[0014] The first display module is used to display the first media content and the first control on the first page, wherein the first media content is a special effects image generated by applying a target image template to the media content to be edited;

[0015] The second display module is used to respond to the triggering operation of the first control and display a second page, in which the media content set associated with the first media content and the target video template are displayed, wherein the target video template represents the video of the target object in the target image template;

[0016] The sending module is configured to respond to a triggering operation of the target video template and generate second media content based on the first media content and the target video template, wherein the second media content is a special effects video generated by applying the target video template to the first media content.

[0017] Fourthly, embodiments of this disclosure also provide a media content generation apparatus for a second application, the apparatus comprising:

[0018] The third display module is used to display the target video template and the third control on the third page, wherein the target video template represents the video of the target object in the target image template associated with the first application;

[0019] The fourth display module is used to respond to the triggering operation of the third control and display a fourth page, on which the first media content and the fourth control are displayed, wherein the first media content is a special effect image generated by the first application applying the target image template to the media content to be edited;

[0020] The content generation module is used to respond to the triggering operation of the fourth control, generate second media content based on the first media content and the target video template, and display the second media content.

[0021] Fifthly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:

[0022] One or more processors;

[0023] Storage device for storing one or more programs.

[0024] When the one or more programs are executed by the one or more processors, the one or more processors implement the media content generation method as described in any embodiment of this disclosure.

[0025] Sixthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the media content generation method as described in any embodiment of this disclosure.

[0026] In a seventh aspect, embodiments of this disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements the media content generation method as described in any embodiment of this disclosure. Attached Figure Description

[0027] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote 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.

[0028] Figure 1 is a schematic flowchart of a media content generation method provided in an embodiment of this disclosure;

[0029] Figure 2 is a schematic diagram of a first page provided in an embodiment of this disclosure;

[0030] Figure 3 is a schematic diagram of another first page provided in an embodiment of this disclosure;

[0031] Figure 4 is a schematic diagram of a second page provided in an embodiment of this disclosure;

[0032] Figure 5 is a schematic diagram of another second page provided in an embodiment of this disclosure;

[0033] Figure 6 is a flowchart illustrating another media content generation method provided in an embodiment of this disclosure;

[0034] Figure 7 is a flowchart illustrating another media content generation method provided in this embodiment of the present disclosure;

[0035] Figure 8 is a schematic diagram of a third page provided in an embodiment of this disclosure;

[0036] Figure 9 is a schematic diagram of a fourth page provided in an embodiment of this disclosure;

[0037] Figure 10 is a schematic diagram of the structure of a media content generation device provided in an embodiment of this disclosure;

[0038] Figure 11 is a schematic diagram of another media content generation device provided in an embodiment of this disclosure;

[0039] Figure 12 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0040] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0041] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0042] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based 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". Definitions of other terms will be given in the description below.

[0043] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0044] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0045] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0046] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0047] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0048] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0049] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0050] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0051] As mentioned above, with the development of computer technology, users can generate special effects images from images to be edited using image editing applications. Special effects images are static images with preset effects information applied to the image to be edited. Compared to static images, dynamic videos can provide a richer visual experience. However, image editing applications in related technologies do not have video generation capabilities, resulting in a poor user experience.

[0052] Figure 1 is a schematic flowchart of a media content generation method provided in an embodiment of this disclosure. This embodiment is applicable to media content editing scenarios, such as special effects image generation or special effects video generation scenarios. The method is applied to a first application. The first application represents a client with image editing capabilities. For example, the client includes a web client, an application client, or a mini-program client. The method can be executed by a media content generation device, which can be implemented in software and / or hardware, optionally through an electronic device, such as a mobile terminal, a PC, or a server.

[0053] As shown in Figure 1, the method includes:

[0054] S110. Display first media content and first control on the first page, wherein the first media content is a special effects image generated by applying a target image template to the media content to be edited.

[0055] The first page can be a preview page for the first application. It displays the special effects image generated by applying the target image template to the image to be edited. The target image template is a selected special effects template associated with the first application. A special effects template refers to a template with special effects. For example, special effects may include one or more of the following: comic book style, clay style, graffiti style, picture book style, or traditional Chinese style. Special effects templates can be stored in a preset template library.

[0056] The media content to be edited represents the media content to be edited. Media content includes images and / or video frames. The media content to be edited can be obtained from a local photo album. Alternatively, it can be obtained by taking a photo. Alternatively, it can be obtained based on images and / or videos sent by other users. Alternatively, images and / or videos can be downloaded from the internet as media content to be edited.

[0057] The special effects image has a similar effect to the target image template. For example, the media content to be edited and the target image template are input into a pre-trained image generation model. Based on the image generation model, the model learns the special effects of the target image template and generates a first media content with a similar effect to the target image template.

[0058] The first control is used to trigger the video generation recommendation event. If the video generation recommendation event is triggered, the target video template associated with the target image template will be displayed. Using the target video template as the entry point for the second application provides a convenient way to switch between applications, allowing users to quickly enter the second application and generate special effects videos through it.

[0059] Since the first page represents a preview page for the first application, it can include a preview area and a control display area. The preview area displays the first media content, while the control display area displays the controls for the first application.

[0060] For example, displaying the first media content and the first control on the first page includes:

[0061] The first media content is displayed in the preview area of ​​the first page, and the first control is displayed in the location associated with the first media content.

[0062] This embodiment of the disclosure displays the first control in a prominent position within the preview area, which is associated with the first media content. This makes it easier for users to see the first control intuitively, improves the user experience, and increases the conversion rate of the video generation function.

[0063] Figure 2 is a schematic diagram of a first page provided in an embodiment of this disclosure. As shown in Figure 2, first media content is displayed in the preview area 220 of the first page 210. A first control 230 is displayed at the bottom of the first media content. A preset reminder text is displayed on the first control 230. The preset reminder text may be a prompt text associated with the video generation operation.

[0064] Optionally, displaying the first media content and the first control on the first page includes:

[0065] The first media content is displayed in the preview area of ​​the first page, and the first control is displayed in the control display area of ​​the first page, wherein the preview area and the control display area are different areas of the first page.

[0066] This embodiment of the disclosure can ensure the integrity of the preview of the first media content by displaying the first control in the control display area, and avoid the first control from obscuring part of the first media content and affecting the display effect of the first media content.

[0067] Figure 3 is a schematic diagram of another first page provided in an embodiment of this disclosure. As shown in Figure 3, the first media content is displayed in the preview area 320 of the first page 310. A drop-down list control 340 is displayed in the control display area 330 at the top of the first page 310. The drop-down list control 340 includes a first control 350.

[0068] S120. In response to the triggering operation of the first control, a second page is displayed, in which the media content set associated with the first media content and the target video template are displayed, wherein the target video template represents the video of the target object in the target image template.

[0069] The media content set represents a collection of multiple media content connection results obtained by connecting the first media content and the media content to be edited using different dynamic effects. For example, dynamic effects may include preset transition effects. By adding preset transition effects between the first media content and the media content to be edited, a media content connection result is obtained. Different preset transition effects correspond to different media content connection results.

[0070] The second page displays a set of media content associated with the first media content, and a target video template corresponding to the target image template. The target object in the target image template is in a static state. The target video template represents a dynamic video effect of the target object in the target image template. At least one image effect template in the first application has a corresponding video effect template. At least one image effect template includes the target image template. The video effect template includes the target video template corresponding to the target image template. For example, the server obtains at least one image effect template within the first application. For example, based on at least one of the following: usage, comments, favorites, etc., at least one image effect template is selected from the image effect templates associated with the first application. For any image effect template among the at least one image effect templates, the cover image of the current image effect template is used as the first frame image. The first frame image is input into a pre-trained video generation model, and the video generation model performs video generation processing based on the first frame image to generate the video effect template corresponding to the current image effect template. The video generation model can be a video generation model associated with the second application. That is, the video effect template corresponding to the current effect template is generated based on the first frame image by the video generation model associated with the second application. Video effect templates are stored in a preset effect template library within the second application. The video generation model associated with the second application can be a generation model configured on the server side of the second application and / or a generation model built into the client side of the second application. The template information for each video effect template includes at least one of the following: template image, descriptive text, and generation model information. The preset effect template library is used to store video effect templates associated with the second application.

[0071] In some embodiments, after generating a video effect template corresponding to the current image effect template, the current image effect template and the video effect template are associated, and the video effect template is stored in a preset template material library in the first application. The preset template material library includes image effect templates and corresponding video effect templates. Alternatively, the preset template material library includes corresponding video effect templates for image effect templates, as well as the association between the template identifier of the image effect template and the video effect template.

[0072] For example, in response to the triggering operation of the first control, a second page is displayed, showing the media content set associated with the first media content and the target video template, including:

[0073] In response to the triggering operation of the first control, the target video template is retrieved from the preset template material library based on the target image template, and the media content set is obtained. The second page is then displayed, showing the media content set and the target video template.

[0074] For example, in response to a trigger operation of the first control, a set of media content generated by connecting the first media content and the media content to be edited with different dynamic effects is obtained. Also, based on the template identifier of the target video template corresponding to the target image template, the target video template is obtained from a preset template material library. Alternatively, the preset template material library is traversed based on the target image template to obtain the target video template corresponding to the target image template.

[0075] Figure 4 is a schematic diagram of a second page provided in an embodiment of this disclosure. As shown in Figure 4, a first media content 420 and a first control 430 are displayed on a first page 410. In response to a triggering operation of the first control 430, a second page 440 is displayed. The second page 440 displays a collection of media content associated with the first media content 420. The collection of media content includes multiple media content connection results 450 and a target video template 460.

[0076] Optionally, in response to a triggering operation on the media content set, the resulting media content connection is determined. The dynamic effects of this connection are then displayed on a second page. For example, a first media content connected via a preset transition effect and the media content to be edited are shown.

[0077] S130. In response to the triggering operation of the target video template, generate second media content based on the first media content and the target video template, wherein the second media content is a special effects video generated by applying the target video template to the first media content.

[0078] For example, in response to a triggering operation of the target video template, the first media content and the target video template are input into the video generation model, and the second media content is output through the video generation model. The special effects of the second media content are similar to those of the target video template, and the target object in the second media content is the same as that in the first media content.

[0079] Optionally, the step of generating second media content based on the first media content and the target video template in response to the triggering operation of the target video template includes:

[0080] In response to a triggering operation of the target video template, the selected state of the target video template and a second control are displayed on the second page. In response to a triggering operation of the second control, the first media content and the template identifier of the target video template are sent to the second application to launch the second application, which then generates second media content based on the first media content and the target video template.

[0081] The second application represents a client with video generation capabilities. Based on the first media content, the second application generates second media content with similar special effects to the target video template. The first application sends the template identifier of the first media content and the target video template to the second application, triggering the second application's launch event to start the second application and convert the first application into a background application, thus enabling switching from the first application to the second application.

[0082] In some embodiments, if the second application is not installed on the electronic device, in response to the launch event of the second application, a list of candidate applications from the app store is displayed. In response to a trigger operation from the candidate application list, the second application is downloaded and installed. After the second application is installed, in response to a login operation of the second application, a preset page from the second application is displayed. This preset page may be a third page.

[0083] In other embodiments, if a second application is already installed on the electronic device, a preset page in the second application is displayed in response to the launch event of the second application.

[0084] Optionally, displaying the selected state of the target video template on the second page includes: playing the target video template on the second page.

[0085] In this embodiment, the video cover of the target video template is displayed on the second page before the target video template is triggered, which can reduce the consumption of rendering resources and improve rendering efficiency. The target video template is only displayed and played after the target video template is triggered to showcase its dynamic effects.

[0086] For example, the second page displays a static target video template, static media content link results, and a preset publishing control. After clicking the target video template, the second page displays the selected state of the target video template and a second control. The selected state includes the target video template's border displaying a preset effect and the target video template being in a playback state. During playback, the target object within the target video template displays dynamic effects. The second control represents the entry point for the second application. In response to the triggering operation of the second control, the first media content and the template identifier of the target video template are sent to the second application, launching the second application to generate second media content based on the first media content and the target video template.

[0087] Optionally, the cover image of the target video template can be dynamically preprocessed to make the target object present a dynamic effect during the playback of the template video template, which can reduce the occupation of rendering resources and reduce the performance consumption of the image processor.

[0088] Figure 5 is a schematic diagram of another second page provided in an embodiment of this disclosure. As shown in Figure 5, the second page 510 displays a target video template 520, a media content connection result 530, and a preset publishing control 540. In response to the triggering operation of the target video template 520, the target video template 520 is played, and the second control 550 is displayed on the second page 510 to display the dynamic effect of the target object 560 in the target video template on the second page 510.

[0089] In this embodiment of the technical solution, a first application displays a second page by triggering a first control on a first page. The second page displays a collection of media content associated with the first media content and a target video template. In response to a triggering operation on the target video template, second media content is generated based on the first media content and the target video template. The second media content is a special effects video generated by applying the target video template to the first media content. Since the first media content is a special effects image generated by applying a target image template to the media content to be edited, and the second media content is a special effects video generated by applying the target video template to the first media content, it is possible to generate a special effects video of the first application's special effects image through the collaborative processing of different types of image processing functions. This optimizes the media content generation scheme and improves the user experience.

[0090] Figure 6 is a flowchart illustrating another media content generation method provided in this embodiment. Based on the above embodiments, this embodiment specifically defines a second page to be displayed in response to the triggering operation of the first control, wherein the media content set associated with the first media content and the target video template are displayed on the second page.

[0091] As shown in Figure 6, the method includes:

[0092] S610. Display a set of candidate image templates on the editing page or template page, wherein the candidate image templates in the set of candidate image templates include special effects information, and the set of candidate image templates includes the target image template.

[0093] In some embodiments, a content loading entry is displayed on the homepage of the first application. In response to a triggering operation of the content loading entry, a local photo album is displayed. In response to a selection operation in the local photo album, the media content to be edited and a set of preset tags are displayed on the editing page. Optionally, in response to a triggering operation of the content loading entry, a shooting page can also be displayed. In response to a shooting operation on the shooting page, an editing page is displayed, showing the media content to be edited and the set of preset tags. The embodiments of this disclosure do not specifically limit the loading method of the media content to be edited. The set of preset tags includes template tags, filter tags, sticker tags, and text tags, etc. In response to a triggering operation of a template tag in the set of preset tags, a set of candidate image templates can be displayed at the bottom of the editing page.

[0094] In other embodiments, a set of candidate image templates arranged according to a preset layout style is displayed on the template page of the first application.

[0095] S620. In response to the triggering operation of the target image template, generate the first media content based on the special effects information in the target image template and the media content to be edited.

[0096] For example, the selection operation of the target image template in the candidate image template set on the editing page generates a first media content with a similar effect to the target image template based on the target image template and the media content to be edited.

[0097] Optionally, in response to the selection of a target image template from the candidate image template set on the template page, the details page of the target image template is displayed. The details page of the target image template displays its cover image and preset controls. In response to the triggering of the preset controls, the local photo album is displayed. In response to the selection operation in the local photo album, based on the target image template and the media content to be edited, first media content with effects similar to those of the target image template is generated.

[0098] S630. Connect the first media content and the media content to be edited according to the preset dynamic effect to obtain multiple media content connection results, and determine the media content set according to the multiple media content connection results.

[0099] For example, for any of the various preset dynamic effects, the first media content and the media content to be edited are connected according to the current dynamic effect to obtain the media content connection result corresponding to the current dynamic effect. Thus, a media content set is formed based on the media content connection results corresponding to each preset dynamic effect.

[0100] S640. Display first media content and first control on the first page, wherein the first media content is a special effects image generated by applying a target image template to the media content to be edited.

[0101] S650. In response to the triggering operation of the first control, obtain the target video template from the preset template material library according to the target image template, and obtain the media content set.

[0102] S660. Display the second page, in which the media content set and the target video template are displayed.

[0103] For example, the second page is displayed, showing the media content connection results arranged according to a preset layout style and a static target video template. For instance, depending on business needs, a static target video template can be inserted between two adjacent media content connection results on the second page. The static target video template indicates that the target object in the target video template is in a static state.

[0104] S670. In response to the triggering operation of the target video template, generate second media content based on the first media content and the target video template, wherein the second media content is a special effects video generated by applying the target video template to the first media content.

[0105] The technical solution of this disclosure, by displaying a set of candidate image templates on an editing page or template page, and responding to a triggering operation of a target image template in the candidate image template set, generates first media content based on the special effects information in the target image template and the media content to be edited. This allows the image template set to be displayed on different pages, facilitating users to generate the first media content through different links and simplifying the operation complexity. On the first page, the first media content and a first control are displayed. Responding to a triggering operation of the first control, a target video template is retrieved from a preset template material library based on the target image template, and a set of media content is obtained. On the second page, the media content connection results and the target video template are displayed according to a preset layout style, thereby achieving the effect of displaying the target video template in a prominent position on the second page. Since the target video template is in a static state, only the cover image of the target video template can be rendered, thereby reducing the occupation of rendering resources and improving rendering efficiency.

[0106] Figure 7 is a flowchart illustrating another media content generation method provided in this embodiment of the present disclosure, which is applied to a second application. The second application can generate second media content based on the first media content of the first application and a target video template. The second application represents a client with video editing capabilities. For example, the client includes a web client, an application client, or a mini-program client, etc. This method can be executed by a media content generation device, which can be implemented in software and / or hardware, optionally through an electronic device, such as a mobile terminal, a PC, or a server, etc.

[0107] As shown in Figure 7, the method for generating second media content based on the first media content of the first application and the target video template through the second application includes:

[0108] S710. Display the target video template and the third control on the third page, wherein the target video template represents the video of the target object in the target image template associated with the first application.

[0109] The third page represents a preset interactive page in the second application. The third control is used to trigger a generation event for a video identical to the target video template. The first application sends the first media content and the template identifier of the target video template to the second application, launching the second application. After the second application launches, it retrieves the target video template from the preset effects template library based on the template identifier of the target video template. The target video template and the third control are displayed on the third page. The target video template is a video pre-generated based on the cover image of the target image template. The target video template and the target image template have the same target object. For example, if the target image template is an effects image of a kitten A, then the corresponding target video template is an effects video of a kitten A. Optionally, the cover image of the target video template is an effects image of a kitten A.

[0110] For example, displaying the target video template on the third page includes: displaying template information corresponding to the target video template on the third page, wherein the template information includes at least one of template image, descriptive text, and generated model information.

[0111] Optionally, the third page can be a pop-up window, etc. The generated model information includes the model identifier and the aspect ratio of the generated model's output.

[0112] Figure 8 is a schematic diagram of a third page provided in an embodiment of this disclosure. As shown in Figure 8, the third page 810 displays a template image 830 corresponding to the target video template 820. Descriptive text 840 and a third control 850 are displayed at the bottom of the template image 830.

[0113] S720. In response to the triggering operation of the third control, a fourth page is displayed, on which first media content and a fourth control are displayed, wherein the first media content is a special effects image generated by the first application applying the target image template to the media content to be edited.

[0114] The fourth page represents the video generation page in the second application.

[0115] For example, the first media content, the template information, and the fourth control are displayed on the fourth page.

[0116] For example, the input box on the fourth page displays the template information of the first media content and the target video template. The first media content is used as an image prompt, and the descriptive text and model information of the target video template are automatically applied as prompts. A fourth control is also displayed on the fourth page. In response to the triggering operation of the fourth control, the first media content is used as a pad image, and the descriptive text and model information of the target video template are used as prompts. A video generation model is then input to generate a special effects video of the first media content with similar effects to the target video template.

[0117] S730, In response to the triggering operation of the fourth control, generate second media content based on the first media content and the target video template, and display the second media content.

[0118] The second media content is a special effects video generated by applying the target video template to the first media content. Optionally, the first media content is the first frame of the second media content.

[0119] For example, the second application determines the required video generation model based on the model identifier of the video generation model associated with the target video template. It uses the first media content as an image prompt and the descriptive text corresponding to the target video model as a text prompt, inputs the determined video generation model, and generates the second media content through the video generation model.

[0120] Optionally, the second media content is displayed on the results page. In response to a triggering operation on the second media content, a preview page is displayed, showing the second media content and a fifth control at a location associated with the second media content, wherein the fifth control represents the return entry point of the first application.

[0121] Optionally, preset tag information is added to the second media content generated based on the first media content associated with the first application. For the second media content with preset tag information, a fifth control is displayed at the location associated with the second media content in the preview page to provide a convenient entry point for returning to the first application from the second application.

[0122] The preview page can be the details page of the second media content. A fifth control is displayed at a preset location associated with the second media content. The fifth control includes the icon of the first application. Optionally, the fifth control may also include preset reminder text. Optionally, the preset reminder text on the fifth control is automatically hidden after a preset time. Optionally, after exiting the details page of the second media content and re-entering the details page of the second media content, the fifth control is displayed at a preset location associated with the second media content, and the icon of the first application is displayed on the fifth control.

[0123] Optionally, in response to a trigger operation of the fifth control, the second page of the first application is displayed. For example, by triggering the fifth control, the user can return to the first application and be located at the page where they left the first application. For example, in response to a trigger operation of a target video template on the second page of the first application, the first media content and the template identifier of the target video template are sent to the second application, and the third page of the second application is switched to be displayed. In response to a trigger operation of the fifth control, the user can switch from the second application to the first application and display the second page of the first application. Through this embodiment, flexible switching between the first and second applications is achieved, and the user can be located at the page where they left the first application. This avoids the need for the user to go through a long interaction chain after returning to the first application to display the page where they left the first application, thus simplifying the interaction process.

[0124] Figure 9 is a schematic diagram of a fourth page provided in an embodiment of this disclosure. As shown in Figure 9, the fourth page 910 displays media content generation records (e.g., video x generation results) and an input box 920. The input box 920 displays first media content 930, descriptive text 940 corresponding to the target video template, and model information 950 corresponding to the target video template. In response to text editing operations in the input box 920, a virtual keyboard 960 is displayed below the input box 920. A fourth control 970 is displayed in the area corresponding to the input box 920. In response to the triggering operation of the fourth control 970, second media content 980 is displayed in the fourth page 910, and the input box 920 is displayed at the bottom of the fourth page 910. Preset text is displayed in the input box 920. In response to the triggering operation of the second media content 980, a preview page 990 is displayed. The preview page 990 displays the dynamic effects of the second media content 980. A fifth control 9100 is displayed at a position associated with the second media content 980. In response to the trigger operation of the fifth control 9100, the second page 9110 of the first application is displayed. The second page 9110 displays the target video template 9120, the media content connection result 9130, and the second control 9140.

[0125] The technical solution of this disclosure embodiment displays a target video template and a third control on a third page. In response to a trigger operation of the third control, a fourth page is displayed. On the fourth page, first media content, template information of the target video template, and a fourth control are displayed. In response to a trigger operation of the fourth control, second media content is generated based on the first media content and template information, and then displayed. This disclosure embodiment also receives a special effects image associated with a target image template and a target video template identifier sent by a first application. The target video template is obtained based on the target video template identifier, and a special effects video is generated according to the first media content and the target video template. This enables the collaborative processing of different types of image processing functions to generate a special effects video of the first application's special effects image, optimizing the media content generation scheme and improving the user experience.

[0126] Figure 10 is a schematic diagram of a media content generation device provided in an embodiment of this disclosure, which is suitable for a first application. The device can be implemented in software and / or hardware, and optionally, it can be implemented using an electronic device, such as a mobile terminal, a PC, or a server.

[0127] As shown in Figure 10, the device includes: a first display module 1010, a second display module 1020, and a sending module 1030.

[0128] The first display module 1010 is used to display first media content and first control on the first page, wherein the first media content is a special effects image generated by applying a target image template to the media content to be edited;

[0129] The second display module 1020 is used to display a second page in response to the triggering operation of the first control. The second page displays a set of media content associated with the first media content and a target video template, wherein the target video template represents the video of the target object in the target image template.

[0130] The first generation module 1030 is configured to generate second media content based on the first media content and the target video template in response to the triggering operation of the target video template, wherein the second media content is a special effects video generated by applying the target video template to the first media content.

[0131] Optionally, the device further includes:

[0132] The fifth display module is used to display a set of candidate image templates on the editing page or template page before displaying the first media content and the first control on the first page, wherein the candidate image templates in the set of candidate image templates include special effects information, and the set of candidate image templates includes the target image template;

[0133] The second generation module is used to generate the first media content based on the special effects information in the target image template and the media content to be edited in response to the triggering operation of the target image template.

[0134] The third generation module is used to connect the first media content and the media content to be edited according to a preset dynamic effect to obtain multiple media content connection results, and to determine the media content set based on the multiple media content connection results.

[0135] Optionally, the second display module 1020 is specifically used for:

[0136] In response to the triggering operation of the first control, the target video template is obtained from the preset template material library according to the target image template, and the media content set is obtained;

[0137] The second page is displayed, showing the media content collection and the target video template.

[0138] Optionally, displaying the second page, in which the media content set and the target video template are displayed, includes:

[0139] The second page is displayed, showing the media content connection results and the target video template arranged according to a preset layout style.

[0140] Optionally, the first generation module 1030 is specifically used for:

[0141] In response to the triggering operation of the target video template, the selected state of the target video template and a second control are displayed on the second page;

[0142] In response to the triggering operation of the second control, the first media content and the template identifier of the target video template are sent to the second application to start the second application, and the second application generates the second media content based on the first media content and the target video template.

[0143] Optionally, displaying the selected state of the target video template on the second page includes:

[0144] Play the target video template on the second page.

[0145] Optionally, the first display module 1010 is specifically used for:

[0146] The first media content is displayed in the preview area of ​​the first page, and the first control is displayed at the location associated with the first media content;

[0147] or,

[0148] The first media content is displayed in the preview area of ​​the first page, and the first control is displayed in the control display area of ​​the first page, wherein the preview area and the control display area are different areas of the first page.

[0149] The media content generation apparatus provided in this disclosure can execute the media content generation method for the first application provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.

[0150] Figure 11 is a schematic diagram of another media content generation device provided in an embodiment of this disclosure, which is suitable for a second application. This device can be implemented in software and / or hardware, optionally through an electronic device, such as a mobile terminal, a PC, or a server.

[0151] The third display module 1110 is used to display a target video template and a third control on a third page, wherein the target video template represents the video of a target object in a target image template associated with the first application;

[0152] The fourth display module 1120 is used to display a fourth page in response to the triggering operation of the third control. The fourth page displays the first media content and the fourth control, wherein the first media content is a special effect image generated by the first application applying the target image template to the media content to be edited.

[0153] The fourth generation module 1130 is used to generate second media content based on the first media content and the target video template in response to the triggering operation of the fourth control, and to display the second media content.

[0154] Optionally, the second media content is a special effects video generated by applying the target video template to the first media content; or, the first media content is the first frame of the second media content.

[0155] Optionally, the third display module 1110 is specifically used for:

[0156] The third page displays template information corresponding to the target video template, wherein the template information includes at least one of template image, descriptive text, and generation model information.

[0157] Optionally, the fourth display module 1120 is specifically used for:

[0158] The fourth page displays the first media content, the template information, and the fourth control.

[0159] Optionally, the fourth generation module 1130 is specifically used for:

[0160] In response to the triggering operation of the second media content, a preview page is displayed, in which the second media content is displayed, and a fifth control is displayed at the position associated with the second media content, wherein the fifth control represents the return entry of the first application.

[0161] Optionally, the device further includes:

[0162] The sixth display module is used to display the second page of the first application in response to the triggering operation of the fifth control.

[0163] The media content generation apparatus provided in this disclosure can execute the media content generation method for a second application provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.

[0164] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0165] Figure 12 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Referring now to Figure 12, a schematic diagram of the structure of an electronic device (e.g., the terminal device or server in Figure 12) 1200 suitable for implementing an embodiment of this disclosure is shown. The terminal device in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 12 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this disclosure.

[0166] As shown in Figure 12, the electronic device 1200 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage device 1208 into a random access memory (RAM) 1203. The RAM 1203 also stores various programs and data required for the operation of the electronic device 1200. The processing unit 1201, ROM 1202, and RAM 1203 are interconnected via a bus 1204. An edit / output (I / O) interface 1205 is also connected to the bus 1204.

[0167] Typically, the following devices can be connected to I / O interface 1205: input devices 1206 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1207 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1208 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1209. Communication device 1209 allows electronic device 1200 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 12 shows electronic device 1200 with various devices, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0168] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1209, or installed from storage device 1208, or installed from ROM 1202. When the computer program is executed by processing device 1201, it performs the functions defined in the methods of embodiments of this disclosure.

[0169] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0170] The electronic device provided in this embodiment and the media content generation method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0171] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the media content generation method provided in the above embodiments.

[0172] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0173] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0174] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0175] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:

[0176] The first page displays the first media content and the first control, wherein the first media content is a special effects image generated by applying a target image template to the media content to be edited;

[0177] In response to the triggering operation of the first control, a second page is displayed, in which a collection of media content associated with the first media content and a target video template are displayed, wherein the target video template represents the video of the target object in the target image template;

[0178] In response to the triggering operation of the target video template, a second media content is generated based on the first media content and the target video template, wherein the second media content is a special effects video generated by applying the target video template to the first media content.

[0179] Alternatively, the aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:

[0180] The third page displays a target video template and a third control, wherein the target video template represents the video of the target object in the target image template associated with the first application;

[0181] In response to the triggering operation of the third control, a fourth page is displayed, on which the first media content and the fourth control are displayed, wherein the first media content is a special effect image generated by the first application applying the target image template to the media content to be edited;

[0182] In response to the triggering operation of the fourth control, second media content is generated based on the first media content and the target video template, and the second media content is displayed.

[0183] Computer program code for performing the operations of this disclosure can 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, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0184] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0185] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.

[0186] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0187] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0188] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0189] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0190] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for generating media content, wherein the first application includes: The first page displays the first media content and the first control, wherein the first media content is a special effects image generated by applying a target image template to the media content to be edited; In response to the triggering operation of the first control, a second page is displayed, in which a collection of media content associated with the first media content and a target video template are displayed, wherein the target video template represents the video of the target object in the target image template; In response to the triggering operation of the target video template, a second media content is generated based on the first media content and the target video template, wherein the second media content is a special effects video generated by applying the target video template to the first media content.

2. The method according to claim 1, wherein before displaying the first media content and the first control on the first page, it further includes: A set of candidate image templates is displayed on the editing page or template page. The candidate image templates in the set include special effects information, and the set of candidate image templates includes the target image template. In response to the triggering operation of the target image template, the first media content is generated based on the special effects information in the target image template and the media content to be edited; The first media content and the media content to be edited are connected according to a preset dynamic effect to obtain multiple media content connection results, and the media content set is determined according to the multiple media content connection results.

3. The method according to claim 2, wherein responding to the triggering operation of the first control by displaying a second page, wherein the second page displays a media content set associated with the first media content and a target video template, includes: In response to the triggering operation of the first control, the target video template is obtained from the preset template material library according to the target image template, and the media content set is obtained; The second page is displayed, showing the media content collection and the target video template.

4. The method according to claim 3, wherein displaying the second page, and displaying the media content set and the target video template on the second page, includes: The second page is displayed, showing the media content connection results and the target video template arranged according to a preset layout style.

5. The method according to claim 1, wherein generating second media content based on the first media content and the target video template in response to a triggering operation of the target video template comprises: In response to the triggering operation of the target video template, the selected state of the target video template and a second control are displayed on the second page; In response to the triggering operation of the second control, the first media content and the template identifier of the target video template are sent to the second application to start the second application, and the second application generates the second media content based on the first media content and the target video template.

6. The method according to claim 5, wherein displaying the selected state of the target video template on the second page includes: Play the target video template on the second page.

7. The method according to claim 1, wherein displaying the first media content and the first control on the first page includes: The first media content is displayed in the preview area of ​​the first page, and the first control is displayed at the location associated with the first media content; or, The first media content is displayed in the preview area of ​​the first page, and the first control is displayed in the control display area of ​​the first page, wherein the preview area and the control display area are different areas of the first page.

8. A method for generating media content, wherein the second application includes: The third page displays a target video template and a third control, wherein the target video template represents the video of the target object in the target image template associated with the first application; In response to the triggering operation of the third control, a fourth page is displayed, on which the first media content and the fourth control are displayed, wherein the first media content is a special effect image generated by the first application applying the target image template to the media content to be edited; In response to the triggering operation of the fourth control, second media content is generated based on the first media content and the target video template, and the second media content is displayed.

9. The method according to claim 8, wherein the second media content is a special effects video generated by applying the target video template to the first media content; or, the first media content is the first frame of the second media content.

10. The method according to claim 8, wherein displaying the target video template on the third page comprises: The third page displays template information corresponding to the target video template, wherein the template information includes at least one of template image, descriptive text, and generation model information.

11. The method of claim 10, wherein displaying the first media content and the fourth control on the fourth page includes: The fourth page displays the first media content, the template information, and the fourth control.

12. The method of claim 8, wherein displaying the second media content comprises: In response to the triggering operation of the second media content, a preview page is displayed, in which the second media content is displayed, and a fifth control is displayed at the position associated with the second media content, wherein the fifth control represents the return entry of the first application.

13. The method of claim 12, further comprising: In response to the triggering operation of the fifth control, the second page of the first application is displayed.

14. A media content generation apparatus, wherein the first application comprises: The first display module is used to display the first media content and the first control on the first page, wherein the first media content is a special effects image generated by applying a target image template to the media content to be edited; The second display module is used to respond to the triggering operation of the first control and display a second page, in which the media content set associated with the first media content and the target video template are displayed, wherein the target video template represents the video of the target object in the target image template; The sending module is configured to respond to a triggering operation of the target video template and generate second media content based on the first media content and the target video template, wherein the second media content is a special effects video generated by applying the target video template to the first media content.

15. A media content generation apparatus, wherein the second application comprises: The third display module is used to display the target video template and the third control on the third page, wherein the target video template represents the video of the target object in the target image template associated with the first application; The fourth display module is used to respond to the triggering operation of the third control and display a fourth page, on which the first media content and the fourth control are displayed, wherein the first media content is a special effect image generated by the first application applying the target image template to the media content to be edited; The content generation module is used to respond to the triggering operation of the fourth control, generate second media content based on the first media content and the target video template, and display the second media content.

16. An electronic device, wherein the electronic device comprises: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the media content generation method as described in any one of claims 1-13.

17. A storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to perform the media content generation method as described in any one of claims 1-13.

18. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the media content generation method as described in any one of claims 1-13.