A multimodal AI-driven short video material intelligent matching and automatic editing method

By using a multimodal AI-driven intelligent matching and automatic editing method for short video materials, the problem of insufficient correspondence between materials and script text is solved, enabling efficient material selection and automatic generation of editing rhythm, thereby improving editing efficiency and consistency of the final product.

CN123185418APending Publication Date: 2026-11-27SHANGHAI YUNJIN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611552649.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the existing short video material management and editing process, the visual content of the materials and script text lacks a quantifiable correspondence, resulting in semantic discrepancies and inconsistent editing rhythms. Existing tools cannot dynamically generate suitable editing sequences, leading to low editing efficiency and poor consistency in the final product.

Method used

Employing a multimodal AI-driven approach, this method achieves joint matching of multimodal features and parametric editing of source material and script through multimodal material preprocessing and feature indexing construction, target video narrative structure analysis, multimodal material matching and candidate set generation, automatic editing sequence generation, quality assessment, and iterative correction.

Benefits of technology

It effectively avoids semantic deviations in material selection, improves the consistency of editing rhythm, reduces manual adjustment time, enhances the consistency of the final product and editing efficiency, and adapts to the growth of material library size for different content types.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application relates to the technical field of video processing, and discloses a multi-modal AI-driven short video material intelligent matching and automatic editing method, which comprises the following steps: step 1, multi-modal material preprocessing and feature index construction; step 2, target video narrative structure and editing demand analysis; step 3, multi-modal material matching and candidate set generation; step 4, automatic editing sequence generation and parameter mapping; and step 5, film quality evaluation and iterative correction. The material matching link is changed from single text retrieval to multi-modal joint matching. On the basis of extracting material visual semantics, motion characteristics and audio characteristics, the key entities and action words of the script unit are subjected to semantic similarity calculation with the material, and meanwhile, rhythm adaptation degree sorting is carried out in combination with motion intensity and direction continuity. In this way, semantic deviation caused by label or file name screening can be avoided, and the time for piece-by-piece previewing is reduced, and the time consumption for screening a single video material is reduced from an average of 25 minutes to about 5 minutes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video processing technology, specifically to a multimodal AI-driven intelligent matching and automatic editing method for short video materials. Background Technology

[0002] In the short video material management and editing process, existing workflows typically break down material selection, shot assembly, and pacing into multiple independent steps, each completed by different personnel. For example, a daily-updating e-commerce account often needs to select 15 to 18 usable clips from hundreds of original materials for a single 60-second video, then manually adjust the in-and-out points, add transitions, and background music based on the narration. During the material selection stage, editors usually rely on filenames, shooting times, or simple tags for searching, then preview each clip to determine if it matches the script. A skilled editor typically spends 40 to 70 minutes on average selecting and rough-cutting a single video, with material searching and previewing taking up about half of that time. The main problem with this process is the lack of a quantifiable correspondence between the visual content of the footage and the script text. When selecting footage, editors often rely solely on their personal understanding of the script and their memory of the footage, which can easily lead to semantic discrepancies. For example, if the script mentions "the texture turns into a watery consistency after being spread out," the corresponding footage should ideally be a close-up showing the texture change. However, in practice, only a medium shot of the product's appearance might be selected, causing the narration to be out of sync with the visuals and weakening the selling point. A content team found during a post-production review that rework due to mismatches between footage and script accounted for approximately 20% to 30% of the total editing time, especially in videos with multiple products mixed together and frequent scene changes. Furthermore, the pacing of the editing lacks coordination with the narrative structure. While existing editing software offers timeline manipulation and transition templates, shot duration, transition type, and switching frequency are still manually adjusted by the editor. When the script's emotional tone shifts into conflict, shot duration should ideally be shortened, switching frequency increased, and hard cuts used. However, due to the lack of parametric pacing constraints, this often results in a flat or excessively fast pacing in actual editing. Some teams have attempted to use template-based editing tools, but these tools are primarily designed for fixed structures and cannot dynamically generate editing sequences based on script content and material characteristics, limiting their flexibility and matching accuracy. Therefore, a method is needed to jointly model script text, multimodal features of source material, and editing parameters. This method should automatically select segments that are semantically and rhythmically compatible during the source material matching stage, automatically generate shot duration, transition type, and audio track alignment parameters based on the narrative rhythm during the editing stage, and iteratively correct these parameters through quality assessment. This would reduce the time spent on manual selection and adjustment, and improve the consistency of the final cut. Summary of the Invention

[0003] (a) Technical problems to be solved To address the shortcomings of existing technologies, this invention provides a multimodal AI-driven intelligent matching and automatic editing method for short video materials. This method has advantages such as avoiding semantic bias caused by filtering based solely on tags or file names, and solves the problem of the lack of a quantifiable correspondence between the visual content of the materials and the script text.

[0004] (II) Technical Solution To achieve the goal of avoiding semantic bias caused by filtering solely based on tags or filenames, this invention provides the following technical solution: a multimodal AI-driven intelligent matching and automatic editing method for short video materials, comprising: step 1: multimodal material preprocessing and feature index construction; step 2: target video narrative structure and editing requirements analysis; step 3: multimodal material matching and candidate set generation; step 4: automatic editing sequence generation and parameter mapping; and step 5: final quality evaluation and iterative correction. Step 1: multimodal material preprocessing and feature index construction includes: step 101: material multimodal feature extraction; step 102: material content tag and rhythm tag generation; and step 103: hierarchical index construction and updating. Step 2: Analysis of target video narrative structure and editing requirements includes Step 201: Analysis of input script and storyboard information, Step 202: Generation of editing rhythm curve and Step 203: Encoding of shot type and transition constraints; Step 3: Multimodal material matching and candidate set generation includes step 301: initial screening of semantic similarity, step 302: rhythm fit calculation and sorting, and step 303: diversity constraints and candidate set optimization. Step 4: Automatic editing sequence generation and parameter mapping includes step 401: Shot segment selection and duration adaptation, step 402: Automatic generation of transition and special effects parameters, and step 403: Multitrack synthesis and audio alignment. Step 5: Final quality assessment and iterative correction includes step 501: multi-dimensional quality assessment, step 502: local replacement and parameter fine-tuning, and step 503: outputting project files and editing decision records.

