Video generation method and device, electronic equipment and computer storage medium

By presetting the video group and splicing order, the problems of complexity and low efficiency of short video generation in the prior art are solved, and efficient and logically accurate video generation is achieved.

CN119211458APending Publication Date: 2024-12-27HANGZHOU NETEASE ZAIGU TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411307858.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The prior art requires manual editing and disassembling of materials when generating short videos, which increases complexity and time, reduces efficiency, and is difficult to ensure the accuracy of video logic.

Method used

By presetting multiple video groups, each video group stores materials with similar characteristics, and determines the splicing order between video groups, and splicing video materials in sequence to generate target videos, avoiding manual editing and disassembly processes.

Benefits of technology

It reduces the complexity of target video generation, improves efficiency, and ensures the accuracy of video logic, and supports large-scale video generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211458A_ABST
    Figure CN119211458A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a video generation method, a video generation device, electronic equipment and a computer readable storage medium, and relates to the technical field of video processing. The method comprises the following steps: determining a plurality of preset video groups, and determining a splicing sequence among the plurality of video groups and video materials respectively associated with the plurality of video groups; wherein the video materials in the same video group have similar video features; and determining to-be-spliced video materials in the video materials associated with the plurality of video groups, and splicing the plurality of to-be-spliced video materials according to the splicing sequence to obtain a target video. Visibly, by implementing the embodiment of the invention, the plurality of to-be-spliced video materials belonging to the video groups can be simply and efficiently spliced according to the splicing sequence among the plurality of preset video groups based on the plurality of preset video groups so as to obtain the target video.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] At present, with the rise of self-media, more and more users are using short videos to meet their own video creation needs. However, currently, different materials need to be disassembled and remixed through certain editing to generate a short video, which increases the complexity of short video generation and reduces the efficiency of short video generation.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] Based on the above problems, the inventors have conducted corresponding thinking and made targeted improvements, providing a video generation method, a video generation device, an electronic device and a computer-readable storage medium. Multiple video groups can be preset, and video materials with similar video features are stored in the multiple video groups. In addition, there is a preset splicing order between the multiple video groups. According to the splicing order, the video materials to be spliced ​​in the multiple video groups are spliced ​​to obtain the target video, which reduces the complexity of generating the target video and improves the efficiency of generating the target video.

[0006] According to a first aspect of an embodiment of the present application, a video generation method is disclosed, comprising:

[0007] Determine a plurality of preset video groups, and determine a splicing order between the plurality of video groups and video materials respectively associated with the plurality of video groups; wherein the video materials in the same video group have similar video features;

[0008] The video materials to be spliced ​​are respectively determined from the video materials respectively associated with the plurality of video groups, and the plurality of the video materials to be spliced ​​are spliced ​​in the splicing order to obtain a target video.

[0009] In one embodiment, based on the above solution, determining a plurality of preset video groups and determining video materials respectively associated with the plurality of video groups includes:

[0010] In response to a video group adding operation, generating a video group corresponding to the video group adding operation;

[0011] In response to the material association operation for the target video group, a video material to be associated is selected from the original video material, and the video material to be associated is determined as the video material associated with the target video group.

[0012] In one embodiment, based on the above solution, determining the splicing order between the multiple video groups includes:

[0013] An operation sequence between the video group adding operations is determined, and the operation sequence is determined as a splicing sequence between the multiple video groups.

[0014] In one embodiment, based on the above solution, the step of respectively determining the video materials to be spliced ​​from the video materials respectively associated with the plurality of video groups includes:

[0015] Determine the dubbing audio and the dubbing duration of the dubbing audio;

[0016] Determine target video materials respectively from the video materials respectively associated with the plurality of video groups, and determine the total video duration of the plurality of target video materials;

[0017] Based on the relationship between the dubbing duration and the total video duration, a plurality of the target video materials are determined as the video materials to be spliced.

[0018] In one embodiment, based on the above solution, determining the dubbing audio includes:

[0019] In response to a dubbing text input operation, determining a dubbing text corresponding to the dubbing text input operation;

[0020] The dubbing text is converted into dubbing audio.

[0021] In one embodiment, based on the above solution, the determining of the plurality of target video materials as the video materials to be spliced ​​based on the relationship between the dubbing duration and the total video duration includes:

[0022] If the total video duration is greater than or equal to the dubbing duration, the plurality of target video materials are determined as video materials to be spliced;

