Video generation method and device and electronic equipment

Through the combination of video generation templates and AI big models, video elements are generated, which solves the problems of long video production time and high skill requirements, and achieves fast and convenient video generation, improving video generation efficiency.

CN118748736APending Publication Date: 2024-10-08TAOBAO CHINA SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410644426.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In the context of e-commerce content, video production requires professional skills and takes a long time, making it difficult to meet the needs of video production efficiency.

Method used

Provide a video generation method and device, by obtaining configurable video generation templates, displaying corresponding generation controls, and calling AI big model to generate video elements, such as background images, background audio and text titles, based on the description information entered by the user or Classification tags generate target video elements, and finally automatically generate videos.

Benefits of technology

There is no need to have video production skills, it is easy to operate and can quickly generate videos, which improves video generation efficiency and meets the needs of video production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748736A_ABST
    Figure CN118748736A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a video generation method and device and electronic equipment. The method comprises the following steps: in response to a video generation operation of a user, obtaining a configurable video generation template; wherein the video generation template comprises an element type of at least one video element required for generating a video; outputting a video generation interface to a user, and displaying at least one generation control corresponding to the at least one element type in the video generation interface; in response to a trigger operation for any target generation control in the at least one generation control, calling an AI large model butted with the target generation control to generate a target video element AI large model related to an element type corresponding to the target generation control; and under the condition that the target video element related to each element type included in the video generation template is generated, generating a video according to the target video element related to each element type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to a video generation method and device and an electronic device. Background Art

[0002] In the context of e-commerce contentization, major platforms are increasing the supply of short video content. In order to increase user retention time, it is necessary to expand the supply of pan-entertainment videos.

[0003] However, video production not only requires certain professional skills, but also takes a lot of time to complete.

[0004] Therefore, it is necessary to provide a solution that can quickly generate videos to meet the demand for video production efficiency. Summary of the invention

[0005] The embodiments of this specification provide a video generation method, device and electronic device.

[0006] According to a first aspect of an embodiment of this specification, a video generation method is provided, the method comprising:

[0007] In response to a user's video generation operation, a configurable video generation template is obtained; wherein the video generation template includes an element type of at least one video element required for generating a video;

[0008] Outputting a video generation interface to a user, and displaying at least one generation control corresponding to the at least one element type in the video generation interface;

[0009] In response to a trigger operation on any target generation control among the at least one generation control, calling an AI big model connected to the target generation control to generate a target video element related to an element type corresponding to the target generation control;

[0010] When target video elements associated with each element type included in the video generation template are generated, a video is generated according to the target video elements associated with each element type.

[0011] Optionally, the element type includes a type of background image required to generate a video; the at least one generation control includes a first generation control for generating a background image; the AI ​​big model includes an image big model;

[0012] The step of responding to a trigger operation on any target generation control among the at least one generation control, calling an AI big model connected to the target generation control to generate a target video element related to an element type corresponding to the target generation control, includes:

[0013] In response to a trigger operation on the first generating control, descriptive information for characterizing a desired background image is obtained, and the descriptive information is sent as a prompt word to an image large model connected to the first generating control, so that the image large model generates a corresponding target background image based on the prompt word.

[0014] Optionally, the acquiring description information for characterizing the required background image includes:

[0015] Display the first management page;

[0016] The description information representing the required background image entered by the user in the first management page is obtained.

[0017] Optionally, the element type includes a type of background audio required for generating a video, the at least one generation control includes a second generation control for generating background audio; the AI ​​big model includes an audio big model;

[0018] The step of responding to a trigger operation on any target generation control among the at least one generation control, calling an AI big model connected to the target generation control to generate a target video element related to an element type corresponding to the target generation control, includes:

[0019] In response to a trigger operation on the second generation control, a classification label for characterizing the required audio is obtained, and the classification label is sent as a prompt word to an audio big model connected to the second generation control, so that the audio big model can query the target background audio marked with the same classification label from the audio library based on the prompt word.

[0020] Optionally, the obtaining of a classification label for characterizing the required audio includes:

[0021] Acquire the classification tags related to the audio from the video tags of the videos historically posted by the user; or,

[0022] Display the second management page;

[0023] Obtain the classification label representing the required audio configured by the user in the second management page.

