Video generation method and device, electronic equipment and storage medium

By obtaining the play document to generate a shot sequence and matching the video material, the problem of artificial intelligence generating video distortion is solved, realism and consistent video generation is achieved, ensuring that the video content is real and matched with the script.

CN118890528APending Publication Date: 2024-11-01SHANGHAI ZHONG YUAN NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410929204.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The video works generated by using artificial intelligence models in the prior art have a sense of distortion, which affects the authenticity of the video works and consistency with the document of the play.

Method used

By obtaining the target play's document, generate lens sequence and lens description information, match the corresponding materials from the preset video material library for each lens, splice the video according to the lens sequence, and dubbing and repairing and adding the opening and ending when needed to ensure that the video is The authenticity and consistency of the content.

Benefits of technology

The generated video has a stronger sense of reality and a high consistency with the script document, ensuring that the video content comes from real shooting and editing, the shot conforms to the script description, and improving the authenticity of the video and script consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890528A_ABST
    Figure CN118890528A_ABST
Patent Text Reader

Abstract

The invention relates to a video generation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a target script document; generating a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence; for each shot, determining a target video material matched with the shot description information of the shot from a preset video material library; and splicing the target video material corresponding to each shot according to the sequence of the shot sequence to obtain a target video. Therefore, the target video which is more realistic and highly consistent with the target script document can be automatically generated for the target script document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video processing, and in particular to a video generation method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of computer vision technology, artificial intelligence is increasingly used in the field of video production, among which text-to-video technology is an important application. At present, most artificial intelligence models for text-to-video are based on diffusion models or natural regression models. They use artificial intelligence technology to understand text content, produce corresponding video elements such as characters, environment space, and finally synthesize videos.

[0003] However, the video elements produced using artificial intelligence models have a certain sense of distortion. For example, some characters' movements appear slightly stiff, and even various strange expressions appear, which seriously affects the realism of the video works. Summary of the invention

[0004] The present application provides a video generation method, device, electronic device and storage medium to solve the technical problem in the prior art that video works produced using artificial intelligence models have a sense of distortion.

[0005] In a first aspect, the present application provides a video generation method, the method comprising:

[0006] Get the target script document;

[0007] Generate a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence;

[0008] For each of the shots, determining a target video material that matches the shot description information of the shot from a preset video material library;

[0009] The target video material corresponding to each of the shots is spliced ​​in the order of the shot sequence to obtain a target video.

[0010] In a possible implementation manner, determining the target video material matching the shot description information of the shot from a preset video material library includes:

[0011] For each video material in a preset video material library, determining a matching degree between the shot description information of the shot and the shot description information of the video material;

[0012] The video material with the highest matching degree is determined as the target video material matching the shot description information of the shot.

[0013] In a possible implementation manner, the shot description information includes shot tags of multiple tag dimensions; and determining the matching degree between the shot description information of the shot and the shot description information of the video material includes:

[0014] For each of the tag dimensions, determining a matching degree between a shot tag of the shot under the tag dimension and a shot tag of the video material under the tag dimension;

[0015] The matching degree between the lens tags of the lens and the video material under the multiple tag dimensions is set and calculated to obtain the matching degree between the lens description information of the lens and the lens description information of the video material.

[0016] In a possible implementation manner, generating a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence includes:

[0017] The target script document is input into a trained shot automatic generation model to obtain a shot sequence output by the shot automatic generation model and shot description information of each shot in the shot sequence.

[0018] In a possible implementation, the method further includes:

[0019] In response to a dubbing repair request for the target video, obtaining the line text data corresponding to the target video segment from the target script document, and extracting the timbre information of the original dubbing of the target video segment; the target video segment is the video segment to be repaired indicated by the dubbing repair request;

[0020] New dubbing data is generated by using the timbre information and the dialogue text data, and the original dubbing of the target video segment is replaced with the new dubbing data.

[0021] In a possible implementation, the method further includes:

[0022] Generate a title and an end credit for the target video;

[0023] The header and the trailer are added to the target video.

[0024] In a possible implementation, generating a header and an end credit for the target video includes:

[0025] Obtaining the script theme of the target script document;

[0026] According to the theme of the script, determining the opening song and the ending song that match the target video from a preset song material library;

[0027] The opening song and the ending song are used respectively to generate an opening song and an ending song for the target video.

[0028] In a second aspect, the present application provides a video generation device, the device comprising:

[0029] The script acquisition module is used to obtain the target script document;

