Video processing method, computing device, computer storage medium and computer program product
By segmenting the target video and converting it into video features using artificial intelligence models, the problem of cumbersome acquisition of video materials in the existing technology is solved, the efficiency and diversity of the material library are improved, and the production and dissemination effect of the promotional video is optimized.
Patent Information
- Application Number
- CN202411252623.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-11-15
AI Technical Summary
The process of obtaining video materials in the prior art is cumbersome and inefficient, which is difficult to meet diversified needs, which affects the production and dissemination effect of promoting videos.
By processing the target video in segments according to content similarity, converting it into video features using artificial intelligence models and saving it in the material library, and matching materials in response to the instructions of the video script to improve material acquisition efficiency.
It improves the efficiency and diversity of video material acquisition and optimizes the production and dissemination effects of promotional videos.
Smart Images

Figure CN118972671A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of video processing technology, and in particular to a video processing method, a computing device, a computer storage medium, and a computer program product. Background Art
[0002] In today's era of digital marketing, promotional videos have become an important means for companies and individuals to showcase their products and services.
[0003] In order to generate high-quality promotional videos, a rich variety of video materials are needed as support. However, in the process of realizing the concept of this application, the inventors found that in the related art, the process of obtaining material videos is relatively cumbersome. Usually, the acquisition of materials either relies on manual collection by users, which requires a lot of time to search and screen in various channels; or it is obtained through a limited internal resource library, and the quantity and quality of the materials are often difficult to meet diverse needs.
[0004] This makes the process of obtaining suitable video material not only cumbersome and inefficient, but may also affect the production and dissemination effects of the entire promotional video due to the inappropriateness of the material. Summary of the invention
[0005] Embodiments of the present application provide a video processing method, a computing device, a computer storage medium, and a computer program product.
[0006] In a first aspect, an embodiment of the present application provides a video processing method, which is applied to a server, and the method includes:
[0007] Get the target video;
[0008] Segmenting the target video according to content similarity to obtain multiple segmented videos;
[0009] Using an artificial intelligence big model to convert the multiple segmented videos into video features respectively;
[0010] The plurality of segmented videos are saved as material videos and their corresponding video features in a material library;
[0011] In response to obtaining a video search instruction for a video script, determining that the video script includes storyboard description information corresponding to a plurality of storyboards respectively; the storyboard description information is used to describe the screen content of the storyboard;
[0012] Based on the matching degree between the storyboard description information of each storyboard and the video features, the target material video matching each storyboard is searched from the material library.
[0013] In a second aspect, an embodiment of the present application provides a video processing device, the video processing device comprising:
[0014] A video acquisition module is used to acquire a target video;
[0015] A video segmentation module, used to segment the target video according to content similarity to obtain multiple segmented videos;
[0016] A feature conversion module, used to convert the plurality of segmented videos into video features respectively using an artificial intelligence large model;
[0017] A video saving module, used for saving the plurality of segmented videos as material videos and their corresponding video features into a material library;
[0018] An information determination module, in response to obtaining a video search instruction for a video script, determines that the video script includes storyboard description information corresponding to a plurality of storyboards respectively; the storyboard description information is used to describe the screen content of the storyboard;
[0019] The video search module is used to search the target material video matching each storyboard from the material library based on the matching degree between the storyboard description information of each storyboard and the video feature.
[0020] In a third aspect, an embodiment of the present application provides a computing device, including a processing component and a storage component;
[0021] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the video processing method provided in the embodiment of the present application.
[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processing component, the video processing method provided by the embodiment of the present application is implemented.
[0023] In a fifth aspect, a computer program product is provided in an embodiment of the present application, including a computer program / instruction, which, when executed by a processing component, implements the video processing method provided in an embodiment of the present application.
[0024] The embodiment of the present application provides a video processing method, which adopts the following methods: segmenting the target video according to content similarity to obtain multiple segmented videos; using an artificial intelligence large model to convert the multiple segmented videos into video features respectively; saving the multiple segmented videos as material videos and their respective corresponding video features in a material library; in response to obtaining a video search instruction for a video script, determining that the video script includes storyboard description information corresponding to multiple storyboards respectively; the storyboard description information is used to describe the picture content of the storyboard; based on the degree of matching between the storyboard description information of each storyboard and the video feature, a technical solution of searching the material library for a target material video matching each storyboard can be used to divide the target video into multiple material videos by segmenting the target video, thereby improving the efficiency of obtaining the material video.
[0025] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 A system architecture diagram is shown in which the technical solution of an embodiment of the present application can be applied;
[0028] Figure 2 A flowchart of a video processing method provided by an embodiment of the present application is shown;
[0029] Figure 3 A flowchart of a video generation method provided by another embodiment of the present application is shown;
[0030] Figure 4 A schematic diagram schematically illustrates a video script provided by an embodiment of the present application;
[0031] Figure 5 A framework diagram of the video generation method provided by the present application is shown;
[0032] Figure 6 A block diagram of a video processing device provided by an embodiment of the present application is shown;
[0033] Figure 7 A block diagram of a computing device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0035] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0036] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).
[0037] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0038] It should be noted that the technical solution of the embodiment of the present application is applicable to a network virtual environment. The users described generally refer to "virtual users". Real users can register user accounts in the server through registration to obtain user identities in the network environment. In the embodiment of the present application, the same user account can be used to log in to the server through different types of clients, so that the server can identify the same user. Of course, different user accounts can also be used to log in to the server through different types of clients. The server stores binding relationships between different user accounts, so that different user accounts with binding relationships can be considered to be the same user.
[0039] In today's era of digital marketing, promotional videos have become an important means for companies and individuals to showcase their products and services.
[0040] In order to generate high-quality promotional videos, a rich variety of video materials are needed as support. However, in the process of realizing the concept of this application, the inventors found that in the related art, the process of obtaining material videos is relatively cumbersome. Usually, the acquisition of materials either relies on manual collection by users, which requires a lot of time to search and screen in various channels; or it is obtained through a limited internal resource library, and the quantity and quality of the materials are often difficult to meet diverse needs.
[0041] This makes the process of obtaining suitable video material not only cumbersome and inefficient, but may also affect the production and dissemination effects of the entire promotional video due to the inappropriateness of the material.
[0042] The embodiment of the present application provides a video processing method, which adopts the following methods: segmenting a target video according to content similarity to obtain multiple segmented videos; using an artificial intelligence large model to convert the multiple segmented videos into video features respectively; saving the multiple segmented videos as material videos and their respective corresponding video features in a material library; in response to obtaining a video search instruction for a video script, determining that the video script includes storyboard description information corresponding to multiple storyboards respectively; the storyboard description information is used to describe the picture content of the storyboard; based on the degree of matching between the storyboard description information of each storyboard and the video feature, a technical solution of searching the material library for a target material video matching each storyboard can be used to divide the target video into multiple material videos by segmenting the target video, thereby improving the efficiency of obtaining the material video.
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0044] Figure 1 A system architecture diagram in which the technical solution of an embodiment of the present application can be applied is shown, and the system architecture may include a user terminal 101 and a server terminal 102. (Or: it may include a server terminal and multiple user terminals; or it may include a server terminal, a first user terminal and a second user terminal, etc.)
[0045] Among them, a connection is established between the user terminal 101 and the server terminal 102 through a network. The network provides a medium for the communication link between the user terminal 101 and the server terminal 102. The network may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. Optionally, the server can be connected to the user terminal through a mobile network. Accordingly, the network standard of the mobile network can be any one of 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G+ (LTE+), 5G, WiMax, etc. Optionally, the user terminal can also establish a communication connection with the server through Bluetooth, WiFi, infrared, etc.
[0046] The client 101 can interact with the server 102 through the network to receive or send messages, etc.
[0047] Among them, the user terminal 101 can be a browser, an APP (Application), or a web application such as an H5 (HyperText Markup Language 5, Hypertext Markup Language Version 5) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The user terminal 101 can be deployed in an electronic device and needs to rely on the device to run or some apps in the device to run, etc. The electronic device can, for example, have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, a desktop computer, a smart speaker, a smart watch, etc. For ease of understanding, Figure 1 The user end is mainly represented by a device image. Various other types of applications can usually be configured in electronic devices, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc. Electronic devices can refer to devices used by users, which have the functions of computing, surfing the Internet, communicating, etc. required by users, such as mobile phones, tablet computers, personal computers, wearable devices, etc. Electronic devices can usually include at least one processing component and at least one storage component. Electronic devices may also include basic configurations such as network card chips, IO buses, audio and video components, which are not limited in this application. Optionally, according to the implementation form of the electronic device, some peripheral devices may also be included, such as keyboards, mice, input pens, printers, etc., which are not limited in this application.
[0048] The server 102 may include servers that provide various services, such as a server for background training that provides support for the model used on the user terminal 101, or a server that processes interactive information sent by the user terminal.
[0049] It should be noted that the server 102 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.
[0050] It should be noted that the video processing method provided in the embodiment of the present application is generally executed by the server 102, and the corresponding video processing device is generally set in the server 102. However, in other embodiments of the present application, the user end 101 may also have similar functions to the server 102, so as to execute the video processing method provided in the embodiment of the present application. In other embodiments, the video processing method provided in the embodiment of the present application may also be jointly executed by the user end 101 and the server 102.
[0051] It should be understood that Figure 2 The number of the user terminals and the server terminals in the figure is only for illustration. Any number of the user terminals and the server terminals may be provided according to the implementation requirements.
[0052] The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.
[0053] Figure 2 A flowchart of a video processing method provided by an embodiment of the present application is shown. The video processing method can be applied to a server, such as Figure 2 As shown, the video processing method may include the following steps:
[0054] 201, obtaining a target video;
[0055] 202, segmenting the target video according to content similarity to obtain multiple segmented videos;
[0056] 203, using an artificial intelligence large model to convert multiple segmented videos into video features;
[0057] 204, saving the plurality of segmented videos as material videos and the corresponding video features in a material library;
[0058] 205, in response to obtaining a video search instruction for a video script, determining that the video script includes storyboard description information corresponding to a plurality of storyboards respectively; the storyboard description information is used to describe the screen content of the storyboard;
[0059] 206 , based on the matching degree between the storyboard description information of each storyboard and the video feature, searching the target material video matching each storyboard from the material library.
[0060] The target video may be a video associated with the target object, shot by the user, generated by specific software, or downloaded from the Internet. The target object may include a commodity, and the target video may be used to introduce and promote the commodity represented by the target object. The above-mentioned commodities may include tangible products or intangible services; tangible products may refer to commodities that can be touched and physically owned, such as electronic products, clothing, or daily necessities; intangible services may include services provided by merchants, such as nanny services, cleaning services, maintenance services, or any products and services that do not have a physical form.
[0061] The target video may be longer in duration and may display multiple different subject contents.
[0062] The inventor discovered in the process of realizing the concept of the present application that, for example, in a scenario where a user needs to generate a promotional video for a target object, a video script can be first obtained. The video script can include a specific script structure. The script structure can refer to the number of storyboards, and each storyboard can be used to display specific content. For each storyboard of the video script, a corresponding material video can be obtained to display a specific theme content, and then the material videos of each storyboard are spliced together to generate a promotional video.
[0063] Take the three-part script structure as an example. This structure divides the video content into three main parts or shots. First, shot one shows the cleaning staff carrying tools to the door, shot two shows the cleaning staff cleaning in different rooms, and shot three shows the tidy room after cleaning.
[0064] Then in the above script structure, storyboard one can match the stock video of the cleaning staff carrying tools to the door, storyboard two can match the stock video of the cleaning staff cleaning in different rooms, and storyboard three can match the stock video showing the tidy room after cleaning.
[0065] Since the target video is long, and different themes may be displayed in this single target video, for example, the first 1 to 20 seconds of the target video show the cleaning staff cleaning in different rooms, the second 25 to 35 seconds show the cleaning staff carrying tools to the door, and the 40th to 50th seconds show the tidy room after cleaning.
[0066] Therefore, in order to increase the number and richness of the material videos when generating promotional videos, the target video can be split. By splitting the target video, a longer target video can be divided into multiple shorter material videos according to different themes or contents.
[0067] The server can determine the splitting position of the target video by identifying key frames, scene changes or other important content points in the target video, and split the target video at each splitting position to obtain multiple segmented videos.
[0068] After obtaining multiple segmented videos, the artificial intelligence big model can be used to conduct in-depth analysis and conversion processing on the multiple segmented videos according to specific algorithms and data processing logic, so as to convert them into video features that can accurately reflect the characteristics of the video content.
[0069] Then, the multiple segmented videos can be used as material videos, and their corresponding video features can be saved together in the material library. In a possible implementation, when multiple segmented videos are saved as material videos, data storage specifications and format requirements can be followed, and corresponding indexes and tags can be established so that they can be quickly and accurately retrieved and called later. As for their corresponding video features, they can be saved according to a specific data structure and storage method to ensure the integrity and accuracy of the data.
[0070] When a video search instruction for a video script is received, it can be determined that the video script contains multiple storyboards, and each storyboard has corresponding storyboard description information, and the storyboard description information is used to describe the screen content of the storyboard. Then, based on the degree of matching between the storyboard description information of each storyboard and the video features stored in the material library, the target material video matching each storyboard can be searched from the material library.
[0071] In some embodiments, segmenting the target video according to content similarity to obtain multiple segmented videos can be specifically implemented as follows:
[0072] Perform frame extraction on the target video to obtain multiple video frames;
[0073] Use a large AI model to convert multiple video frames into video features;
[0074] The content similarity between video frames is calculated based on video features, and video frames whose content similarity meets preset conditions are merged into segmented videos.
[0075] In a possible implementation, the server can perform frame extraction processing on the target video to extract a series of separate video frames from the target video. The server can perform similarity calculation between consecutive video frames, and calculate the similarity between consecutive video frames by comparing the visual content between consecutive frames, such as color, texture, shape, and motion features. The similarity calculation can be calculated, for example, by pixel comparison, feature vector matching, or the output of a deep learning model. Based on the calculated similarity results, the server can determine the splitting points of the target video, i.e., key frames. The splitting points can be located at positions where the similarity drops significantly, which can indicate that the video content is changing or switching to a new scene. Thus, the server can split the target video into multiple segmented videos on these key frames, and each segmented video can contain a series of visually similar continuous frames, so that the consistency of the content of each segmented video can be guaranteed. In addition, when performing segmentation processing, the server can also consider the contextual information and semantic information of the video to improve the accuracy and relevance of the segmentation; for example, if the dialogue or narrative in the video logically belongs to the same subject, it may not be split into different segments even if there are slight visual changes.
[0076] After obtaining multiple video frames, the artificial intelligence model can be used to analyze and process the extracted multiple video frames one by one, and each video frame can be converted into video features that can accurately reflect its content characteristics and attributes. These features can exist in a digital and quantified form and can be efficiently processed and calculated by computers. Among them, the artificial intelligence model can be trained and optimized with a large amount of data and has excellent image understanding and feature extraction capabilities.
[0077] Then, based on the obtained video features, the similarity calculation algorithm and model can be used to accurately calculate the content similarity between video frames. In the calculation process, multiple factors such as the image content, color distribution, texture characteristics, object shape, etc. of the video frame will be fully considered. When the calculated content similarity meets the preset conditions, these video frames can be merged into a segmented video. Among them, the preset conditions can be determined according to specific application requirements and video characteristics.
[0078] In some embodiments, calculating the content similarity between video frames based on video features and merging video frames whose content similarity meets a preset condition into segmented videos can be specifically implemented as follows:
[0079] Traverse each video frame of the target video and merge the video frames whose content similarity meets the preset conditions into segmented videos.
[0080] In some embodiments, based on the matching degree between the storyboard description information of each storyboard and the video feature, searching the target material video matching each storyboard from the material library can be specifically implemented as follows:
[0081] Performing feature extraction processing on the storyboard description information to generate storyboard description features;
[0082] From multiple video features stored in the material library, the material video is searched by the similarity between the storyboard description features and the video features.
[0083] The server can analyze the storyboard description information of each storyboard, extract the visual and content features of the storyboard description information, and convert these features into a storyboard description feature vector. The storyboard description feature vector can contain the core elements of the storyboard, such as scene, role, action, color and emotion, to provide a basis for searching and matching video materials.
[0084] After generating the storyboard description feature vector, the server can match the storyboard description feature vector with the video feature vector in the material library. The video materials in the material library can be pre-analyzed and converted into their own video feature vectors, which can be used to describe the visual content of the video. By calculating the similarity between the storyboard description feature vector and the video feature vector, the server can quantify the degree of match between each video material and a specific storyboard.
[0085] When matching video materials, the server not only considers the matching degree of feature vectors, but also searches for video materials that are consistent with the type of the target object in the classified material videos, and selects matching material videos from the material library in combination with the object type of the target object.
[0086] In some embodiments, after the target video is segmented according to content similarity and a plurality of segmented videos are obtained, the video processing method may further include:
[0087] Segment the target video according to content similarity to obtain multiple candidate videos;
[0088] The multiple candidate videos are screened according to the screening rules to remove the segmented videos that meet the screening rules from the multiple candidate videos.
[0089] For the target video, the target video can be segmented first according to the content similarity, and the target video can be divided into different sections or parts according to the content similarity. For example, if the target video is a cleaning service video shot by a user, it can be segmented according to similar contents such as different areas cleaned, different tools used, or different categories of cleaned items in the video, thereby obtaining multiple candidate videos.
[0090] Then, the multiple candidate videos can be screened according to the pre-set screening rules. The screening rules are standards set according to specific needs and purposes. For example, the screening rules can be to remove candidate videos with unclear cleaning effects or irregular operations. For example, the parts where the cleaners make obvious mistakes during the cleaning process, or the segments where some cleaning steps are unclear due to lighting problems. Or, the screening rules can be to remove candidate videos with illegal items in the video screen.
[0091] Through this screening, the parts that meet the screening rules are removed from multiple candidate videos. This makes the segmented videos that are finally retained more in line with specific requirements and expectations, can better meet subsequent use, and also avoids the unavailability of the entire video due to defects in some videos.
[0092] In some embodiments, the video processing method may further include:
[0093] In response to a video generation instruction for a target object sent by a client, determine object description information and a video script type of the target object;
[0094] Determine a target script structure corresponding to the video script type; the target script structure includes multiple storyboards;
[0095] Generate the storyboard description information of each storyboard based on the object description information and the target script structure using the artificial intelligence big model;
[0096] The storyboard description information corresponding to the plurality of storyboards respectively constitutes a video script according to the script structure; in response to the generation operation of the video script, a video search instruction is generated.
[0097] The object description information may include the name, characteristics, purpose, advantages, etc. of the target object, and may serve as the basis for the video content. For example, the following is the object description information for a cleaning service: "Professional home cleaning service, covering whole house cleaning, including kitchens, bathrooms, bedrooms and other areas, meticulous service, and the use of environmentally friendly cleaning agents." Through the object description information, the name of the target object may be introduced, such as "home cleaning service", where the service content of "home cleaning service" includes "whole house cleaning, including kitchens, bathrooms, bedrooms and other areas", and the service advantages and characteristics are "meticulous service, the use of environmentally friendly cleaning agents".
[0098] After receiving the video generation instruction, the video script type can be determined based on the target object, promotion purpose, etc.; alternatively, the user can specify the desired video script type in the video generation instruction.
[0099] Video script types may include, for example, narrative type, explanatory type, etc., wherein each video script type corresponds to a different script structure.
[0100] After determining the type of video script, you can determine the script structure corresponding to the type of video script. The script structure can refer to the number of storyboards, and each storyboard can be used to display specific content. Take the three-part script structure as an example. This structure divides the video content into three main parts or storyboards. First, storyboard 1 can focus on emotional marketing, with the goal of establishing a connection with the audience through emotional resonance, stimulating the audience's interest and emotional response; storyboard 2 is dedicated to service introduction, where the characteristics and advantages of the service provided can be introduced in detail to ensure that the audience has a clear understanding of the service itself. Finally, storyboard 3 shows the applicable population of the service and shares the feedback and evaluation of the experiencers, which helps the audience understand the actual application effect of the service and enhances the sense of trust.
[0101] Through this structured approach, the video script can be developed in an orderly manner, with each storyboard designed for specific goals and content, thus forming a coherent and persuasive video narrative. This clear script structure not only helps guide video shooting and production, but also helps ensure that the final video content can effectively convey information, attract target audiences, and achieve established marketing goals.
[0102] In some embodiments, the video processing method may further include:
[0103] Get the video search instruction for the video script sent by the client.
[0104] In some embodiments, when the target material video matching each storyboard is not found in the material library, the video processing method may further include:
[0105] Using an artificial intelligence big model, material content is generated based on the storyboard description information, wherein the synthesized material content includes synthesized video and / or synthesized picture;
[0106] Generate target material video based on the material content.
[0107] The artificial intelligence model can parse the storyboard description information, understand the required visual content and style requirements, and use deep learning algorithms to create synthetic material content that matches the visual content and style requirements described in the storyboard description information.
[0108] By using an artificial intelligence model to generate corresponding material content when there is a lack of target material matching the storyboard description information in the material library, the continuity and integrity of video generation can be ensured in the absence of video material.
[0109] In another embodiment of the present application, Figure 3 As shown, a video generation method is also provided. The video generation method can be based on Figure 2 The video processing method shown is implemented by:
[0110] 301, responding to the video generation instruction for the target object sent by the client, and determining the object description information and the video script type of the target object;
[0111] The target object may include a commodity, and the promotional video generated by the video generation instruction may be used to introduce and promote the commodity represented by the target object. The above-mentioned commodity may include tangible products or intangible services; tangible products may refer to commodities that can be touched and physically owned, such as electronic products, clothing or daily necessities; intangible services may include services provided by merchants, such as nanny services, cleaning services, maintenance services or any products and services that do not have a physical form.
[0112] The object description information may include the name, characteristics, purpose, advantages, etc. of the target object, and may serve as the basis for the video content. For example, the following is the object description information for a cleaning service: "Professional home cleaning service, covering whole house cleaning, including kitchens, bathrooms, bedrooms and other areas, meticulous service, and the use of environmentally friendly cleaning agents." Through the object description information, the name of the target object may be introduced, such as "home cleaning service", where the service content of "home cleaning service" includes "whole house cleaning, including kitchens, bathrooms, bedrooms and other areas", and the service advantages and characteristics are "meticulous service, the use of environmentally friendly cleaning agents".
[0113] The video script can be used to guide the elements and links in the video generation process, and different types of video scripts can be used to generate different types of promotional videos. The video script can include multiple storyboards, each of which can be used to guide the generation of a video segment of the promotional video, and the video segment can be a link in the process of generating the promotional video.
[0114] After receiving the video generation instruction, the video script type can be determined based on the target object, promotion purpose, etc.; alternatively, the user can specify the desired video script type in the video generation instruction.
[0115] Video script types may include, for example, narrative type, explanatory type, etc., wherein each video script type corresponds to a different script structure.
[0116] 302, determining a target script structure corresponding to the video script type; the target script structure includes a plurality of storyboards;
[0117] After determining the type of video script, you can determine the script structure corresponding to the type of video script. The script structure can refer to the number of storyboards, and each storyboard can be used to display specific content. Take the three-part script structure as an example. This structure divides the video content into three main parts or storyboards. First, storyboard 1 can focus on emotional marketing, with the goal of establishing a connection with the audience through emotional resonance, stimulating the audience's interest and emotional response; storyboard 2 is dedicated to service introduction, where the characteristics and advantages of the service provided can be introduced in detail to ensure that the audience has a clear understanding of the service itself. Finally, storyboard 3 shows the applicable population of the service and shares the feedback and evaluation of the experiencers, which helps the audience understand the actual application effect of the service and enhances the sense of trust.
[0118] Through this structured approach, the video script can be developed in an orderly manner, with each storyboard designed for specific goals and content, thus forming a coherent and persuasive video narrative. This clear script structure not only helps guide video shooting and production, but also helps ensure that the final video content can effectively convey information, attract target audiences, and achieve established marketing goals.
[0119] 303, using the artificial intelligence big model based on the object description information and the target script structure, generating the script content of each storyboard; the script content includes the spoken copy and the storyboard description information; the storyboard description information is used to describe the screen content of the storyboard;
[0120] Among them, the spoken copy may include the narration or dialogue text in the current storyboard, and the storyboard description information may be used to illustrate the visual content of each storyboard, for example, it may include scene layout, character actions, camera angles, lens movement, etc.
[0121] The artificial intelligence large model can understand the overall framework of the video and the order of each storyboard based on the script structure, and understand the basis of the script content based on the object description information of the target object, so that the script content of each storyboard can be intelligently generated.
[0122] The storyboard description information can ensure that the generated promotional video images can accurately convey the intended information and emotions, and can also maintain consistency with the spoken copy.
[0123] 304, converting the spoken text corresponding to each storyboard into spoken audio;
[0124] 305, searching the material library for a target material video that matches the storyboard description information of each storyboard and the target object;
[0125] 306, synthesizing the spoken audio of each storyboard with the corresponding target material video into a target storyboard video;
[0126] 307 , according to the target script structure, synthesize the target storyboard videos corresponding to the multiple storyboards to obtain a promotional video for the target object.
[0127] After the spoken copy is generated, the spoken copy of each storyboard can be converted into spoken audio using text-to-speech conversion technology. Next, according to the storyboard description information of the storyboard and the screen content described in the storyboard description information, the material content that matches the screen content described in the storyboard description information and matches the target object can be searched from the material library. Among them, matching the target object can refer to the material content that matches the product corresponding to the target object.
[0128] By searching for source videos based on the storyboard description information and the target object, it is possible to ensure that the visual content of the generated promotional video matches the target object and the usage scenario of the target object.
[0129] For the material video and spoken audio corresponding to each storyboard, the corresponding material video and spoken audio can be synthesized and synchronized to generate a target storyboard video.
[0130] Then, according to the script structure, multiple target storyboard videos can be synthesized in an orderly manner to generate a promotional video for the target object.
[0131] In an embodiment of the present application, by adopting a video generation instruction for a target object sent by a response client, the object description information and the video script type of the target object are determined; the script structure corresponding to the video script type is determined; the script structure includes multiple storyboards; the script content of each storyboard is generated based on the object description information and the script structure using an artificial intelligence big model; the script content includes spoken copy and storyboard description information; the storyboard description information is used to describe the picture content of the storyboard; the spoken copy corresponding to each storyboard is converted into spoken audio; the material video that matches the storyboard description information of each storyboard and the target object is searched from the material library; the spoken audio of each storyboard is synthesized with the corresponding material video into a storyboard video; according to the script structure, the storyboard videos of multiple storyboards are synthesized to obtain a technical solution for a promotional video for the target object, which can automatically generate a promotional video based on the object description information of the target object and according to the video script type, and the spoken copy and video material used in the promotional video are matched with the target object and the object description information, thereby improving the accuracy of the promotional video content while improving the generation efficiency of the promotional video.
[0132] In some embodiments, using the artificial intelligence big model based on the object description information and the target script structure to generate the script content of each storyboard can be specifically implemented as follows:
[0133] Generate the spoken copy for each storyboard based on the object description information and the target script structure using the artificial intelligence big model;
[0134] The artificial intelligence model is used to generate storyboard description information for each storyboard based on the spoken text of each storyboard.
[0135] Among them, the artificial intelligence large model can integrate the object description information into the script based on the provided object description information and the target script structure, through understanding the object description information, and generate spoken text for each storyboard that conforms to the script structure and the target object.
[0136] The artificial intelligence big model can generate storyboard description information for describing the visual content corresponding to the spoken text by understanding the spoken text, so that the visual effects presented in the generated promotional video match the spoken content.
[0137] In some embodiments, using the first artificial macro model based on the object description information and the target script structure to generate the spoken copy for each storyboard can be specifically implemented as follows:
[0138] Obtain the target script template and target script requirements corresponding to the target script structure;
[0139] Generate a first prompt word according to the first prompt template by using the object description information, the target script template and the target script requirements;
[0140] The first prompt word is input into the artificial intelligence big model, so as to utilize the artificial intelligence big model to generate the spoken text for each storyboard based on the object description information, refer to the target script template and follow the script requirements.
[0141] The target script template may refer to a script pre-generated under the target script structure, which includes the same number of storyboards as the target script structure, and each storyboard includes corresponding script content. For example, the target script template may be generated by reverse parsing other popular promotional videos that have been generated. Thus, by generating script content according to the target script template generated by reverse parsing other popular promotional videos, its script structure, script style, etc. may be imitated, thereby improving the maturity and popularity of the generated script content.
[0142] The target script requirements may be used to indicate the length, style, target audience, content requirements, format requirements, etc. of the script that is expected to be generated based on the target script structure.
[0143] The first prompt template can be a predefined framework or structure for guiding and standardizing the content input into the artificial intelligence model. In an embodiment of the present application, the first prompt template can include elements such as script structure, target audience, copy length, format requirements, language and tone, and specific requirements.
[0144] The first prompt word can be generated by filling the object description letter, the target script template and the target script requirements into the corresponding elements of the first prompt template.
[0145] By inputting the first prompt word into the artificial intelligence big model, the artificial intelligence big model can generate the spoken text for each storyboard based on the object description information, refer to the target script template and follow the script requirements.
[0146] The following may be a possible implementation of a first prompt word provided in an embodiment of the present application. It should be noted that the first prompt word is only an example.
[0147] #Setting a Purpose#
[0148] 1. I want to make a short video content of "product and service promotion.
[0149] 2. Please generate the narration material for this promotional short video by analyzing and extracting the core content of #post information#.
[0150] #Script structure#
[0151] Generate narration corpus according to the following structure:
[0152] Part 1: Based on the characteristics of your product or service and the industry classification information, create a fictional experience from a first-person perspective (close to the experiences of ordinary people and ordinary companies) to trigger everyone's emotional resonance.
[0153] Part 2: From a third-person perspective, recommend this product or service to your friends and talk about what kind of people this product or service is suitable for.
[0154] Part 3: From a third-person perspective, talk about the impact this product has on your daily life and work.
[0155] #Content Requirements#
[0156] 1. The number of words in the generated narration is within 240 words;
[0157] 2. Part 1 should not exceed 60 words;
[0158] 3. Part 2 should not exceed 140 words;
[0159] 4. Part 3 should not exceed 40 words;
[0160] 5. Descriptions such as "our products", "our services", "contact us", etc. are prohibited.
[0161] #Format requirements#
[0162] 1. Please use "part1:", "part2:", "part3:" to distinguish each paragraph. The text must be divided into 3 paragraphs, with the second paragraph being the longest.
[0163] 2. Each paragraph must not be empty.
[0164] #Sample copy#
[0165] Oh, my pile of shoes is a disaster! A pile of dirty shoes is a headache. I really don't want to wash them by myself, it feels too difficult!
[0166] So, I suddenly had an idea and decided to hand over these troublesome things to a shoe cleaning company. Do you know that a shoe cleaning company is an "old shoe doctor" with many years of experience, specializing in cleaning all kinds of shoes and is well-known.
[0167] I heard that they use advanced equipment and environmentally friendly materials, and the door-to-door pickup and delivery service is also convenient and efficient. It's great to think that my shoes will be brand new under their "magic hands". Moreover, if you have any questions during the cleaning process, there are specialists to answer them immediately!
[0168] What makes me even more excited is that XXXX shoe cleaning also offers low prices and guaranteed quality. When I think of the limited-time discounts and generous gifts waiting for me, I feel that this choice is simply a "treasure"!
[0169] Letting my shoes be washed by XYZ makes me feel confident in every step. Choosing XYZ to wash my shoes makes my life easier and more comfortable!
[0170] In the above-mentioned first prompt word, #sample copy# can be the target script template, #content requirements# and #format requirements# can be the target script requirements, and #post information# can be the object description information (the specific content of the post information is not provided in the above-mentioned first prompt word).
[0171] In some embodiments, the video generation method may further include:
[0172] Based on the spoken audio of each storyboard, a digital human image of the digital human broadcasting the spoken audio is generated.
[0173] Among them, Digital Human (or Virtual Human) can be a computer-generated character with human-like appearance, behavior and communication ability. Digital Human can be two-dimensional or three-dimensional and can be created through computer graphics (CGI) and artificial intelligence technology.
[0174] The digital human screen can be used to display the facial movements of the digital human that match the spoken audio, such as facial expressions and lip movements.
[0175] In some embodiments, synthesizing the spoken audio of each storyboard with the corresponding target material video into a target storyboard video may be specifically implemented as follows:
[0176] Combine the spoken audio of each storyboard with the digital human image to form a digital human video;
[0177] In the case that a target material video exists in any storyboard, the digital human video and the target material video are combined into a target storyboard video;
[0178] When there is no target material video for any storyboard, the digital human video is used as the target storyboard video.
[0179] After synthesizing the spoken audio and the digital human image into a digital human video, the digital human can broadcast the spoken audio according to facial movements that match the spoken audio and use corresponding timbre, intonation and emotional expression, so that the visual and auditory elements of the digital human video are coordinated.
[0180] When there is a target material video in any storyboard, the digital human video can be added to the layer above the target material video layer, so that the digital human image is integrated into the target material video, and the target material video is used as the background for the digital human image to perform voice broadcasting, thereby improving the display effect.
[0181] In the case that there is no target material video in any storyboard, the digital human video can be used independently as the video content of the storyboard. In this case, appropriate background elements can be added to the digital human video to ensure the richness and visual appeal of the picture.
[0182] In some embodiments, the video generation method may further include:
[0183] Sending digital human selection prompt information of multiple digital humans to the client;
[0184] According to the digital human selection request sent by the client, the target digital human selected by the user is determined.
[0185] The digital human selection prompt information may include a brief introduction, characteristics, appearance, etc. of each digital human among the multiple digital humans. After the client receives the digital human selection prompt information, the user may send a digital human selection request through the client according to preferences or specific purposes. The digital human selection request may include identification information of the digital human selected by the user.
[0186] In response to the digital human selection request, the server can determine the target digital human selected by the user based on the information in the digital human selection request.
[0187] In some embodiments, based on the spoken audio of each storyboard, generating a digital human screen in which the digital human broadcasts the spoken audio may be specifically implemented as follows:
[0188] Generate the lip shape features of the target digital person based on the spoken audio;
[0189] The lip shape features are synthesized into the digital human model corresponding to the target digital human to generate a digital human image.
[0190] The server can analyze the spoken audio to determine the rhythm, intonation, and pronunciation of the speech, thereby generating lip features synchronized with the audio. Lip features may include, for example, the opening and closing of the lips, the position of the tongue, and possible accompanying facial expressions.
[0191] In a possible implementation of the present application, speech recognition and analysis technology can be used to decompose the audio signal of the oral audio into individual factors and syllables. Then, an artificial intelligence model can be used to map the decomposed factors and syllables to specific lip movements. Among them, the artificial intelligence model can, for example, be based on a machine learning algorithm and have the ability to identify the lip shape, tongue position and facial expression corresponding to different factors. After the artificial intelligence model identifies the lip shape corresponding to each factor, these lip movements can be synthesized using technologies such as facial animation to create a coherent lip animation sequence. In this process, it is necessary to accurately synchronize the lip shape of the digital person with the pronunciation in the oral audio to achieve a natural and smooth visual effect. In addition, in order to enhance the expressive ability of the digital person, the server can also analyze the emotions and intonation in the audio, and integrate these emotional factors into the lip shape and facial expressions, so that the digital person can convey information more vividly. Finally, the generated lip shape features and facial animations can be integrated into the target digital human model, and the digital human screen can be generated through real-time rendering technology to ensure that the lip shape, facial expression and overall performance of the digital person match the audio content when the voice is broadcast.
[0192] In some embodiments, synthesizing the digital human video and the target material video into the target storyboard video may be specifically implemented as follows:
[0193] The background image in the digital human video is replaced with the material image of the target material video to generate a target storyboard video.
[0194] In some embodiments, the video generation method may further include:
[0195] Obtain at least one object video sent by the client;
[0196] Segment each object video according to content similarity to obtain multiple segmented videos;
[0197] Use a large artificial intelligence model to convert multiple segmented videos into video features;
[0198] The multiple segmented videos are respectively used as material videos, and are saved in the material library in correspondence with their respective video features and the object types corresponding to the object videos.
[0199] The object video may be a video associated with the target object, shot by the user, generated by specific software, or downloaded from the Internet. The object video may be long, and may display multiple different themes. Therefore, in order to increase the number and richness of material videos when generating promotional videos, the object video provided by the user may be split. By splitting the object video, a longer object video can be divided into multiple shorter material videos according to different themes or contents.
[0200] The server can determine the splitting position of the object video by identifying key frames, scene changes or other important content points in the object video, and split the object video at each splitting position to obtain multiple segmented videos.
[0201] In a possible implementation, the server can perform frame extraction processing on the object video to extract a series of separate video frames from the object video. The server can perform similarity calculation between consecutive video frames, and calculate the similarity between consecutive video frames by comparing the visual content between consecutive frames, such as color, texture, shape, and motion features. The similarity calculation can be calculated, for example, by pixel comparison, feature vector matching, or the output of a deep learning model. Based on the calculated similarity results, the server can determine the split point of the object video, that is, the key frame. The split point can be located at a position where the similarity drops significantly, which can indicate that the video content is changing or switching to a new scene. Thus, the server can split the object video into multiple segmented videos on these key frames, and each segmented video can contain a series of visually similar continuous frames, so that the consistency of the content of each segmented video can be guaranteed. In addition, when performing segmentation processing, the server can also consider the contextual information and semantic information of the video to improve the accuracy and relevance of the segmentation; for example, if the dialogue or narrative in the video logically belongs to the same subject, it may not be split into different segments even if there is a slight visual change.
[0202] In some embodiments, searching the material library for the material video that matches the storyboard description information of each storyboard and the target object may be specifically implemented as follows:
[0203] Performing feature extraction processing on the storyboard description information to generate storyboard description features;
[0204] Based on the matching degree between the storyboard description information of each storyboard and the video features, a target material video matching each storyboard is searched from a plurality of material videos in the material library that match the object type of the target object.
[0205] The server can analyze the storyboard description information of each storyboard, extract the visual and content features of the storyboard description information, and convert these features into a storyboard description feature vector. The storyboard description feature vector can contain the core elements of the storyboard, such as scene, role, action, color and emotion, to provide a basis for searching and matching video materials.
[0206] After generating the storyboard description feature vector, the server can match the storyboard description feature vector with the video feature vector in the material library. The video materials in the material library can be pre-analyzed and converted into their own video feature vectors, which can be used to describe the visual content of the video. By calculating the similarity between the storyboard description feature vector and the video feature vector, the server can quantify the degree of match between each video material and a specific storyboard.
[0207] When matching video materials, the server not only considers the matching degree of feature vectors, but also searches for video materials that are consistent with the type of the target object in the classified material videos, and selects matching material videos from the material library in combination with the object type of the target object.
[0208] In some embodiments, in response to a video generation instruction for a target object sent by a client, determining the object description information and the video script type of the target object may be specifically implemented as follows:
[0209] In response to the video generation instruction for the target object sent by the client, the object description information of the target object, the target object video and the video script type are determined.
[0210] The target object video may be a video associated with the target object, shot by a user, generated by specific software, or downloaded from the Internet.
[0211] In some embodiments, the video generation method may further include:
[0212] Segment the target object video according to content similarity to obtain multiple segmented videos;
[0213] Use a large artificial intelligence model to convert multiple segmented videos into video features;
[0214] Multiple segmented videos are saved in a material library corresponding to their respective video features.
[0215] The specific implementation of the segmentation processing of the target object video in this embodiment can refer to the embodiment of segmentation processing of the object video in the above embodiment, which will not be repeated here.
[0216] In some embodiments, searching the material library for target material video that matches the storyboard description information of each storyboard and the target object includes:
[0217] Based on the matching degree between the storyboard description information of each storyboard and the video features, a material video matching each storyboard is searched from multiple segmented videos in the material library.
[0218] Among them, the specific implementation method of the material video search in this embodiment can refer to the embodiment of the material video search in the above embodiment, and will not be repeated here.
[0219] In some embodiments, in response to a video generation instruction for a target object sent by a client, determining the object description information and the video script type of the target object may be specifically implemented as follows:
[0220] In response to the video generation instruction for the target object sent by the client, determine the object link of the target object and the video script type provided by the user in the video generation instruction;
[0221] Object description information of the target object is extracted from the object page of the object link index.
[0222] In the embodiment of the present application, when a user generates a promotional video, he or she need not perform complicated operations of writing object description information, but only needs to provide an object link of the target object. After obtaining the object link, the server can access the object link and extract the object description information from the object page indexed by the object link.
[0223] In some embodiments, the video generation method may further include:
[0224] Get the target video;
[0225] Analyze the target video to obtain multiple storyboard videos and the spoken texts corresponding to the multiple storyboard videos;
[0226] Generate storyboard description information and copy description information of each storyboard video based on multiple storyboard videos and the spoken copy corresponding to each storyboard video by using the artificial intelligence big model; wherein the storyboard description information is used to describe the screen content of the storyboard video, and the copy description information is used to describe the copy type of the storyboard video;
[0227] Generate a script template according to the script structure composed of multiple storyboard videos and the storyboard description information and copywriting description information of each storyboard video;
[0228] Save the script template.
[0229] The user may provide the target video through the client, but is not limited thereto. The user may also provide an access link to the target video through the client, so that the server obtains the target video based on the access link. In addition, the target video may not be provided by the client, but may be actively obtained by the server. For example, the server may obtain the target video from the Internet using crawler technology. The target video may include, for example, a video that is used to display content related to the target object and has a high popularity, i.e., a relatively popular video.
[0230] By reverse parsing the target video, the video script of the target video can be obtained, and a promotional video with a style and structure similar to the target video can be generated based on the video script.
[0231] After parsing the target video and obtaining the spoken copy of the target video, the artificial intelligence model can be used to generate the storyboard description information and copy description information corresponding to each storyboard. Then, based on the script structure composed of multiple storyboard videos and the storyboard description information and copy description information of each storyboard video, a script template can be generated.
[0232] Among them, the copy description information can be used to describe the copy type of the storyboard video. In one embodiment of the present application, as in the example of the first prompt word above, "Part 1: Based on the product service characteristics and the industry classification information, a fictional experience (close to the experience of ordinary people and ordinary companies) is created from the first person perspective to trigger everyone's emotional resonance", "Part 2: From the third person perspective, promote this product service to friends and talk about what kind of people this product service is suitable for", "Part 3: From the third person perspective, talk about the impact of this product on daily life and work" can respectively represent a type of copy description information.
[0233] In some embodiments, parsing the target video to obtain multiple storyboard videos may be specifically implemented as follows:
[0234] The target video is segmented according to content similarity to obtain multiple segmented videos.
[0235] In some embodiments, segmenting the target video according to content similarity to obtain multiple storyboard videos may be specifically implemented as follows:
[0236] Perform frame extraction on the target video to obtain multiple video frames;
[0237] Use a large AI model to convert multiple video frames into video features;
[0238] The content similarity between video frames is calculated based on video features, and video frames whose content similarity meets preset conditions are merged into a storyboard video.
[0239] The specific implementation method of segmenting the target video can refer to the above-mentioned embodiment of segmenting the object video, which will not be described in detail here.
[0240] In some embodiments, calculating the content similarity between video frames based on video features and merging video frames whose content similarity meets a preset condition into a storyboard video may be specifically implemented as follows:
[0241] Traverse multiple video frames and calculate the content similarity between the current frame and the previous frame. If the content similarity is greater than a preset threshold, merge the current frame into the previous frame. Otherwise, use the current frame as the starting frame for content similarity calculation.
[0242] In the embodiment of the present application, during the process of segmenting the target video, the server can decide how to segment the video based on the content similarity between frames, so that the server can identify and retain continuous frame segments with high similarity in the video while maintaining the original structure and narrative flow of the video.
[0243] Specifically, the server can start from the first frame of the target video and traverse to the last frame in sequence, calculating the similarity between consecutive frames in real time. When encountering consecutive frames with high similarity, the server can merge these frames as a whole to form a storyboard video.
[0244] For example, if the content similarity between the first frame to the tenth frame of the target video is high during the inspection process, these frames will be merged into storyboard video 1. Then, the system continues to traverse, and when it is found that the fifteenth frame to the twentieth frame also show a high similarity, these frames will also be merged to form storyboard video 2. Even if there is a high similarity between the first frame to the tenth frame and the fifteenth frame to the twentieth frame, the server will still regard them as two independent storyboard videos because there is a frame gap between them, which indicates that they represent different scenes or actions in the video.
[0245] In this way, the video can be segmented into multiple logical segments without destroying the coherence of the video content. Each segment contains visually similar and continuous frames. Such segmentation can effectively extract key information from the video while preserving the original narrative structure of the video.
[0246] In some embodiments, the video generation method may further include:
[0247] If the target material video that matches the storyboard description information of any storyboard is not found in the material library, the artificial intelligence big model is used to generate material content based on the storyboard description information.
[0248] The material content may include synthesized videos and / or synthesized pictures;
[0249] Generate target material video based on the material content.
[0250] The artificial intelligence model can parse the storyboard description information, understand the required visual content and style requirements, and use deep learning algorithms to create synthetic material content that matches the visual content and style requirements described in the storyboard description information.
[0251] By using an artificial intelligence model to generate corresponding material content when there is a lack of target material matching the storyboard description information in the material library, the continuity and integrity of video generation can be ensured in the absence of video material.
[0252] In some embodiments, the video generation method may further include:
[0253] Get the background music that matches any storyboard description information.
[0254] The server can analyze the storyboard description information of each storyboard, including scene content, emotional tone, rhythm and atmosphere, to determine the required music style and emotional color. Then, the server can search for matching music in the music library based on this information. The music library may contain music of various styles and emotions to adapt to different types of video content.
[0255] During the search process, the server can consider the rhythm, speed and volume of the music to ensure that the music matches the rhythm and emotion of the storyboard. In addition, the server can also check the copyright of the music to avoid using copyrighted music and ensure the legality of the video.
[0256] Once suitable candidate music is found, the server can analyze and screen it to further confirm whether the music is coordinated with the storyboard content. If necessary, the server can also make technical adjustments to the music, such as adjusting the volume, length and tone, to ensure that the music is integrated with the video content.
[0257] In some embodiments, synthesizing the spoken audio of each storyboard with the corresponding target material video into a target storyboard video may be specifically implemented as follows:
[0258] Combine spoken audio, target material video and background music into the target storyboard video.
[0259] In some embodiments, after generating the promotional video, the video generation method further includes:
[0260] A target providing system that distributes promotional videos to target targets or
[0261] The promotional video and / or the download address of the promotional video is sent to the client so that the client can save the promotional video.
[0262] The object providing system may include, for example, a video platform, a cloud service, or a specific network storage area. The client can obtain the promotional video by accessing the object providing system.
[0263] The promotional video may also be stored in a storage device, which may include a local hard disk, an external storage array, or a cloud storage space.
[0264] The video generation method provided in the embodiment of the present application is described below in conjunction with specific application scenarios.
[0265] Suppose a cleaning company wants to generate a promotional video through the server to showcase its professional cleaning services. Thus, the cleaning service can be identified as the target object.
[0266] First, the client can send a video generation instruction for the target object, i.e., cleaning service, to the server, and provide object description information of the cleaning service, such as "professional home cleaning service, covering whole house cleaning, including kitchen, bathroom, bedroom and other areas, meticulous service, using environmentally friendly cleaning agents", and select a video script type, such as "service display type".
[0267] After the server responds to the command, it can determine the target script structure corresponding to the video script type. Assume that the target script structure includes three shots: shot one shows the cleaning staff carrying tools to the door, shot two shows the cleaning staff cleaning in different rooms, and shot three shows the tidy room after cleaning.
[0268] For the generation of spoken word copy for storyboards, the server obtains the target script template and target script requirements corresponding to the "service display type" script structure, such as requiring the copy to be concise and clear and highlight the service features. The object description information, target script template and target script requirements are generated according to the first prompt template to generate the first prompt word, such as "Generate a spoken word copy for the service display type storyboard one for professional home cleaning services, which is required to be concise and clear and highlight the service features. The object description is: professional home cleaning service...", and then the first prompt word is input into the artificial intelligence big model to generate the spoken word copy "Hello, we are a professional cleaning team, and today we will bring you a caring home cleaning service." Then, the artificial intelligence big model is used to generate the storyboard description information based on the spoken word copy "A cleaning staff in a neat uniform, smiling, carrying a professional cleaning tool kit, standing at the customer's door."
[0269] For storyboard two, the same steps are used to generate the voice-over copy "Now our cleaning staff is cleaning the kitchen carefully, leaving no corner untouched", and the storyboard description information is "The cleaning staff is in the kitchen, using professional tools to wipe the stove, clean the sink, etc."
[0270] For storyboard three, the generated voice-over copy is "After our careful cleaning, the room looks brand new, making your home more comfortable and tidy", and the storyboard description information is "A tidy and bright bedroom, bathroom and kitchen, with neatly arranged items."
[0271] Then, the server can convert the spoken text corresponding to each storyboard into spoken audio. At the same time, the server sends the digital human selection prompt information of multiple digital humans to the client. The client sends a digital human selection request according to its own needs to determine the target digital human selected by the user. For example, a female digital human is selected. Based on the spoken audio of each storyboard, the server generates the lip shape features of the target digital human, and synthesizes the lip shape features into the digital human model corresponding to the target digital human to generate the digital human screen. Then, the spoken audio of each storyboard is synthesized with the digital human screen into a digital human video.
[0272] The server searches the material library for target material videos that match the storyboard description information of each storyboard and the cleaning service. If there is no completely matching video in the material library, the server obtains the object video of the cleaning staff sent by the client, segments it according to the content similarity, obtains multiple segmented videos, uses the artificial intelligence large model to convert the multiple segmented videos into video features, and saves the multiple segmented videos as material videos, corresponding to their respective video features and the object type (cleaning service) corresponding to the object video to the material library. Then, feature extraction processing is performed on the storyboard description information to generate storyboard description features. Based on the matching degree between the storyboard description information of each storyboard and the video features, the target material video matching each storyboard is searched from the multiple material videos in the material library that hit the cleaning service object type.
[0273] For example, for storyboard one, if there is a video of a cleaning staff visiting the house in the material library, this video will be used as the target material video. If there is no suitable target material video for storyboard two, in this case, the digital human video will be used as the target storyboard video. For storyboard three, if there is a video of a tidy room after cleaning, the digital human video and the target material video will be combined into a target storyboard video. Specifically, the background screen in the digital human video is replaced with the material screen of the target material video to generate the target storyboard video.
[0274] Finally, according to the target script structure, the target storyboard videos corresponding to multiple storyboards are synthesized to obtain a promotional video for cleaning services. This video can be promoted on the company's official website, social media and other platforms to attract more customers to choose the cleaning company's services.
[0275] Figure 4 A schematic diagram of a video script provided by an embodiment of the present application is schematically shown.
[0276] As mentioned above, the video script may include three shots, among which the spoken text of shot 1 is "Hello, we are a professional cleaning team, and today we bring you thoughtful home cleaning services", and the shot description information is "A cleaning staff in a neat uniform, with a smile on his face, carrying a professional cleaning tool kit, standing at the customer's door"; the spoken text of shot 2 is "Now our cleaning staff is carefully cleaning the kitchen, not letting go of any corner", and the shot description information is "The cleaning staff is in the kitchen, using professional tools to wipe the stove, clean the sink, etc."; the spoken text of shot 3 is "After our careful cleaning, the room is brand new, making your home more comfortable and tidy", and the shot description information is "neat and bright bedrooms, bathrooms and kitchens, with neatly arranged items."
[0277] Figure 5 A framework diagram of the video generation method provided by the present application is shown.
[0278] like Figure 5 As shown, the video generation method provided in the embodiment of the present application includes a script service 501, a director service 502, and a material service 503.
[0279] Among them, the script service 501 is used to generate a video script. In one embodiment of the present application, the script service 501 can be specifically used to extract and generate a target script from the target video by reverse parsing the target video. Among them, the video tracking module 5011 can be used to track popular hot videos from the Internet, and then the target video is segmented by the video storyboard parsing module 5012 to obtain multiple storyboard videos. The first prompt word generation module 5013 can be used to generate a copy prompt word, which can be used to instruct the artificial intelligence large model to generate a spoken copy. The second prompt word generation module 5014 can be used to generate a storyboard prompt word, which can be used to instruct the artificial intelligence large model to generate a storyboard description information. The framework generation module 5015 can be used to generate a script template, wherein there can be multiple storyboards in the script template. After the script template is generated, it can be submitted to the review module 5016 for review. The review module 5016 can be used to review whether the logic of the script template is smooth, whether the theme is clear, etc. If the script template passes the review, the script template can be saved. If the script template does not pass the review, it can return to the regeneration step, such as regenerating the storyboard, regenerating the prompt words, etc.
[0280] In the editing and directing service 502, the video frame matching module 5021 can be used to determine the corresponding video script for the user's video generation instruction. The oral content generation module 5022 can be used to generate oral copy based on the copy prompt words generated by the first prompt word generation module 5013; the storyboard description generation module 5023 can be used to generate storyboard description information based on the storyboard prompt words generated by the second prompt word generation module 5014. The oral copy generated by the oral content generation module 5021 can generate corresponding oral audio through the oral audio generation module 5024. The storyboard video generation / matching module 5025 can be used to match the corresponding video material for the storyboard description information from the material library, or generate corresponding synthetic content for the storyboard description information. The background music matching module 5026 can be used to match the background music of the corresponding style for the storyboard. The video material time piling module 5027 can be used to pile the oral copy and the video material in the storyboard video, so that when the storyboard video broadcasts the oral copy, the matching video material is played accordingly. The video synthesis module 5028 can be used to synthesize multiple storyboard videos into a promotional video.
[0281] In the material service 503, the material capture module 5031 can capture videos that can be used as video materials from the Internet and classify the video materials. The material generation module 5032 can be used to provide picture generation and video generation capabilities for the storyboard video generation / matching module 5025. The material management module 5033 can be used for material cleaning and material review to improve the quality of video materials and filter out material videos that do not meet the requirements. The material preprocessing module 5034 can be used to segment the video captured by the material capture module 5031 or the video provided by the user according to the video content, and vectorize each segmented video, and store the video features in the material storage module 5035.
[0282] Figure 6 A block diagram of a video processing device provided by an embodiment of the present application is shown. The video processing device may include:
[0283] The video acquisition module 601 is used to acquire the target video;
[0284] The video segmentation module 602 is used to segment the target video according to content similarity to obtain multiple segmented videos;
[0285] A feature conversion module 603 is used to convert the plurality of segmented videos into video features respectively using an artificial intelligence large model;
[0286] The video saving module 604 is used to save the plurality of segmented videos as material videos and their corresponding video features into a material library;
[0287] The information determination module 605 is used to determine, in response to obtaining a video search instruction for a video script, that the video script includes storyboard description information corresponding to a plurality of storyboards respectively; the storyboard description information is used to describe the screen content of the storyboard;
[0288] The video search module 606 is used to search the target material video matching each storyboard from the material library based on the matching degree between the storyboard description information of each storyboard and the video feature.
[0289] In some embodiments, the video segmentation module 602 is specifically configured to:
[0290] Performing frame extraction processing on the target video to obtain multiple video frames;
[0291] Using an artificial intelligence large model to convert the multiple video frames into video features respectively;
[0292] The content similarity between the video frames is calculated based on the video features, and the video frames whose content similarity meets a preset condition are merged into segmented videos.
[0293] In some embodiments, the video segmentation module 602 is specifically configured to:
[0294] Each video frame of the target video is traversed, and video frames whose content similarity meets a preset condition are merged into segmented videos.
[0295] In some embodiments, the video search module 606 is specifically used to:
[0296] Performing feature extraction processing on the storyboard description information to generate storyboard description features;
[0297] The material video is searched from a plurality of video features stored in the material library by the similarity between the storyboard description feature and the video feature.
[0298] In some embodiments, the video processing device may further include:
[0299] A segmentation module, used to segment the target video according to content similarity to obtain multiple candidate videos;
[0300] The screening module is used to screen the multiple candidate videos according to the screening rules to remove the segmented videos that meet the screening rules from the multiple candidate videos.
[0301] In some embodiments, the video processing device may further include:
[0302] An information determination module, configured to determine object description information and a video script type of the target object in response to a video generation instruction for the target object sent by the client;
[0303] A structure determination module, used to determine a target script structure corresponding to the video script type; the target script structure includes a plurality of storyboards;
[0304] An information generation module, used to generate storyboard description information of each storyboard based on the object description information and the target script structure using an artificial intelligence big model;
[0305] An instruction generation module is used to construct the video script according to the script structure using the storyboard description information corresponding to the multiple storyboards respectively; and generate the video search instruction in response to the generation operation of the video script.
[0306] In some embodiments, the video processing device may further include:
[0307] The instruction acquisition module is used to obtain the video search instruction for the video script sent by the client.
[0308] In some embodiments, when the target material video matching each storyboard is not found in the material library, the video processing device may further include:
[0309] A material generation module, used to generate material content based on the storyboard description information using an artificial intelligence big model, wherein the synthesized material content includes synthesized video and / or synthesized picture;
[0310] The video generation module is used to generate a target material video based on the material content.
[0311] Figure 6 The video processing device can execute Figure 2 The implementation principle and technical effect of the video processing method described in the embodiment are not described in detail. The specific way in which each module and unit performs operations in the video processing device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.
[0312] The present application also provides a computing device, such as Figure 7 As shown, the device may include a storage component and a processing component;
[0313] The storage component stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component to implement the video processing method provided in the embodiment of the present application.
[0314] Of course, the computing device may also include other components, such as input / output interfaces, display components, communication components, etc.
[0315] The processing components in the computing device are used to implement the following Figure 2In the case of the video processing method shown, the computing device may also include a display component to perform corresponding display operations.
[0316] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the computing device and other devices.
[0317] The processing component may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0318] The storage component is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0319] The display component may be an electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a retinal direct display or a similar laser scanning display.
[0320] The computing device described above implements Figure 2 In the case of the video processing method shown, it can be specifically implemented as an electronic device. The electronic device can refer to a device used by a user and having the computing, Internet access, communication and other functions required by the user, such as a mobile phone, tablet computer, personal computer, wearable device, etc.
[0321] It should be noted that the above computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. It can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device.
[0322] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 2The video processing method of the illustrated embodiment. The computer readable medium may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.
[0323] The present application also provides a computer program product, which includes a computer program carried on a computer-readable storage medium. When the computer program is executed by a computer, the computer program can achieve the above-mentioned Figure 2 The video processing method of the illustrated embodiment. In such an embodiment, the computer program can be downloaded and installed from a network, and / or installed from a removable medium. When the computer program is executed by a processor, various functions defined in the system of the present application are executed.
[0324] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).
[0325] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0326] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0327] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0328] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A video processing method, characterized in that: Applied to the server, the method includes: Get the target video; Segmenting the target video according to content similarity to obtain multiple segmented videos; Using an artificial intelligence big model to convert the multiple segmented videos into video features respectively; The plurality of segmented videos are saved as material videos and their corresponding video features in a material library; In response to obtaining a video search instruction for a video script, determining that the video script includes storyboard description information corresponding to a plurality of storyboards respectively; the storyboard description information is used to describe the screen content of the storyboard; Based on the matching degree between the storyboard description information of each storyboard and the video features, the target material video matching each storyboard is searched from the material library.
2. The method according to claim 1, characterized in that Segmenting the target video according to content similarity to obtain multiple segmented videos includes: Performing frame extraction processing on the target video to obtain multiple video frames; Using an artificial intelligence big model to convert the multiple video frames into video features respectively; The content similarity between the video frames is calculated based on the video features, and the video frames whose content similarity meets a preset condition are merged into segmented videos.
3. The method according to claim 2, characterized in that The calculating the content similarity between the video frames based on the video features and merging the video frames whose content similarity meets a preset condition into segmented videos comprises: Each video frame of the target video is traversed, and video frames whose content similarity meets a preset condition are merged into segmented videos.
4. The method according to claim 1, characterized in that: Based on the matching degree between the storyboard description information of each storyboard and the video feature, searching the target material video matching each storyboard from the material library includes: Performing feature extraction processing on the storyboard description information to generate storyboard description features; The material video is searched from a plurality of video features stored in the material library by the similarity between the storyboard description feature and the video feature.
5. The method according to claim 1, characterized in that After the target video is segmented according to content similarity to obtain a plurality of segmented videos, the method further includes: Segmenting the target video according to content similarity to obtain multiple candidate videos; The multiple candidate videos are screened according to the screening rules to remove the segmented videos that meet the screening rules from the multiple candidate videos.
6. The method according to claim 1, characterized in that Also includes: In response to a video generation instruction for a target object sent by a client, determine object description information and a video script type of the target object; Determine a target script structure corresponding to the video script type; the target script structure includes a plurality of storyboards; Generate storyboard description information for each storyboard based on the object description information and the target script structure using an artificial intelligence big model; The video script is constructed according to the script structure using the storyboard description information corresponding to the multiple storyboards respectively; and the video search instruction is generated in response to the generation operation of the video script.
7. The method according to claim 1, characterized in that Also includes: Get the video search instruction for the video script sent by the client.
8. The method according to claim 1, characterized in that: In the case that the target material video matching each storyboard is not found in the material library, the method further includes: Using an artificial intelligence big model, generating material content based on the storyboard description information, wherein the synthesized material content includes a synthesized video and / or a synthesized picture; Based on the material content, a target material video is generated.
9. A computing device, characterized in that including a processing component and a storage component; The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the video processing method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by the processing component, the video processing method according to any one of claims 1 to 8 is implemented.
11. A computer program product, characterized in that The method comprises a computer program / instruction, wherein when the computer program / instruction is executed by a processing component, the video processing method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Video automatic generation method and device, terminal equipment and storage device
CN113891017A
Video segmentation method, selection method, synthesis method and related devices
CN116546274A
Video production method and system based on deep learning
CN117692716A
Intelligent video editing method and system based on large model
CN117812386A
Vehicle tag library updating method and device, electronic equipment and storage medium
CN118053126A
Cited By
Video generation method and device, electronic equipment and storage medium
CN119788936A
Video generation method and apparatus, electronic device, and storage medium
CN119788936B
Video generation method, system and device based on large language model and medium
CN120378710A
A video generation method, system, device and medium based on a large language model
CN120378710B
Automatic video editing method based on AI split mirror generation
CN120416583A