[0024] Optionally, the element type includes a text title displayed in the video; the text title is used to be displayed at a preset display position in the generated video; the at least one generation control includes a third generation control for generating a text title; the AI ​​big model includes a text big model;

[0025] The step of responding to a trigger operation on any target generation control among the at least one generation control, calling an AI big model connected to the target generation control to generate a target video element related to an element type corresponding to the target generation control, includes:

[0026] In response to a trigger operation on the third generation control, a video theme to be expressed by the video is obtained, and the video theme is sent as a prompt word to a text model connected to the third generation control, so that the text model generates a target text title related to the video theme based on the prompt word.

[0027] Optionally, the obtaining of the video theme for representing the video theme to be expressed includes:

[0028] Display the third management page;

[0029] The video theme input by the user in the third management page is obtained.

[0030] Optionally, the video generation template may be configured with multiple text titles, and the multiple text titles correspond to different display positions in the video;

[0031] For the generated multiple target text titles, generating a video according to the target video element related to each element type includes:

[0032] According to the correspondence between the multiple text titles configured in the video generation template and the display positions, the generated multiple target text titles are added to the corresponding display positions in the video.

[0033] Optionally, the background image includes a dynamically played image sequence.

[0034] According to a second aspect of an embodiment of this specification, a video generating device is provided, the device comprising:

[0035] A template acquisition unit, in response to a user's video generation operation, acquires a configurable video generation template; wherein the video generation template includes an element type of at least one video element required for generating a video;

[0036] A control display unit outputs a video generation interface to a user, and displays at least one generation control corresponding to the at least one element type in the video generation interface;

[0037] An element generation unit, in response to a trigger operation on any target generation control among the at least one generation control, calls the AI ​​big model connected to the target generation control to generate a target video element AI big model related to the element type corresponding to the target generation control;

[0038] The video generation unit generates a video according to the target video element related to each element type included in the video generation template after generating the target video element related to each element type.

[0039] Optionally, the element type includes a type of background image required to generate a video; the at least one generation control includes a first generation control for generating a background image; the AI ​​big model includes an image big model;

[0040] The element generation unit comprises:

[0041] The image generation subunit, in response to a trigger operation on the first generation control, obtains descriptive information used to characterize the required background image, and sends the descriptive information as a prompt word to the image large model connected to the first generation control, so that the image large model generates a corresponding target background image based on the prompt word.

[0042] Optionally, when acquiring the description information for representing the required background image, the image generation subunit further includes:

[0043] In response to a trigger operation on the first generation control, a first management page is displayed; and description information representing a required background image input by a user in the first management page is obtained.

[0044] Optionally, the element type includes a type of background audio required for generating a video, the at least one generation control includes a second generation control for generating background audio; the AI ​​big model includes an audio big model;

[0045] The element generation unit comprises:

[0046] The audio generation subunit, in response to a trigger operation on the second generation control, obtains a classification label for characterizing the required audio, and sends the classification label as a prompt word to an audio big model connected to the second generation control, so that the audio big model can query the target background audio marked with the same classification label from the audio library based on the prompt word.

[0047] Optionally, when acquiring a classification label for characterizing the required audio, the audio generation subunit further includes:

[0048] Obtaining classification tags related to audio from video tags of videos historically released by the user; or, displaying a second management page, and obtaining classification tags representing the required audio configured by the user in the second management page.

[0049] Optionally, the element type includes a text title displayed in the video; the text title is used to be displayed at a preset display position in the generated video; the at least one generation control includes a third generation control for generating a text title; the AI ​​big model includes a text big model;

[0050] The element generation unit comprises:

[0051] The title generation subunit, in response to a trigger operation on the third generation control, obtains a video theme that is used to characterize the video, and sends the video theme as a prompt word to a text macro model connected to the third generation control, so that the text macro model generates a target text title related to the video theme based on the prompt word.

[0052] Optionally, when the title generation subunit obtains the video theme to be expressed by the video, the title generation subunit further includes:

[0053] The third management page is displayed, and the video theme input by the user in the third management page is obtained.

[0054] Optionally, the video generation template may be configured with multiple text titles, and the multiple text titles correspond to different display positions in the video;

[0055] For the generated multiple target text titles, the video generation unit further includes adding the generated multiple target text titles to corresponding display positions in the video according to the correspondence between the multiple text titles configured by the video generation template and the display positions.