[0030] A shot generation module, used to generate a shot sequence corresponding to the target script document, and shot description information of each shot in the shot sequence;

[0031] A video material determination module, used for determining, for each of the shots, a target video material that matches the shot description information of the shot from a preset video material library;

[0032] The video assembly module is used to splice the target video materials corresponding to each of the shots in the order of the shot sequence to obtain the target video.

[0033] In a possible implementation manner, the video material determination module includes:

[0034] A matching degree calculation unit, used for determining, for each video material in a preset video material library, a matching degree between the shot description information of the shot and the shot description information of the video material;

[0035] The target video determination unit is used to determine the video material with the highest matching degree as the target video material matching the shot description information of the shot.

[0036] In a possible implementation manner, the shot description information includes shot tags of multiple tag dimensions; and the matching degree calculation unit is specifically configured to:

[0037] For each of the tag dimensions, determining a matching degree between a shot tag of the shot under the tag dimension and a shot tag of the video material under the tag dimension;

[0038] The matching degree between the lens tags of the lens and the video material under the multiple tag dimensions is set and calculated to obtain the matching degree between the lens description information of the lens and the lens description information of the video material.

[0039] In a possible implementation manner, the shot generation module is specifically configured to:

[0040] The target script document is input into a trained shot automatic generation model to obtain a shot sequence output by the shot automatic generation model and shot description information of each shot in the shot sequence.

[0041] In a possible implementation, the device further includes:

[0042] A repair module is used to respond to a dubbing repair request for the target video, obtain the dialogue text data corresponding to the target video segment from the target script document, and extract the timbre information of the original dubbing of the target video segment; the target video segment is the video segment to be repaired indicated by the dubbing repair request; use the timbre information and the dialogue text data to generate new dubbing data, and replace the original dubbing of the target video segment with the new dubbing data.

[0043] In a possible implementation, the device further includes:

[0044] The header / end credit adding module is used to generate a header and an end credit for the target video; and add the header and the end credit to the target video.

[0045] In a possible implementation, the header / end adding module includes:

[0046] A theme determination unit, used to obtain the script theme of the target script document;

[0047] A song matching unit, used to determine, according to the theme of the script, an opening song and an ending song that match the target video from a preset song material library;

[0048] The opening / ending generation unit is used to generate an opening song and an ending song for the target video using the opening song and the ending song respectively.

[0049] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a video generation program stored in the memory to implement the video generation method described in any one of the first aspects.

[0050] In a fourth aspect, the present application provides a storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the video generation method described in any one of the first aspects.

[0051] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, by acquiring the target script document, generates the shot sequence corresponding to the target script document, and the shot description information of each shot in the shot sequence, and for each shot, determines the target video material that matches the shot description information of the shot from the preset video material library, splices the target video material corresponding to each shot in the order of the shot sequence, and obtains the target video, thereby realizing the automatic generation of the video for the target script document. In this technical solution, since the target video is obtained by splicing the video material from the preset video material library according to the shot description information of the actual shot in the target script document, the video content in the target video is all from real shooting and editing, and its shots are consistent with the actual shots described in the target script document, so that the target video has a stronger sense of reality, and also ensures a high degree of consistency between the target video and the target script document. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0054] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0055] Figure 1 A flowchart of a video generation method provided in an embodiment of the present application;

[0056] Figure 2 A flowchart of another video generation method provided in an embodiment of the present application;

[0057] Figure 3 A flowchart of another video generation method provided in an embodiment of the present application;

[0058] Figure 4 A block diagram of an embodiment of a video generation device provided in an embodiment of the present application;

[0059] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0061] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0062] In order to solve the technical problem that video works produced by artificial intelligence models in the prior art have a sense of distortion, the present application provides a video generation method, device, electronic device and storage medium, which can generate a target video for a target script document that is more realistic and highly consistent with the target script document.

[0063] Figure 1 A flow chart of an embodiment of a video generation method provided in an embodiment of the present application.

[0064] like Figure 1 As shown, the process includes the following steps:

[0065] Step 101, obtain the target script document.

[0066] The target script document refers to the script document to be processed. In the technical solution of the embodiment of the present application, the purpose of processing the target script document is to automatically produce a video that conforms to the plot of the script in the target script document. Optionally, the target script document can be a document in the format of .doc, .docx, .ppt, .pdf, etc., which is not limited by the embodiment of the present application.

[0067] As an optional implementation method, the target script document is uploaded by the user to the execution entity of the embodiment of the present application, so as to automatically generate a video of the target script document selected by the user by applying the technical solution of the embodiment of the present application.