[0005] Preferably, step 101 involves extracting multimodal features from the source material. For each video or image clip in the media library, visual semantic features, motion features, and audio features are extracted. Visual semantic features are generated using a pre-trained visual encoder, outputting a 512-dimensional vector. The frame sampling interval is 0.5 seconds, and global average pooling is used as the semantic vector for that clip. Motion features are generated by calculating the optical flow amplitude and direction angle between adjacent frames, and the mean motion intensity and main direction angle are statistically analyzed over a 0.5-second window to form a motion feature sequence. Audio features are generated by extracting Mel spectrum, with a sampling rate of 22050Hz, a frame length of 1024, and a frame shift of 256. The results are fed into the audio encoder to obtain a 128-dimensional vector, which is also averaged over a 0.5-second window. All features are saved as h5 format files, each corresponding to a clip ID.

[0006] Preferably, step 102 involves generating content tags and rhythm tags for the source material; Lightweight labels are generated based on features. Content labels include subject type, scene type, lighting conditions, and color style. A combination of rules and classifiers is used, with a confidence threshold of 0.72. Rhythm labels are calculated through motion feature sequences. The mean motion intensity is divided into three levels: low, medium, and high, with values ​​of 0.18 and 0.45. The duration percentage of each level is calculated. If the high motion intensity percentage exceeds 55%, it is marked as "fast rhythm"; if it is below 20%, it is marked as "slow rhythm"; and the rest are marked as "medium rhythm". At the same time, the absolute mean of the main direction angle difference between adjacent windows is recorded in degrees / 0.5 seconds for subsequent transition direction matching.

[0007] Preferably, step 103 involves: hierarchical index construction and updating; A vector index is constructed from global semantic vectors, using product quantization. The sub-vector dimension is 64, the codebook size is 256, and cosine similarity is used as the distance metric. Motion feature sequences and audio feature sequences are approximated by segmented aggregation, with each segment being 2 seconds long and stored in a structured database. An inverted index is constructed using tags and rhythm tags. The preprocessing process is automatically triggered when new material is added. The index is updated append-only, without rebuilding the entire index. For long materials exceeding 60 seconds, scene switching detection is performed first, and the material is divided into multiple short segments. Each segment is indexed independently, and segments with a segmentation confidence score below 0.6 are not segmented.

[0008] Preferably, step 201 involves inputting the script and parsing the storyboard information; The input includes the narration script, expected duration, delivery platform, style tags, and optional scene descriptions. The narration script is divided into sentence units by commas and periods, with each unit corresponding to a potential shot. If a scene description is provided, the shot size, camera angle, and motion type are parsed out. If not provided, an automatic allocation rule is used. At the same time, key entities and action words in the narration are extracted as semantic anchors for material matching. The duration of each narration sentence is calculated at 4.0 words / second to obtain the target duration range for each potential shot. The total narration for a 60-second video is 240 words, with 18 scenes, and each shot averages 3.3 seconds, with an allowable deviation of ±0.5 seconds.

[0009] Preferably, step 202 involves generating the editing rhythm curve; A target rhythm curve is generated based on the content type and emotional structure. The rhythm curve uses values ​​between 0 and 1 to represent the editing intensity. The relationship between shot duration and rhythm value is: shot duration = 4.5 - 2.5 × rhythm value, in seconds. For e-commerce videos, a three-segment structure is adopted: the first segment accounts for 25%, with a rhythm value of 0.3 and a corresponding shot duration of 3.75 seconds; the second segment accounts for 45%, with the rhythm value linearly increasing from 0.35 to 0.78, and the corresponding shot duration decreasing from 3.63 seconds to 2.55 seconds; the third segment accounts for 30%, with a rhythm value of 0.55 and a corresponding shot duration of 3.13 seconds. This curve is used for subsequent matching and editing parameter generation. Step 203: Lens type and transition constraint coding; The shot type pool and transition type pool are determined based on platform characteristics and content style. Shot types include fixed, zoom in, zoom out, pan, follow, and rise / fall. Transition types include hard cut, dissolve, flash white, and black screen. The default durations for each transition are: hard cut 0.20 seconds, dissolve 0.45 seconds, flash white 0.15 seconds, and black screen 0.50 seconds. If the angle between the movement directions of adjacent shots is less than 30 degrees, hard cut is given priority; dissolve is used for angles between 30 and 90 degrees; and flash white or black screen is used for angles greater than 90 degrees. This rule is written into the transition constraint parameters for automatic editing.