[0023] If the total video duration is less than the dubbing duration, sequentially determine other video materials from the video materials respectively associated with the plurality of video groups until the total video duration of the plurality of other video materials is greater than or equal to the dubbing duration; wherein the other video materials do not include the target video material;

[0024] The other video materials are determined as the video materials to be spliced.

[0025] In one embodiment, based on the above solution, the method further includes:

[0026] Determine the number of video generation, and based on the number of video generation, respectively determine the number of video materials to be spliced ​​from the video materials respectively associated with the plurality of video groups;

[0027] According to the splicing order, the video materials to be spliced ​​belonging to different video groups are spliced ​​to obtain a video splicing result;

[0028] The video splicing result is combined with the dubbing audio to obtain a target video.

[0029] According to a second aspect of an embodiment of the present application, a video generating device is disclosed, the device comprising:

[0030] A video material determination unit, used to determine a plurality of preset video groups, and determine a splicing order between the plurality of video groups and video materials respectively associated with the plurality of video groups; wherein the video materials in the same video group have similar video features;

[0031] The video splicing unit is used to respectively determine the video materials to be spliced ​​from the video materials respectively associated with the multiple video groups, and to splice the multiple video materials to be spliced ​​in the splicing order to obtain the target video.

[0032] According to a third aspect of an embodiment of the present application, an electronic device is disclosed, including: a processor; and a memory, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the video generation method disclosed in the first aspect is implemented.

[0033] According to a fourth aspect of an embodiment of the present application, a computer program medium is disclosed, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the video generation method disclosed in the first aspect of the present application.

[0034] The embodiment of the present application can preset multiple video groups, and there is a preset splicing order between the multiple video groups, and video materials with similar video features are associated in the multiple video groups. Based on this, the target video can be obtained by splicing the multiple video materials to be spliced ​​in the multiple video groups according to the splicing order. Compared with the prior art, the implementation of the embodiment of the present application does not require the disassembly of different video materials, and does not require the manual editing of multiple video materials. A large number of target videos can be mixed and cut by splicing the video materials to be spliced ​​in the multiple video groups, which reduces the complexity of generating the target video and improves the efficiency of generating the target video.

[0035] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0036] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0038] Figure 1 What is shown is a flow chart of a video generation method according to an example implementation of the present application;

[0039] Figure 2 What is shown is a schematic diagram of an interface for generating a target video in an example implementation of the present application;

[0040] Figure 3 What is shown is a video material selection interface in an example implementation of the present application;

[0041] Figure 4 What is shown is a schematic diagram of a process of determining video materials to be spliced ​​in an example implementation manner of the present application;

[0042] Figure 5 What is shown is a schematic diagram of a process of batch generating target videos in an example implementation mode of the present application;

[0043] Figure 6 Shown is a structural block diagram of a video generating device according to another optional exemplary embodiment of the present application;

[0044] Figure 7 Shown is an electronic device according to another alternative exemplary embodiment of the present application.

[0045] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0046] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0047] Those skilled in the art know that the embodiments of the present application can be implemented as a device, apparatus, method or computer program product. Therefore, the present application can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0048] According to an embodiment of the present application, a video generating method, a video generating device, an electronic device and a computer-readable storage medium are proposed.

[0049] Any number of elements in the drawings is for illustration and not limitation, and any naming is for distinction only and does not have any limiting meaning.

[0050] The principles and spirit of the present application are explained in detail below with reference to several representative implementations of the present application. SUMMARY OF THE INVENTION

[0052] At present, the existing technology for generating target videos usually involves: manually editing or splicing video materials using video software, or randomly selecting video clips from a video material library, shuffling their order and then splicing them to generate the target video. However, no matter which of the above schemes is adopted, the editor is required to have certain editing skills, and in the second scheme, due to the high randomness, the generated target video may have logical problems and the quality is difficult to guarantee. Therefore, the above schemes will consume a lot of manpower and brainpower in the process of generating the target video, and at the same time, the accuracy of the logic of the generated target video cannot be guaranteed, thereby increasing the complexity of generating the target video and reducing the efficiency of generating the target video.

[0053] Based on the above problems, the applicant has thought of specifying the splicing order in the process of generating the target video. By presetting multiple video groups, multiple video groups store video materials with similar video features, and determine the splicing order between multiple video groups, so that in the subsequent process of generating the target video, the video materials to be spliced ​​can be randomly determined from the multiple video groups, and the video materials to be spliced ​​are spliced ​​according to the splicing order, which not only improves the efficiency of the target video, but also ensures the accuracy of the narrative logic displayed by the generated target video, and can also achieve mass generation of target videos.

