A distributed processing method and system for storyboard data for intelligent video generation
Through the storyboard data distributed processing method, large language models and container orchestration technology are used to dynamically adjust resource allocation and task scheduling, solving the problems of large-scale video data processing efficiency and quality, and achieving efficient video creation and high-quality viewing experience. .
Patent Information
- Application Number
- CN202411107814.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-13
AI Technical Summary
Existing technology is difficult to efficiently process large-scale video data and achieve real-time response, making it difficult for video creation efficiency and quality to meet the rapidly growing demand.
Adopt a storyboard data distributed processing method, generate storyboard scripts through a large language model, match video database clips, perform parallel processing and quality verification, and use container orchestration and machine learning algorithms to dynamically adjust resource allocation and task scheduling to ensure load balancing and efficiency. deal with.
It improves the system's ability to handle high-load user requests, provides a high-quality viewing experience, ensures the visual effects, audio quality and fluency of the video, and meets the audience's creation and playback needs.
Smart Images

Figure CN118660116B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distributed processing, and in particular to a distributed processing method and system for storyboard data for intelligent video generation. Background Art
[0002] With the rapid development of Internet technology and social media platforms, the demand for video content has increased dramatically. In order to meet this demand and improve the efficiency and quality of content creation, more and more technologies are being applied to the field of video production. Among them, intelligent video generation technology is an important development direction. It combines computer vision, natural language processing, deep learning and other advanced technologies to automatically or semi-automatically create high-quality video content. In order to efficiently process large-scale data sets and achieve real-time response, distributed processing has become an important technical means. Specifically, through parallel computing, cloud computing platforms, data sharding, load balancing, data consistency and fault-tolerant mechanisms, large-scale processing of video clips, audio files, text information and image materials can be achieved, thereby speeding up the entire creation process and ensuring the stability and reliability of the system. Summary of the invention
[0003] The present invention provides a distributed processing method for storyboard data for intelligent video generation, comprising: S110, using a large language model to generate a storyboard script according to a text input by a user;
[0004] S120, matching the generated storyboard script with the clips in the video database, and selecting the best matching video clip for each storyboard;
[0005] S130, downloading the matched video clips to a local computer and performing pre-processing;
[0006] S140, distributing the downloaded and pre-processed video clips to the distributed computing nodes for parallel processing, specifically including the following sub-steps:
[0007] S141, distributing the preprocessed video clips to multiple computing nodes, each node running in an independent container;
[0008] The preprocessed video clips are distributed to multiple computing nodes. Each node is responsible for processing one or more video clips. Each video processing task is encapsulated into an independent microservice and deployed in a container using the formula: Represents the encapsulation deployment process, where Indicates the video after encapsulation preprocessing , represents the jth container;
[0009] Use container orchestration tools to manage and schedule microservices, dynamically adjust resource allocation to cope with load changes, and dynamically adjust task allocation based on the current load of each node and the complexity of the task to ensure load balancing of each computing node. When initially allocating tasks, assign tasks to nodes with lighter loads based on the size of the video clips and processing requirements, using the formula: represents the allocation process, where Indicates the distribution of pre-processed video , Indicates the jth node with the lightest load assigned; during the processing, monitor the load of each node and redistribute tasks as needed, using the formula: represents the reallocation process, where Indicates redistribution on the node Preprocessed video on Indicates the newly allocated node; finally, the future load is predicted through machine learning algorithms, and resource reservation and task scheduling optimization are performed in advance;
[0010] S142, each node processes the assigned video segments in parallel to generate processed segments;
[0011] Each node processes the assigned video clips in parallel using the formula: represents a parallel processing process, where The unique identifier of the video clip. represents the preprocessed video clip, represents the processed video segment, Represents a parallel processing function;
[0012] S143, synthesizing all processed clips according to the order of the storyboard script to generate a final video;
[0013] The processing results of the parallel processing stage are summarized and synthesized into the final video according to the order of the storyboard script, using the formula: represents the synthesis process, where The unique identifier of the video clip. represents the processed video segment, Represents the final video, represents a composite function;
[0014] S144, verifying the quality of the synthesized video, and optimizing and adjusting it if necessary to generate a final output video;
[0015] Verify the quality of the synthesized video. This process includes checking the visual effects, audio quality and overall smoothness of the video. If any problems are found, use video editing software to make targeted optimization adjustments. Select the video format and encoding parameters according to the requirements of the final playback platform and export the final video.
[0016] The distributed processing method for storyboard data for intelligent video generation as described above is characterized in that the method for selecting the best matching video segment for each storyboard specifically includes the following sub-steps:
[0017] Convert the storyboard into a structured form;
[0018] Extract features from storyboards and video clips;
[0019] Calculate feature similarity between storyboards and video clips;
[0020] The best matching video segment is selected based on the similarity score.
[0021] The distributed processing method of storyboard data for intelligent video generation as described above is characterized in that the storyboard script data is preprocessed, illegal characters in the storyboard script are removed using regular expressions, all texts are converted to lowercase, the text is segmented into a word list using a word segmentation tool, common words in the text are removed, and the words are restored to their basic form to facilitate subsequent feature extraction and similarity calculation.
[0022] The present invention also provides a distributed processing system for storyboard data for intelligent video generation, including: a storyboard script generation module, a video clip matching module, a video clip downloading module, and a distributed computing module.
[0023] Storyboard generation module: uses a large language model to generate storyboards based on the text input by the user;
[0024] Video clip matching module: matches the generated storyboard with the clips in the video database and selects the best matching video clip for each storyboard;
[0025] Video clip download module: download the matched video clips to the local computer and perform pre-processing;
[0026] Distributed computing module: distributes the downloaded and pre-processed video clips to distributed computing nodes for parallel processing;
[0027] The distributed computing module specifically includes:
[0028] The allocation submodule allocates the preprocessed video clips to multiple computing nodes, each of which runs in an independent container; the preprocessed video clips are allocated to multiple computing nodes, each of which is responsible for the processing tasks of one or more video clips. Each video processing task is encapsulated into an independent microservice and deployed in a container, using the formula: Represents the encapsulation deployment process, where Indicates the video after encapsulation preprocessing , represents the jth container; use container orchestration tools to manage and schedule microservices, dynamically adjust resource allocation to cope with load changes, and dynamically adjust task allocation according to the current load of each node and the complexity of the task to ensure load balancing of each computing node. When initially allocating tasks, allocate them according to the size of the video clip and the processing requirements. represents the allocation process, where Indicates the distribution of pre-processed video , represents the jth load node assigned; during the processing, the load of each node is monitored and tasks are redistributed as needed. represents the reallocation process, where Indicates redistribution on the node Preprocessed video on Indicates the newly allocated node; finally, the future load is predicted through machine learning algorithms, and resource reservation and task scheduling optimization are performed in advance;
[0029] In the parallel processing submodule, each node processes the assigned video segments in parallel to generate processed segments; each node processes the assigned video segments in parallel, represents a parallel processing process, where The unique identifier of the video clip. represents the preprocessed video clip, represents the processed video segment, Represents a parallel processing function;
[0030] The synthesis submodule synthesizes all processed clips in the order of the storyboard script to generate the final video; summarizes the processing results of the parallel processing stage and synthesizes them into the final video according to the order of the storyboard script. represents the synthesis process, where The unique identifier of the video clip. represents the processed video segment, Represents the final video, represents a composite function;
[0031] The verification submodule verifies the quality and optimizes the synthesized video to generate the final output video. The quality of the synthesized video is verified, including checking the visual effects, audio quality and overall fluency of the video. If any problems are found, the video editing software is used to optimize and adjust it. The video format and encoding parameters are selected according to the requirements of the final playback platform to export the final video.
[0032] The above-mentioned distributed processing system for storyboard data for intelligent video generation is characterized in that the video segment matching module specifically includes:
[0033] The structuring submodule converts the storyboard into a structured form;
[0034] The feature extraction submodule extracts features from storyboards and video clips;
[0035] A similarity calculation submodule calculates the feature similarity between the storyboard script and the video clip;
[0036] The selection submodule selects the best matching video segment based on the similarity score.
[0037] A distributed processing system for storyboard data for intelligent video generation as described above is characterized in that the video clip download module is specifically used to pre-process the storyboard script data, use regular expressions to remove illegal characters in the storyboard script, convert all text to lowercase, use a word segmentation tool to split the text into a word list, remove common words in the text, and restore the words to their basic form to facilitate subsequent feature extraction and similarity calculation.
[0038] The beneficial effects achieved by the present invention are as follows: This application improves the system's ability to cope with high-load user requests through distributed processing of storyboard data, providing viewers with a high-quality viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0040] Figure 1 This is a flow chart of a distributed processing method for storyboard data for intelligent video generation provided in Example 1 of the present application;
[0041] Figure 2 It is a schematic diagram of a distributed processing system for storyboard data for intelligent video generation provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0042] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention. Embodiment 1
[0043] like Figure 1 As shown, Embodiment 1 of the present application provides a distributed processing method for storyboard data for intelligent video generation.
[0044] Step S110: using a large language model to generate a storyboard according to the text input by the user;
[0045] The big prediction model is used to generate a storyboard based on the text or other information entered by the user. Each storyboard contains specific scene description, duration, camera angle, background music and other information. Specifically, the formula is used: Represents the generated storyboard, where Represents the generated storyboard collection, Indicates Storyboards, including scene descriptions , Duration , Camera Angle And background music etc., i represents the subscript of the storyboard, and its value is 1-m.
[0046] Step S120: matching the generated storyboard script with the clips in the video database, and selecting the best matching video clip for each storyboard;
[0047] Using natural language processing technology and video search engines, the generated storyboard script is matched with the clips in the video database, the most suitable video clip is found for each storyboard, and the method of selecting the best matching video clip for each storyboard specifically includes the following sub-steps:
[0048] Step S121: converting the storyboard script into a structured form;
[0049] Preprocess the storyboard data, use regular expressions to remove illegal characters in the storyboard, convert all text to lowercase, use the word segmentation tool to split the text into a list of words, remove common words in the text, which usually do not carry much meaning, and restore the words to their basic form to facilitate subsequent feature extraction and similarity calculation.
[0050] After completing the above text preprocessing, the processed text is represented in a structured form. The words that appear in all storyboards are collected and duplicates are removed to form a vocabulary. The number of times each word appears in the vocabulary is counted, and the importance vector of the word is constructed. The word frequency and inverse document rate of each word are calculated. The word frequency indicates the frequency of a word appearing in a document, and the inverse document rate indicates the logarithm of the reciprocal number of documents containing the word in the document set, which is used to measure the importance of a word. Specifically, the formula is used: Calculate the frequency of words in the vocabulary in the storyboard, where Representing words In the storyboard The word frequency in Representing words In the storyboard The number of times it appears in Represent the entire vocabulary using the formula: Counting words in vocabulary The inverse document frequency of Representing words The inverse document frequency, N is the total number of documents, Contains the word The number of documents, using the formula:
[0051] represents the importance vector of the words in the vocabulary, where Representing words In the storyboard The importance vector in Representing words In the storyboard The word frequency in Representing words The inverse document frequency of .
[0052] Step S122: extracting features from the storyboard and the video clips;
[0053] For each storyboard and video clip, we use the word importance vector Extract features, the features of the video clip are represented as , the storyboard feature is expressed as ,Each dimension in the feature set corresponds to a specific word, and its value reflects the importance of the word in the storyboard, which facilitates the subsequent calculation of similarity.
[0054] Step S123: calculating the feature similarity between the storyboard script and the video clip;
[0055] Calculate the feature similarity between the storyboard script and the video clip. Specifically, use the formula: Calculate the feature similarity between the storyboard and the video clip, where Indicates storyboard script and video clips The feature similarity of represents the i-th storyboard, represents the jth video segment.
[0056] Step S124: selecting the best matching video segment based on the similarity score;
[0057] For each storyboard, calculate its similarity with all video clips, and then select the video clip with the highest similarity as the matching result. Specifically, use the formula: Select the video clip with the highest similarity, Indicates storyboard script The best matching video clips for represents the maximum value function, Indicates storyboard script and video clips The feature similarity of j is the subscript of the video clip, which takes a value of 1-n, and i is the subscript of the storyboard script, which takes a value of 1-m. After finding the highest similarity value, the current video clip is assigned to the video clip set. , the final video clip collection , where V represents the set of matched video clips, Indicates the i-th storyboard The corresponding video clip.
[0058] Step S130: downloading the matched video clips to the local computer and performing pre-processing;
[0059] Download the matched video clips to the local computer and perform preprocessing, including resolution adjustment, format conversion, audio and video synchronization, etc. Select a suitable video downloading tool or software, obtain the download link or URL of the video clip, use the selected tool to download the video clip to the local computer, determine the target resolution according to the requirements of the final output video, use video editing software to adjust the resolution of the video clip, select a suitable video format (such as MP4, AVI, etc.) according to the needs of subsequent editing or playback, use video conversion tools or software (such as HandBrake, Any Video Converter, etc.) to convert the video clip to the required format, use video editing software to check whether the audio and video of the video clip are synchronized. If the audio and video are found to be out of sync, they can be corrected by adjusting the audio delay or video frame rate, etc. Through the above steps, you can effectively download and preprocess the video clips to ensure that they meet the requirements of subsequent editing and playback, improve the quality of the video, simplify subsequent editing work, and improve overall work efficiency.
[0060] Step S140: Distribute the downloaded and pre-processed video clips to distributed computing nodes for parallel processing;
[0061] In the distributed processing stage of the present invention, an efficient, complex and scalable distributed processing system is designed to ensure that it can cope with high-load user requests and simultaneously process a large number of video synthesis tasks, including video editing, special effects addition, audio processing and other operations. A distributed computing framework based on MapReduce and microservice architecture is adopted, which can effectively process large-scale data and support dynamic expansion. The distributed processing stage specifically includes the following sub-steps:
[0062] Step S141: Distribute the preprocessed video clips to multiple computing nodes, each node running in an independent container;
[0063] The pre-processed video clips are distributed to multiple computing nodes. Each node is responsible for processing tasks of one or more video clips. The processing tasks include video editing, special effects addition, audio processing, etc. Each processing task in the system runs as a microservice. The independent deployment and operation of the service are realized through containerization technology (such as Docker), which can improve the flexibility and scalability of the system. Each video processing task is encapsulated into an independent microservice and deployed in the container. Specifically, the formula is used: Represents the encapsulation deployment process, where Indicates the video after encapsulation preprocessing , Represents the jth container.
[0064] Use container orchestration tools to manage and schedule microservices, dynamically adjust resource allocation to cope with load changes, and in order to ensure load balancing of each computing node, the present invention designs a set of intelligent task scheduling algorithms, which dynamically adjust the allocation of tasks according to the current load of each node and the complexity of the task. During the initial task allocation, tasks are allocated to nodes with lighter loads according to the size of the video clip and the processing requirements. Specifically, the formula is used: represents the allocation process, where Indicates the distribution of pre-processed video , Indicates the jth node with the lightest load assigned. During the processing, the load of each node is monitored, and tasks are redistributed as needed to avoid overloading some nodes. Specifically, the formula is used: represents the reallocation process, where Indicates redistribution on the node Preprocessed video on Indicates the newly allocated node. Finally, the future load is predicted through machine learning algorithms, and resource reservation and task scheduling optimization are performed in advance.
[0065] Step S142: each node processes the assigned video segments in parallel to generate processed segments;
[0066] Each node processes the assigned video clips in parallel. The processing tasks include video editing, special effects addition, audio processing, etc. Specifically, the formula is used: represents a parallel processing process, where The unique identifier of the video clip. represents the preprocessed video segment, represents the processed video segment, represents the processed video segment, Represents a parallel processing function.
[0067] Step S143: synthesizing all processed clips in the order of the storyboard script to generate a final video;
[0068] The processing results of the parallel processing stage are summarized and synthesized into the final video according to the order of the storyboard script. Specifically, the formula is used: represents the synthesis process, where The unique identifier of the video clip. represents the processed video segment, Represents the final video, Represents a composition function.
[0069] Step S144: verifying the quality of the synthesized video, optimizing and adjusting it if necessary, and generating a final output video;
[0070] Verify the quality of the synthesized video to ensure that the final output video meets the expected standards. This process includes carefully checking the visual effects, audio quality and overall fluency of the video. If necessary, optimization and adjustment are required. Specifically, it is necessary to check whether the video picture is clear, the color is accurate, the audio is clear and noise-free, and whether the video playback is smooth and without stuttering. If problems are found, you can use video editing software to make targeted optimization adjustments, such as adding sharpening effects, adjusting color balance, and performing audio noise reduction. Finally, select the appropriate video format and encoding parameters according to the requirements of the final playback platform to export the final high-quality video. Through this series of steps, it can be ensured that the synthesized video meets both technical requirements and the needs of artistic creation, providing viewers with a high-quality viewing experience. Embodiment 2
[0071] like Figure 2As shown, Embodiment 2 of the present application provides a distributed processing system for storyboard data for intelligent video generation.
[0072] Storyboard generation module 21: using a large language model to generate a storyboard according to the text input by the user;
[0073] The big prediction model is used to generate a storyboard based on the text or other information entered by the user. Each storyboard contains specific scene description, duration, camera angle, background music and other information. Specifically, the formula is used: Represents the generated storyboard, where Represents the generated storyboard collection, Indicates Storyboards, including scene descriptions , Duration , Camera Angle And background music etc., i represents the subscript of the storyboard, and its value is 1-m.
[0074] Video segment matching module 22: matches the generated storyboard with the segments in the video database, and selects the best matching video segment for each storyboard;
[0075] Using natural language processing technology and video search engines, the generated storyboards are matched with clips in the video database to find the most suitable video clip for each storyboard.
[0076] The video segment matching module 22 specifically includes:
[0077] Structuring submodule: convert the storyboard into a structured form;
[0078] Preprocess the storyboard data, use regular expressions to remove illegal characters in the storyboard, convert all text to lowercase, use the word segmentation tool to split the text into a list of words, remove common words in the text, which usually do not carry much meaning, and restore the words to their basic form to facilitate subsequent feature extraction and similarity calculation.
[0079] After completing the above text preprocessing, the processed text is represented in a structured form. The words that appear in all storyboards are collected and duplicates are removed to form a vocabulary. The number of times each word appears in the vocabulary is counted, and the importance vector of the word is constructed. The word frequency and inverse document rate of each word are calculated. The word frequency indicates the frequency of a word appearing in a document, and the inverse document rate indicates the logarithm of the reciprocal number of documents containing the word in the document set, which is used to measure the importance of a word. Specifically, the formula is used: Calculate the frequency of words in the vocabulary in the storyboard, where Representing words In the storyboard The word frequency in Representing words In the storyboard The number of times it appears in Represent the entire vocabulary using the formula: Counting words in vocabulary The inverse document frequency of Representing words The inverse document frequency, N is the total number of documents, Contains the word The number of documents, using the formula:
[0080] represents the importance vector of the words in the vocabulary, where Representing words In the storyboard The importance vector in Representing words In the storyboard The word frequency in Representing words The inverse document frequency of .
[0081] Feature extraction submodule: extracts features from storyboards and video clips;
[0082] For each storyboard and video clip, we use the word importance vector Extract features, the features of the video clip are represented as , the storyboard feature is expressed as ,Each dimension in the feature set corresponds to a specific word, and its value reflects the importance of the word in the storyboard, which facilitates the subsequent calculation of similarity.
[0083] Similarity calculation submodule: calculates the feature similarity between the storyboard script and the video clip;
[0084] Calculate the feature similarity between the storyboard script and the video clip. Specifically, use the formula: Calculate the feature similarity between the storyboard and the video clip, where Indicates storyboard script and video clips The feature similarity of represents the i-th storyboard, represents the jth video segment.
[0085] Selection submodule: selects the best matching video clip based on similarity scores;
[0086] For each storyboard, calculate its similarity with all video clips, and then select the video clip with the highest similarity as the matching result. Specifically, use the formula: Select the video clip with the highest similarity, Indicates storyboard script The best matching video clips for represents the maximum value function, Indicates storyboard script and video clips The feature similarity of j is the subscript of the video clip, which takes a value of 1-n, and i is the subscript of the storyboard script, which takes a value of 1-m. After finding the highest similarity value, the current video clip is assigned to the video clip set. , the final video clip collection , where V represents the set of matched video clips, Indicates the i-th storyboard The corresponding video clip.
[0087] Video clip download module 23: download the matched video clip to the local computer and perform pre-processing;
[0088] Download the matched video clips to the local computer and perform preprocessing, including resolution adjustment, format conversion, audio and video synchronization, etc. Select the appropriate video downloading tool or software, obtain the download link or URL of the video clip, use the selected tool to download the video clip to the local computer, determine the target resolution according to the requirements of the final output video, use video editing software to adjust the resolution of the video clip, select the appropriate video format (such as MP4, AVI, etc.) according to the needs of subsequent editing or playback, use video conversion tools or software (such as HandBrake, Any Video Converter, etc.) to convert the video clip to the required format, use video editing software to check whether the audio and video of the video clip are synchronized, if the audio and video are found to be out of sync, you can correct it by adjusting the audio delay or video frame rate, etc., effectively download and preprocess the video clip to ensure that it meets the requirements of subsequent editing and playback, improve the quality of the video, simplify subsequent editing work, and improve overall work efficiency.
[0089] Distributed computing module 24: distributes the downloaded and pre-processed video clips to distributed computing nodes for parallel processing;
[0090] In the distributed processing stage of the present invention, an efficient, complex and scalable distributed processing system is designed to ensure that it can cope with high-load user requests and simultaneously process a large number of video synthesis tasks, including video editing, special effects addition, audio processing and other operations. A distributed computing framework based on the combination of MapReduce and microservice architecture is adopted, which can effectively process large-scale data and support dynamic expansion.
[0091] The distributed computing module 24 specifically includes:
[0092] Distribution submodule: distributes the preprocessed video clips to multiple computing nodes, each of which runs in an independent container;
[0093] The pre-processed video clips are distributed to multiple computing nodes. Each node is responsible for processing tasks of one or more video clips. The processing tasks include video editing, special effects addition, audio processing, etc. Each processing task in the system runs as a microservice. The independent deployment and operation of the service are realized through containerization technology (such as Docker), which can improve the flexibility and scalability of the system. Each video processing task is encapsulated into an independent microservice and deployed in the container. Specifically, the formula is used: Represents the encapsulation deployment process, where Indicates the video after encapsulation preprocessing , Represents the jth container.
[0094] Use container orchestration tools to manage and schedule microservices, dynamically adjust resource allocation to cope with load changes, and in order to ensure load balancing of each computing node, the present invention designs a set of intelligent task scheduling algorithms, which dynamically adjust the allocation of tasks according to the current load of each node and the complexity of the task. During the initial task allocation, tasks are allocated to nodes with lighter loads according to the size of the video clip and the processing requirements. Specifically, the formula is used: represents the allocation process, where Indicates the distribution of pre-processed video , Indicates the jth node with the lightest load assigned. During the processing, the load of each node is monitored, and tasks are redistributed as needed to avoid overloading some nodes. Specifically, the formula is used: represents the reallocation process, where Indicates redistribution on the node Preprocessed video on Indicates the newly allocated node. Finally, the future load is predicted through machine learning algorithms, and resource reservation and task scheduling optimization are performed in advance.
[0095] Parallel processing submodule: Each node processes the assigned video segments in parallel to generate processed segments;
[0096] Each node processes the assigned video clips in parallel. The processing tasks include video editing, special effects addition, audio processing, etc. Specifically, the formula is used: represents a parallel processing process, where The unique identifier of the video clip. represents the preprocessed video clip, represents the processed video segment, Represents a parallel processing function.
[0097] Synthesis submodule: synthesizes all processed clips in the order of the storyboard script to generate the final video;
[0098] The processing results of the parallel processing stage are summarized and synthesized into the final video according to the order of the storyboard script. Specifically, the formula is used: represents the synthesis process, where The unique identifier of the video clip. represents the processed video segment, Represents the final video, Represents a composition function.
[0099] Verification submodule: Verify the quality of the synthesized video, optimize and adjust it if necessary, and generate the final output video;
[0100] Verify the quality of the synthesized video to ensure that the final output video meets the expected standards. This process includes carefully checking the visual effects, audio quality and overall fluency of the video. If necessary, optimization and adjustment are required. Specifically, it is necessary to check whether the video picture is clear, the color is accurate, the audio is clear without noise, and the video playback is smooth without lag. If problems are found, you can use video editing software to make targeted optimization adjustments, such as adding sharpening effects, adjusting color balance, and performing audio noise reduction. Finally, select the appropriate video format and encoding parameters according to the requirements of the final playback platform, and export the final high-quality video to ensure that the synthesized video meets both technical requirements and the needs of artistic creation, providing viewers with a high-quality viewing experience.
[0101] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A distributed processing method for storyboard data for intelligent video generation, characterized in that: include: S110, using a large language model to generate a storyboard according to the text input by the user; S120, matching the generated storyboard script with the clips in the video database, and selecting the best matching video clip for each storyboard; S130, downloading the matched video clips to a local computer and performing pre-processing; S140, distributing the downloaded and pre-processed video clips to the distributed computing nodes for parallel processing, specifically including the following sub-steps: S141, distributing the preprocessed video clips to multiple computing nodes, each node running in an independent container; The preprocessed video clips are distributed to multiple computing nodes. Each node is responsible for processing one or more video clips. Each video processing task is encapsulated into an independent microservice and deployed in a container using the formula: Represents the encapsulation deployment process, where Indicates the video after encapsulation preprocessing , represents the jth container; Use container orchestration tools to manage and schedule microservices, dynamically adjust resource allocation to cope with load changes, and dynamically adjust task allocation based on the current load of each node and the complexity of the task to ensure load balancing of each computing node. Initial task allocation is based on the size of the video clip and processing requirements. represents the allocation process, where Indicates the distribution of pre-processed video , represents the jth load node assigned; during the processing, the load of each node is monitored and tasks are redistributed as needed. represents the reallocation process, where Indicates redistribution on the node Preprocessed video on Indicates the newly allocated node; finally, the future load is predicted through machine learning algorithms, and resource reservation and task scheduling optimization are performed in advance; S142, each node processes the assigned video segments in parallel to generate processed segments; Each node processes the assigned video segments in parallel. represents a parallel processing process, where The unique identifier of the video clip. represents the preprocessed video clip, represents the processed video segment, Represents a parallel processing function; S143, synthesizing all processed clips according to the order of the storyboard script to generate a final video; The processing results of the parallel processing stage are summarized and synthesized into the final video according to the order of the storyboard script. represents the synthesis process, where The unique identifier of the video clip. represents the processed video segment, Represents the final video, represents a composite function; S144, performing quality verification and optimization adjustment on the synthesized video to generate a final output video; Verify the quality of the synthesized video, including checking the visual effects, audio quality, and overall fluency of the video. If any problems are found, use video editing software to optimize and adjust. Select the video format and encoding parameters according to the requirements of the final playback platform and export the final video.
2. A distributed processing method for storyboard data for intelligent video generation according to claim 1, characterized in that: The method for selecting the best matching video clip for each storyboard specifically includes the following sub-steps: Convert the storyboard into a structured form; Extract features from storyboards and video clips; Calculate feature similarity between storyboards and video clips; The best matching video segment is selected based on the similarity score.
3. A distributed processing method for storyboard data for intelligent video generation as claimed in claim 2, characterized in that: Preprocess the storyboard data, use regular expressions to remove illegal characters in the storyboard, convert all text to lowercase, use the word segmentation tool to split the text into a list of words, remove common words in the text, and restore the words to their basic form to facilitate subsequent feature extraction and similarity calculation.
4. A distributed processing system for storyboard data for intelligent video generation, characterized in that: include: Storyboard generation module: uses a large language model to generate storyboards based on the text input by the user; Video clip matching module: matches the generated storyboard with the clips in the video database and selects the best matching video clip for each storyboard; Video clip download module: download the matched video clips to the local computer and perform pre-processing; Distributed computing module: distributes the downloaded and pre-processed video clips to distributed computing nodes for parallel processing; The distributed computing module specifically includes: The allocation submodule allocates the preprocessed video clips to multiple computing nodes, each of which runs in an independent container; the preprocessed video clips are allocated to multiple computing nodes, each of which is responsible for the processing tasks of one or more video clips. Each video processing task is encapsulated into an independent microservice and deployed in a container, using the formula: Represents the encapsulation deployment process, where Indicates the video after encapsulation preprocessing , represents the jth container; use container orchestration tools to manage and schedule microservices, dynamically adjust resource allocation to cope with load changes, and dynamically adjust task allocation according to the current load of each node and the complexity of the task to ensure load balancing of each computing node. When initially allocating tasks, allocate them according to the size of the video clip and the processing requirements. represents the allocation process, where Indicates the distribution of pre-processed video , represents the jth load node assigned; during the processing, the load of each node is monitored and tasks are redistributed as needed. represents the reallocation process, where Indicates redistribution on the node Preprocessed video on Indicates the newly allocated node; finally, the future load is predicted through machine learning algorithms, and resource reservation and task scheduling optimization are performed in advance; In the parallel processing submodule, each node processes the assigned video segments in parallel to generate processed segments; each node processes the assigned video segments in parallel, represents a parallel processing process, where The unique identifier of the video clip. represents the preprocessed video clip, represents the processed video segment, Represents a parallel processing function; The synthesis submodule synthesizes all processed clips in the order of the storyboard script to generate the final video; summarizes the processing results of the parallel processing stage and synthesizes them into the final video according to the order of the storyboard script. represents the synthesis process, where The unique identifier of the video clip. represents the processed video segment, Represents the final video, represents a composite function; The verification submodule verifies the quality and optimizes the synthesized video to generate the final output video. The quality of the synthesized video is verified, including checking the visual effects, audio quality and overall fluency of the video. If any problems are found, the video editing software is used to optimize and adjust it. The video format and encoding parameters are selected according to the requirements of the final playback platform to export the final video.
5. A distributed processing system for storyboard data for intelligent video generation as claimed in claim 4, characterized in that: The video clip matching module specifically includes: The structuring submodule converts the storyboard into a structured form; The feature extraction submodule extracts features from storyboards and video clips; A similarity calculation submodule calculates the feature similarity between the storyboard script and the video clip; The selection submodule selects the best matching video segment based on the similarity score.
6. A distributed processing system for storyboard data for intelligent video generation as claimed in claim 4, characterized in that: The video clip download module is specifically used to pre-process the storyboard script data, use regular expressions to remove illegal characters in the storyboard script, convert all text to lowercase, use the word segmentation tool to split the text into a word list, remove common words in the text, and restore the words to their basic form to facilitate subsequent feature extraction and similarity calculation.