[0010] Preferably, step 301 involves initial screening of semantic similarity. For each script unit, the query text is composed of key entities and action words. It is input into the text encoder to obtain the feature vector in the same space as the visual encoder. The cosine similarity between the query vector and the global semantic vector of the material is calculated. Materials with a similarity greater than 0.30 are selected as candidates. For scenes without text description, the query vector of the previous scene is used and the threshold is reduced to 0.25. After the initial screening, no more than 50 candidate materials are retained for each shot. If there are not enough, the threshold is increased to 0.22. If there are still not enough, the user is prompted to supplement materials or relax the scene restrictions. Step 302: Rhythm fit calculation and sorting; For each candidate clip obtained from the initial screening, the fit between its motion feature sequence and the rhythm value of the target shot is calculated. The fit consists of two parts: motion intensity matching degree and motion direction continuity. The motion intensity matching degree is calculated as the overlap ratio between the average motion intensity of the clip and the corresponding intensity range of the target rhythm value. A target rhythm value of 0.3 corresponds to low motion intensity, 0.5 corresponds to medium, and above 0.7 corresponds to high. The motion direction continuity is calculated as the angle between the starting motion direction of the current candidate clip and the ending motion direction of the previous clip. The smaller the angle, the higher the score. The comprehensive score is calculated as 0.65 × motion intensity matching degree + 0.25 × direction continuity + 0.10 × semantic similarity. The clips are sorted in descending order of score, and the top 10 clips are taken as the candidate set for the shot.

[0011] Preferably, step 303 involves diversity constraints and candidate set optimization. Diversity constraints are imposed on the candidate set. The same clip can be used a maximum of 2 times in the same video, with at least 3 shots between them. Adjacent shots are prohibited from using the same clip. At the same time, the consistency between the color style of the candidate clip and the style label of the target video is detected. Color histogram difference is used, and clips with a difference of more than 0.35 are reduced by 20%. If the high-scoring clips in the candidate set of a certain shot all come from the same scene or the same subject, label diversity is forcibly introduced, and the top 3 clips with different scene labels are selected and retained together with the highest-scoring clip.

[0012] Preferably, step 401 involves selecting and matching the duration of a shot segment. Following the storyboard sequence, final footage clips are selected from the candidate set for each shot. The selection is primarily based on rhythm fit scores, while also considering the available footage duration. For each shot, a clip is located from the selected footage. The start time of the clip is determined by the relevance between the narration and the footage content. If the narration mentions a specific action or object, the time segment containing that action or object is selected first. The clip duration is truncated according to the target duration of the shot, allowing ±0.3 seconds. If the original footage clip length is insufficient, looping or frame extraction is used to supplement it, with no more than 2 loops. After completion, an editing sequence is generated, with each entry containing the footage ID, in point, out point, and target duration. Step 402: Transition and effects parameters are automatically generated; Based on the transition constraints in step 203 and the camera movement direction of adjacent footage, generate a transition type and duration for each switching point. If the angle between the movement directions of adjacent shots is less than 30 degrees, the transition duration is 0.20 seconds; for angles between 30 and 90 degrees, use a 0.45-second dissolve; for angles greater than 90 degrees, use a 0.15-second flash white. For shots near emotional peaks, a slight vibration or rapid zoom-in effect can be inserted. The vibration amplitude is set to 5% displacement of the edge of the frame, and the duration is 0.25 seconds. The effect parameters are written to the editing project file in XML format. Step 403: Multitrack synthesis and audio alignment; The selected clips are spliced ​​together chronologically. The video track is a single track, and the audio track contains the original audio clips and the narration audio. The narration audio is generated using a TTS engine with a speech rate of 4.0 words / second and a volume normalized to -16 LUFS. The background music volume is set to -24 LUFS. The narration automatically ducks when it appears, with a ducking depth of 3dB and a start and end time of 0.5 seconds before and after. The start and end times of the narration audio are aligned with the corresponding video clips to ensure that each line of narration falls within the corresponding shot. A rough cut version with a duration within ±0.5 seconds of the target duration is output.

[0013] Preferably, step 501 involves multi-dimensional quality assessment. The rough cut version is evaluated in multiple dimensions, including semantic matching degree, rhythm consistency, picture stability, and audio clarity. Semantic matching degree involves inputting the picture frames of each shot into the visual encoder, calculating the similarity with the corresponding narration text, and taking the mean. Shots with a similarity lower than 0.32 are marked as problematic shots. Rhythm consistency is compared with the deviation between the actual switching frequency and the target rhythm curve. A deviation exceeding 15% is marked as a rhythm problem. Picture stability is measured using the variance of optical flow amplitude. Segments with a variance greater than 0.12 are marked as jittery or moving too fast. Audio clarity is measured by detecting the background noise level. A signal-to-noise ratio lower than 18dB is marked as an audio problem. Step 502: Local replacement and parameter fine-tuning; For the marked problematic shots, select the second-highest scoring material from the candidate set of the shot to replace it, re-extract the segment and update the transition parameters. For rhythm issues, adjust the shot duration or the position of the switching point, with the adjustment range not exceeding 0.3 seconds. For image stability issues, prioritize replacing the material. If there is no suitable replacement, use image stabilization processing with the stabilization intensity set to medium. For audio issues, replace the noisy clip with the audio of other candidate materials or use noise reduction processing. The noise reduction intensity is 6dB by default. After each correction, recalculate the evaluation index of the affected clip. A single shot can be replaced a maximum of 2 times. Step 503: Output project files and editing decision records; The corrected editing sequence and all parameters are exported as project files and JSON decision records. The project files contain the source material reference paths, timeline information, transition and effect parameters, and audio track settings. The JSON decision records contain the matching score for each shot, the selected source material ID, replacement history, and parameter adjustment records. These records are used for subsequent manual review and parameter optimization, and can also be used as training data to feed back into the matching model. The final output generates a 1080p vertical screen preview file and a corresponding subtitle file. The subtitle timecode is aligned with the narration audio with an error of no more than 0.2 seconds.

