Method and device for generating propaganda video, computer equipment, readable storage medium and program product
Through feature extraction and slicing processing of the original video, combined with the script generation model, the promotional video is automatically generated, which solves the problem of low efficiency of traditional video creation and achieves efficient and creative video promotion effects.
Patent Information
- Application Number
- CN202410964143.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-24
AI Technical Summary
Traditional video creation relies on manual editing and post-processing, resulting in low output efficiency and high time cost for publicity videos, making it difficult to meet the efficient and creative needs of film and television publicity and promotion.
Through the feature extraction processing of the original video, the combination of slicing processing and script generation model, the propaganda video is automatically generated, including in-depth analysis of video feature information, matching and splicing processing of sliced videos, reducing manual operations and improving the coherence and coherence of the video. quality.
It significantly improves the production efficiency of promotional videos, reduces time and labor costs, ensures the consistency and high quality of video content, meets the market's demand for personalized and creative promotional materials, and enhances the appeal and spread of videos. Effect.
Smart Images

Figure CN118695044A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment, readable storage medium and program product for generating a promotional video. Background Art
[0002] With the rapid development of digital media and network technology, video content creation and distribution have become crucial in marketing. Traditional video creation relies on manual editing and post-processing, which is not only time-consuming but also costly. Especially in the publicity and promotion of film and television works, the production of promotional materials such as trailers and specials requires efficiency and creativity. However, in order to obtain a promotional video that fits the original video, manual video content analysis, editing and splicing require a high time cost, and the output efficiency of promotional videos is low. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for generating promotional videos that can improve the efficiency of promotional video production in response to the above-mentioned technical problems.
[0004] In a first aspect, the present application provides a method for generating a promotional video, comprising:
[0005] Perform feature extraction on the original video to be promoted to obtain video feature information;
[0006] According to the video feature information, the original video is sliced to obtain a plurality of sliced videos, and a classification label of each sliced video under a plurality of preset dimensions is determined;
[0007] Inputting the video feature information into a script generation model to obtain target video script information, and determining a target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information;
[0008] The target sliced videos are spliced together to obtain a promotional video of the original video.
[0009] In one embodiment, the feature extraction process is performed on the original video to be promoted to obtain video feature information, including:
[0010] Using a plot label processing model to analyze the original video to obtain plot label information of the original video;
[0011] Using a picture change processing model to analyze the original video, and obtain scene change feature information and character trajectory feature information of the original video;
[0012] Using an emotion prediction processing model to analyze the original video to obtain video emotion information of the original video;
[0013] The plot label information, the scene change feature information, the character trajectory feature information and the video emotion information are all used as the video feature information.
[0014] In one embodiment, the step of inputting the video feature information into a script generation model to obtain target video script information includes:
[0015] The script generation model is used to perform feature fusion processing on the plot label information, the scene change feature information, the character trajectory feature information and the video emotion information to obtain comprehensive video feature information;
[0016] Generate target video script information based on the comprehensive feature information of the video.
[0017] In one embodiment, determining a target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information includes:
[0018] Determine similarity information between the plurality of sliced videos and the target video script information according to the classification labels;
[0019] According to the video feature information and the similarity information, a target slice video matching the target video script information is determined from the multiple slice videos.
[0020] In one embodiment, determining a target slice video matching the target video script information from the multiple slice videos according to the video feature information and the similarity information includes:
[0021] Determine association information between any two adjacent sliced videos according to the video feature information;
[0022] Based on the association information and the similarity information, a target slice video matching the target script information is determined from the multiple slice videos.
[0023] In one embodiment, after the target sliced videos are spliced to obtain the promotional video of the original video, the method further includes:
[0024] Using a video quality assessment model and a promotion effect assessment model to obtain quality prediction information and effect prediction information of the promotion video;
[0025] Adjusting the target video script information according to the quality prediction information and the effect prediction information to obtain adjusted target video script information;
[0026] An adjusted promotion video is obtained according to the adjusted target video script information and the multiple sliced videos.
[0027] In one embodiment, before extracting features from the original video to be promoted and obtaining video feature information, the method further includes:
[0028] Obtaining a subtitle detection result of the original video;
[0029] When the subtitle detection result indicates that there is no subtitle in the original video, identifying audio information in the original video, and generating subtitles in multiple languages of the original video according to the audio information;
[0030] In the case where the subtitle detection result is that the original video has subtitles in a single language, identifying subtitle content in the original video, and converting the subtitle content into subtitles in multiple languages of the original video;
[0031] After the target sliced videos are spliced together to obtain the promotional video of the original video, the method further includes:
[0032] Subtitles in multiple languages for the promotional video are generated based on the subtitles in multiple languages for the original video.
[0033] In a second aspect, the present application also provides a device for generating a promotional video, including:
[0034] The video feature extraction module is used to extract features from the original video to be promoted and obtain video feature information;
[0035] A slice video processing module, used to slice the original video according to the video feature information to obtain multiple slice videos, and determine the classification label of each slice video under multiple preset dimensions;
[0036] A target slice determination module is used to input the video feature information into a script generation model to obtain target video script information, and determine a target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information;
[0037] The promotion video generation module is used to splice the target sliced videos to obtain the promotion video of the original video.
[0038] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0039] Perform feature extraction on the original video to be promoted to obtain video feature information;
[0040] According to the video feature information, the original video is sliced to obtain a plurality of sliced videos, and a classification label of each sliced video under a plurality of preset dimensions is determined;
[0041] Inputting the video feature information into a script generation model to obtain target video script information, and determining a target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information;
[0042] The target sliced videos are spliced together to obtain a promotional video of the original video.
[0043] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0044] Perform feature extraction on the original video to be promoted to obtain video feature information;
[0045] According to the video feature information, the original video is sliced to obtain a plurality of sliced videos, and a classification label of each sliced video under a plurality of preset dimensions is determined;
[0046] Inputting the video feature information into a script generation model to obtain target video script information, and determining a target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information;
[0047] The target sliced videos are spliced together to obtain a promotional video of the original video.
[0048] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0049] Perform feature extraction on the original video to be promoted to obtain video feature information;
[0050] According to the video feature information, the original video is sliced to obtain a plurality of sliced videos, and a classification label of each sliced video under a plurality of preset dimensions is determined;
[0051] Inputting the video feature information into a script generation model to obtain target video script information, and determining a target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information;
[0052] The target sliced videos are spliced together to obtain a promotional video of the original video.
[0053] The above-mentioned method, device, computer equipment, readable storage medium and program product for generating promotional videos firstly perform feature extraction processing on the original video to be promoted to obtain video feature information, and perform in-depth analysis on the visual, audio and emotional information of the video through the feature extraction model to extract detailed feature information, thereby laying a foundation for subsequent slicing and script generation; then, according to the video feature information, the original video is sliced to obtain multiple sliced videos, and the classification label of each sliced video under multiple preset dimensions is determined, and the video feature information is used to accurately cut the original video into multiple sliced videos, so that each sliced video has a clear classification label in terms of plot, scene and emotion; then, the video feature information is input into the video processing unit, and the video processing unit is used to generate the script; The script generation model obtains the target video script information. Video script generation reduces the workload of manual script writing and shortens the production cycle of promotional videos. According to the classification label and video feature information, the target sliced video that matches the target video script information is determined from multiple sliced videos. The sliced video is matched with the target video script information through the classification label and video feature information to ensure that the selected sliced video is highly consistent in content and emotion. The matching process ensures the coherence and logic of the video, making the final promotional video more complete and coherent in plot and emotion. Finally, the target sliced video is spliced to obtain the promotional video of the original video, which improves the output efficiency of the promotional video and reduces the time cost of manual splicing. In the above method, through highly automated video feature extraction, script generation, sliced video matching and splicing processing, the production efficiency of the promotional video is significantly improved, the dependence on manual operation is reduced, and the production time and labor cost are greatly reduced. At the same time, automated processing ensures the consistency and high quality of the video content, avoiding the common coherence problems and quality fluctuations in the manual editing process. In addition, through in-depth analysis of video features and automatic script generation, the market demand for personalized and creative promotional materials is better met, making the generated promotional videos more complete and coherent in plot, scene and emotional expression, thereby enhancing the video's appeal and dissemination effect, and achieving the goal of efficient, high-quality and highly creative video promotion. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 A schematic diagram of a flow chart of a method for generating a promotional video in one embodiment;
[0056] Figure 2 It is a flowchart of a method for generating a promotional video in another embodiment;
[0057] Figure 3 A schematic diagram of the flow of the training phase and the inference phase of a face detection and recognition model in one embodiment;
[0058] Figure 4 1 is a flow chart of a subtitle generation process in one embodiment;
[0059] Figure 5 It is a structural block diagram of a device for generating a promotional video in one embodiment;
[0060] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0062] In one embodiment, Figure 1 As shown, a method for generating a promotional video is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. In this embodiment, the method includes the following steps:
[0063] Step S101, performing feature extraction processing on the original video to be promoted to obtain video feature information.
[0064] The original video may be a complete video of a film or television work, a documentary video, a news report video, etc.
[0065] Exemplarily, the terminal reads the original video file to be promoted from the storage medium. Then, the terminal performs preliminary preprocessing on the original video, including video decoding, frame rate adjustment and resolution normalization, to ensure the consistency of video content and processing efficiency. Next, the terminal uses a plot label processing model to analyze the preprocessed video frame by frame and extract feature information such as the plot of each frame. The plot label processing model can be a model that combines a convolutional neural network (CNN) and a recurrent neural network (RNN) to identify scenes, character activities and key events in the video. The terminal uses a picture change processing model to analyze the video frame by frame to extract scene change feature information and character trajectory feature information. By performing feature detection on the video picture, the terminal can identify the scene switching point and the movement trajectory of the character in different scenes. The terminal uses an emotion prediction processing model to perform emotion analysis on the visual and audio content of the video. Using visual emotion recognition technology and audio emotion analysis technology, emotional information in the video is extracted, including but not limited to emotional states such as happiness, sadness, and tension. Finally, the terminal uses the plot label information, scene change feature information, character trajectory feature information, and emotion information as video feature information.
[0066] Step S102: Slice the original video according to the video feature information to obtain a plurality of sliced videos, and determine the classification label of each sliced video under a plurality of preset dimensions.
[0067] Among them, multiple preset dimensions may include emotions, actions, scenes, characters, etc.
[0068] Exemplarily, first, the terminal uses scene change feature information to identify scene switching points in the video so as to divide the video into multiple logical segments. Next, the terminal classifies each sliced video based on preset dimensions such as plot tags, character trajectories, and emotional information, and assigns corresponding classification labels. Tags may include but are not limited to scene types (such as indoors, outdoors), characters, character actions (such as dialogue, monologue, fighting), emotional states (such as happiness, sadness), and other related dimensions. In this way, the terminal can accurately segment and classify video content, laying the foundation for subsequent script generation and video splicing.
[0069] Step S103, inputting the video feature information into the script generation model to obtain the target video script information, and determining the target slice video matching the target video script information from multiple slice videos according to the classification label and the video feature information.
[0070] Among them, the video script information may include elements such as the video's storyboard structure, duration information, scene description, character interaction, and emotional curve.
[0071] Exemplarily, the terminal first inputs the comprehensive video feature information extracted from the original video into the script generation model. The script generation model generates the script information of the target video based on these feature information. Subsequently, the terminal uses the classification label and feature information of each sliced video to screen and match from multiple sliced videos according to the requirements in the target video script information. By calculating the similarity between the classification label of each sliced video and the corresponding part in the target script information, the terminal can select the target sliced video that best meets the script requirements, ensuring that the sliced videos are highly consistent in content and emotional expression, and providing suitable materials for subsequent splicing processing.
[0072] Step S104, splicing the target sliced videos to obtain a promotional video of the original video.
[0073] Exemplarily, the terminal first arranges the target sliced videos in the order specified in the script information to ensure the coherence of the plot development and emotional expression. Then, the terminal uses transition effects (such as fade in and fade out, screen switching, etc.) to smooth the connection between the sliced videos and enhance the visual fluency and overall look and feel of the video. In order to further improve the quality of the promotional video, the terminal can also adjust the background music and sound effects during the splicing process to make it more consistent with the video content and emotional expression. Finally, the terminal generates a complete promotional video, so that the promotional video achieves the expected promotional goals in terms of plot, emotion and visual effects.
[0074] In the above-mentioned method for generating promotional videos, first, feature extraction is performed on the original video to be promoted to obtain video feature information, and the visual, audio, emotional and other information of the video are deeply analyzed through the feature extraction model to extract detailed feature information, which lays the foundation for subsequent slicing and script generation; then, according to the video feature information, the original video is sliced to obtain multiple sliced videos, and the classification label of each sliced video under multiple preset dimensions is determined, and the video feature information is used to accurately cut the original video into multiple sliced videos, so that each sliced video has a clear classification label in terms of plot, scene and emotion; then, the video feature information is input into the script generation model to obtain the target video. The video script information is marked, and the video script generation reduces the workload of manual script writing and shortens the production cycle of the promotion video; according to the classification label and video feature information, the target slice video that matches the target video script information is determined from multiple sliced videos, and the sliced video is matched with the target video script information through the classification label and video feature information to ensure that the selected sliced video is highly consistent in content and emotion. The matching process ensures the coherence and logic of the video, making the final promotion video more complete and coherent in plot and emotion; finally, the target sliced video is spliced to obtain the promotion video of the original video, which improves the output efficiency of the promotion video and reduces the time cost of manual splicing. In the above method, through highly automated video feature extraction, script generation, sliced video matching and splicing processing, the production efficiency of the promotion video is significantly improved, the dependence on manual operation is reduced, and the production time and labor cost are greatly reduced. At the same time, automated processing ensures the consistency and high quality of the video content, avoiding the common coherence problems and quality fluctuations in the manual editing process. In addition, through in-depth analysis of video features and automatic script generation, the market demand for personalized and creative promotional materials is better met, making the generated promotional videos more complete and coherent in plot, scene and emotional expression, thereby enhancing the video's appeal and dissemination effect, and achieving the goal of efficient, high-quality and highly creative video promotion.
[0075] In an exemplary embodiment, the above-mentioned step S101 performs feature extraction processing on the original video to be promoted and obtains video feature information, and also includes: using a plot label processing model to analyze the original video to obtain the plot label information of the original video; using a picture change processing model to analyze the original video to obtain the scene change feature information and character trajectory feature information of the original video; using an emotion prediction processing model to analyze the original video to obtain the video emotion information of the original video; using the plot label information, scene change feature information, character trajectory feature information and video emotion information as video feature information.
[0076] Exemplarily, the terminal first uses a plot label processing model to analyze the original video frame by frame and extract the plot label information of each frame, which may specifically include identifying high-frequency words and key phrases in the lines through natural language processing technology to obtain plot label information; then, the picture change processing model is used to perform a detailed analysis of the original video, identify the scene switching points in the video, and obtain scene change feature information and character trajectory feature information, which may specifically include combining the picture change processing model and the face recognition model to identify the scene switching points in the video, determine the scene name and the character name, etc., to obtain scene change feature information and character trajectory feature information; then, the terminal uses the emotion prediction processing model to perform emotion analysis on the visual and audio content of the video and extract the emotion information in the video, which may specifically include using the emotion prediction processing model to extract video emotion information through voice emotion analysis, character facial expression analysis and line analysis; finally, the plot label information, scene change feature information, character trajectory feature information and video emotion information are all used as video feature information.
[0077] In the above embodiments, multiple models are used to analyze the video in detail to ensure that the extracted feature information is comprehensive and accurate, covering all important dimensions of the video content. Through the comprehensive analysis of plot labels, scene changes, character trajectories and emotional information, it is possible to deeply understand the video content and improve the intelligent level of video processing. Providing rich and accurate video feature information provides reliable data support for subsequent steps such as script generation, slice matching and video splicing, ensuring that the generated promotional video reaches the best state in terms of plot, emotion and visual effects.
[0078] In an exemplary embodiment, the above step S103 inputs the video feature information into the script generation model to obtain the target video script information, and also includes: through the script generation model, the plot label information, scene change feature information, character trajectory feature information and video emotion information are feature fused to obtain video comprehensive feature information; based on the video comprehensive feature information, the target video script information is generated.
[0079] Exemplarily, the script generation model can adopt a deep learning model, such as a generative adversarial network, a variational autoencoder, or a Transformer model. It can process and integrate a variety of video feature information to generate a video script that meets expectations. The generated target video script information includes but is not limited to the following: Storyboard structure: describes the specific content, duration, and lens transition method of each shot. Scene description: describes the background, atmosphere, and visual effects of each scene in detail. Role interaction: describes the interaction between characters, including dialogue, action, and emotional expression. Emotional curve: describes the emotional development trajectory of the entire video to ensure the coherence of emotional expression. Editing suggestions: provide suggestions for editing points and transition effects to improve the coherence and visual effects of the video. At the same time, the training of the script generation model uses artificially created historical video script information, artificially marked material content corresponding to the historical video script information, and material content with good data performance after delivery to make decisions to imitate new video scripts. In addition, after the video script information is generated, the user can also be allowed to review or modify it before obtaining the final video script information to ensure a high-quality video script.
[0080] In this embodiment, comprehensive video feature information is generated through feature fusion processing to ensure that the target video script information is comprehensive and accurate, covering all important dimensions of the video content. The generated script information includes storyboard structure, scene description, character interaction, emotional curve and editing suggestions, providing comprehensive script details and improving the accuracy and operability of video production. The generated video script is based on historical data and well-performing materials, which improves the intelligence and efficiency of generating video scripts.
[0081] In an exemplary embodiment, the above-mentioned step S103 determines a target slice video that matches the target video script information from multiple slice videos based on the classification label and the video feature information, and also includes: determining similarity information between the multiple slice videos and the target video script information based on the classification label; determining a target slice video that matches the target video script information from multiple slice videos based on the video feature information and the similarity information.
[0082] Exemplarily, the terminal calculates the similarity between each sliced video and the target video script information based on the classification label. By comparing the features of the classification label and the target video script information, the degree of match between the features of each sliced video and the script requirements can be identified. Then, the terminal further refines the screening process based on the video feature information and similarity information. By combining visual features, audio features, and emotional features, the terminal can accurately evaluate the relevance of each sliced video, thereby determining the target sliced video that best meets the target video script information requirements from multiple sliced videos. This process ensures that the selected sliced video is highly consistent with the target script in terms of content, emotion, and visual effects, providing high-quality material for video splicing.
[0083] In this embodiment, the similarity between the sliced video and the target script is calculated through comprehensive analysis of the classification label and video feature information to ensure that the selected sliced video highly meets the script requirements. Combining visual, audio and emotional features can more accurately evaluate the relevance of the sliced video to avoid missing important content and emotional expression. Ensure that the selected target sliced video is highly consistent with the target video script information in terms of content and emotional expression, and ensure the coherence of the final spliced video in plot development and emotional transmission.
[0084] In an exemplary embodiment, the above-mentioned determining a target slice video that matches the target video script information from multiple slice videos based on video feature information and similarity information also includes: determining association information between any two adjacent slice videos based on the video feature information; and determining a target slice video that matches the target script information from multiple slice videos based on the association information and similarity information.
[0085] Exemplarily, the terminal determines the association information between any two adjacent sliced videos based on the video feature information. The association information includes but is not limited to scene coherence, character interaction continuity, and emotional expression consistency. The terminal ensures that each sliced video is closely connected with the previous and next sliced videos in terms of content and emotion by analyzing the features of adjacent sliced videos. Then, based on these association information and the similarity information calculated previously, the terminal selects the target sliced video that highly matches the target video script information from multiple sliced videos. This process ensures the coherence and consistency of the selected sliced videos in visual effects, emotional transmission, and plot development, and improves the overall quality and viewing experience of the final spliced video. For example, if the features of a video clip show the emotional development of character A in a scene, then the following sliced video should show the natural transition of character A's emotions and the reasonable continuation of the scene.
[0086] In this embodiment, by analyzing the association information between adjacent sliced videos, it is ensured that each sliced video is closely connected with the previous and next videos in terms of content and emotion, thereby enhancing the overall coherence of the video. Combining the association information and similar information, it is possible to more accurately screen sliced videos that meet the requirements of the target script, avoiding breaks in content and emotional expression. By ensuring that the plot and emotional development between the sliced videos are consistent, the story coherence and emotional coherence of the final spliced video are improved, making it easier for the audience to understand and engage.
[0087] In an exemplary embodiment, after the target sliced videos are spliced together to obtain the promotion video of the original video in the above step S104, it also includes: using a video quality assessment model and a promotion effect assessment model to obtain quality prediction information and effect prediction information of the promotion video; adjusting the target video script information according to the quality prediction information and the effect prediction information to obtain the adjusted target video script information; obtaining the adjusted promotion video according to the adjusted target video script information and multiple sliced videos.
[0088] Exemplarily, the terminal first uses a video quality assessment model to analyze the generated promotion video. The quality assessment model can analyze the visual quality of the video, such as clarity, color accuracy, and editing fluency, through a deep convolutional neural network. At the same time, the audio quality is evaluated by analyzing the clarity of the audio and the matching degree of the background music. Emotional expression analyzes the emotional changes of the characters in the video through an emotion recognition algorithm. The promotion effect evaluation model predicts the performance of the video on different communication channels, such as the expected number of views, shares, and comments, through regression analysis and classification algorithms. The training data of the evaluation model comes from a large amount of historical video data and its actual communication effect, which can include the quality score of the video and the communication performance on social media and video platforms. Based on the quality prediction information and effect prediction information, the terminal adjusts the target video script information. For example, if the quality assessment result shows that some clips are not smooth enough, the terminal can adjust the editing point or transition effect. If the effect evaluation result shows that a certain plot performs poorly on a certain channel, the terminal can adjust the presentation method or order of the plot. The adjusted target video script information is used to re-screen and splice the sliced videos to generate an optimized promotion video. Through repeated evaluation and adjustment, until the quality prediction information and effect prediction information reach the preset threshold, it is ensured that the final generated video is optimal in both quality and communication effect. The optimized promotional video is finally pushed and released to various social media and video platforms through automated tools to ensure its appeal and communication effect in different channels. The evaluation model can be trained through deep learning methods, using a large amount of historical data, including users' video quality ratings and actual communication effect data, to improve the prediction accuracy and reliability of the model.
[0089] In this embodiment, the video quality evaluation model is used to analyze and predict the quality indicators of the promotion video to ensure that the generated video meets high standards in terms of vision and hearing. The promotion effect evaluation model is used to predict the dissemination performance of the video on different channels, optimize the video content and structure, and improve the dissemination effect of the video. The target video script information is adjusted based on the evaluation results to form a closed loop of quality and effect optimization, and continuously improve the overall quality and dissemination effect of the video.
[0090] In an exemplary embodiment, before the above step S101 performs feature extraction processing on the original video to be promoted and obtains the video feature information, it also includes: obtaining the subtitle detection result of the original video; when the subtitle detection result is that there are no subtitles in the original video, identifying the audio information in the original video, and generating subtitles in multiple languages of the original video based on the audio information; when the subtitle detection result is that the original video has subtitles in a single language, identifying the subtitle content in the original video, and converting the subtitle content into subtitles in multiple languages of the original video.
[0091] Furthermore, in an exemplary embodiment, after the target sliced videos are spliced together to obtain the promotional video of the original video in the above step S104, the method further includes: generating subtitles in multiple languages of the promotional video based on the subtitles in multiple languages of the original video.
[0092] Exemplarily, first, the terminal obtains the subtitle detection result of the original video; if the subtitle detection result shows that there are no subtitles in the original video, the terminal identifies the audio information in the original video, and generates subtitles in multiple languages of the original video based on the audio information. Specifically, the text content in the audio can be extracted using automatic speech recognition technology, and then translated into subtitles in multiple languages using machine translation technology. If the subtitle detection result shows that the original video has subtitles in a single language, the terminal identifies the subtitle content in the original video and converts the subtitle content into subtitles in multiple languages of the original video, using the same machine translation technology to complete the conversion. The subtitles will be synchronized with the original video to ensure the accuracy and coherence of the subtitles. Subsequently, the terminal generates subtitles in multiple languages for the promotional video based on the subtitles in multiple languages of the original video.
[0093] In this embodiment, by generating subtitles in multiple languages, the promotional video can be spread in different language environments, expanding the audience range of the video. Multilingual subtitles improve the viewing experience of non-native audiences and make the video content easier to understand and accept. Through automatic speech recognition and machine translation technology, subtitles are automatically generated and translated, reducing manual intervention and improving efficiency. Automated processing combined with manual proofreading ensures that the generated subtitles are accurate and improves the professionalism and credibility of the video.
[0094] In an exemplary embodiment, Figure 2 As shown, the present application provides a method for generating a promotional video, the method comprising:
[0095] Step S201: Use a plot label processing model to analyze the original video to obtain plot label information of the original video.
[0096] Step S202: using a picture change processing model to analyze the original video, and obtaining scene change feature information and character trajectory feature information of the original video.
[0097] Step S203: Use the emotion prediction processing model to analyze the original video to obtain the video emotion information of the original video.
[0098] Step S204, taking the plot label information, scene change feature information, character trajectory feature information and video emotion information as video feature information.
[0099] Step S205: Slice the original video according to the video feature information to obtain multiple sliced videos, and determine the classification label of each sliced video under multiple preset dimensions.
[0100] Step S206, through the script generation model, the plot label information, scene change feature information, character trajectory feature information and video emotion information are subjected to feature fusion processing to obtain comprehensive video feature information.
[0101] Step S207, generating target video script information according to the comprehensive feature information of the video.
[0102] Step S208, determining similarity information between the multiple sliced videos and the target video script information based on the classification labels.
[0103] Step S209: Determine association information between any two adjacent sliced videos according to the video feature information.
[0104] Step S210, based on the association information and similarity information, determine the target slice video that matches the target script information from multiple slice videos.
[0105] Step S211, splicing the target sliced videos to obtain a promotional video of the original video.
[0106] Step S212, using the video quality evaluation model and the promotion effect evaluation model to obtain quality prediction information and effect prediction information of the promotion video.
[0107] Step S213, adjusting the target video script information according to the quality prediction information and the effect prediction information to obtain the adjusted target video script information.
[0108] Step S214, obtaining an adjusted promotional video based on the adjusted target video script information and multiple sliced videos.
[0109] For example, for the picture change processing model, in the recognition of the original video, since there will be multiple characters in the plot, the face is used as the main recognition object, and scene recognition is used as an auxiliary to avoid the situation of slicing across multiple scenes. It is necessary to recognize the characters in the video. The specific training and reasoning process is as follows: Figure 3As shown in the figure: In the training phase, we first obtain data from the face dataset and perform model training, including face detection model training and fine-tuning, face recognition model training and fine-tuning, and clustering model training, so as to obtain three trained models. In the inference phase, after the video is input, the key frames of the video are extracted, and then face detection is performed through the face detection model; next, the face recognition model is used to identify the detected face, and candidate faces and image embeddings are generated. The embedded data is then input into the clustering model for clustering analysis, and finally the face clustering results are output.
[0110] Among them, the face detection model can be an MTCNN model, the face recognition model can be a VggFace model, and the clustering model can be a DBSCAN model.
[0111] MTCNN (Multi-task Cascaded Convolutional Networks) is a deep learning model for face detection. It can accurately detect the location of the face in the image and output the bounding box and key points of the face. MTCNN uses three cascaded convolutional neural networks (P-Net, R-Net, O-Net) to gradually refine the face detection results, improving the accuracy and speed of detection.
[0112] VggFace is a deep learning model for face recognition. It is based on the VGG16 or VGG19 architecture and is trained with a large amount of face data to extract high-level feature representations of faces for face comparison and identity verification. VggFace performs well in multiple face recognition tasks and is one of the most widely used face recognition models.
[0113] DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is a density-based clustering algorithm. It can find clusters of any shape and is particularly suitable for processing data sets with noise. In the face clustering task, DBSCAN can cluster similar faces together based on the similarity of facial features, thereby effectively organizing and classifying a large amount of face data.
[0114] After recognizing faces and scenes, deep learning algorithms, especially convolutional neural networks (CNNs) and recurrent neural networks (RNNs), can also be used to identify and understand scene and character changes in the video. Through scene and character change tracking algorithms, scene switching points and character development trajectories are accurately captured to ensure the natural transition of video slices along the storyline. Multimodal learning technology is used to combine audio and visual information to conduct in-depth analysis of the original short film. Audio analysis technology is combined with semantic analysis models (such as large language models) to extract and analyze the emotional color of dialogue content and background music, and combined with visual information to improve the understanding of the overall emotion and semantics of the video content.
[0115] Then, based on deep learning technology, we automatically generate video script information that matches the original film’s emotions and semantics. Using video feature tags, we accurately match video slices with video scripts to ensure that the video content matches the emotional curve and story development of the script.
[0116] Finally, based on the matching results, the video slices with feature labels are automatically spliced into a promotional video. In this process, transition effects, background music and text descriptions are considered to enhance the expressiveness and appeal of the video.
[0117] In addition, if Figure 4 As shown, subtitles can also be generated for the original video. First, it is detected whether there are accurate multi-language subtitles in the original video. If not, it is detected whether there are single-language subtitles. If there are single-language subtitles, the subtitles are calibrated and translated to obtain multi-language subtitles. If there are no single-language subtitles, subtitles are generated and edited through automatic speech recognition technology (Automatic Speech Recognition, ASR).
[0118] In this embodiment, through automated context information modeling and multimodal information fusion, the time for manual editing is greatly reduced, making the production of promotional materials faster and more efficient. The use of deep learning algorithms to accurately storyboard and track scenes of video content ensures the smoothness and natural transition of the video storyline and improves the narrative quality. The application of semantic analysis models to conduct in-depth analysis of dialogues and texts in the video enables promotional materials to more accurately convey the emotions and complex semantics in the video. The use of video feature tags, automated splicing and editing technology combined with intelligent selection of transition effects and background music.
[0119] In an exemplary embodiment, the present application provides a system for generating a promotional video, and the process of the system interacting with a user is as follows:
[0120] 1) The user inputs the original video on the system.
[0121] 2) The system intelligently scans and analyzes the original video content, automatically detects and cuts out key video slices, and labels them with multi-dimensional features such as emotions, actions, and scenes to facilitate subsequent script matching and content understanding. In addition, the system displays each video slice on the page, as well as information such as the video slice’s label and duration.
[0122] 3) The system formulates a video script strategy based on the content and publicity goals of the short play, determines the required number of storyboards and story structure, and formulates the story logic to ensure the coherence and emotional development of the video content. The system automatically synchronizes the tag structure of the video slices, and only requires selecting tags without semantic description. Then, the system displays the information of the video script strategy on the page, including the video script strategy identification, video type information, scene information, resolution information, duration information, number of slices information, event line information, item props information, screen content information, etc.
[0123] 4) Based on the video script strategy, the system automatically recommends suitable clips to each storyboard, and automatically synthesizes them to generate a preliminary preview promotional video. During the synthesis process, the system considers the transition effects between video clips, as well as the coordination with the background music and the overall style. Among them, after matching the video slices, the matched video slices can be displayed on the page first, so that the user can replace the video slices, and then respond to the user's generation needs, and then splice the video slices to generate a preview promotional video. In addition, users can also interact with the system to fine-tune the video script strategy.
[0124] 5) The system provides a preview function for the finished video, allowing users to collaborate with the system to carefully debug the synthesized video. The system displays the generated preview promotion video on the page, and also displays the recommended background music and the application timeline, volume, etc., so that users can make changes; and automatically selects or the user selects an attractive cover, and intelligently converts the vertical video to the horizontal video to meet the playback requirements of different platforms.
[0125] 6) The system evaluates the quality of the video and predicts the probability of the video's volume in different channels to ensure the attractiveness and dissemination effect of the promotional video. Based on the evaluation results, the video content is optimized, and in response to user needs, the promotional video is pushed and released to various social media and video platforms through automated tools. Finally, a compact, emotionally rich, and semantically coherent promotional video is output, and it is iteratively optimized based on user feedback and system analysis results.
[0126] In this embodiment, 1. The creation efficiency is improved: through automated context information modeling and multimodal information fusion, the time for manual editing is greatly reduced, making the production of promotional materials faster and more efficient. 2. The coherence and emotional expression of the content are guaranteed: the deep learning algorithm is used to accurately storyboard and track the video content, ensuring the smoothness and natural transition of the video storyline and improving the narrative quality. The semantic analysis model is applied to conduct in-depth analysis of the dialogue and text in the video, so that the promotional materials can more accurately convey the emotions and complex semantics in the video. 3. Personalization and innovation are enhanced: the use of video feature tags and human-computer collaborative interfaces, automated splicing and editing technology combined with transition effects and intelligent selection of background music, enable creators to personalize the promotional materials based on personal creativity and system recommendation results after audience feedback, as well as personal experience, so that the innovation and personalized expression of the generated promotional videos are enhanced, which can better attract and maintain the audience's attention.
[0127] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0128] Based on the same inventive concept, the embodiment of the present application also provides a device for generating a promotional video for implementing the above-mentioned method for generating a promotional video. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more promotional video generation devices provided below can refer to the limitations of the promotional video generation method above, and will not be repeated here.
[0129] In an exemplary embodiment, Figure 5 As shown, a device for generating a promotional video is provided, comprising: a video feature extraction module 501, a slice video processing module 502, a target slice determination module 503 and a promotional video generation module 504, wherein:
[0130] The video feature extraction module 501 is used to perform feature extraction processing on the original video to be promoted and obtain video feature information;
[0131] The slice video processing module 502 is used to slice the original video according to the video feature information to obtain multiple slice videos, and determine the classification label of each slice video under multiple preset dimensions;
[0132] The target slice determination module 503 is used to input the video feature information into the script generation model to obtain the target video script information, and determine the target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information;
[0133] The promotion video generation module 504 is used to splice the target sliced videos to obtain the promotion video of the original video.
[0134] In one of the embodiments, the above-mentioned video feature extraction module 501 is also used to adopt a plot label processing model to analyze the original video to obtain the plot label information of the original video; adopt a picture change processing model to analyze the original video to obtain the scene change feature information and character trajectory feature information of the original video; adopt an emotion prediction processing model to analyze the original video to obtain the video emotion information of the original video; and use the plot label information, scene change feature information, character trajectory feature information and video emotion information as video feature information.
[0135] In one of the embodiments, the target slice determination module 503 is also used to perform feature fusion processing on the plot label information, scene change feature information, character trajectory feature information and video emotion information through a script generation model to obtain comprehensive video feature information; and generate target video script information based on the comprehensive video feature information.
[0136] In one of the embodiments, the target slice determination module 503 is also used to determine similarity information between multiple slice videos and target video script information based on classification labels; and to determine a target slice video that matches the target video script information from multiple slice videos based on video feature information and similarity information.
[0137] In one of the embodiments, the target slice determination module 503 is also used to determine the association information between any two adjacent slice videos based on the video feature information; based on the association information and similarity information, determine the target slice video that matches the target script information from multiple slice videos.
[0138] In one of the embodiments, the device for generating the promotion video further includes a video evaluation and adjustment module, which is used to adopt a video quality evaluation model and a promotion effect evaluation model to obtain quality prediction information and effect prediction information of the promotion video; adjust the target video script information according to the quality prediction information and the effect prediction information to obtain the adjusted target video script information; and obtain the adjusted promotion video according to the adjusted target video script information and multiple sliced videos.
[0139] In one of the embodiments, the device for generating the promotional video further includes a subtitle detection generation module, which is used to obtain a subtitle detection result of the original video; when the subtitle detection result is that there are no subtitles in the original video, identify the audio information in the original video, and generate subtitles in multiple languages of the original video based on the audio information; when the subtitle detection result is that the original video has subtitles in a single language, identify the subtitle content in the original video, and convert the subtitle content into subtitles in multiple languages of the original video.
[0140] In one of the embodiments, the subtitle detection and generation module is further used to generate subtitles in multiple languages for the promotional video based on the subtitles in multiple languages of the original video.
[0141] Each module in the above-mentioned promotional video generation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0142] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for generating a promotional video is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0143] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0144] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0145] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0146] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0147] 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 relevant regulations.
[0148] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0149] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0150] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for generating a promotional video, characterized in that: The method comprises: Perform feature extraction on the original video to be promoted and obtain video feature information; According to the video feature information, the original video is sliced to obtain a plurality of sliced videos, and a classification label of each sliced video under a plurality of preset dimensions is determined; Inputting the video feature information into a script generation model to obtain target video script information, and determining a target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information; The target sliced videos are spliced together to obtain a promotional video of the original video.
2. The method according to claim 1, characterized in that The feature extraction process is performed on the original video to be promoted to obtain video feature information, including: Using a plot label processing model to analyze the original video to obtain plot label information of the original video; Using a picture change processing model to analyze the original video, and obtain scene change feature information and character trajectory feature information of the original video; Using an emotion prediction processing model to analyze the original video to obtain video emotion information of the original video; The plot label information, the scene change feature information, the character trajectory feature information and the video emotion information are all used as the video feature information.
3. The method according to claim 2, characterized in that The step of inputting the video feature information into a script generation model to obtain target video script information includes: The plot label information, the scene change feature information, the character trajectory feature information and the video emotion information are subjected to feature fusion processing through a script generation model to obtain comprehensive video feature information; Generate target video script information based on the comprehensive feature information of the video.
4. The method according to claim 1, characterized in that The step of determining a target slice video matching the target video script information from the plurality of slice videos according to the classification label and the video feature information comprises: Determine similarity information between the plurality of sliced videos and the target video script information according to the classification labels; According to the video feature information and the similarity information, a target slice video matching the target video script information is determined from the multiple slice videos.
5. The method according to claim 4, characterized in that The step of determining a target slice video matching the target video script information from the plurality of slice videos according to the video feature information and the similarity information includes: Determine association information between any two adjacent sliced videos according to the video feature information; Based on the association information and the similarity information, a target slice video matching the target script information is determined from the multiple slice videos.
6. The method according to claim 1, characterized in that After the target sliced videos are spliced together to obtain the promotional video of the original video, the method further includes: Using a video quality assessment model and a promotion effect assessment model to obtain quality prediction information and effect prediction information of the promotion video; Adjusting the target video script information according to the quality prediction information and the effect prediction information to obtain adjusted target video script information; An adjusted promotion video is obtained according to the adjusted target video script information and the multiple sliced videos.
7. The method according to claim 1, characterized in that Before extracting features from the original video to be promoted and obtaining video feature information, the following steps are also included: Obtaining a subtitle detection result of the original video; When the subtitle detection result indicates that there is no subtitle in the original video, identifying audio information in the original video, and generating subtitles in multiple languages of the original video according to the audio information; In the case where the subtitle detection result is that the original video has subtitles in a single language, identifying subtitle content in the original video, and converting the subtitle content into subtitles in multiple languages of the original video; After the target sliced videos are spliced together to obtain the promotional video of the original video, the method further includes: Subtitles in multiple languages for the promotional video are generated based on the subtitles in multiple languages for the original video.
8. A device for generating a promotional video, characterized in that: The device comprises: The video feature extraction module is used to extract features from the original video to be promoted and obtain video feature information; A slice video processing module, used to slice the original video according to the video feature information to obtain multiple slice videos, and determine the classification label of each slice video under multiple preset dimensions; A target slice determination module is used to input the video feature information into a script generation model to obtain target video script information, and determine a target slice video matching the target video script information from the multiple slice videos according to the classification label and the video feature information; The promotion video generation module is used to splice the target sliced videos to obtain the promotion video of the original video.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
AI material generation acceleration method for e-commerce publicity
CN119562121A
Video script generation method and device, computer equipment and storage medium
CN119781753A
Video editing method and device, and electronic equipment
CN120786135A