[0068] Step 102: Generate a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence.

[0069] Typically, a complete script contains multiple shots, each of which carries a specific message, emotion, or story development, and tells a complete story through the combination and arrangement of multiple shots. The shots in a script can be described by, but not limited to, the following elements:

[0070] Scene: The script will describe where and when the shot takes place, including whether it is an interior scene (such as a room, an office) or an exterior scene (such as a park, a street), and whether it is day or night.

[0071] Atmosphere: The script will describe the specific emotional atmosphere or environmental color created by the shot, which helps the audience to understand and feel the scenes and characters in the film more deeply. For example, through a sunny scene, colorful colors can create a pleasant and relaxing atmosphere. Another example is through a rainy scene, gray tones, and dark colors to create a sad and depressing atmosphere. Characters and actions: The script will describe in detail the actions (such as standing, riding, fighting, etc.) and expressions (such as smiling, laughing, sadness, etc.) of the characters in the shot, as well as the dialogue between the characters.

[0072] Lens language: The script will use specific lens language to guide the photographer on how to shoot the scene, such as lens type (close-up, long shot, close shot, medium shot, panoramic shot, overhead shot, etc.), lens movement (push, pull, shake, move, follow, etc.) and camera angle and distance.

[0073] Plot: The script will detail the story that needs to be presented by the shots. Usually one shot corresponds to one story.

[0074] Based on the above description, in the technical solution of the embodiment of the present application, a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence can be generated by technical means. Here, the shot sequence is formed by sorting multiple shots in the order of the plot development described in the script, wherein the shots are represented by shot identifiers. The shot description information can come from the description elements of the shots in the script shown above, including the description information of the shots under multiple element dimensions.

[0075] In one embodiment, the specific implementation of generating the shot sequence corresponding to the target script document and the shot description information of each shot in the shot sequence includes: inputting the target script document into a trained shot automatic generation model to obtain the shot sequence output by the shot automatic generation model and the shot description information of each shot in the shot sequence. Optionally, the above-mentioned shot automatic generation model uses AIGC (Artificial Intelligence Generated Content) technology to process the target script document and generate the shot sequence and the shot description information of each shot in the shot sequence.

[0076] Step 103: For each shot, determine a target video material that matches the shot description information of the shot from a preset video material library.

[0077] The preset video material library includes a large amount of video materials. Preferably, these video materials cover a variety of character models (such as modern clothes, ancient costumes, and period costumes), scenes (such as buildings, natural landscapes, etc.), storylines, atmospheres, camera transition types, etc.

[0078] In step 103, for each shot, a target video material matching the shot description information of the shot is determined from a preset video material library, that is, for each shot, a target video material matching the shot is determined from a preset video material library.

[0079] In one embodiment, each video material in the video material library has corresponding shot description information, including description information of the shot in the video material under multiple element dimensions. Based on this, the specific implementation of determining the target video material matching the shot description information of the shot from the preset video material library includes: for each video material in the preset video material library, determining the matching degree between the shot description information of the shot and the shot description information of the video material, and determining the video material with the highest matching degree as the target video material matching the shot description information of the shot.

[0080] Among them, as an optional implementation method, the shot description information includes shot tags of multiple tag dimensions, and the above-mentioned tag dimensions include but are not limited to: characters, scenes, atmosphere, actions, transition types, plots, and durations. On this basis, the specific implementation of determining the matching degree between the shot description information of the shot and the shot description information of the video material includes: for each tag dimension, determining the matching degree between the shot tag of the shot under the tag dimension and the shot tag of the video material under the tag dimension, setting the matching degree between the shot tags of the lens and the video material under multiple tag dimensions, and obtaining the matching degree between the shot description information of the lens and the shot description information of the video material. Optionally, the operation is set to weighted summation.

[0081] For example, suppose the shot description information of the shot in the target script document is: the action label is riding, and the transition type label is long shot. The shot description information of the video material is: the action label is standing, and the transition type label is long shot. Through label matching, it can be found that: the transition type labels of the two match, with a matching degree of 100%, and the action labels do not match, with a matching degree of 0. Assuming that the weight corresponding to the action label is 60%, then by taking the weighted sum of the matching degrees corresponding to the two labels, it can be obtained that the matching degree between the shot description information of the shot in the target script document and the shot description information of the video material is 60%.

[0082] Step 104: splice the target video material corresponding to each shot in the order of the shot sequence to obtain the target video.