[0054] Application Scenario Overview

[0055] It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this respect. On the contrary, the implementation of the present application can be applied to any applicable scenario.

[0056] When applied to the scenario of product introduction, it can avoid the inaccuracy of the product introduction logic displayed in the target video, improve the efficiency of generating product introduction videos, and generate introduction videos of related products in large quantities.

[0057] Exemplary Methods

[0058] In combination with the above application scenarios, refer to Figure 1 and Figure 7 A video generation method according to an exemplary embodiment of the present application is described.

[0059] See also Figure 1 , Figure 1 FIG. 2 is a flow chart of a video generation method according to an example implementation of the present application. Figure 1 As shown, the video generation method may include:

[0060] Step S110: determining a plurality of preset video groups, and determining a splicing order between the plurality of video groups and video materials respectively associated with the plurality of video groups; wherein the video materials in the same video group have similar video features.

[0061] Step S120: respectively determining the video materials to be spliced ​​from the video materials respectively associated with the plurality of video groups, and splicing the plurality of video materials to be spliced ​​in a splicing order to obtain a target video.

[0062] Implementation Figure 1 The video generation method shown can preset multiple video groups, and there is a preset splicing order between the multiple video groups, and video materials with similar video features are associated in the multiple video groups. Based on this, the target video can be obtained by splicing the multiple video materials to be spliced ​​in the multiple video groups according to the splicing order. Compared with the prior art, the implementation of the embodiment of the present application does not require the disassembly of different video materials, and does not require the manual editing of multiple video materials. A large number of target videos can be obtained by splicing the video materials to be spliced ​​in the multiple video groups through mixed editing, which reduces the complexity of generating the target video and improves the efficiency of generating the target video.

[0063] These steps are described in detail below.

[0064] In step S110, a plurality of preset video groups are determined, and a splicing order between the plurality of video groups and video materials respectively associated with the plurality of video groups are determined; wherein the video materials in the same video group have similar video features.

[0065] Specifically, the preset multiple video groups are preset according to the final generation requirements of the target video. For example, for product A, the final generated target video needs to include the unpacking of the outer packaging of product A, the unpacking of the inner packaging of product A, the ingredient list of product A, and the close-up shot of product A. Based on this, five video groups need to be preset, namely, video group 1-1 corresponding to the unpacking of the outer packaging of product A, video group 1-2 corresponding to the unpacking of the inner packaging of product A, video group 1-3 corresponding to the ingredient list of product A, video group 1-4 corresponding to the close-up shot 1 of product A, and video group 1-5 corresponding to the close-up shot 2 of product A.

[0066] After determining the preset multiple video groups, the splicing order between the multiple video groups can be determined, and the video materials respectively associated with the video groups can be determined. Specifically, Figure 2 The following schematic diagram shows an interface diagram for generating a target video in the embodiment of the present invention. Figure 2 As shown, including the generated video group 1-1, video group 1-2, video group 1-3, video group 1-4 and video group 1-5. By adjusting the arrangement order of video group 1-1, video group 1-2, video group 1-3, video group 1-4 and video group 1-5, the splicing order between multiple video groups can be determined. When video group 1-3 is touched, the following will be displayed Figure 3 The video material selection interface shown.

[0067] Figure 3 The video material selection interface in the embodiment of the present disclosure is schematically shown. Figure 3 As shown, the touch control 310 can select the corresponding video group, for example, select video group 230 at this time. After selecting video group 230, you can select the video material corresponding to the video group in the video material library, for example, select the video material for displaying the material table of commodity A. The selected video material will be displayed in the interface 320 and associated with the video group 230. Subsequently, if you need to continue to associate the video material corresponding to the video group 230, you can add a video control through the touch control 330. It is worth noting that for a video group, the video materials associated with it have similar video features. For example, the video materials associated with video group 230 all describe the material table of commodity A.

[0068] As an optional embodiment, multiple preset video groups are determined, and video materials respectively associated with the multiple video groups are determined, including: responding to a video group adding operation, generating a video group corresponding to the video group adding operation; responding to a material association operation for a target video group, selecting video materials to be associated from the original video materials, and determining the video materials to be associated as video materials associated with the target video group.