[0056] Optionally, the background image includes a dynamically played image sequence.

[0057] According to a third aspect of the embodiments of this specification, there is provided an electronic device, including:

[0058] processor;

[0059] a memory for storing processor-executable instructions;

[0060] Wherein, the processor is configured as any of the above-mentioned video generation methods.

[0061] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the above-mentioned video generation methods.

[0062] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions, which implement any of the above-mentioned video generation methods when executed by a processor.

[0063] The embodiment of this specification provides a video generation solution, through which the element type of at least one video element required for video generation can be customized in a personalized manner through a video generation template, and then the generation control corresponding to each element type is output to the user; the generation control calls the video element generation capability of the docked AI large model to generate the target video element that the user wants to obtain, and finally the corresponding video is automatically generated according to the generated various target video elements. In this way, the user does not need to have video production skills, which is not only convenient to operate but also can quickly generate videos, thereby improving the efficiency of video generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 is a schematic diagram of a video generation tool provided in an embodiment of this specification;

[0065] Figure 2 is a flow chart of a video generation method provided by an embodiment of this specification;

[0066] Figure 3 is a schematic diagram of a configuration page of a video generation template provided in an embodiment of this specification;

[0067] Figure 4 is a schematic diagram of a first management page provided in an embodiment of this specification;

[0068] Figure 5 It is a schematic diagram of the location information of the text title provided in an embodiment of this specification;

[0069] Figure 6 It is a schematic diagram of a configuration page of a text title provided in an embodiment of this specification;

[0070] Figure 7 is a hardware structure diagram of a video generating device provided in an embodiment of this specification;

[0071] Figure 8 It is a module of the video generating device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0072] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.

[0073] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0074] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0075] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this manual are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0076] This specification is intended to provide a video generation tool that can automatically generate videos. Figure 1 As shown, it can be connected to at least one AI big model.

[0077] The AI ​​big model has the ability to generate video elements. In order to generate high-quality video elements, the AI ​​big model can also be connected to several material libraries that store video elements, so that the massive video materials in the material library can be used to generate the video elements required by the user.

[0078] The video generation tool may be a software client for the user side, through which the user initiates operations related to video generation.

[0079] Generally, a software client usually corresponds to a server. In this case, the software client may not directly connect to the above-mentioned AI big model, but connect to the server, and respond to the relevant operations initiated by each client through the server, including calling the relevant AI big model. In other words, the software client connects to the server, and the server connects to the AI ​​big model.

[0080] In this specification, the video generation tool supports personalized video generation templates, allowing users to customize various element types required for generating videos in the video generation template. After configuring the video generation template, the video generation tool can be used to load the video generation template to display the video generation interface, and display the generation controls corresponding to each element type configured in the video generation template in the video generation interface.

[0081] Then, the user can use the generation control to call the video element generation capability of the AI ​​model that is connected to the generation control to generate the target video element that the user wants, and finally automatically generate the corresponding video based on the generated target video elements. This does not require the user to have video production skills, which is not only convenient to operate but also can quickly generate videos, improving the efficiency of video generation.

[0082] Please combine the following Figure 2 An embodiment of a video generation method provided in this specification is introduced, and the method includes:

[0083] Step 210, in response to the user's video generation operation, obtaining a configurable video generation template; wherein the video generation template includes an element type of at least one video element required for generating a video.

[0084] The embodiments of this specification can be applied to the aforementioned video generation tool. As mentioned above, the video generation tool supports a personalized video generation template, allowing the user to customize various element types required for generating a video in the video generation template.

[0085] Please combine the following Figure 3 A schematic diagram of a configuration page of an exemplary video generation template is shown.

[0086] like Figure 3 As shown, the user can configure the element type required to generate the video under the "Element Type" list, such as "Text Title", "Background Image", "Background Audio", etc.

[0087] In addition, you can also set an element name for each configured element type to distinguish the same element type. Similarly, you can also set a template name for the video generation template configured this time to distinguish different video generation templates and quickly find the video generation template you want to load when using the video generation tool.

[0088] Step 220: output a video generation interface to the user, and display at least one generation control corresponding to the at least one element type in the video generation interface.

[0089] After configuring the video generation template, the user can use the video generation tool to load the required video generation template, thereby displaying the video generation interface and displaying the generation controls corresponding to each element type configured in the video generation template in the video generation interface.