[0014] (III) Beneficial Effects Compared with existing technologies, this invention provides a multimodal AI-driven intelligent matching and automatic editing method for short video materials, which has the following beneficial effects: 1. This multimodal AI-driven intelligent matching and automatic editing method for short video materials transforms the material matching process from single text retrieval to multimodal joint matching. Based on the extraction of visual semantics, motion features, and audio features of the materials, the method calculates the semantic similarity between the key entities and action words of the script unit and the materials. At the same time, it sorts the rhythm adaptability by combining motion intensity and directional continuity. This can avoid semantic bias caused by filtering based solely on tags or file names. For example, it can prioritize matching close-up materials that show changes in product texture rather than medium shots of appearance. For a 60-second product promotion video, this method narrows the material selection range for each shot to less than 10, reducing the time for previewing each video and reducing the time spent selecting a single video material from an average of 25 minutes to about 5 minutes.

[0015] 2. This multimodal AI-driven intelligent matching and automatic editing method for short video materials generates editing sequences with parameterized rhythm constraints. The method generates an editing rhythm curve based on the script content type and target duration, maps the rhythm value to the shot duration, and considers the angle between the movement directions of adjacent shots when selecting transition types. In this way, the editing sequence is not formed by manually dragging one by one, but is automatically generated based on the rhythm curve and material characteristics, so that the switching frequency of conflict sections and ending sections is consistent with the narrative structure. In actual tests, the deviation between the automatically generated editing sequence and the target rhythm curve is controlled within 15%, reducing the need for secondary adjustments due to uneven rhythm.

[0016] 3. This multimodal AI-driven intelligent matching and automatic editing method for short video materials forms a closed loop of quality assessment and iterative correction. The method performs multi-dimensional evaluations on the rough cut version, including semantic matching degree, rhythm consistency, picture stability, and audio clarity, and performs local replacement or parameter fine-tuning on problematic shots. Since each shot retains a candidate set and replacement history, local corrections will not affect the overall timeline. This closed-loop mechanism reduces the number of problems in the final cut before delivery. For example, the proportion of shots where the picture and narration do not match has dropped from about 12% in manual editing to less than 3%, and the rework time has been shortened accordingly.

[0017] 4. This multimodal AI-driven intelligent matching and automatic editing method for short video materials outputs project files and decision records, facilitating team collaboration and parameter optimization. The automatically generated XML project files and JSON decision records contain the matching score, material ID, and adjustment history for each shot. Editors can directly refine details based on the project files without rebuilding the timeline. The decision records can serve as feedback data for subsequent parameter adjustments to the matching model, gradually improving the overall editing efficiency of the team. For multi-account matrix operation teams, this feature ensures that the finished products produced by different editors maintain a high degree of consistency in rhythm and style, reducing communication costs.

[0018] 5. This multimodal AI-driven intelligent matching and automatic editing method for short video materials is highly adaptable to the size and type of the material library. The preprocessing stage uses hierarchical indexing and append-based updates, so new materials do not require rebuilding the entire index, making it suitable for scenarios with continuously growing materials. Matching and editing parameters can be adjusted according to platform characteristics. For example, the shot duration and transition rules for vertical and horizontal videos can be configured separately without affecting the overall process. This versatility allows the method to be used for different content types such as e-commerce sales, local life promotion, and knowledge popularization, without needing to redesign the process for each type. Detailed Implementation