[0069] Among them, Figure 2 As shown, Figure 2 There is a control called Add Video Group in the , and when a touch operation is performed on the control (that is, when a video adding operation is performed), a video group will be generated.

[0070] After generating a video group, you can touch the video group (i.e., perform material association operations on the target video group) to select one or more video materials to be associated that correspond to the video group from the original video material (i.e., the video material library). At this time, the video materials to be associated have an association relationship with the corresponding target video group.

[0071] It can be seen that by implementing this optional embodiment, a video group that meets the target video splicing requirements can be preset, and the corresponding video materials to be associated are associated with the video group, which lays a foundation for the subsequent generation of the target video.

[0072] As an optional embodiment, determining the splicing order between the multiple video groups includes: determining an operation order between video group adding operations, and determining the operation order as the splicing order between the multiple video groups.

[0073] Among them, each time a video group adding operation is performed, a video group can be generated. The operation order refers to the order in which different video group adding operations are performed. For example, the user has performed 5 video group adding operations in succession, and video group 1-1, video group 1-2, video group 1-3, video group 1-4 and video group 1-5 are generated in sequence. Based on this, the splicing order between multiple video groups is video group 1-1, video group 1-2, video group 1-3, video group 1-4 and video group 1-5.

[0074] It can be seen that the implementation of this optional embodiment clarifies the correspondence between the splicing order between the video groups and the operation order between the video group adding operations, which ensures that the target video generated subsequently will not have the problem of inaccurate narrative logic.

[0075] In step S120, video materials to be spliced ​​are respectively determined from the video materials respectively associated with the plurality of video groups, and the plurality of video materials to be spliced ​​are spliced ​​in a splicing order to obtain a target video.

[0076] Specifically, a video material to be spliced ​​is randomly selected from the video materials respectively associated with the plurality of video groups. For example, a video material C-1 to be spliced ​​is randomly selected from the video group 1-1, a video material C-2 to be spliced ​​is randomly selected from the video group 1-2, a video material C-3 to be spliced ​​is randomly selected from the video group 1-3, a video material C-4 to be spliced ​​is randomly selected from the video group 1-4, and a video material C-5 to be spliced ​​is randomly selected from the video group 1-5.

[0077] According to the splicing order of video group 1-1, video group 1-2, video group 1-3, video group 1-4 and video group 1-5, the video material C-1 to be spliced, the video material C-2 to be spliced, the video material C-3 to be spliced, the video material C-4 to be spliced ​​and the video material C-5 to be spliced ​​are spliced ​​in turn to generate the target video for introducing product A.

[0078] As an optional embodiment, video materials to be spliced ​​are respectively determined from video materials respectively associated with multiple video groups, including: determining dubbing audio and dubbing duration of the dubbing audio; determining target video materials from video materials respectively associated with multiple video groups, and determining the total video duration of the multiple target video materials; based on the relationship between the dubbing duration and the total video duration, determining the multiple target video materials as video materials to be spliced.

[0079] The interface for generating the target video may also include an audio input box. A text version of the dubbing may be input in the audio input box, or a voice version of the dubbing may be input. When a text version of the dubbing is input, the text version of the dubbing may be converted into a dubbing audio; when a voice version of the dubbing is input, the dubbing is the dubbing audio. The dubbing duration is the duration of the dubbing audio.

[0080] The target video material refers to the video material randomly selected from different video groups, and the total video duration refers to the total playback duration of these randomly selected video materials. According to the relationship between the dubbing duration and the total video duration, it can be determined whether the determined target video material is determined as the video material to be spliced ​​for subsequent generation of the target video.

[0081] It can be seen that the implementation of this optional embodiment introduces dubbing audio, and determines whether to determine the target video material as the video material to be spliced ​​based on the duration relationship between the dubbing audio and the total video duration, thereby improving the logic of determining the video material to be spliced.

[0082] As an optional embodiment, determining the dubbing audio includes: responding to a dubbing text input operation, determining a dubbing text corresponding to the dubbing text input operation; and converting the dubbing text into dubbing audio.

[0083] Among them, the dubbing text input operation refers to the operation performed in the interface used to generate the target video. After the dubbing text input operation is performed in the interface used to generate the target video, a dubbing text will be obtained. At this time, the dubbing text needs to be converted into dubbing audio in voice form.

[0084] It can be seen that by implementing this optional embodiment, even if the input is a dubbing text, the dubbing text can be converted into dubbing audio, which lays a foundation for adding dubbing to the video later.