[0083] It can be known from the relevant description in step 102 that the order of the shot sequence corresponds to the order of plot development described in the script. Based on this, the target video materials corresponding to each shot in the shot sequence are spliced ​​in the order of the shot sequence to obtain the target video that conforms to the order of plot development described in the target script document.

[0084] In addition, in one embodiment, before the target video material corresponding to each shot in the shot sequence is spliced ​​in the order of the shot sequence, part or all of the target video material may be cropped, such as cropping unimportant video clips therein, so that the duration of the target video finally spliced ​​meets the requirements. Optionally, the target video material may be cropped manually by the user, or the target video material may be automatically cropped by the execution subject of the embodiment of the present application, such as automatically cropping the target video material when it is determined that the video duration of the target video material exceeds a set duration threshold.

[0085] In one embodiment, before the target video materials corresponding to each shot in the shot sequence are spliced ​​in the order of the shot sequence, part of the target video materials can be replaced. For example, if it is determined that the target video material does not match the real storyline in the target script document, the target video material is reselected from the preset video material library, and the previously determined target video material is replaced with the reselected target video material. Through this processing method, the matching degree between the target video finally automatically generated and the target script document can be improved.

[0086] The technical solution provided by the embodiment of the present application obtains a target script document, generates a shot sequence corresponding to the target script document, and shot description information of each shot in the shot sequence, determines a target video material that matches the shot description information of the shot from a preset video material library for each shot, splices the target video material corresponding to each shot in the order of the shot sequence, and obtains a target video, thereby realizing automatic generation of a video for a target script document. In this technical solution, since the target video is obtained by splicing video materials from a preset video material library according to the shot description information of the actual shot in the target script document, the video content in the target video is all from real shooting and editing, and its shots are consistent with the actual shots described in the target script document, thereby making the target video more realistic and ensuring a high degree of consistency between the target video and the target script document.

[0087] Figure 2 A flowchart of another video generation method provided in an embodiment of the present application. Figure 2 The process shown in Figure 1 Based on the process shown, the following steps are included:

[0088] Step 201, obtain the target script document.

[0089] Step 202: Generate a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence.

[0090] Step 203: For each shot, determine a target video material that matches the shot description information of the shot from a preset video material library.

[0091] Step 204: splice the target video material corresponding to each shot in the order of the shot sequence to obtain the target video.

[0092] For detailed description of steps 201 to 204, please refer to Figure 1 The relevant description in the illustrated embodiment will not be repeated here.

[0093] Step 205, in response to a dubbing repair request for a target video, obtain the dialogue text data corresponding to the target video clip from the target script document, and extract the timbre information of the original dubbing of the target video clip; the target video clip is the video clip to be repaired indicated by the dubbing repair request.

[0094] Step 206: Generate new dubbing data using the timbre information and the dialogue text data, and replace the original dubbing of the target video clip with the new dubbing data.

[0095] For ease of understanding, step 205 and step 206 are described in a unified manner as follows:

[0096] In one embodiment, in order to further ensure the consistency between the automatically generated target video and the target script document, the automatically generated target video can also be manually reviewed, and when discrepancies are found between the script plot and certain parts of the target video, the target video can be repaired.

[0097] Optionally, during the manual review process, if it is found that certain video clips in the target video have discrepancies with the script in terms of lines, the user can trigger a dubbing repair request for these video clips, for example, by selecting these video clips and then triggering a corresponding function button to trigger the above-mentioned dubbing repair request.

[0098] Furthermore, the execution subject of the embodiment of the present application automatically performs dubbing repair on the video segment to be repaired (hereinafter referred to as the target video segment) indicated by the dubbing repair request in response to the dubbing repair request for the target video.

[0099] In one embodiment, the execution subject of the embodiment of the present application performs dubbing repair on the target video clip in the following manner: obtains the dialogue text data corresponding to the target video clip from the target script document, and extracts the timbre information of the original dubbing of the target video clip, and then uses the above timbre information and the above dialogue text data to generate new dubbing data, and replaces the original dubbing of the target video clip with the new dubbing data.

[0100] Among them, the shots included in the target video clip can be determined, and then the text data corresponding to the shots can be found from the target script document, and the line text data can be obtained from the text data.

[0101] The timbre information of the original dubbing of the target video clip is extracted through audio processing technology, and then the timbre of the original dubbing is simulated using AIGC human voice simulation technology to generate new dubbing data based on the real line text data.