[0090] Step 230, in response to a trigger operation on any target generation control among the at least one generation control, calling the AI ​​big model connected to the target generation control to generate a target video element related to the element type corresponding to the target generation control.

[0091] In this specification, different generation controls can be connected to an AI big model that has the ability to generate video elements of different element types. In this way, by calling the video element generation capability of the connected AI big model through the generation control, the target video element that the user wants can be generated.

[0092] The following is the aforementioned Figure 3 The three element categories of "text title", "background picture" and "background audio" shown in the figure respectively introduce relevant video element generation embodiments.

[0093] In an exemplary embodiment, the element type includes a type of background image required to generate a video; the at least one generation control includes a first generation control for generating a background image; and the AI ​​big model may include an image big model;

[0094] Accordingly, the step 230 may include:

[0095] In response to a trigger operation on the first generating control, descriptive information for characterizing a desired background image is obtained, and the descriptive information is sent as a prompt word to an image large model connected to the first generating control, so that the image large model generates a corresponding target background image based on the prompt word.

[0096] In this example, the image model connected to the first generation control can be a pre-trained model capable of generating background images. Such an image model can generate a corresponding background image based on the input description information, and training such an image model requires pre-training with a corpus consisting of a large number of images and corresponding description information. Unsupervised learning training is usually used to adjust the text understanding ability of the image model to the usage requirements, and then it is applied to generate background images.

[0097] The role of the background image is to serve as the video screen of the video to be generated. The first generation control calls the background image generation capability of the image model connected to the first generation control to generate a high-quality background image, so that the generated video presents high-quality picture content.

[0098] The background image in this specification may include a dynamically played image sequence, that is, a video without background audio; in addition, the background image may also be a static picture.

[0099] How to obtain the description information for representing the required background image may include:

[0100] Displaying a first management page for generating a background image;

[0101] The description information representing the required background image entered by the user in the first management page is obtained.

[0102] Please combine the following Figure 4 A schematic diagram of an exemplary first management page is shown.

[0103] like Figure 4 As shown, an input box 41 for users to input descriptive information can be displayed in the first management page. The user can enter descriptive information representing the required background image in the input box 41, such as "Chinese painting of ancient women wearing Hanfu". In this way, the AI ​​large model can generate a background image that conforms to the "Chinese painting of ancient women wearing Hanfu".

[0104] In addition to the descriptive information, Figure 4 The first management page in can also be used by users to configure the number of background images to be generated, image size, image format, etc. If the first generation control is connected to multiple AI large models that can generate background images, you can also choose which AI large model to use to generate the required background image.

[0105] In summary, by deploying a variety of configuration items available for user selection in the first management page, different needs of users can be met, thereby improving user experience.

[0106] In an exemplary embodiment, the element type includes a type of background audio required for generating a video, the at least one generation control includes a second generation control for generating background audio; the AI ​​big model includes an audio big model;

[0107] Accordingly, the step 230 may include:

[0108] In response to a trigger operation on the second generation control, a classification label for characterizing the required audio is obtained, and the classification label is sent as a prompt word to an audio big model connected to the second generation control, so that the audio big model can query the target background audio marked with the same classification label from the audio library based on the prompt word.

[0109] In this example, the classification labels can be divided according to different audio dimensions. For example, they can be divided into Chinese style, rock style, etc. according to the music style dimension. For example, they can be divided according to audio rhythm, applicable scenarios, etc.

[0110] The audio model connected to the second generation control can be a pre-trained model with the ability to generate background audio. Such an audio model can generate corresponding background audio based on the classification label of the input audio, and training such an audio model can be pre-trained with the help of massive audio and audio labeled classification labels. Unsupervised learning training is usually used to adjust the text understanding ability of the audio model to the usage requirements, and then it is applied to generate background audio.

[0111] The role of the background audio is to serve as the soundtrack audio for the video to be generated. The background audio generation capability of the audio model connected to the second generation control is called by the second generation control to generate background audio that matches the classification label.

[0112] How to obtain the classification label for characterizing the required audio may include:

[0113] Acquire the classification tags related to the audio from the video tags of the videos historically posted by the user; or,

[0114] Displaying a second management page for generating background audio;

[0115] Obtain the classification label representing the required audio configured by the user in the second management page.