[0019] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0020] This solution provides a technical solution, specifically a multimodal AI-driven intelligent matching and automatic editing method for short video materials, including the following: Step 1: Multimodal material preprocessing and feature index construction; Step 101: Extraction of multimodal features from source material; For each video or image clip in the media library, visual semantic features, motion features, and audio features are extracted. Visual semantic features are generated using a pre-trained visual encoder, outputting a 512-dimensional vector. The frame sampling interval is 0.5 seconds, and global average pooling is used as the semantic vector for that clip. Motion features are generated by calculating the optical flow amplitude and direction angle between adjacent frames, and the mean motion intensity and main direction angle are statistically analyzed over a 0.5-second window to form a motion feature sequence. Audio features are generated by extracting Mel spectrum, with a sampling rate of 22050Hz, a frame length of 1024, and a frame shift of 256. The results are fed into the audio encoder to obtain a 128-dimensional vector, which is also averaged over a 0.5-second window. All features are saved as h5 format files, each corresponding to a clip ID. Step 102: Generating content tags and rhythm tags for the source material; Lightweight labels are generated based on features. Content labels include subject type, scene type, lighting conditions, and color style. A combination of rules and classifiers is used, with a confidence threshold of 0.72. Rhythm labels are calculated through motion feature sequences. The mean motion intensity is divided into three levels: low, medium, and high, with values ​​of 0.18 and 0.45. The duration percentage of each level is calculated. If the high motion intensity percentage exceeds 55%, it is marked as "fast rhythm"; if it is below 20%, it is marked as "slow rhythm"; and the rest are marked as "medium rhythm". At the same time, the absolute mean of the main direction angle difference between adjacent windows is recorded in degrees / 0.5 seconds for subsequent transition direction matching. Step 103: Hierarchical index construction and update; A vector index is constructed from global semantic vectors, using product quantization. The sub-vector dimension is 64, the codebook size is 256, and cosine similarity is used as the distance metric. Motion feature sequences and audio feature sequences are approximated by segmented aggregation, with each segment being 2 seconds long and stored in a structured database. An inverted index is constructed using tags and rhythm tags. The preprocessing process is automatically triggered when new material is added. The index is updated append-only, without rebuilding the entire index. For long materials exceeding 60 seconds, scene switching detection is performed first, and the material is divided into multiple short segments. Each segment is indexed independently, and segments with a confidence score below 0.6 are not segmented. Step 2: Analysis of the target video's narrative structure and editing requirements; Step 201: Input script and storyboard information parsing; The input includes the narration script, expected duration, delivery platform, style tags, and optional shot descriptions. The narration script is divided into sentence units by commas and periods, and each unit corresponds to a potential shot. If the shot description is provided, the shot size, camera angle, and motion type are parsed out. If not provided, an automatic allocation rule is used. At the same time, key entities and action words in the narration are extracted as semantic anchors for material matching. The duration of each narration sentence is calculated at 4.0 words / second to obtain the target duration range of each potential shot. The total narration of a 60-second video is 240 words, with 18 shots, and each shot is an average of 3.3 seconds, with an allowable deviation of ±0.5 seconds. Step 202: Generate the editing rhythm curve; A target rhythm curve is generated based on the content type and emotional structure. The rhythm curve uses values ​​between 0 and 1 to represent the editing intensity. The relationship between shot duration and rhythm value is: shot duration = 4.5 - 2.5 × rhythm value, in seconds. For e-commerce videos, a three-segment structure is adopted: the first segment accounts for 25%, with a rhythm value of 0.3 and a corresponding shot duration of 3.75 seconds; the second segment accounts for 45%, with the rhythm value linearly increasing from 0.35 to 0.78, and the corresponding shot duration decreasing from 3.63 seconds to 2.55 seconds; the third segment accounts for 30%, with a rhythm value of 0.55 and a corresponding shot duration of 3.13 seconds. This curve is used for subsequent matching and editing parameter generation. Step 203: Lens type and transition constraint coding; The shot type pool and transition type pool are determined based on platform characteristics and content style. Shot types include fixed, zoom in, zoom out, pan, follow, and rise / fall. Transition types include hard cut, dissolve, flash white, and black screen. The default durations for each transition are: hard cut 0.20 seconds, dissolve 0.45 seconds, flash white 0.15 seconds, and black screen 0.50 seconds. If the angle between the movement directions of adjacent shots is less than 30 degrees, hard cut is given priority; dissolve is used for angles between 30 and 90 degrees; and flash white or black screen is used for angles greater than 90 degrees. This rule is written into the transition constraint parameters for automatic editing. Step 3: Multimodal material matching and candidate set generation; Step 301: Initial screening of semantic similarity; For each script unit, the query text is composed of key entities and action words. It is input into the text encoder to obtain the feature vector in the same space as the visual encoder. The cosine similarity between the query vector and the global semantic vector of the material is calculated. Materials with a similarity greater than 0.30 are selected as candidates. For scenes without text description, the query vector of the previous scene is used and the threshold is reduced to 0.25. After the initial screening, no more than 50 candidate materials are retained for each shot. If there are not enough, the threshold is increased to 0.22. If there are still not enough, the user is prompted to supplement materials or relax the scene restrictions. Step 302: Rhythm fit calculation and sorting; For each candidate material obtained from the initial screening, the fit between its motion feature sequence and the rhythm value of the target shot is calculated. The fit consists of two parts: motion intensity matching degree and motion direction continuity. The motion intensity matching degree is calculated as the overlap ratio between the average motion intensity of the material and the corresponding intensity range of the target rhythm value. A target rhythm value of 0.3 corresponds to low motion intensity, 0.5 corresponds to medium, and above 0.7 corresponds to high. The motion direction continuity is calculated as the angle between the starting motion direction of the current candidate material and the ending motion direction of the previous shot material. The smaller the angle, the higher the score. The comprehensive score is calculated as 0.65 × motion intensity matching degree + 0.25 × direction continuity + 0.10 × semantic similarity. The top 10 materials are sorted in descending order of score and selected as the candidate set for the shot. Step 303: Diversity Constraints and Candidate Set Optimization; The candidate set is subject to diversity constraints. The same clip can be used a maximum of 2 times in the same video, with at least 3 shots between them. Adjacent shots are prohibited from using the same clip. At the same time, the consistency between the color style of the candidate clip and the style label of the target video is detected. The color histogram difference is used. Clips with a difference of more than 0.35 are reduced by 20%. If the high-scoring clips in the candidate set of a certain shot all come from the same scene or the same subject, label diversity is forcibly introduced. The top 3 clips with different scene labels are selected and retained together with the highest-scoring clip. Step 4: Automatic editing sequence generation and parameter mapping; Step 401: Selecting and matching shot clips to duration; Following the storyboard sequence, final footage clips are selected from the candidate set for each shot. The selection is primarily based on rhythm fit scores, while also considering the available footage duration. For each shot, a clip is located from the selected footage. The start time of the clip is determined by the relevance between the narration and the footage content. If the narration mentions a specific action or object, the time segment containing that action or object is selected first. The clip duration is truncated according to the target duration of the shot, allowing ±0.3 seconds. If the original footage clip length is insufficient, looping or frame extraction is used to supplement it, with no more than 2 loops. After completion, an editing sequence is generated, with each entry containing the footage ID, in point, out point, and target duration. Step 402: Transition and effects parameters are automatically generated; Based on the transition constraints in step 203 and the camera movement direction of adjacent footage, generate a transition type and duration for each switching point. If the angle between the movement directions of adjacent shots is less than 30 degrees, the transition duration is 0.20 seconds; for angles between 30 and 90 degrees, use a 0.45-second dissolve; for angles greater than 90 degrees, use a 0.15-second flash white. For shots near emotional peaks, a slight vibration or rapid zoom-in effect can be inserted. The vibration amplitude is set to 5% displacement of the edge of the frame, and the duration is 0.25 seconds. The effect parameters are written to the editing project file in XML format. Step 403: Multitrack synthesis and audio alignment; The selected clips are spliced ​​together chronologically. The video track is a single track, and the audio track contains the original audio clips and the narration audio. The narration audio is generated using a TTS engine with a speech rate of 4.0 words / second and a volume normalized to -16 LUFS. The background music volume is set to -24 LUFS. The narration automatically ducks when it appears, with a ducking depth of 3dB and a start and end time of 0.5 seconds before and after. The start and end times of the narration audio are aligned with the corresponding video clips to ensure that each line of narration falls within the corresponding shot. A rough cut version with a duration within ±0.5 seconds of the target duration is output. Step 5: Final quality assessment and iterative correction; Step 501: Multi-dimensional quality assessment; The rough cut version is evaluated in multiple dimensions, including semantic matching degree, rhythm consistency, picture stability, and audio clarity. Semantic matching degree involves inputting the picture frames of each shot into the visual encoder, calculating the similarity with the corresponding narration text, and taking the mean. Shots with a similarity lower than 0.32 are marked as problematic shots. Rhythm consistency is compared with the deviation between the actual switching frequency and the target rhythm curve. A deviation exceeding 15% is marked as a rhythm problem. Picture stability is measured using the variance of optical flow amplitude. Segments with a variance greater than 0.12 are marked as jittery or moving too fast. Audio clarity is measured by detecting the background noise level. A signal-to-noise ratio lower than 18dB is marked as an audio problem. Step 502: Local replacement and parameter fine-tuning; For the marked problematic shots, select the second-highest scoring material from the candidate set of the shot to replace it, re-extract the segment and update the transition parameters. For rhythm issues, adjust the shot duration or the position of the switching point, with the adjustment range not exceeding 0.3 seconds. For image stability issues, prioritize replacing the material. If there is no suitable replacement, use image stabilization processing with the stabilization intensity set to medium. For audio issues, replace the noisy clip with the audio of other candidate materials or use noise reduction processing. The noise reduction intensity is 6dB by default. After each correction, recalculate the evaluation index of the affected clip. A single shot can be replaced a maximum of 2 times. Step 503: Output project files and editing decision records; The corrected editing sequence and all parameters are exported as project files and JSON decision records. The project files contain material reference paths, timeline information, transition and effect parameters, and audio track settings. The JSON decision records contain the matching score for each shot, the selected material ID, replacement history, and parameter adjustment records. These records are used for subsequent manual review and parameter optimization, and can also be used as training data to feed back into the matching model. The final output generates a 1080p vertical screen preview file and a corresponding subtitle file. The subtitle timecode is aligned with the narration audio with an error of no more than 0.2 seconds. Furthermore, the material matching process has been transformed from single text retrieval to multimodal joint matching. Based on the extraction of visual semantics, motion features, and audio features of the materials, the method calculates the semantic similarity between the key entities and action words of the script unit and the materials. At the same time, it combines motion intensity and directional continuity to sort the rhythm fit. This can avoid semantic bias caused by filtering based solely on tags or file names. For example, it can prioritize matching close-up materials that show changes in product texture rather than medium shots of appearance. For a 60-second product promotion video, this method narrows the material selection range for each shot to less than 10, reducing the time for previewing each material. The time spent selecting a single video material has been reduced from an average of 25 minutes to about 5 minutes. Furthermore, the generation of the editing sequence has parameterized rhythm constraints. The method generates an editing rhythm curve based on the script content type and target duration, maps the rhythm value to the shot duration, and considers the angle between the movement directions of adjacent shots when selecting the transition type. In this way, the editing sequence is not formed by manually dragging one by one, but is automatically generated based on the rhythm curve and material characteristics, so that the switching frequency of conflict sections and ending sections is consistent with the narrative structure. In actual testing, the deviation between the automatically generated editing sequence and the target rhythm curve is controlled within 15%, reducing the need for secondary adjustments due to uneven rhythm. Furthermore, the quality assessment and iterative correction form a closed loop. The method performs multi-dimensional assessments on the rough cut version, including semantic matching degree, rhythm consistency, picture stability and audio clarity, and performs local replacement or parameter fine-tuning on problematic shots. Since each shot retains a candidate set and replacement history, local corrections will not affect the overall timeline. This closed-loop mechanism reduces the number of problems in the final cut before delivery. For example, the proportion of shots where the picture does not match the narration has dropped from about 12% in manual editing to less than 3%, and the rework time has been shortened accordingly. Furthermore, the method outputs project files and decision records, facilitating team collaboration and parameter optimization. The automatically generated XML project files and JSON decision records contain the matching score, material ID, and adjustment history for each shot. Editors can directly refine details based on the project files without rebuilding the timeline. The decision records can serve as feedback data for subsequent parameter adjustments to the matching model, gradually improving the overall editing efficiency of the team. For multi-account matrix operation teams, this feature ensures that the finished products produced by different editors maintain a high degree of consistency in rhythm and style, reducing communication costs. Furthermore, the method is well adaptable to the size and type of the media library. The preprocessing stage uses hierarchical indexing and append-only updates, so there is no need to rebuild the full index when adding new media. This is suitable for scenarios where the media library is constantly growing. Matching and editing parameters can be adjusted according to platform characteristics. For example, the shot duration and transition rules of vertical and horizontal videos can be configured separately without affecting the overall process. This versatility allows the method to be used for different content types such as e-commerce sales, local life promotion, and knowledge popularization, without having to redesign the process for each type.