[0102] Figure 2 The process shown in Figure 1 On the basis of the process shown, by responding to the dubbing repair request for the target video, the dialogue text data corresponding to the target video clip is obtained from the target script document, and the timbre information of the original dubbing of the target video clip is extracted, and the timbre information and the dialogue text data are used to generate new dubbing data, and the original dubbing of the target video clip is replaced with the new dubbing data. In this way, when it is found that some video clips in the target video and the script have discrepancies in the dialogue during the manual review process, the dubbing of these video clips can be repaired, so that the repaired dubbing maintains a high degree of consistency with the script dialogue, and retains the timbre of the original dubbing in the video, avoiding the phenomenon of sound timbre jumps and abruptness in the video.

[0103] Figure 3 A flow chart of another embodiment of a video generation method provided in an embodiment of the present application. Figure 3 The process shown in Figure 1 Based on the process shown, the following steps are included:

[0104] Step 301, obtain the target script document.

[0105] Step 302: Generate a shot sequence corresponding to the target script document, and shot description information of each shot in the shot sequence.

[0106] Step 303: For each shot, determine a target video material that matches the shot description information of the shot from a preset video material library.

[0107] Step 304: splice the target video material corresponding to each shot in the order of the shot sequence to obtain the target video.

[0108] For detailed description of steps 301 to 304, please refer to Figure 1 The relevant description in the illustrated embodiment will not be repeated here.

[0109] Step 305: Generate a title and an end credit for the target video, and add the title and the end credit to the target video.

[0110] Openings and endings are common elements of videos. By adding openings and endings to the target video, a more complete video can be obtained. This can achieve better video generation effects and enhance user experience in video creation scenarios such as film and television dramas, short dramas, etc.

[0111] In one embodiment, the specific implementation of generating the opening and ending credits for the target video includes: obtaining the script theme of the target script document, determining the opening song and ending song that match the target video from a preset song material library based on the script theme, and using the opening song and ending song respectively to generate the opening and ending credits for the target video.

[0112] The script theme of the target script document may be obtained through natural language processing technology, text summary extraction technology, etc. For example, the script theme is love, friendship, science fiction, adventure, suspense, etc.

[0113] The song library contains multiple songs of various types, each with a corresponding label that can be used to characterize the song's musical style, the emotions it expresses, and so on. Based on this, the song labels can be used to determine the opening and ending songs that match the script theme from the preset song library. Here, matching the script theme also means matching the target video.

[0114] In addition, the video content of the opening and ending credits can come from the target video itself, for example, some video frames or video clips are intercepted from the target video and spliced ​​to form the video content of the opening and ending credits. Then the video content is synthesized with the opening song / ending song to obtain the opening / ending credits.

[0115] In addition, in actual applications, you can also add a watermark to the target video and automatically generate basic information about the video, such as subject name, duration, characters, etc., and then automatically upload the target video to the review platform for the review and distribution process.

[0116] Figure 3 The process shown in Figure 1Based on the process shown, a more complete video is generated by adding opening and ending credits to the target video. In particular, by determining the opening and ending credits that match the target video from the preset song library according to the theme of the script, the audio content of the opening and ending credits can be closely connected with the video content, thereby being more able to touch the audience's emotions and resonate with the audience. This can also be said to improve the quality of the target video that is finally generated to some extent.

[0117] Figure 4 This is a block diagram of an embodiment of a video generation device provided in an embodiment of the present application. Figure 4 As shown, the device comprises:

[0118] The script acquisition module 41 is used to acquire the target script document;

[0119] A shot generation module 42, used to generate a shot sequence corresponding to the target script document, and shot description information of each shot in the shot sequence;

[0120] A video material determination module 43 is used to determine, for each of the shots, a target video material that matches the shot description information of the shot from a preset video material library;

[0121] The video assembly module 44 is used to splice the target video materials corresponding to each of the shots in the order of the shot sequence to obtain a target video.

[0122] In a possible implementation manner, the video material determination module 43 includes:

[0123] A matching degree calculation unit, used for determining, for each video material in a preset video material library, a matching degree between the shot description information of the shot and the shot description information of the video material;

[0124] The target video determination unit is used to determine the video material with the highest matching degree as the target video material matching the shot description information of the shot.

[0125] In a possible implementation manner, the shot description information includes shot tags of multiple tag dimensions; and the matching degree calculation unit is specifically configured to:

[0126] For each of the tag dimensions, determining a matching degree between a shot tag of the shot under the tag dimension and a shot tag of the video material under the tag dimension;

[0127] The matching degree between the lens tags of the lens and the video material under the multiple tag dimensions is set and calculated to obtain the matching degree between the lens description information of the lens and the lens description information of the video material.