[0116] In this example, the classification label can be automatically determined from the historically released videos, or can be determined by user input through the second management page.

[0117] In an exemplary embodiment, the element type includes a text title displayed in a video; the text title is used to be displayed at a preset display position in the generated video; the at least one generation control includes a third generation control for generating a text title; the AI ​​big model includes a text big model;

[0118] Accordingly, the step 230 may include:

[0119] In response to a trigger operation on the third generation control, a video theme to be expressed by the video is obtained, and the video theme is sent as a prompt word to a text model connected to the third generation control, so that the text model generates a target text title related to the video theme based on the prompt word.

[0120] In this example, the text model connected to the third generation control can be a pre-trained model capable of generating text titles. Such a text model can generate corresponding text titles based on the input video theme, and training such a text model can be pre-trained with the help of massive text corpora, usually using unsupervised learning training to adjust the text understanding ability of the text model to the usage requirements, and then apply it to generate text titles.

[0121] How to obtain the video theme used to represent the video may include:

[0122] Displays a third management page for generating background audio;

[0123] The video theme input by the user in the third management page is obtained.

[0124] The purpose of the text title is to display it in the video. Figure 5 The schematic diagram of the text title is shown. By marking the text title 51 related to the video theme in the video playback screen, the content, emotion and other information that the user wants to express are presented more directly. By calling the background audio generation capability of the text large model connected to the third generation control through the third generation control, a high-quality text title that conforms to the video theme can be generated.

[0125] In this specification, the video template supports dynamic configuration of text titles, that is, the user can adjust the number of text titles and the preset display position of each text title in the generated video.

[0126] In an exemplary embodiment, the video generation template may be configured with multiple text titles, and the multiple text titles correspond to different display positions in the video.

[0127] Combine the following Figure 6As shown in the figure, a user can configure multiple different text titles in the video generation template, as well as the display position of each text title in the video playback screen. In addition, the maximum number of words in each text title can be limited, such as Figure 6 The word limit for the top-level title shown is 8 words, and the word limit for the top-level title is 12 words.

[0128] Since each text title is configured with a corresponding display position, for the generated multiple target text titles, when generating a video, the correspondence between the multiple text titles and the display positions can be configured according to the video generation template, and the generated multiple target text titles can be added to the corresponding display positions in the video.

[0129] Still Figure 6 As shown, after the text model connected to the third generation control generates the top first-level title, the top second-level title and the text title of the top first-level title, the text title of the top first-level title can be further added to the display position corresponding to the top first-level title of the video, the text title of the top second-level title can be added to the display position corresponding to the top second-level title of the video, and the text title of the bottom first-level title can be added to the display position corresponding to the bottom first-level title of the video.

[0130] In this specification, the AI ​​big model docked with different generation controls can be different AI big models that are independent of each other, or it can be an integrated multimodal AI big model. The multimodal AI big model can have the ability to generate video elements of multiple element types, so as to generate video elements of different element types according to different requirements of the input prompt words. For example, if the prompt word input through the first generation control requires the generation of a background image, the multimodal AI big model can generate the required target background image; if the prompt word input through the second generation control requires the generation of background audio, the multimodal AI big model can generate the required target background audio; if the prompt word input through the third generation control requires the generation of a text title, the multimodal AI big model can generate the required target text title.

[0131] Step 240: When target video elements associated with each element type included in the video generation template are generated, a video is generated according to the target video elements associated with each element type.

[0132] Taking the aforementioned background image, background audio and text title as an example, after obtaining these three video elements, the background image is used as the picture of the video frame, the background audio is used as the audio of the video, and the text title is added to the corresponding position of each frame of the video according to the configured display position, thereby synthesizing a playable video.

[0133] Through the above embodiments, the element type of at least one video element required for video generation can be customized through the video generation template, and then the generation control corresponding to each element type can be output to the user; the video element generation capability of the docked AI large model is called through the generation control to generate the target video element that the user wants to obtain, and finally the corresponding video is automatically generated according to the generated various target video elements. In this way, the user does not need to have video production skills, which is not only convenient to operate but also can quickly generate videos, thereby improving the efficiency of video generation.