[0021] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A multimodal AI-driven intelligent matching and automatic editing method for short video materials, comprising: step 1: multimodal material preprocessing and feature index construction; step 2: target video narrative structure and editing requirements analysis; step 3: multimodal material matching and candidate set generation; step 4: automatic editing sequence generation and parameter mapping; and step 5: final video quality evaluation and iterative correction, characterized in that: Step 1: Multimodal material preprocessing and feature index construction includes step 101: material multimodal feature extraction, step 102: material content tag and rhythm tag generation, and step 103: hierarchical index construction and updating; Step 2: Analysis of target video narrative structure and editing requirements includes Step 201: Analysis of input script and storyboard information, Step 202: Generation of editing rhythm curve and Step 203: Encoding of shot type and transition constraints; Step 3: Multimodal material matching and candidate set generation includes step 301: initial screening of semantic similarity, step 302: rhythm fit calculation and sorting, and step 303: diversity constraints and candidate set optimization. Step 4: Automatic editing sequence generation and parameter mapping includes step 401: Shot segment selection and duration adaptation, step 402: Automatic generation of transition and special effects parameters, and step 403: Multitrack synthesis and audio alignment. Step 5: Final quality assessment and iterative correction includes step 501: multi-dimensional quality assessment, step 502: local replacement and parameter fine-tuning, and step 503: outputting project files and editing decision records.

2. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 101: Extraction of multimodal features from the source material; For each video or image clip in the media library, visual semantic features, motion features, and audio features are extracted. Visual semantic features are generated using a pre-trained visual encoder, outputting a 512-dimensional vector. The frame sampling interval is 0.5 seconds, and global average pooling is used as the semantic vector for that clip. Motion features are generated by calculating the optical flow amplitude and direction angle between adjacent frames, and the mean motion intensity and main direction angle are statistically analyzed over a 0.5-second window to form a motion feature sequence. Audio features are generated by extracting Mel spectrum, with a sampling rate of 22050Hz, a frame length of 1024, and a frame shift of 256. The results are fed into the audio encoder to obtain a 128-dimensional vector, which is also averaged over a 0.5-second window. All features are saved as h5 format files, each corresponding to a clip ID.

3. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 102: Generating material content tags and rhythm tags; Lightweight labels are generated based on features. Content labels include subject type, scene type, lighting conditions, and color style. A combination of rules and classifiers is used, with a confidence threshold of 0.

72. Rhythm labels are calculated through motion feature sequences. The mean motion intensity is divided into three levels: low, medium, and high, with values ​​of 0.18 and 0.

45. The duration percentage of each level is calculated. If the high motion intensity percentage exceeds 55%, it is marked as "fast rhythm"; if it is below 20%, it is marked as "slow rhythm"; and the rest are marked as "medium rhythm". At the same time, the absolute mean of the main direction angle difference between adjacent windows is recorded in degrees / 0.5 seconds for subsequent transition direction matching.

4. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 103: Hierarchical index construction and updating; A vector index is constructed from global semantic vectors, using product quantization. The sub-vector dimension is 64, the codebook size is 256, and cosine similarity is used as the distance metric. Motion feature sequences and audio feature sequences are approximated by segmented aggregation, with each segment being 2 seconds long and stored in a structured database. An inverted index is constructed using tags and rhythm tags. The preprocessing process is automatically triggered when new material is added. The index is updated append-only, without rebuilding the entire index. For long materials exceeding 60 seconds, scene switching detection is performed first, and the material is divided into multiple short segments. Each segment is indexed independently, and segments with a segmentation confidence score below 0.6 are not segmented.

5. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 201: Input script and parsing of storyboard information; The input includes the narration script, expected duration, delivery platform, style tags, and optional scene descriptions. The narration script is divided into sentence units by commas and periods, with each unit corresponding to a potential shot. If a scene description is provided, the shot size, camera angle, and motion type are parsed out. If not provided, an automatic allocation rule is used. At the same time, key entities and action words in the narration are extracted as semantic anchors for material matching. The duration of each narration sentence is calculated at 4.0 words / second to obtain the target duration range for each potential shot. The total narration for a 60-second video is 240 words, with 18 scenes, and each shot averages 3.3 seconds, with an allowable deviation of ±0.5 seconds.

6. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 202: Generate the editing rhythm curve; A target rhythm curve is generated based on the content type and emotional structure. The rhythm curve uses values ​​between 0 and 1 to represent the editing intensity. The relationship between shot duration and rhythm value is: shot duration = 4.5 - 2.5 × rhythm value, in seconds. For e-commerce videos, a three-segment structure is adopted: the first segment accounts for 25%, with a rhythm value of 0.3 and a corresponding shot duration of 3.75 seconds; the second segment accounts for 45%, with the rhythm value linearly increasing from 0.35 to 0.78, and the corresponding shot duration decreasing from 3.63 seconds to 2.55 seconds; the third segment accounts for 30%, with a rhythm value of 0.55 and a corresponding shot duration of 3.13 seconds. This curve is used for subsequent matching and editing parameter generation. Step 203: Lens type and transition constraint coding; The shot type pool and transition type pool are determined based on platform characteristics and content style. Shot types include fixed, zoom in, zoom out, pan, follow, and rise / fall. Transition types include hard cut, dissolve, flash white, and black screen. The default durations for each transition are: hard cut 0.20 seconds, dissolve 0.45 seconds, flash white 0.15 seconds, and black screen 0.50 seconds. If the angle between the movement directions of adjacent shots is less than 30 degrees, hard cut is given priority; dissolve is used for angles between 30 and 90 degrees; and flash white or black screen is used for angles greater than 90 degrees. This rule is written into the transition constraint parameters for automatic editing.

7. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 301: Initial screening of semantic similarity; For each script unit, the query text is composed of key entities and action words. It is input into the text encoder to obtain the feature vector in the same space as the visual encoder. The cosine similarity between the query vector and the global semantic vector of the material is calculated. Materials with a similarity greater than 0.30 are selected as candidates. For scenes without text description, the query vector of the previous scene is used and the threshold is reduced to 0.