[0128] In a possible implementation manner, the shot generation module 42 is specifically configured to:

[0129] The target script document is input into a trained shot automatic generation model to obtain a shot sequence output by the shot automatic generation model and shot description information of each shot in the shot sequence.

[0130] In a possible implementation, the device further includes:

[0131] A repair module is used to respond to a dubbing repair request for the target video, obtain the dialogue text data corresponding to the target video segment from the target script document, and extract the timbre information of the original dubbing of the target video segment; the target video segment is the video segment to be repaired indicated by the dubbing repair request; use the timbre information and the dialogue text data to generate new dubbing data, and replace the original dubbing of the target video segment with the new dubbing data.

[0132] In a possible implementation, the device further includes:

[0133] The header / end credit adding module is used to generate a header and an end credit for the target video; and add the header and the end credit to the target video.

[0134] In a possible implementation, the header / end adding module includes:

[0135] A theme determination unit, used to obtain the script theme of the target script document;

[0136] A song matching unit, used to determine, according to the theme of the script, an opening song and an ending song that match the target video from a preset song material library;

[0137] The opening / ending generation unit is used to generate an opening song and an ending song for the target video using the opening song and the ending song respectively.

[0138] like Figure 5 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0139] Memory 113, used for storing computer programs;

[0140] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the video generation method provided by any of the above method embodiments, including:

[0141] Get the target script document;

[0142] Generate a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence;

[0143] For each of the shots, determining a target video material that matches the shot description information of the shot from a preset video material library;

[0144] The target video material corresponding to each of the shots is spliced ​​in the order of the shot sequence to obtain a target video.

[0145] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the video generation method provided in any of the aforementioned method embodiments are implemented.

[0146] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0148] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0149] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A video generation method, characterized in that: The method comprises: Get the target script document; Generate a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence; For each of the shots, determining a target video material that matches the shot description information of the shot from a preset video material library; The target video material corresponding to each of the shots is spliced ​​in the order of the shot sequence to obtain a target video.

2. The method according to claim 1, characterized in that: The step of determining the target video material matching the shot description information of the shot from a preset video material library includes: For each video material in a preset video material library, determining a matching degree between the shot description information of the shot and the shot description information of the video material; The video material with the highest matching degree is determined as the target video material matching the shot description information of the shot.

3. The method according to claim 2, characterized in that The shot description information includes shot tags of multiple tag dimensions; and determining the matching degree between the shot description information of the shot and the shot description information of the video material includes: For each of the tag dimensions, determining a matching degree between a shot tag of the shot under the tag dimension and a shot tag of the video material under the tag dimension; The matching degree between the lens tags of the lens and the video material under the multiple tag dimensions is set and calculated to obtain the matching degree between the lens description information of the lens and the lens description information of the video material.

4. The method according to claim 1, characterized in that: The step of generating a shot sequence corresponding to the target script document and shot description information of each shot in the shot sequence includes: The target script document is input into a trained shot automatic generation model to obtain a shot sequence output by the shot automatic generation model and shot description information of each shot in the shot sequence.

5. The method according to claim 1, characterized in that The method further comprises: In response to a dubbing repair request for the target video, obtaining the dialogue text data corresponding to the target video segment from the target script document, and extracting the timbre information of the original dubbing of the target video segment; the target video segment is the video segment to be repaired indicated by the dubbing repair request; New dubbing data is generated by using the timbre information and the dialogue text data, and the original dubbing of the target video segment is replaced with the new dubbing data.

6. The method according to claim 1, characterized in that The method further comprises: Generate a title and an end credit for the target video; The header and the trailer are added to the target video.

7. The method according to claim 6, characterized in that Generating a title and an end for the target video includes: Obtaining the script theme of the target script document; According to the theme of the script, determining the opening song and the ending song that match the target video from a preset song material library; The opening song and the ending song are used respectively to generate an opening song and an ending song for the target video.

8. A video generating device, characterized in that: The device comprises: The script acquisition module is used to obtain the target script document; A shot generation module, used to generate a shot sequence corresponding to the target script document, and shot description information of each shot in the shot sequence; A video material determination module, used for determining, for each of the shots, a target video material that matches the shot description information of the shot from a preset video material library; The video assembly module is used to splice the target video materials corresponding to each of the shots in the order of the shot sequence to obtain the target video.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a video generation program stored in the memory to implement the video generation method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video generation method according to any one of claims 1 to 7.