[0085] As an optional embodiment, based on the relationship between the dubbing duration and the total video duration, multiple target video materials are determined as video materials to be spliced, including: if the total video duration is greater than or equal to the dubbing duration, multiple target video materials are determined as video materials to be spliced; if the total video duration is less than the dubbing duration, other video materials are determined in sequence from the video materials respectively associated with multiple video groups until the total video duration of the multiple other video materials is greater than or equal to the dubbing duration; wherein the other video materials do not include the target video material; and the other video materials are determined as video materials to be spliced.

[0086] Among them, when the total video length is greater than or equal to the dubbing length, it proves that the dubbing audio can be played completely. Based on this, the target video material determined at this time is determined as the video material to be spliced.

[0087] If the total video length is less than the dubbing length, it means that the dubbing audio has not been played after the target video material has been played. Therefore, the target video material determined at this time cannot be determined as the video material to be spliced.

[0088] At this time, it is necessary to re-determine other video materials from the video materials associated with multiple video groups. It is worth noting that other video materials do not include the target video material determined last time. If the total video duration of the other video materials currently determined is greater than or equal to the dubbing audio, the other video materials are determined as the final video materials to be spliced. If the total video duration of the other video materials currently determined is less than the dubbing audio, the above steps are repeated until the total video duration of the other video materials is greater than or equal to the dubbing duration.

[0089] Figure 4 The following is a schematic diagram of a process for determining video materials to be spliced ​​in an embodiment of the present disclosure, wherein: Figure 4 As shown, first determine the dubbing audio, calculate the dubbing duration of the dubbing audio, and then randomly select a video material in each video group to form a target video material; then determine the total video duration of the target video material; when the total video duration is less than the dubbing audio, reselect another video material from the first video group to re-determine the total video duration of the target video material; judge the relationship between the re-determined total video duration and the dubbing duration, until the total video duration is greater than or equal to the dubbing duration, at which time the determined target video material is determined as the video material to be spliced.

[0090] It can be seen that when implementing this optional embodiment, when the total video length is less than the dubbing length, it is necessary to determine other video materials in sequence from the video materials associated with multiple video groups until the total video length of other video materials is greater than or equal to the dubbing length. This allows the subsequently generated target video to contain complete dubbing audio, which helps the audience understand the video information in the target video.

[0091] As an optional embodiment, the method also includes: determining the number of video generation, and based on the number of video generation, determining the number of videos to be spliced ​​from the video materials respectively associated with multiple video groups; splicing the videos to be spliced ​​belonging to different video groups in a splicing order to obtain a video splicing result; and combining the video splicing result with the dubbing audio to obtain a target video.

[0092] The number of generated videos refers to the number of generated target videos. For example, if the number of generated videos is 20, 20 video materials to be spliced ​​are determined in video group 1-1, 20 video materials to be spliced ​​are determined in video group 1-2, 20 video materials to be spliced ​​are determined in video group 1-3, 20 video materials to be spliced ​​are determined in video group 1-4, and 20 video materials to be spliced ​​are determined in video group 1-5.

[0093] Based on this, according to the splicing order, one is randomly selected from the 20 video materials to be spliced ​​corresponding to each video group for splicing. For example, the video material V01 to be spliced ​​is determined from the 20 video materials to be spliced ​​corresponding to the video group 1-1, the video material V23 to be spliced ​​is determined from the 20 video materials to be spliced ​​corresponding to the video group 1-2, the video material V44 to be spliced ​​is determined from the 20 video materials to be spliced ​​corresponding to the video group 1-3, the video material V71 to be spliced ​​is determined from the 20 video materials to be spliced ​​corresponding to the video group 1-4, and the video material V90 to be spliced ​​is determined from the 20 video materials to be spliced ​​corresponding to the video group 1-5. The video material V01 to be spliced, the video material V23 to be spliced, the video material V44 to be spliced, the video material V71 to be spliced, and the video material V90 to be spliced ​​are spliced ​​to form the first video splicing result. According to the above steps, 19 video splicing results can also be formed. By combining the dubbing audio with the above 20 video splicing results, 20 target videos can be obtained.

[0094] Figure 5 The schematic diagram of the process of batch generating target videos in the embodiment of the present disclosure is shown as follows: Figure 5 As shown, a plurality of preset video groups are determined, video materials associated with the plurality of preset video groups are determined, a splicing order of the plurality of preset video groups is determined, and a number N of video generation is determined.

