Video generation method and device, electronic equipment and storage medium
By generating matching editing template information and operating elements, video materials are automatically edited, which solves the problems of low video editing quality and efficiency in the existing technology, and achieves efficient and accurate video generation.
Patent Information
- Application Number
- CN202410704406.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-10
AI Technical Summary
Existing video editing technology relies on user experience. Improper template selection results in poor video quality, and manual selection is costly and inefficient.
By determining the target multimedia material, generating matching editing template information, using editing operation elements to edit the material, automatically generating the target video, and improving editing efficiency and quality.
It improves the accuracy and efficiency of video generation, reduces costs, and reduces manual editing time and effort.
Smart Images

Figure CN118632045A
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular to a video generation method, device, electronic device, and storage medium. Background Art
[0002] With the rapid development of online video platforms, the demand for video processing is increasing day by day. For example, after some multimedia materials (such as videos or pictures) are given, it is necessary to select video editing templates for the multimedia materials, and use the selected video editing templates to edit and process the multimedia materials, and finally form a video to complete the film production. However, the quality of video film production is greatly affected by user experience. If the selected template is inappropriate, the edited video will not be accurate enough, resulting in the video film failing to meet the requirements, and the cost of manual selection must be borne, and the video editing efficiency is quite low. Summary of the invention
[0003] The present disclosure provides a video generation method, device, electronic device and storage medium to realize intelligent recommendation and generation of editing templates suitable for multimedia materials to perform video generation, reduce the cost of video generation and improve video generation efficiency and generation quality.
[0004] In a first aspect, an embodiment of the present disclosure provides a video generation method, the method comprising:
[0005] Determine the target multimedia material corresponding to the target editing task;
[0006] Generating target editing template information corresponding to the target editing task based on the target multimedia material, wherein the target editing template information is generated by combining target editing operation elements matching the target multimedia material, and the target editing operation elements enable the target multimedia material to be edited based on the target editing template information to present an editing effect related to the reference attribute information of the target multimedia material;
[0007] The target multimedia material is edited based on the target editing template information to generate a target video for the target editing task.
[0008] In a second aspect, the present disclosure also provides a video generation device, the device comprising:
[0009] A determination module, used to determine the target multimedia material corresponding to the target editing task;
[0010] A first generating module, configured to generate target editing template information corresponding to the target editing task based on the target multimedia material, wherein the target editing template information is generated by combining target editing operation elements matching the target multimedia material, and the target editing operation elements enable the target multimedia material to be edited based on the target editing template information to present an editing effect related to the reference attribute information of the target multimedia material;
[0011] The second generating module is used to perform material editing on the target multimedia material based on the target editing template information to generate a target video of the target editing task.
[0012] In a third aspect, an electronic device is also provided in an embodiment of the present disclosure. The electronic device includes:
[0013] at least one processor; and
[0014] a memory communicatively connected to at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the video generating method in any one of the above embodiments.
[0016] In a fourth aspect, a computer-readable medium is also provided in an embodiment of the present disclosure. The computer-readable medium stores computer instructions, and the computer instructions are used to enable a processor to implement any one of the video generation methods in the above embodiments when executed.
[0017] The technical solution of the disclosed embodiment determines the target multimedia material corresponding to the target editing task, generates the target editing template information corresponding to the target editing task based on the target multimedia material, the target editing template information is generated by combining the target editing operation elements that match the target multimedia material, the target editing operation elements can make the target multimedia material be edited based on the target editing template information to present the editing effect related to the reference attribute information of the target multimedia material; based on the target editing template information, the target multimedia material is edited to generate the target video of the target editing task. After selecting the multimedia material, this solution can directly understand the multimedia material, generate the editing operation elements adapted to the multimedia material based on the understanding of the multimedia material, and then generate the editing template information using the editing operation elements that match the target multimedia material, which can not only accurately present the editing effect related to the reference attribute information of the target multimedia material, but also greatly improve the efficiency of material editing, reduce the time and effort required for manual editing, and reduce the cost of video generation.
[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1 is a flow chart of a video generation method provided by an embodiment of the present disclosure;
[0021] Figure 2 It is a schematic diagram of an implementation flow of video generation provided by an embodiment of the present disclosure;
[0022] Figure 3 is a flowchart of another video generation method provided by an embodiment of the present disclosure;
[0023] Figure 4 is a structural schematic diagram of a video generating device applicable to an embodiment of the present disclosure;
[0024] Figure 5 It is a structural schematic diagram of an electronic device for implementing a video generation method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0026] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0027] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0028] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0029] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0031] Figure 1 A flow chart of a video generation method provided in an embodiment of the present disclosure is applicable to the case where multimedia materials are edited to generate adapted videos for filming. The method can be executed by a video generation device, which can be implemented in the form of software and / or hardware and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, etc.
[0032] like Figure 1 As shown, the video generation method of the embodiment of the present disclosure may include the following process:
[0033] S110: Determine the target multimedia material corresponding to the target editing task.
[0034] The target editing task is a specific task that requires the multimedia material to be edited to generate a video. The target multimedia material may refer to the specific multimedia material content required for the target editing task when executing the target editing task. The multimedia material may include but is not limited to pictures, videos and other materials. When executing the target editing task, the specific target multimedia material related to or matching the target editing task can be obtained by importing or real-time shooting. For example, if the target editing task is to make a promotional video, then it is necessary to determine the pictures, videos and other multimedia materials related to the video editing task.
[0035] As an optional but non-limiting implementation, determining the target multimedia material corresponding to the target editing task includes the following steps:
[0036] In response to a material configuration operation corresponding to a target editing task, at least one target multimedia material corresponding to a trigger input of the material configuration operation is determined, and the at least one target multimedia material is configured to be assigned an identifier for marking a sequential position of the multimedia material in an order of addition.
[0037] A material configuration page is provided for the target editing task. In response to the material configuration operation for the target editing task on the material configuration page, at least one target multimedia material associated with the target editing task triggered by the material configuration operation is obtained. When obtaining at least one target multimedia material, an identifier for marking the sequential position of the multimedia material is assigned according to the order in which each multimedia material is added, and the identifier is used to indicate the sequential position of multiple target multimedia materials in the multimedia material set.
[0038] Exemplarily, in a video editing project, multiple material configuration operations can be performed. In response to each material configuration operation, multiple target multimedia materials related to the target editing task are determined, and sequential identifiers are assigned to the multiple target multimedia materials so as to accurately control the order and position of the materials during the material editing process of the target multimedia materials.
[0039] The above scheme can be used to conveniently organize and manage multimedia materials, ensuring that when each target multimedia material is finally edited, the correct material editing can be performed according to the matching editing operations, avoiding the misalignment of the editing operations and the multimedia materials and presenting them in the expected order, which helps to improve the efficiency and accuracy of video editing.
[0040] S120. Generate target editing template information corresponding to the target editing task based on the target multimedia material. The target editing template information is generated by combining target editing operation elements that match the target multimedia material. The target editing operation elements enable the target multimedia material to be edited based on the target editing template information to present an editing effect related to the reference attribute information of the target multimedia material.
[0041] See also Figure 2After obtaining at least one target multimedia material for the target editing task, the target multimedia material can be understood to obtain a series of editing operation elements that can be used to edit the target multimedia material to present an editing effect related to the reference attribute information of the target multimedia material. The target editing operation elements that match each target multimedia material can be suitable for editing the target multimedia material to present an editing effect related to the reference attribute information of the target multimedia material. These editing operation elements can effectively process and optimize the multimedia material to achieve the expected editing effect. The reference attribute information can include but is not limited to the material theme, material content, and other attribute information related to the material content of the target multimedia material.
[0042] For example, in a target editing task for generating a video, the corresponding target editing template information is generated according to the target multimedia material specified by the target editing task, and the target template information is composed of target editing operation elements (such as editing, color adjustment, adding special effects, etc.) that match the target multimedia material. Through the use of the above-mentioned editing operation elements, the multimedia material can be edited to present an editing effect related to the reference attribute information of the target multimedia material, such as but not limited to creating a specific atmosphere, highlighting certain elements, etc.
[0043] Optionally, the editing operation elements may be various basic elements or operation logics involved in editing multimedia materials. After the multimedia materials are edited by the editing operation elements, the edited multimedia materials can present corresponding editing effects. The editing operation elements include at least one of the following: image processing (such as cropping, scaling, rotating, adjusting colors, etc.), audio processing (such as volume adjustment, audio editing, adding sound effects), video processing (editing, splicing, adding special effects, subtitle setting, etc.), text editing (font selection, font size adjustment, color change, etc.), layout design (element arrangement, layout planning, etc.), special effect application (such as blur, shadow, border, etc.) and format conversion (conversion between different file formats).
[0044] See also Figure 2 After obtaining the target editing operation elements that match the target multimedia materials for each target multimedia material, the target editing operation elements that match each target multimedia material can be encapsulated into an initial editing template information. At this time, the executable operation logic of the encapsulated editing operation elements can be called according to the initial editing template information to automatically edit the corresponding target multimedia material, or the encapsulated editing operation elements can be called according to the initial editing template information to prompt the use of each target editing operation element to edit the corresponding target multimedia material.
[0045] S130. Edit the target multimedia material based on the target editing template information to generate a target video of the target editing task.
[0046] See also Figure 2 , the target editing template information may refer to a combination of editing operation elements corresponding to each multimedia material that can be reused in the multimedia material editing process, editing tracks and slots for placing multimedia materials, which can save multimedia editing time and improve efficiency. Editing operation elements refer to various operations performed on multimedia materials during the media material editing process, such as cropping, adding special effects, etc. Editing tracks refer to locations for placing and organizing multimedia materials, and slots refer to locations reserved in the editing template for editing operation elements or for placing multimedia materials that use editing operation elements for material editing.
[0047] See also Figure 2 , based on the target editing template information, the target multimedia material is edited and processed to obtain the target video that meets the requirements of the target editing task. In this process, the target editing template information plays a key role. The target editing template information contains specific guidance and required editing operation elements on how to edit the target multimedia material, such as editing order and method, special effects application, etc.
[0048] By adopting the above method, through the target editing template information, editors can process the target multimedia materials more efficiently, ensuring that the final generated target video meets the expected effects and requirements, thereby improving work efficiency and ensuring the quality of the video and video editing efficiency.
[0049] As an optional but non-limiting implementation, the target multimedia material is edited based on the target editing template information to generate a target video of the target editing task, including the following steps A1-A2:
[0050] Step A1: for each target multimedia material, reference preprocessing is performed on each target multimedia material to be filled into the editing track position to be filled indicated by the target editing template information, and the reference preprocessing includes at least one of the following: speed change and cropping.
[0051] Step A2: fill each target multimedia material that has undergone reference preprocessing into the slot of the editing track position to be filled indicated by the target editing template information, so that the target editing operation element associated with the editing track position to be filled performs material editing on the filled target multimedia material to output the target video of the target editing task.
[0052] See also Figure 2After loading the target editing template information, the selected triggered target multimedia material can be imported, and according to the position of the editing track to be filled for placing the target multimedia material indicated by the target editing template information, the cropping interval of each target multimedia material can be determined and the appropriate target multimedia material segment can be cropped from each target multimedia material according to the cropping interval; or, according to the position of the editing track to be filled for placing the target multimedia material indicated by the target editing template information, the speed of each target multimedia material can be adjusted.
[0053] See also Figure 2 , the target editing operation element associated with the to-be-filled editing track position indicated by the target editing template information can edit the filled target multimedia material and output the target video of the target editing task. By placing the pre-processed target multimedia material in the slot corresponding to the associated to-be-filled editing track position, the relevant editing operation elements can be applied to further process and edit the target multimedia material, and finally generate the target video that meets the requirements of the target editing task.
[0054] The technical solution of the disclosed embodiment can directly understand the multimedia material after selecting it, generate editing operation elements adapted to the multimedia material based on the understanding of the multimedia material, and then generate editing template information using the editing operation elements matching the target multimedia material. It can not only accurately present the editing effects related to the reference attribute information of the target multimedia material, but also greatly improve the efficiency of material editing, reduce the time and effort required for manual editing, and reduce the cost of video generation.
[0055] Figure 3 A flow chart of another video generation method provided for an embodiment of the present disclosure. The technical solution of this embodiment further optimizes the process of generating target editing template information corresponding to the target editing task based on the target multimedia material in the aforementioned embodiment on the basis of the aforementioned embodiment. This embodiment can be combined with various optional solutions in one or more of the aforementioned embodiments.
[0056] like Figure 3 As shown, the video generation method of the embodiment of the present disclosure may include the following process:
[0057] S310: Determine the target multimedia material corresponding to the target editing task.
[0058] S320: Determine target material feature information obtained by extracting features from the target multimedia material, where the target material feature information is used to describe the material theme and specific content of the target multimedia material.
[0059] See also Figure 2For the target multimedia material corresponding to the target editing task, the target multimedia material can be subjected to refined feature extraction, so that the target material feature information extracted from the target multimedia material can describe the material theme and material specific content of the target multimedia material in a refined manner, ensuring that the target material feature information can fully contain the material characteristics of the target multimedia material, so as to generate editing operation elements that are highly compatible with the target multimedia material.
[0060] See also Figure 2 Optionally, by performing refined feature extraction on the target multimedia material, targeted target editing operation elements are generated based on the extracted target material features and the target multimedia material. These target editing operation elements are highly consistent with the target multimedia material and can fully demonstrate the characteristics and advantages of the target multimedia material; or: feature extraction of the target multimedia material is performed in a precise manner, thereby generating target editing operation elements that perfectly match the target multimedia material, so that it can highlight the uniqueness of the target multimedia material to the greatest extent.
[0061] As an optional but non-limiting implementation, determining the target material feature information obtained by extracting features from the target multimedia material includes the following steps B1-B2:
[0062] Step B1, determine the reference material frame corresponding to the target multimedia material, the reference material frame includes at least one of the following: a first material frame and a second material frame, the first material frame is obtained by extracting the target multimedia material when the target multimedia material is a video material, and the second material frame is obtained by compressing the target multimedia material when the target multimedia material is a picture material.
[0063] Step B2: extracting features from the reference material frame to obtain target material feature information.
[0064] See also Figure 2 The target multimedia material can be a video material and / or a picture material. The appropriate processing method is selected according to the type of the target multimedia material. When the target multimedia material is a video material, the target multimedia material is frame extracted. A specific number of frames are extracted from the target multimedia material as reference material frames. The frequency and number of frame extraction may affect the effect of feature extraction. Specifically, the first frame or a preset number of intermediate frames can be extracted. When the target multimedia material is a picture material, the target multimedia material is compressed as a reference material frame, which can reduce the storage space of the multimedia material and improve the processing efficiency.
[0065] See also Figure 2, based on processing and analyzing different types of target multimedia materials, corresponding reference material frames are determined, and feature extraction is performed on the reference material frames to obtain target material feature information corresponding to the target multimedia materials. The target material feature information can be used to identify and classify different multimedia materials, and generate target editing operation elements that can edit the target multimedia materials in combination with the target multimedia materials.
[0066] S330: Determine a target editing operation element that matches the target multimedia material from the candidate editing operation elements based on the target material feature information and the target multimedia material.
[0067] Optionally, the target material feature information is parsed, such as the target material feature information of the target multimedia material, including but not limited to color, shape, texture, audio characteristics, etc.; the target material feature information is compared with the actual target multimedia material to ensure accurate understanding of the target multimedia material, and the editing operation elements that may be related to the target multimedia material are screened out from multiple candidate editing operation elements. According to the characteristics of the target material feature information and the target multimedia material, a target editing operation element that matches the target multimedia material is determined from the screened out editing operation elements that may be related to the target multimedia material.
[0068] As an optional but non-limiting implementation, based on the target material feature information and the target multimedia material, determining a target editing operation element matching the target multimedia material from the candidate editing operation elements includes the following steps C1-C2:
[0069] Step C1, based on the target material feature information and the target multimedia material, determine the target template audio that matches the target multimedia material from multiple candidate template audios, and the degree of fit between the target template audio and the target multimedia material is greater than the degree of fit between at least some of the candidate template audios and the target multimedia material.
[0070] Step C2: Based on the target material feature information, the target multimedia material and the target template audio, determine the target editing operation element that matches the target multimedia material from the candidate editing operation elements. The target editing operation element is used to indicate the editing operation to be performed when editing the target multimedia material.
[0071] See also Figure 2, multiple candidate template audios are provided for the target multimedia material, and the candidate template audios have corresponding unique audio identifiers, which can be used to search for audios, etc. The candidate template audios can be hot audios at the current stage. For example, audios whose playback volume, comment volume, like volume and / or collection volume are greater than their respective corresponding preset values can be used as candidate template audios. Optionally, the corresponding template audios can be found according to the material classification of the target multimedia material, and audios whose playback volume, comment volume, like volume and / or collection volume are greater than their respective corresponding preset values and are ranked in the front of the preset number can be used as candidate template audios.
[0072] See also Figure 2 When determining the target template audio based on the target material feature information and the target multimedia material, not only the target multimedia material itself is considered, but also the corresponding material feature information is combined. According to the target material feature information and the target multimedia material, a template audio that is more compatible with the target multimedia material can be found from a plurality of selectable template audios. The degree of compatibility between the target template audio and the target multimedia material is greater than the degree of compatibility between the remaining template audios other than the target template audio in the plurality of candidate template audios and the target multimedia material. Furthermore, a target editing operation element that is compatible with the target material feature information, the target multimedia material and the target template audio is found from a plurality of candidate editing operation elements.
[0073] As an optional but non-limiting implementation, based on the target material feature information and the target multimedia material, determining a target template audio matching the target multimedia material from a plurality of candidate template audios includes the following steps D1-D2:
[0074] Step D1, determining at least one reference template audio from a plurality of candidate template audios, wherein the at least one reference template audio is all pre-stored candidate template audios or pre-stored candidate template audios under the category to which the target multimedia material belongs.
[0075] Step D2: Based on the similarity between the audio feature information corresponding to at least one reference template audio and the feature information of the target material, determine at least one target template audio that matches the target multimedia material from the at least one reference template audio.
[0076] Optionally, based on the similarity between the audio feature information corresponding to at least one reference template audio and the feature information of the target material, the reference template audios are sorted in descending order according to the similarity and a specified number of reference template audios in the first order are retained. Furthermore, based on the audio search tendency information of the reference template audio, the audio search tendency is used to indicate the possibility of using the reference template audio to compose music for the target multimedia material, thereby determining at least one target template audio matching the target multimedia material from at least one reference template audio according to the audio search tendency information of the reference template audio.
[0077] As an optional but non-limiting implementation method, an audio recall model can be pre-configured, the input of the audio recall model is the feature information of the target material in multiple candidate template audios, and the output of the audio recall model is at least one target template audio that matches the target multimedia material. The construction process of the audio recall model is as follows: for each template audio, select multiple multimedia materials that use the template audio, each multimedia material and the template audio constitute a training positive sample, 5 frames of each multimedia material will be extracted and the corresponding material features will be obtained, and then the audio recall model will be trained.
[0078] Optionally, an LRT model trained on the audio search tendency information of the template audio can be used to select audio that is more in line with the search tendency from the audio list output by the audio recall model through the LRT model. Optionally, a chorus detection point algorithm can be used to obtain the chorus point and select a suitable audio starting point in combination with the duration of the multimedia material, and extract a template audio segment from the template audio as the target template audio.
[0079] As an optional but non-limiting implementation, based on the target material feature information, the target multimedia material and the target template audio, determining the target editing operation element matching the target multimedia material from the candidate editing operation elements includes the following steps E1-E2:
[0080] Step E1: Determine the target audio rhythm feature corresponding to the target template audio.
[0081] Step E2, based on the target material feature information, the target multimedia material and the target audio rhythm features, determine the target editing operation element that matches the target multimedia material from the candidate editing operation elements, the target editing operation element can make the target multimedia material present the rhythm effect corresponding to the target audio rhythm feature after the material is edited based on the target editing template information.
[0082] S340: Combining target editing operation elements matched by each target multimedia material to generate target editing template information corresponding to the target editing task.
[0083] Among them, the target editing template information is generated by combining target editing operation elements that match the target multimedia material. The target editing operation elements can enable the target multimedia material to be edited based on the target editing template information to present an editing effect related to the reference attribute information of the target multimedia material.
[0084] As an optional but non-limiting implementation, combining target editing operation elements matched by each target multimedia material to generate target editing template information corresponding to the target editing task includes the following steps F1-F2:
[0085] Step F1: for each target multimedia material, determine the position of the to-be-filled editing track for placing each target multimedia material and the target editing operation element to be used at the position of the to-be-filled editing track corresponding to each target multimedia material.
[0086] Step F2, based on the editing track position to be filled of each target multimedia material and the target editing operation elements associated with the editing track position to be filled corresponding to each target multimedia material, the target editing operation elements matching each target multimedia material are combined to generate the target editing template information corresponding to the target editing task.
[0087] See also Figure 2 , process each target multimedia material, find the edit track position to be filled where the target media material can be placed, and determine the target edit operation element to be used at the edit track position to be filled corresponding to each target multimedia material. According to the edit track position to be filled of each target multimedia material and the target edit operation element associated with the position, combine the edit operation elements related to each target multimedia material to generate the target edit template information corresponding to the target edit task
[0088] The above optional scheme is used to determine the editing track position to be filled in each target multimedia material on the editing track, and generates editing template information based on the editing track position to be filled and related editing operation elements, so that the multimedia material can be subsequently edited and processed according to the editing template information. This can improve the efficiency and consistency of editing and ensure that the expected editing effect is achieved.
[0089] S350: Edit the target multimedia material based on the target editing template information to generate a target video of the target editing task.
[0090] The technical solution of the disclosed embodiment can directly understand the multimedia material after selecting it, generate editing operation elements adapted to the multimedia material based on the understanding of the multimedia material, and then generate editing template information using the editing operation elements matching the target multimedia material. It can not only accurately present the editing effects related to the reference attribute information of the target multimedia material, but also greatly improve the efficiency of material editing, reduce the time and effort required for manual editing, and reduce the cost of video generation.
[0091] Figure 4 This is a structural schematic diagram of a video generating device provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the case where multimedia materials are edited to generate adapted videos for filming. The video generating device can be implemented in the form of software and / or hardware, and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, etc.
[0092] like Figure 4 As shown, the video generation device of the embodiment of the present disclosure may include the following: a determination module 410, a first generation module 420 and a second generation module 430. Among them:
[0093] A determination module 410, configured to determine a target multimedia material corresponding to a target editing task;
[0094] A first generating module 420 is used to generate target editing template information corresponding to the target editing task based on the target multimedia material, wherein the target editing template information is generated by combining target editing operation elements matching the target multimedia material, and the target editing operation elements enable the target multimedia material to be edited based on the target editing template information to present an editing effect related to the reference attribute information of the target multimedia material;
[0095] The second generating module 430 is used to perform material editing on the target multimedia material based on the target editing template information to generate a target video of a target editing task.
[0096] Based on the technical solution of the above embodiment, optionally, determining the target multimedia material corresponding to the target editing task includes:
[0097] In response to a material configuration operation corresponding to a target editing task, at least one target multimedia material corresponding to a trigger input of the material configuration operation is determined, and the at least one target multimedia material is configured to be assigned an identifier for marking a sequential position of the multimedia material in an order of addition.
[0098] On the basis of the technical solution of the above embodiment, optionally, generating target editing template information corresponding to the target editing task based on the target multimedia material includes:
[0099] Determine target material feature information obtained by extracting features from the target multimedia material, wherein the target material feature information is used to describe the material theme and specific content of the target multimedia material;
[0100] Determining a target editing operation element matching the target multimedia material from candidate editing operation elements based on the target material feature information and the target multimedia material;
[0101] The target editing template information corresponding to the target editing task is generated by combining target editing operation elements matched by each target multimedia material.
[0102] Based on the technical solution of the above embodiment, optionally, determining the target material feature information obtained by extracting features from the target multimedia material includes:
[0103] Determine a reference material frame corresponding to the target multimedia material, the reference material frame comprising at least one of the following: a first material frame and a second material frame, the first material frame being obtained by extracting a frame of the target multimedia material when the target multimedia material is a video material, and the second material frame being obtained by compressing the target multimedia material when the target multimedia material is a picture material;
[0104] Feature extraction is performed on the reference material frame to obtain the target material feature information.
[0105] On the basis of the technical solution of the above embodiment, optionally, determining a target editing operation element matching the target multimedia material from candidate editing operation elements based on the target material feature information and the target multimedia material includes:
[0106] Based on the target material feature information and the target multimedia material, determining a target template audio that matches the target multimedia material from a plurality of candidate template audios, wherein the degree of fit between the target template audio and the target multimedia material is greater than the degree of fit between at least some of the candidate template audios and the target multimedia material;
[0107] Based on the target material feature information, the target multimedia material and the target template audio, a target editing operation element matching the target multimedia material is determined from candidate editing operation elements, and the target editing operation element is used to indicate the editing operation to be performed when editing the target multimedia material.
[0108] On the basis of the technical solution of the above embodiment, optionally, based on the target material feature information and the target multimedia material, determining a target template audio matching the target multimedia material from a plurality of candidate template audios includes:
[0109] Determine at least one reference template audio from a plurality of candidate template audios, wherein the at least one reference template audio is all pre-stored candidate template audios or pre-stored candidate template audios under the category to which the target multimedia material belongs;
[0110] Based on the similarity between the audio feature information corresponding to the at least one reference template audio and the target material feature information, at least one target template audio matching the target multimedia material is determined from the at least one reference template audio.
[0111] On the basis of the technical solution of the above embodiment, optionally, determining a target editing operation element matching the target multimedia material from candidate editing operation elements based on the target material feature information, the target multimedia material and the target template audio includes:
[0112] Determine a target audio rhythm feature corresponding to the target template audio;
[0113] Based on the target material feature information, the target multimedia material and the target audio rhythm feature, a target editing operation element matching the target multimedia material is determined from candidate editing operation elements, and the target editing operation element enables the target multimedia material to present a rhythm effect corresponding to the target audio rhythm feature after the material is edited based on the target editing template information.
[0114] On the basis of the technical solution of the above embodiment, optionally, the target editing template information corresponding to the target editing task is generated by combining target editing operation elements matched by each target multimedia material, including:
[0115] For each of the target multimedia materials, determining a to-be-filled editing track position for placing each of the target multimedia materials and a target editing operation element to be used at the to-be-filled editing track position corresponding to each of the target multimedia materials;
[0116] Based on the editing track position to be filled of each target multimedia material and the target editing operation elements associated with the editing track position to be filled corresponding to each target multimedia material, the target editing operation elements matching each target multimedia material are combined to generate the target editing template information corresponding to the target editing task.
[0117] Based on the technical solution of the above embodiment, optionally, the target multimedia material is edited based on the target editing template information to generate a target video of the target editing task, including:
[0118] For each of the target multimedia materials, reference preprocessing is performed on each of the target multimedia materials to be filled into the position of the to-be-filled editing track indicated by the target editing template information, wherein the reference preprocessing includes at least one of the following: speed change and cropping;
[0119] Each of the target multimedia materials that have undergone reference preprocessing is filled into the slot of the editing track position to be filled indicated by the target editing template information, so that the target editing operation elements associated with the editing track position to be filled perform material editing on the filled target multimedia materials to output the target video of the target editing task.
[0120] The technical solution of the disclosed embodiment can directly understand the multimedia material after selecting it, generate editing operation elements adapted to the multimedia material based on the understanding of the multimedia material, and then generate editing template information using the editing operation elements matching the target multimedia material. It can not only accurately present the editing effects related to the reference attribute information of the target multimedia material, but also greatly improve the efficiency of material editing, reduce the time and effort required for manual editing, and reduce the cost of video generation.
[0121] The video generating device provided in the embodiments of the present disclosure can execute the video generating method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the video generating method.
[0122] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0123] Figure 5 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5 , which shows an electronic device (eg, Figure 5 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0124] like Figure 5 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An edit / output (I / O) interface 605 is also connected to the bus 604.
[0125] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0126] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0127] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0128] The electronic device provided by the embodiment of the present disclosure and the video generation method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0129] The embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the video generation method provided by the above embodiment is implemented.
[0130] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0131] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0132] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0133] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines the target multimedia material corresponding to the target editing task; generates the target editing template information corresponding to the target editing task based on the target multimedia material, and the target editing template information is generated by combining target editing operation elements matching the target multimedia material, and the target editing operation elements can enable the target multimedia material to be edited based on the target editing template information to present an editing effect related to the reference attribute information of the target multimedia material; and performs material editing on the target multimedia material based on the target editing template information to generate a target video of the target editing task.
[0134] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0136] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0137] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0138] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0139] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0140] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0141] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A video generation method, characterized in that: The method comprises: Determine the target multimedia material corresponding to the target editing task; Generating target editing template information corresponding to the target editing task based on the target multimedia material, wherein the target editing template information is generated by combining target editing operation elements matching the target multimedia material, and the target editing operation elements enable the target multimedia material to be edited based on the target editing template information to present an editing effect related to the reference attribute information of the target multimedia material; The target multimedia material is edited based on the target editing template information to generate a target video for the target editing task.
2. The method according to claim 1, characterized in that Determine the target multimedia material corresponding to the target editing task, including: In response to a material configuration operation corresponding to a target editing task, at least one target multimedia material corresponding to a trigger input of the material configuration operation is determined, and the at least one target multimedia material is configured to be assigned an identifier for marking a sequential position of the multimedia material in an order of addition.
3. The method according to claim 1, characterized in that Generating target editing template information corresponding to the target editing task based on the target multimedia material includes: Determine target material feature information obtained by extracting features from the target multimedia material, wherein the target material feature information is used to describe the material theme and specific content of the target multimedia material; Determining a target editing operation element matching the target multimedia material from candidate editing operation elements based on the target material feature information and the target multimedia material; The target editing template information corresponding to the target editing task is generated by combining target editing operation elements matched by each target multimedia material.
4. The method according to claim 3, characterized in that Determine target material feature information obtained by extracting features from target multimedia material, including: Determine a reference material frame corresponding to the target multimedia material, the reference material frame comprising at least one of the following: a first material frame and a second material frame, the first material frame being obtained by extracting a frame of the target multimedia material when the target multimedia material is a video material, and the second material frame being obtained by compressing the target multimedia material when the target multimedia material is a picture material; Feature extraction is performed on the reference material frame to obtain the target material feature information.
5. The method according to claim 3, characterized in that: Determining a target editing operation element matching the target multimedia material from candidate editing operation elements based on the target material feature information and the target multimedia material includes: Based on the target material feature information and the target multimedia material, determining a target template audio that matches the target multimedia material from a plurality of candidate template audios, wherein the degree of fit between the target template audio and the target multimedia material is greater than the degree of fit between at least some of the candidate template audios and the target multimedia material; Based on the target material feature information, the target multimedia material and the target template audio, a target editing operation element matching the target multimedia material is determined from candidate editing operation elements, and the target editing operation element is used to indicate the editing operation to be performed when editing the target multimedia material.
6. The method according to claim 5, characterized in that Determining a target template audio matching the target multimedia material from a plurality of candidate template audios based on the target material feature information and the target multimedia material includes: Determine at least one reference template audio from a plurality of candidate template audios, wherein the at least one reference template audio is all pre-stored candidate template audios or pre-stored candidate template audios under the category to which the target multimedia material belongs; Based on the similarity between the audio feature information corresponding to the at least one reference template audio and the target material feature information, at least one target template audio matching the target multimedia material is determined from the at least one reference template audio.
7. The method according to claim 5, characterized in that Determining a target editing operation element matching the target multimedia material from candidate editing operation elements based on the target material feature information, the target multimedia material and the target template audio, comprising: Determine a target audio rhythm feature corresponding to the target template audio; Based on the target material feature information, the target multimedia material and the target audio rhythm feature, a target editing operation element matching the target multimedia material is determined from candidate editing operation elements, and the target editing operation element enables the target multimedia material to present a rhythm effect corresponding to the target audio rhythm feature after the material is edited based on the target editing template information.
8. The method according to claim 3, characterized in that Combining target editing operation elements matched by each target multimedia material to generate target editing template information corresponding to the target editing task includes: For each of the target multimedia materials, determining a to-be-filled editing track position for placing each of the target multimedia materials and a target editing operation element to be used at the to-be-filled editing track position corresponding to each of the target multimedia materials; Based on the editing track position to be filled of each target multimedia material and the target editing operation elements associated with the editing track position to be filled corresponding to each target multimedia material, the target editing operation elements matching each target multimedia material are combined to generate the target editing template information corresponding to the target editing task.
9. The method according to claim 1, characterized in that: The target multimedia material is edited based on the target editing template information to generate a target video for the target editing task, including: For each of the target multimedia materials, reference preprocessing is performed on each of the target multimedia materials to be filled into the position of the to-be-filled editing track indicated by the target editing template information, wherein the reference preprocessing includes at least one of the following: speed change and cropping; Each of the target multimedia materials that have undergone reference preprocessing is filled into the slot of the editing track position to be filled indicated by the target editing template information, so that the target editing operation elements associated with the editing track position to be filled perform material editing on the filled target multimedia materials to output the target video of the target editing task.
10. A video generating device, characterized in that: The device comprises: A determination module, used to determine the target multimedia material corresponding to the target editing task; A first generating module, configured to generate target editing template information corresponding to the target editing task based on the target multimedia material, wherein the target editing template information is generated by combining target editing operation elements matching the target multimedia material, and the target editing operation elements enable the target multimedia material to be edited based on the target editing template information to present an editing effect related to the reference attribute information of the target multimedia material; The second generating module is used to perform material editing on the target multimedia material based on the target editing template information to generate a target video of the target editing task.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the video generating method as described in any one of claims 1-9.
12. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the video generation method according to any one of claims 1 to 9.
Citation Information
Cited By
Intelligent processing method and system for new media data
CN120929617A
Video editing method and device, electronic equipment, storage medium and product
CN121126052A