[0134] Corresponding to the above-mentioned video generation method embodiment, this specification also provides an embodiment of a video generation device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the device in which it is located reading the corresponding computer program in the non-volatile memory into the memory and running it. From the hardware level, such as Figure 7 The figure is a hardware structure diagram of the device where the video generating device of this manual is located, except Figure 7 In addition to the processor, network interface, memory and non-volatile memory shown, the device in the embodiment where the apparatus is located generally generates actual functions according to the video and may also include other hardware, which will not be described in detail.

[0135] See also Figure 8 , is a module diagram of a video generation device provided in an embodiment of this specification, and the device corresponds to Figure 2 In the embodiment shown, the device comprises:

[0136] The template acquisition unit 310 acquires a configurable video generation template in response to a user's video generation operation; wherein the video generation template includes an element type of at least one video element required for generating a video;

[0137] A control display unit 320 outputs a video generation interface to the user, and displays at least one generation control corresponding to the at least one element type in the video generation interface;

[0138] The element generation unit 330, in response to a trigger operation on any target generation control among the at least one generation control, calls the AI ​​big model connected to the target generation control to generate a target video element AI big model related to the element type corresponding to the target generation control;

[0139] The video generating unit 340 generates a video according to the target video element related to each element type included in the video generating template when the target video element related to each element type is generated.

[0140] Optionally, the element type includes a type of background image required for generating a video; the at least one generation control includes a first generation control for generating a background image;

[0141] The element generation unit 330 includes:

[0142] The image generation subunit, in response to a trigger operation on the first generation control, obtains descriptive information used to characterize the required background image; sends the descriptive information as a prompt word to the AI ​​big model connected to the first generation control, so that the AI ​​big model generates a corresponding target background image based on the prompt word; and obtains the target background image generated by the AI ​​big model.

[0143] Optionally, when acquiring the description information for representing the required background image, the image generation subunit further includes:

[0144] In response to a trigger operation on the first generation control, a first management page for generating a background image is displayed; and description information representing the required background image input by a user in the first management page is obtained.

[0145] Optionally, the element type includes a type of background audio required for generating a video, and the at least one generation control includes a second generation control for generating background audio;

[0146] The element generation unit 330 includes:

[0147] The audio generation subunit, in response to a trigger operation on the second generation control, obtains a classification label for characterizing the required audio, and sends the classification label as a prompt word to the AI ​​big model connected to the second generation control, so that the AI ​​big model queries the target background audio marked with the same classification label from the audio library based on the prompt word; and obtains the target background audio queried by the AI ​​big model.

[0148] Optionally, when acquiring a classification label for characterizing the required audio, the audio generation subunit further includes:

[0149] Obtaining classification tags related to audio from video tags of videos historically posted by the user; or, displaying a second management page for generating background audio, and obtaining classification tags for representing the required audio configured by the user in the second management page.

[0150] Optionally, the element type includes a text title displayed in the video; the text title is used to be displayed at a preset display position in the generated video; the at least one generation control includes a third generation control for generating a text title;

[0151] The element generation unit 330 includes:

[0152] The title generation subunit, in response to a trigger operation on the third generation control, obtains a video theme used to characterize the video to be expressed, and sends the video theme as a prompt word to the AI ​​big model connected to the third generation control, so that the AI ​​big model generates a target text title related to the video theme based on the prompt word; and obtains the target text title generated by the AI ​​big model.

[0153] Optionally, when the title generation subunit obtains the video theme to be expressed by the video, the title generation subunit further includes:

[0154] A third management page for generating background audio is displayed, and a video theme input by a user in the third management page is obtained.

[0155] Optionally, the video generation template may be configured with multiple text titles, and the multiple text titles correspond to different display positions in the video;

[0156] For the generated multiple target text titles, the video generation unit 340 further includes configuring the correspondence between the multiple text titles and the display positions according to the video generation template, and adding the generated multiple target text titles to the corresponding display positions in the video.

[0157] Optionally, the background image includes a dynamically played image sequence.

[0158] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0159] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0160] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.

[0161] above Figure 8 The internal functional modules and structural schematic diagram of the video generation device are described. Its actual execution subject can be an electronic device, including:

[0162] processor;

[0163] a memory for storing processor-executable instructions;

[0164] The processor is configured to execute any one of the above-mentioned video generation method embodiments.

[0165] In the above-mentioned embodiment of the electronic device, it should be understood that the processor can be a processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can be any conventional processor, etc., and the aforementioned memory can be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk, or a solid-state drive. The steps of the method disclosed in the embodiments of this specification can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0166] The present specification also provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned embodiments of the video generation method.