25. After the initial screening, no more than 50 candidate materials are retained for each shot. If there are not enough, the threshold is increased to 0.

22. If there are still not enough, the user is prompted to supplement materials or relax the scene restrictions. Step 302: Rhythm fit calculation and sorting; For each candidate clip obtained from the initial screening, the fit between its motion feature sequence and the rhythm value of the target shot is calculated. The fit consists of two parts: motion intensity matching degree and motion direction continuity. The motion intensity matching degree is calculated as the overlap ratio between the average motion intensity of the clip and the corresponding intensity range of the target rhythm value. A target rhythm value of 0.3 corresponds to low motion intensity, 0.5 corresponds to medium, and above 0.7 corresponds to high. The motion direction continuity is calculated as the angle between the starting motion direction of the current candidate clip and the ending motion direction of the previous clip. The smaller the angle, the higher the score. The comprehensive score is calculated as 0.65 × motion intensity matching degree + 0.25 × direction continuity + 0.10 × semantic similarity. The clips are sorted in descending order of score, and the top 10 clips are taken as the candidate set for the shot.

8. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 303: Diversity constraints and candidate set optimization; Diversity constraints are imposed on the candidate set. The same clip can be used a maximum of 2 times in the same video, with at least 3 shots between them. Adjacent shots are prohibited from using the same clip. At the same time, the consistency between the color style of the candidate clip and the style label of the target video is detected. Color histogram difference is used, and clips with a difference of more than 0.35 are reduced by 20%. If the high-scoring clips in the candidate set of a certain shot all come from the same scene or the same subject, label diversity is forcibly introduced, and the top 3 clips with different scene labels are selected and retained together with the highest-scoring clip.

9. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 401: Selecting and matching shot segments to duration; Following the storyboard sequence, final footage clips are selected from the candidate set for each shot. The selection is primarily based on rhythm fit scores, while also considering the available footage duration. For each shot, a clip is located from the selected footage. The start time of the clip is determined by the relevance between the narration and the footage content. If the narration mentions a specific action or object, the time segment containing that action or object is selected first. The clip duration is truncated according to the target duration of the shot, allowing ±0.3 seconds. If the original footage clip length is insufficient, looping or frame extraction is used to supplement it, with no more than 2 loops. After completion, an editing sequence is generated, with each entry containing the footage ID, in point, out point, and target duration. Step 402: Transition and effects parameters are automatically generated; Based on the transition constraints in step 203 and the camera movement direction of adjacent footage, generate a transition type and duration for each switching point. If the angle between the movement directions of adjacent shots is less than 30 degrees, the transition duration is 0.20 seconds; for angles between 30 and 90 degrees, use a 0.45-second dissolve; for angles greater than 90 degrees, use a 0.15-second flash white. For shots near emotional peaks, a slight vibration or rapid zoom-in effect can be inserted. The vibration amplitude is set to 5% displacement of the edge of the frame, and the duration is 0.25 seconds. The effect parameters are written to the editing project file in XML format. Step 403: Multitrack synthesis and audio alignment; The selected clips are spliced ​​together chronologically. The video track is a single track, and the audio track contains the original audio clips and the narration audio. The narration audio is generated using a TTS engine with a speech rate of 4.0 words / second and a volume normalized to -16 LUFS. The background music volume is set to -24 LUFS. The narration automatically ducks when it appears, with a ducking depth of 3dB and a start and end time of 0.5 seconds before and after. The start and end times of the narration audio are aligned with the corresponding video clips to ensure that each line of narration falls within the corresponding shot. A rough cut version with a duration within ±0.5 seconds of the target duration is output.

10. The method for intelligent matching and automatic editing of short video materials driven by multimodal AI according to claim 1, characterized in that: Step 501: Multi-dimensional quality assessment; The rough cut version is evaluated in multiple dimensions, including semantic matching degree, rhythm consistency, picture stability, and audio clarity. Semantic matching degree involves inputting the picture frames of each shot into the visual encoder, calculating the similarity with the corresponding narration text, and taking the mean. Shots with a similarity lower than 0.32 are marked as problematic shots. Rhythm consistency is compared with the deviation between the actual switching frequency and the target rhythm curve. A deviation exceeding 15% is marked as a rhythm problem. Picture stability is measured using the variance of optical flow amplitude. Segments with a variance greater than 0.12 are marked as jittery or moving too fast. Audio clarity is measured by detecting the background noise level. A signal-to-noise ratio lower than 18dB is marked as an audio problem. Step 502: Local replacement and parameter fine-tuning; For the marked problematic shots, select the second-highest scoring material from the candidate set of the shot to replace it, re-extract the segment and update the transition parameters. For rhythm issues, adjust the shot duration or the position of the switching point, with the adjustment range not exceeding 0.3 seconds. For image stability issues, prioritize replacing the material. If there is no suitable replacement, use image stabilization processing with the stabilization intensity set to medium. For audio issues, replace the noisy clip with the audio of other candidate materials or use noise reduction processing. The noise reduction intensity is 6dB by default. After each correction, recalculate the evaluation index of the affected clip. A single shot can be replaced a maximum of 2 times. Step 503: Output project files and editing decision records; The corrected editing sequence and all parameters are exported as project files and JSON decision records. The project files contain the source material reference paths, timeline information, transition and effect parameters, and audio track settings. The JSON decision records contain the matching score for each shot, the selected source material ID, replacement history, and parameter adjustment records. These records are used for subsequent manual review and parameter optimization, and can also be used as training data to feed back into the matching model. The final output generates a 1080p vertical screen preview file and a corresponding subtitle file. The subtitle timecode is aligned with the narration audio with an error of no more than 0.2 seconds.