[0095] According to the number of videos generated N and the batch task information of the above information integration, a video material to be spliced ​​is selected from the preset multiple video groups respectively, the video materials to be spliced ​​are spliced ​​to obtain the target video, and this is repeated N times to finally obtain N target videos.

[0096] It can be seen that by implementing this optional embodiment, multiple target videos can be generated in batches according to the number of videos generated.

[0097] By implementing the embodiments of the present application, multiple video groups can be preset, and there is a preset splicing order between the multiple video groups, and video materials with similar video features are associated in the multiple video groups. Based on this, the target video can be obtained by splicing the multiple video materials to be spliced ​​in the multiple video groups according to the splicing order. Compared with the prior art, by implementing the embodiments of the present application, there is no need to disassemble different video materials, and there is no need to manually edit multiple video materials. By splicing the video materials to be spliced ​​in the multiple video groups, a large amount of target videos can be mixed and cut, which reduces the complexity of generating the target video and improves the efficiency of generating the target video.

[0098] Exemplary Media

[0099] After introducing the method according to the exemplary embodiment of the present application, next, the medium according to the exemplary embodiment of the present application will be described.

[0100] In some possible implementations, various aspects of the present application may also be implemented as a medium on which program code is stored, which, when executed by a processor of a device, is used to implement the steps of the video generation method according to various exemplary implementations of the present application described in the above “Exemplary Method” section of this specification.

[0101] Specifically, when the processor of the device executes the program code, it is used to implement the following steps: determine multiple preset video groups, and determine the splicing order between the multiple video groups and the video materials respectively associated with the multiple video groups; wherein the video materials in the same video group have similar video features; determine the video materials to be spliced ​​from the video materials respectively associated with the multiple video groups, and splice the multiple video materials to be spliced ​​according to the splicing order to obtain the target video.

[0102] In some embodiments of the present application, the processor of the device is also used to implement the following steps when executing the program code: in response to a video group adding operation, generating a video group corresponding to the video group adding operation; in response to a material association operation for a target video group, selecting video material to be associated from the original video material, and determining the video material to be associated as the video material associated with the target video group.

[0103] In some implementations of the present application, when the processor of the device executes the program code, it is also used to implement the following steps: determine the operation order between the video group adding operations, and determine the operation order as the splicing order between the multiple video groups.

[0104] In some embodiments of the present application, the processor of the device is also used to implement the following steps when executing the program code: determining the dubbing audio and the dubbing duration of the dubbing audio; determining target video materials from the video materials respectively associated with multiple video groups, and determining the total video duration of the multiple target video materials; based on the relationship between the dubbing duration and the total video duration, determining the multiple target video materials as video materials to be spliced.

[0105] In some embodiments of the present application, the processor of the device is further used to implement the following steps when executing the program code: responding to a dubbing text input operation, determining a dubbing text corresponding to the dubbing text input operation; and converting the dubbing text into dubbing audio.

[0106] In some embodiments of the present application, the processor of the device is also used to implement the following steps when executing the program code: if the total video duration is greater than or equal to the dubbing duration, multiple target video materials are determined as video materials to be spliced; if the total video duration is less than the dubbing duration, other video materials are determined in sequence from the video materials respectively associated with multiple video groups until the total video duration of the multiple other video materials is greater than or equal to the dubbing duration; wherein the other video materials do not include the target video material; and the other video materials are determined as video materials to be spliced.

[0107] In some embodiments of the present application, the processor of the device is also used to implement the following steps when executing the program code: determining the number of video generations, and based on the number of video generations, determining the number of video materials to be spliced ​​from the video materials respectively associated with multiple video groups; splicing the video materials to be spliced ​​belonging to different video groups in a splicing order to obtain a video splicing result; combining the video splicing result with the dubbing audio to obtain the target video.

[0108] It should be noted that the above-mentioned medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0109] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to: electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0110] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0111] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user computing device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0112] Exemplary Devices

[0113] After introducing the medium of the exemplary embodiment of the present application, next, reference is made to Figure 6 A video generating device according to an exemplary embodiment of the present application will be described.

[0114] See also Figure 6 , Figure 6 FIG. 2 is a block diagram of a video generation device according to an exemplary embodiment of the present application. Figure 6 As shown, a video generating device 600 according to an exemplary embodiment of the present application includes: a video material determining unit 610 and a video splicing unit 620, wherein:

[0115] The video material determination unit 610 is used to determine a plurality of preset video groups, and determine a splicing order between the plurality of video groups and video materials respectively associated with the plurality of video groups; wherein the video materials in the same video group have similar video features;

[0116] The video splicing unit 620 is used to determine the video materials to be spliced ​​from the video materials respectively associated with the multiple video groups, and splice the multiple video materials to be spliced ​​in a splicing order to obtain a target video.

[0117] It can be seen that the implementation Figure 6 The device shown can preset multiple video groups, and there is a preset splicing order between the multiple video groups, and video materials with similar video features are associated in the multiple video groups. Based on this, the target video can be obtained by splicing the multiple video materials to be spliced ​​in the multiple video groups according to the splicing order. Compared with the prior art, the implementation of the embodiment of the present application does not need to disassemble different video materials, and does not need to manually edit multiple video materials. The target video can be generated by splicing the video materials to be spliced ​​in the multiple video groups, mixing and splicing a large amount, which reduces the complexity of generating the target video and improves the efficiency of generating the target video.

[0118] In one embodiment, based on the aforementioned scheme, the video material determination unit 610 determines a plurality of preset video groups and determines video materials respectively associated with the plurality of video groups, including: in response to a video group adding operation, generating a video group corresponding to the video group adding operation; in response to a material association operation for a target video group, selecting video materials to be associated from the original video materials, and determining the video materials to be associated as video materials associated with the target video group.

[0119] It can be seen that by implementing this optional embodiment, a video group that meets the target video splicing requirements can be preset, and the corresponding video materials to be associated are associated with the video group, which lays a foundation for the subsequent generation of the target video.

[0120] In one embodiment, based on the above solution, determining the splicing order between the multiple video groups includes:

[0121] An operation sequence between video group adding operations is determined, and the operation sequence is determined as a splicing sequence between the multiple video groups.

[0122] It can be seen that the implementation of this optional embodiment clarifies the correspondence between the splicing order between the video groups and the operation order between the video group adding operations, which ensures that the target video generated subsequently will not have the problem of inaccurate narrative logic.

[0123] In one embodiment, based on the above solution, respectively determining the video materials to be spliced ​​from the video materials respectively associated with the plurality of video groups includes:

[0124] Determine the dubbing audio and the dubbing duration of the dubbing audio; determine the target video materials respectively among the video materials respectively associated with the multiple video groups, and determine the total video duration of the multiple target video materials; based on the relationship between the dubbing duration and the total video duration, determine the multiple target video materials as the video materials to be spliced.

[0125] It can be seen that the implementation of this optional embodiment introduces dubbing audio, and determines whether to determine the target video material as the video material to be spliced ​​based on the duration relationship between the dubbing audio and the total video duration, thereby improving the logic of determining the video material to be spliced.

[0126] In one embodiment, based on the above scheme, determining the dubbing audio includes:

[0127] In response to a dubbing text input operation, a dubbing text corresponding to the dubbing text input operation is determined; and the dubbing text is converted into dubbing audio.

[0128] It can be seen that by implementing this optional embodiment, even if the input is a dubbing text, the dubbing text can be converted into dubbing audio, which lays a foundation for adding dubbing to the video later.

[0129] In one embodiment, based on the above solution, based on the relationship between the dubbing duration and the total video duration, multiple target video materials are determined as the video materials to be spliced, including:

[0130] If the total video duration is greater than or equal to the dubbing duration, multiple target video materials are determined as video materials to be spliced; if the total video duration is less than the dubbing duration, other video materials are determined in sequence from the video materials respectively associated with the multiple video groups until the total video duration of the multiple other video materials is greater than or equal to the dubbing duration; wherein the other video materials do not include the target video material; the other video materials are determined as video materials to be spliced.

[0131] It can be seen that when implementing this optional embodiment, when the total video length is less than the dubbing length, it is necessary to determine other video materials in sequence from the video materials associated with multiple video groups until the total video length of other video materials is greater than or equal to the dubbing length. This allows the subsequently generated target video to contain complete dubbing audio, which helps the audience understand the video information in the target video.

[0132] In one embodiment, based on the above solution, the device further includes:

[0133] Determine the number of videos to be generated, and based on the number of videos to be generated, determine the number of video materials to be spliced ​​from the video materials respectively associated with the multiple video groups; splice the video materials to be spliced ​​belonging to different video groups in a splicing order to obtain a video splicing result; combine the video splicing result with the dubbing audio to obtain a target video.