[0167] The present specification also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, any embodiment of the above-mentioned video generation method is implemented.

[0168] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0169] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention disclosed herein. The specification is intended to cover any variations, uses, or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not disclosed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.

[0170] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

Claims

1. A video generation method, the method comprising: In response to a user's video generation operation, a configurable video generation template is obtained; wherein the video generation template includes an element type of at least one video element required for generating a video; Outputting a video generation interface to a user, and displaying at least one generation control corresponding to the at least one element type in the video generation interface; In response to a trigger operation on any target generation control among the at least one generation control, calling an AI big model connected to the target generation control to generate a target video element related to an element type corresponding to the target generation control; When target video elements associated with each element type included in the video generation template are generated, a video is generated according to the target video elements associated with each element type.

2. The method according to claim 1, wherein the element type comprises a type of background image required to generate a video; the at least one generation control comprises a first generation control for generating a background image; and the AI ​​big model comprises an image big model; The step of responding to a trigger operation on any target generation control among the at least one generation control, calling an AI big model connected to the target generation control to generate a target video element related to an element type corresponding to the target generation control, includes: In response to a trigger operation on the first generating control, descriptive information for characterizing a desired background image is obtained, and the descriptive information is sent as a prompt word to an image large model connected to the first generating control, so that the image large model generates a corresponding target background image based on the prompt word.

3. According to the method of claim 2, the step of obtaining description information for characterizing the required background image comprises: Display the first management page; The description information representing the required background image entered by the user in the first management page is obtained.

4. The method according to claim 1, wherein the element type comprises a type of background audio required for generating a video, the at least one generation control comprises a second generation control for generating background audio; and the AI ​​big model comprises an audio big model; The step of responding to a trigger operation on any target generation control among the at least one generation control, calling an AI big model connected to the target generation control to generate a target video element related to an element type corresponding to the target generation control, includes: In response to a trigger operation on the second generation control, a classification label for characterizing the required audio is obtained, and the classification label is sent as a prompt word to an audio big model connected to the second generation control, so that the audio big model can query the target background audio marked with the same classification label from the audio library based on the prompt word.

5. The method according to claim 4, wherein obtaining a classification label for characterizing the desired audio comprises: Acquire classification tags related to audio from video tags of videos historically posted by the user; or, Display the second management page; Obtain the classification label representing the required audio configured by the user in the second management page.

6. The method according to claim 1, wherein the element type comprises a text title displayed in the video; the text title is used to be displayed at a preset display position in the generated video; the at least one generation control comprises a third generation control for generating a text title; the AI ​​big model comprises a text big model; The step of responding to a trigger operation on any target generation control among the at least one generation control, calling an AI big model connected to the target generation control to generate a target video element related to an element type corresponding to the target generation control, includes: In response to a trigger operation on the third generation control, a video theme to be expressed by the video is obtained, and the video theme is sent as a prompt word to a text model connected to the third generation control, so that the text model generates a target text title related to the video theme based on the prompt word.

7. The method according to claim 6, wherein obtaining the video theme used to characterize the video theme to be expressed comprises: Display the third management page; The video theme input by the user in the third management page is obtained.

8. The method according to claim 6, wherein the video generation template can be configured with multiple text titles, and the multiple text titles correspond to different display positions in the video; For the generated multiple target text titles, generating a video according to the target video element related to each element type includes: According to the correspondence between the multiple text titles configured in the video generation template and the display positions, the generated multiple target text titles are added to the corresponding display positions in the video.

9. The method according to claim 2, wherein the background image comprises a dynamically played image sequence.

10. A video generating device, comprising: A template acquisition unit, in response to a user's video generation operation, acquires a configurable video generation template; wherein the video generation template includes an element type of at least one video element required for generating a video; A control display unit outputs a video generation interface to a user, and displays at least one generation control corresponding to the at least one element type in the video generation interface; An element generation unit, in response to a trigger operation on any target generation control among the at least one generation control, calls the AI ​​big model connected to the target generation control to generate a target video element AI big model related to the element type corresponding to the target generation control; The video generation unit generates a video according to the target video element related to each element type included in the video generation template after generating the target video element related to each element type.

11. An electronic device, comprising: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 9.

13. A computer program product, comprising a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.