[0134] It can be seen that by implementing this optional embodiment, multiple target videos can be generated in batches at one time according to the number of videos to be generated.

[0135] It should be noted that although several modules or units of the video generation device are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0136] Exemplary Electronic Devices

[0137] After introducing the method, medium, and apparatus according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.

[0138] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0139] Refer to the following Figure 7 An electronic device 700 according to such an embodiment of the present invention is described. Figure 7 The electronic device 700 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0140] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one storage unit 720, a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710), and a display unit 740.

[0141] The storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.

[0142] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 721 and / or a cache memory unit 722 , and may further include a read-only memory unit (ROM) 723 .

[0143] The storage unit 720 may also include a program / utility 724 having a set (at least one) of program modules 725, such program modules 725 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the reality of a network environment.

[0144] The bus 730 may include a data bus, an address bus, and a control bus.

[0145] The electronic device 700 may also communicate with one or more external devices 770 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), and such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0146] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0147] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0148] Although the spirit and principle of the present application have been described with reference to several specific embodiments, it should be understood that the present application is not limited to the specific embodiments of the invention, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present application is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

Claims

1. A video generation method, characterized in that: The method comprises: Determine a plurality of preset video groups, and determine a splicing order between the plurality of video groups and video materials respectively associated with the plurality of video groups; wherein the video materials in the same video group have similar video features; The video materials to be spliced ​​are respectively determined from the video materials respectively associated with the plurality of video groups, and the plurality of the video materials to be spliced ​​are spliced ​​in the splicing order to obtain a target video.

2. The method according to claim 1, characterized in that The step of determining a plurality of preset video groups and determining video materials respectively associated with the plurality of video groups includes: In response to a video group adding operation, generating a video group corresponding to the video group adding operation; In response to the material association operation for the target video group, a video material to be associated is selected from the original video material, and the video material to be associated is determined as the video material associated with the target video group.

3. The method according to claim 2, characterized in that The determining the splicing order between the multiple video groups includes: An operation sequence between the video group adding operations is determined, and the operation sequence is determined as a splicing sequence between the multiple video groups.

4. The method according to claim 1, characterized in that: The step of respectively determining the video materials to be spliced ​​from the video materials respectively associated with the plurality of video groups comprises: Determine the dubbing audio and the dubbing duration of the dubbing audio; Determine target video materials respectively from the video materials respectively associated with the plurality of video groups, and determine the total video duration of the plurality of target video materials; Based on the relationship between the dubbing duration and the total video duration, a plurality of the target video materials are determined as the video materials to be spliced.

5. The method according to claim 4, characterized in that The determining of the dubbing audio includes: In response to a dubbing text input operation, determining a dubbing text corresponding to the dubbing text input operation; The dubbing text is converted into dubbing audio.

6. The method according to claim 4, characterized in that The step of determining the plurality of target video materials as the video materials to be spliced ​​based on the relationship between the dubbing duration and the total video duration includes: If the total video duration is greater than or equal to the dubbing duration, the plurality of target video materials are determined as video materials to be spliced; If the total video duration is less than the dubbing duration, sequentially determine other video materials from the video materials respectively associated with the plurality of video groups until the total video duration of the plurality of other video materials is greater than or equal to the dubbing duration; wherein the other video materials do not include the target video material; The other video materials are determined as the video materials to be spliced.

7. The method according to claim 4, characterized in that The method further comprises: Determine the number of video generation, and based on the number of video generation, respectively determine the number of video materials to be spliced ​​from the video materials respectively associated with the plurality of video groups; According to the splicing order, the video materials to be spliced ​​belonging to different video groups are spliced ​​to obtain a video splicing result; The video splicing result is combined with the dubbing audio to obtain a target video.

8. A video generating device, characterized in that: The device comprises: A video material determination unit, used to determine a plurality of preset video groups, and determine a splicing order between the plurality of video groups and video materials respectively associated with the plurality of video groups; wherein the video materials in the same video group have similar video features; The video splicing unit is used to respectively determine the video materials to be spliced ​​from the video materials respectively associated with the multiple video groups, and to splice the multiple video materials to be spliced ​​in the splicing order to obtain the target video.

9. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.

10. A computer program product having a computer program stored thereon, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Text-based video automatic production method and device, equipment and medium

    CN120455803A