Subtitle motion effect generation method, device, equipment and storage medium
By displaying a rhythm energy timeline and animation generation controls on the subtitle animation editing page, personalized animations are generated based on the emotional category of the segmented text and the beat intensity of the background music. This solves the problems of monotonous subtitle animations and lack of linkage with music, and achieves diversification of subtitle animations and synchronization with music.
Patent Information
- Application Number
- CN202611316419.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the segmented text of subtitles all use the same type of animation effects, and the animation effects are not linked with the background music of the video, lacking diversity and real-time rhythm.
By displaying a rhythm energy timeline in the subtitle animation editing page, personalized animations are generated based on the emotional category of the segmented text and the beat intensity of the background music. The emotional intensity of the subtitle text and the beat structure of the background music are analyzed using a large language model, and the animation parameters of the subtitles are dynamically adjusted.
It achieves linkage between subtitle animation effects and background music, improves the difference in animation effects between different word segments in the subtitles, and enhances the diversity of subtitle animation effects and their synchronization with the music.
Smart Images

Figure CN123185397A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for generating subtitle animation effects. Background Technology
[0002] In related technologies, during the process of video creation on mobile devices, the dynamic subtitle function has implemented AI (Artificial Intelligence) word segmentation and motion effect templates. However, all subtitle sentences reuse the same set of motion effect parameters; and the motion effect rhythm is completely controlled by the template preset, without linkage with the real-time beat structure of the background music. Summary of the Invention
[0003] This disclosure provides a method, apparatus, device, and storage medium for generating subtitle animation effects, to at least solve the problems in related technologies where all segmented subtitle text uses the same type of animation effect and the animation effect is not linked to the background music of the video. The technical solution of this disclosure is as follows: According to a first aspect of the present disclosure, a method for generating subtitle animation effects is provided, comprising: The subtitle animation editing page displays the rhythm energy timeline of the subtitles in the target video and the animation generation control; the rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, as well as the emotion category identifier and rhythm energy identifier corresponding to each segmented text; the emotion category identifier corresponding to each segmented text is obtained by semantic analysis of each segmented text, and the rhythm energy identifier corresponding to each segmented text is determined based on the emotion intensity of the target music segment corresponding to each segmented text, and the target music segment corresponding to each segmented text is the music segment in the background music of the target video that has the same timestamp as each segmented text; the emotion intensity of the target music segment is determined based on the beat intensity corresponding to the target music segment; In response to the triggering operation of the motion effect generation control, a target video carrying target motion effect subtitles is generated; the target motion effect corresponding to each segmented text in the target motion effect subtitle is determined based on the motion effect attribute information of each segmented text; the motion effect attribute information of each segmented text is determined based on the emotion category and emotion intensity corresponding to each segmented text.
[0004] In one exemplary embodiment, the method further includes: Obtain the subtitles of the target video, and perform word segmentation on the subtitles to obtain at least two segmented texts; Each segmented text is input into a large language model, and the sentiment intensity words, punctuation sentiment signals, and text length in each segmented text are extracted and semantically analyzed to output the sentiment category label for each segmented text; the sentiment category label is used to determine the sentiment category identifier.
[0005] In one exemplary embodiment, the method further includes: Obtain the background music from the target video; Based on the audio track of the background music, a beat intensity analysis is performed to obtain a strong beat time series; the strong beat time series includes the timestamp corresponding to each strong beat in the background music; the strong beat is the beat in the audio track whose beat intensity is greater than a preset threshold; The audio track of the background music is analyzed by segment to obtain the emotional intensity corresponding to at least two music segments. Based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two musical segments, determine the motion effect attribute information of each segmented text.
[0006] In one exemplary implementation, determining the motion effect attribute information of each segmented text based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two musical segments includes: The timing of motion effect triggering for each music segment is determined based on the strong beat time sequence. Based on the emotion category and intensity of the target music segment corresponding to each segmented text, determine the animation type and animation parameters for each segmented text; Based on the timing of the motion effect trigger for the target music segment corresponding to each segmented text, the motion effect type of each segmented text, and the motion effect parameters, determine the motion effect attribute information of each segmented text.
[0007] In one exemplary embodiment, the step of performing beat intensity analysis based on the audio track of the background music to obtain a strong beat time series includes: The beat speed and at least one strong beat are extracted from the audio track of the background music based on a beat detection algorithm. Construct the strong beat time series based on the timestamp of each strong beat in the background music; The method further includes: determining the speed multiplier of the motion effect based on the beat speed, and determining the triggering time of the motion effect for each musical segment based on the strong beat time sequence.
[0008] In one exemplary implementation, the step of performing segment analysis on the audio track of the background music to obtain the emotional intensity corresponding to at least two music segments includes: The audio track of the background music is analyzed to obtain at least two music segments and the start and end times of each music segment, and the segment type of each music segment is identified. The emotional intensity of each music segment is determined based on a preset emotional intensity mapping relationship and the segment type of each music segment; the preset emotional intensity mapping relationship includes the correspondence between preset segment types and preset emotional intensities.
[0009] In one exemplary implementation, the motion effect parameters include velocity multiplier and amplitude intensity. Determining the motion effect type and parameters for each segmented text based on the emotion category and emotion intensity of the target music segment corresponding to each segmented text includes: Take any segmented text as the current segmented text, and take the music segment with the same timestamp as the current segmented text as the current music segment; If the current segmented text has a climax emotion category and the current music segment has a first-level emotion intensity, then the animation type corresponding to the current segmented text is determined to be a heartbeat animation, the speed multiplier is the first multiplier, and the amplitude intensity is the first intensity. If the current segmented text has a climax emotion category and the current music segment has a second-level emotion intensity, then the current segmented text is determined to have a bouncing motion effect, a speed multiplier of the second multiplier, and an amplitude intensity of the second intensity. The second-level type is lower than the first-level type, the second multiplier is lower than the first multiplier, and the second intensity is lower than the first intensity.
[0010] In one exemplary embodiment, the method further includes: If the current segmented text has a calm emotion category and the current music segment has a third-level emotion intensity, then the animation type corresponding to the current segmented text is determined to be a breathing animation, the speed multiplier is the third multiplier, and the amplitude intensity is the third intensity; the third-level type is lower than the second-level type, the third multiplier is lower than the second multiplier, and the third intensity is lower than the second intensity. If the current segmented text's emotion category is a transition category, and the current music segment's emotion intensity is the first level type, then the animation type corresponding to the current segmented text is determined to be a fade-in animation, the speed multiplier is the fourth multiplier, and the amplitude intensity is the fourth intensity; the fourth multiplier is greater than the third multiplier and less than the second multiplier, and the fourth intensity is greater than the third intensity and less than the second intensity. If the current segmented text has a narrative emotion category and the current music segment has an emotion intensity of the first level type, the second level type, or the third level type, then the motion effect type corresponding to the current segmented text is determined to be a typing motion effect, the speed multiplier is the fourth multiplier, and the amplitude intensity is zero.
[0011] In one exemplary embodiment, the method further includes: constructing a rhythm package based on the beat speed, the strong beat time sequence, the start and end times corresponding to each musical segment, and the emotional intensity of each musical segment.
[0012] In one exemplary embodiment, the subtitle animation editing page includes a preview area, the rhythm energy timeline includes the filtered segmented text from the subtitles, and the method further includes: Based on the rhythm energy identifier corresponding to each segmented text in the rhythm energy timeline, the display color of each segmented text is determined; the display color deepens as the value corresponding to the rhythm energy identifier increases; The filtered segmented text is highlighted with a prominent marker, and the preview result of the animated caption of the filtered segmented text is displayed in the preview area.
[0013] In one exemplary embodiment, the method further includes: In response to a rhythm pack viewing operation triggered on the target segmented text in the rhythm energy timeline, a rhythm pack selection panel corresponding to the target segmented text is displayed; the rhythm pack selection panel includes the currently filtered rhythm pack, candidate rhythm packs, and the current animated subtitle of the target segmented text; The animation corresponding to the current animated subtitle is generated based on the current filtered rhythm package, and the current filtered rhythm package is generated based on the animation attribute information corresponding to the target word segmentation text.
[0014] In one exemplary embodiment, the method further includes: In response to a filtering operation triggered by the candidate rhythm pack, the current animated subtitle displayed in the rhythm pack selection panel is replaced with an updated animated subtitle that matches the candidate rhythm pack.
[0015] In one exemplary embodiment, the method further includes: In response to a motion effect fine-tuning instruction triggered on the target segmented text in the rhythm energy timeline, the current motion effect subtitle of the target segmented text, at least one motion effect parameter in the current filtered rhythm package, and parameter adjustment controls corresponding to each motion effect parameter are displayed in the motion effect fine-tuning interface. In response to the trigger operation of the parameter adjustment control corresponding to the filter animation parameter, the filter animation parameter is adjusted, and the animation in the current animation subtitle is adjusted according to the adjustment result to obtain the adjusted dynamic subtitle of the target word segmented text.
[0016] In one exemplary embodiment, the motion effect fine-tuning interface also displays a control for binding rhythm points, and the method further includes: In response to the start command triggered by the bound rhythm point control, the moment corresponding to the music strong beat in the target segmented text that is closest to the current time is determined as the start trigger moment of the current animation; In response to the close command triggered by the bound rhythm point control, the time corresponding to the starting text in the target segmented text is determined as the starting trigger time of the current animation.
[0017] In one exemplary embodiment, the motion effect fine-tuning interface also displays a strong beat distribution timeline corresponding to the target segmented text, and the strong beat distribution timeline displays the current time marked with a first marker and the starting trigger time marked with a second marker.
[0018] In one exemplary embodiment, the animation fine-tuning interface also displays a text switching control, and the method further includes: In response to the previous text switching command triggered by the text switching control, the animation fine-tuning interface corresponding to the previous text of the target segmented text in the subtitle is displayed; In response to the next text switching command triggered by the text switching control, the animation fine-tuning interface corresponding to the next segmented text of the target segmented text in the subtitle is displayed.
[0019] In one exemplary embodiment, the method further includes: If a change in the number of characters and / or the sentiment category identifier of the target segmented text is detected, the changed target segmented text is displayed, and a rhythm pack re-matching prompt and rhythm pack update strategy are displayed in a pop-up window; the rhythm pack update strategy is determined based on the changed target segmented text.
[0020] In one exemplary implementation, the pop-up window also displays a confirmation control corresponding to the updated tempo package, and the method further includes: In response to the triggering operation of the confirmation control, the change animation parameters corresponding to the target word segmentation text of the change are determined based on the update rhythm package corresponding to the rhythm package update strategy, and the rhythm energy time axis is adjusted based on the change animation parameters.
[0021] In one exemplary implementation, the pop-up window also displays a rhythm pack rematch preference confirmation control, and the method further includes: In response to the triggering operation of the rhythm pack rematch preference confirmation control, if a new modified word segmentation text is detected, a rhythm pack rematch prompt message matching the new modified word segmentation text is displayed.
[0022] According to a second aspect of the present disclosure, a subtitle animation generation apparatus is provided, comprising: The subtitle timeline display module is configured to display the rhythm energy timeline of the subtitles in the target video and the animation generation control in the subtitle animation editing page. The rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, as well as the emotion category identifier and rhythm energy identifier corresponding to each segmented text. The emotion category identifier corresponding to each segmented text is obtained by semantic analysis of each segmented text. The rhythm energy identifier corresponding to each segmented text is determined based on the emotion intensity of the target music segment corresponding to each segmented text. The target music segment corresponding to each segmented text is the music segment in the background music of the target video that has the same timestamp as each segmented text. The emotion intensity of the target music segment is determined based on the beat intensity corresponding to the target music segment. The target video generation module is configured to generate a target video carrying target animation subtitles in response to a trigger operation of the animation generation control; the target animation corresponding to each segmented text in the target animation subtitles is determined based on the animation attribute information of each segmented text; the animation attribute information of each segmented text is determined based on the emotion category and emotion intensity corresponding to each segmented text.
[0023] In one exemplary embodiment, the apparatus further includes: The word segmentation module is configured to acquire the subtitles of the target video and perform word segmentation on the subtitles to obtain at least two segmented texts; The semantic analysis module is configured to input each segmented text into a large language model, extract sentiment intensity words, punctuation sentiment signals, and text length from each segmented text, perform semantic analysis, and output a sentiment category label for each segmented text; the sentiment category label is used to determine the sentiment category identifier.
[0024] In one exemplary embodiment, the apparatus further includes: The background music acquisition module is configured to acquire the background music of the target video; The strong beat analysis module is configured to perform beat intensity analysis based on the audio track of the background music to obtain a strong beat time series; the strong beat time series includes the timestamp corresponding to each strong beat in the background music; the strong beat is the beat in the audio track whose beat intensity is greater than a preset threshold; The paragraph analysis module is configured to perform paragraph analysis on the audio track of the background music to obtain the emotional intensity corresponding to at least two music paragraphs. The motion effect attribute determination module is configured to determine the motion effect attribute information of each segmented text based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two music segments.
[0025] In one exemplary embodiment, the motion effect attribute determination module includes: The trigger timing determination unit is configured to determine the motion effect trigger timing for each music segment based on the strong beat time sequence; The motion effect parameter determination unit is configured to determine the motion effect type and motion effect parameters for each segmented text based on the emotion category and emotion intensity of the target music segment corresponding to each segmented text. The animation attribute determination unit is configured to determine the animation attribute information of each segmented text based on the animation triggering timing of the target music segment corresponding to each segmented text, the animation type of each segmented text, and the animation parameters.
[0026] In one exemplary implementation, the strong beat analysis module is further configured to perform the following: extracting the tempo and at least one strong beat from the audio track of the background music based on a beat detection algorithm; and constructing the strong beat time series based on the timestamp of each strong beat in the background music. The device further includes a trigger timing determination module, configured to determine the speed multiplier of the motion effect based on the beat speed, and to determine the motion effect trigger timing for each musical segment based on the strong beat time sequence.
[0027] In one exemplary embodiment, the paragraph analysis module includes: The paragraph type identification unit is configured to perform paragraph analysis on the audio track of the background music to obtain at least two music paragraphs and the start and end times of each music paragraph, and to identify the paragraph type of each music paragraph. The emotion intensity determination unit is configured to determine the emotion intensity of each music segment based on a preset emotion intensity mapping relationship and the segment type of each music segment; the preset emotion intensity mapping relationship includes a correspondence between preset segment types and preset emotion intensities.
[0028] In an exemplary embodiment, the motion effect parameters include speed multiplier and amplitude intensity. The motion effect parameter determining unit is configured to take any segmented text as the current segmented text and a music segment with the same timestamp as the current segmented text as the current music segment. If the emotion category of the current segmented text is a climax category and the emotion intensity of the current music segment is a first level type, the motion effect type corresponding to the current segmented text is determined to be a heartbeat motion effect, the speed multiplier is a first multiplier, and the amplitude intensity is a first intensity. If the emotion category of the current segmented text is a climax category and the emotion intensity of the current music segment is a second level type, the motion effect type corresponding to the current segmented text is determined to be a bouncing motion effect, the speed multiplier is a second multiplier, and the amplitude intensity is a second intensity. The second level type is lower than the first level type, the second multiplier is lower than the first multiplier, and the second intensity is lower than the first intensity.
[0029] In one exemplary embodiment, the apparatus further includes: The first determining module is configured to determine the animation type of the current segmented text as breathing animation, the speed multiplier as third multiplier, and the amplitude intensity as third intensity if the current segmented text's emotion category is calm and the current music segment's emotion intensity is third level. The third level is lower than the second level, the third multiplier is lower than the second multiplier, and the third intensity is lower than the second intensity. The second determining module is configured to determine the animation type corresponding to the current segmented text as a fade-in animation, the speed multiplier as a fourth multiplier, and the amplitude intensity as a fourth intensity if the emotion category of the current segmented text is a transition category and the emotion intensity of the current music segment is the first level type; wherein the fourth multiplier is greater than the third multiplier and less than the second multiplier, and the fourth intensity is greater than the third intensity and less than the second intensity. The third determining module is configured to determine the animation type of the current segmented text as typing animation, the speed multiplier as the fourth multiplier, and the amplitude intensity as zero if the emotion category of the current segmented text is narrative and the emotion intensity of the current music segment is the first level type, the second level type, or the third level type.
[0030] In one exemplary embodiment, the apparatus further includes a rhythm pack building module configured to build a rhythm pack based on the beat speed, the strong beat time sequence, the start and end times of each musical segment, and the emotional intensity of each musical segment.
[0031] In one exemplary embodiment, the subtitle animation editing page includes a preview area, the rhythm energy timeline includes filtered segmented text from the subtitles, and the device further includes: The color determination module is configured to determine the display color of each segmented text based on the rhythm energy identifier corresponding to each segmented text in the rhythm energy timeline; the display color deepens as the value corresponding to the rhythm energy identifier increases; The animation preview module is configured to display the filtered word segmented text with prominent markers and to display the animation subtitle preview result of the filtered word segmented text in the preview area.
[0032] In one exemplary embodiment, the apparatus further includes: The panel display module is configured to perform a rhythm pack viewing operation triggered by the target segmented text in the rhythm energy timeline, and display the rhythm pack selection panel corresponding to the target segmented text; the rhythm pack selection panel includes the currently filtered rhythm pack, candidate rhythm packs, and the current animated subtitle of the target segmented text corresponding to the target segmented text; The animation corresponding to the current animated subtitle is generated based on the current filtered rhythm package, and the current filtered rhythm package is generated based on the animation attribute information corresponding to the target word segmentation text.
[0033] In one exemplary embodiment, the apparatus further includes: The replacement module is configured to perform a filtering operation triggered by the candidate rhythm pack, replacing the current animated caption displayed in the rhythm pack selection panel with an updated animated caption that matches the candidate rhythm pack.
[0034] In one exemplary embodiment, the apparatus further includes: The interface display module is configured to execute a motion effect fine-tuning instruction triggered in response to the target segmented text in the rhythm energy timeline, and to display the current motion effect subtitle of the target segmented text, at least one motion effect parameter in the current filtered rhythm package, and parameter adjustment controls corresponding to each motion effect parameter in the motion effect fine-tuning interface. The parameter adjustment module is configured to perform a trigger operation in response to the parameter adjustment control corresponding to the filter animation parameter, adjust the filter animation parameter, and adjust the animation in the current animation subtitle according to the adjustment result to obtain the adjusted dynamic subtitle of the target word segmented text.
[0035] In one exemplary embodiment, the motion effect fine-tuning interface also displays a control for binding rhythm points, and the device further includes: The first moment determination module is configured to execute an activation command triggered by the bound rhythm point control, and determine the moment corresponding to the music strong beat closest to the current time in the target segmented text as the start trigger moment of the current animation. The second moment determination module is configured to execute a close command triggered by the bound rhythm point control, and determine the moment corresponding to the starting text in the target word segmentation text as the starting trigger moment of the current animation.
[0036] In one exemplary embodiment, the motion effect fine-tuning interface also displays a strong beat distribution timeline corresponding to the target segmented text, and the strong beat distribution timeline displays the current time marked with a first marker and the starting trigger time marked with a second marker.
[0037] In one exemplary embodiment, the motion effect fine-tuning interface also displays a text switching control, and the device further includes: The first interface display module is configured to execute a previous text switching instruction triggered by the text switching control, and display the animation fine-tuning interface corresponding to the previous text of the target segmented text in the subtitle; The second interface display module is configured to execute a next-sentence text switching instruction triggered by the text switching control, and display the animation fine-tuning interface corresponding to the next-sentence text of the target segmented text in the subtitle.
[0038] In one exemplary embodiment, the apparatus further includes: The modified text display module is configured to display the modified target word segmentation text and show a rhythm pack rematch prompt and rhythm pack update strategy in a pop-up window when a change in the number of characters and / or the sentiment category identifier of the target word segmentation text is detected. The rhythm pack update strategy is determined based on the modified target word segmentation text.
[0039] In one exemplary embodiment, the pop-up window also displays a confirmation control corresponding to the update rhythm package, and the device further includes: The parameter change determination module is configured to perform a response to the triggering operation of the confirmation control, determine the change animation parameters corresponding to the target word segmentation text of the change based on the update rhythm package corresponding to the rhythm package update strategy, and adjust the rhythm energy time axis based on the change animation parameters.
[0040] In one exemplary embodiment, the pop-up window also displays a rhythm pack rematch preference confirmation control, and the device further includes: The prompt message display module is configured to perform a prompt message in response to the triggering operation of the rhythm pack rematch preference confirmation control. When a new modified word segmentation text is detected, the module displays a rhythm pack rematch prompt message that matches the new modified word segmentation text.
[0041] According to a third aspect of the present disclosure, an electronic device is provided, comprising: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the subtitle animation generation method described above.
[0042] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, which, when the instructions in the computer-readable storage medium are executed by an electronic device processor, enables the electronic device to perform the subtitle animation generation method as described above.
[0043] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the subtitle animation generation method as described above.
[0044] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects: This disclosure displays a rhythm energy timeline and animation generation control for subtitles in a target video on a subtitle animation editing page. The rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, an emotion category identifier corresponding to each segmented text, and a rhythm energy identifier. The emotion category identifier for each segmented text is obtained through semantic analysis, and the rhythm energy identifier is determined based on the emotional intensity of the target music segment corresponding to each segmented text. The target music segment corresponding to each segmented text is a music segment in the background music of the target video that shares the same timestamp as each segmented text. Thus, the emotional intensity of the segmented text is determined based on the background music, and is visually represented through the rhythm energy identifier. The process involves several steps: The emotional intensity of the target music segment is determined based on the beat intensity corresponding to that segment; then, in response to a trigger operation on the motion effect generation control, a target video carrying subtitles with the target motion effect is generated; the target motion effect corresponding to each segmented text in the subtitle is determined based on the motion effect attribute information of each segmented text; wherein, the motion effect attribute information of each segmented text is determined based on the emotional category and emotional intensity corresponding to each segmented text. Since the emotional categories and emotional intensities of different segmented texts differ, the motion effects corresponding to different segmented texts are also different; thus, different motion effects can be generated for different segmented texts in the subtitle, increasing the difference in motion effects between different segmented texts in the subtitle and achieving diversification of subtitle motion effects. Furthermore, since the emotional intensity of the segmented text is determined based on the background music, the linkage between the subtitle motion effects and the background music is achieved, further improving the diversification of subtitle motion effects.
[0045] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0046] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0047] Figure 1 This is an application environment diagram illustrating a subtitle animation generation method according to an exemplary embodiment.
[0048] Figure 2 This is a flowchart illustrating a method for generating subtitle animation effects according to an exemplary embodiment.
[0049] Figure 3 This is a schematic diagram illustrating a subtitle animation editing page and its descriptive text according to an exemplary embodiment.
[0050] Figure 4This is a schematic diagram illustrating a rhythm pack selection panel and its descriptive text according to an exemplary embodiment.
[0051] Figure 5 This is a schematic diagram illustrating a motion effect fine-tuning interface and its descriptive text according to an exemplary embodiment.
[0052] Figure 6 This is a schematic diagram illustrating a rematching prompt card and its descriptive text according to an exemplary embodiment.
[0053] Figure 7 This is a schematic diagram illustrating the principle of a subtitle animation generation method according to an exemplary embodiment.
[0054] Figure 8 This is a block diagram illustrating a subtitle animation generation apparatus according to an exemplary embodiment.
[0055] Figure 9 This is a block diagram illustrating a server according to an exemplary embodiment.
[0056] Figure 10 This is a block diagram illustrating an electronic device for generating subtitle animations according to an exemplary embodiment.
[0057] The reference numerals in the figure are as follows: 11. Rhythm Energy Timeline, 12. Motion Generation Control, 13. Word Segmentation Text, 14. Emotion Category Identifier, 15. Rhythm Energy Identifier, 16. Emotion Category Identifier, 17. Rhythm Pack, 18. Motion Effect Parameters, 19. Application Control, 20. Binding Rhythm Point Control, 21. Confirmation Control, 22. Rhythm Pack Rematch Preference Confirmation Control. Detailed Implementation
[0058] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0059] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0060] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure require user authorization or full authorization from all parties when the embodiments of this disclosure are applied to specific products or technologies. Furthermore, the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0061] Please see Figure 1 The diagram illustrates an application environment for a subtitle animation generation method according to an exemplary embodiment. The application environment may include a server 01 and a client 02.
[0062] Specifically, in the embodiments of this specification, server 01 may include a standalone server, a distributed server, or a server cluster composed of multiple servers. It may also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server 01 may include a network communication unit, a processor, and a memory, etc. Specifically, server 01 can be used to determine the sentiment category identifier and rhythm energy identifier corresponding to each segmented text and send them to client 02.
[0063] Specifically, in this embodiment of the specification, the client 02 may include physical devices such as smartphones, desktop computers, tablets, laptops, digital assistants, smart wearable devices, and in-vehicle terminals, or software running on the physical device, such as web pages provided to users by some service providers, or applications provided to users by these service providers. Specifically, the client 02 can be used to display the rhythm energy timeline of subtitles in the target video and the animation generation control in the subtitle animation editing page; the rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, and the emotion category identifier and rhythm energy identifier corresponding to each segmented text; and in response to the triggering operation of the animation generation control, to generate a target video carrying the target animation subtitles.
[0064] Figure 2 This is a flowchart illustrating a method for generating subtitle animation effects according to an exemplary embodiment, such as... Figure 2 As shown, this method can be applied to Figure 1 The client shown includes the following steps.
[0065] In step S201, the rhythm energy timeline of the subtitles in the target video and the animation generation control are displayed on the subtitle animation editing page. The rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, as well as the emotion category identifier and rhythm energy identifier corresponding to each segmented text. The emotion category identifier corresponding to each segmented text is obtained by semantic analysis of each segmented text. The rhythm energy identifier corresponding to each segmented text is determined based on the emotion intensity of the target music segment corresponding to each segmented text. The target music segment corresponding to each segmented text is the music segment in the background music of the target video that has the same timestamp as each segmented text. The emotion intensity of the target music segment is determined based on the beat intensity corresponding to the target music segment.
[0066] The subtitle animation editing page in this embodiment can be a subpage within the subtitle editing page during video production. This page can display the rhythmic energy timeline of the subtitles in the target video. Due to the limited display area of the page, only a portion of the subtitles in the target video can be displayed. The horizontal axis of this rhythmic energy timeline represents the segmented text of the subtitles arranged chronologically, with each segmented text marked with an emotion category identifier. This emotion category identifier characterizes the emotion category of the segmented text and is obtained through semantic analysis. For example, the emotion category identifier can be a character, color, or other type of identifier; different emotion categories can use different identifiers. For example, emotion categories can include, but are not limited to, climaxes, transitions, calm, and narratives representing musical emotions. The background music of the target video can also be parsed to obtain at least two music segments, and the emotional intensity of each music segment can be determined based on its beat intensity. Then, the segmented text and music segments are matched according to timestamps to determine the emotional intensity corresponding to each segmented text.
[0067] In step S203, in response to the triggering operation of the motion effect generation control, a target video carrying target motion effect subtitles is generated; the target motion effect corresponding to each segmented text in the target motion effect subtitles is determined based on the motion effect attribute information of each segmented text; the motion effect attribute information of each segmented text is determined based on the emotion category and emotion intensity corresponding to each segmented text.
[0068] In this embodiment, a target video with target animated subtitles can be generated by clicking, sliding, or dragging the animation generation control, and the target video with target animated subtitles can be played in response to a video playback command. Specifically, in response to a trigger operation on the animation generation control, the animation attribute information of each segmented text is determined based on the emotion category and emotion intensity corresponding to each segmented text, and animated subtitles corresponding to each segmented text are generated based on these attribute information, thereby generating a complete target animated subtitle based on the animated subtitles corresponding to each segmented text.
[0069] This disclosure displays a rhythm energy timeline and animation generation control for subtitles in a target video on a subtitle animation editing page. The rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, an emotion category identifier corresponding to each segmented text, and a rhythm energy identifier. The emotion category identifier for each segmented text is obtained through semantic analysis, and the rhythm energy identifier is determined based on the emotional intensity of the target music segment corresponding to each segmented text. The target music segment corresponding to each segmented text is a music segment in the background music of the target video that shares the same timestamp as each segmented text. Thus, the emotional intensity of the segmented text is determined based on the background music, and is visually represented through the rhythm energy identifier. The process involves several steps: The emotional intensity of the target music segment is determined based on the beat intensity corresponding to that segment; then, in response to a trigger operation on the motion effect generation control, a target video carrying subtitles with the target motion effect is generated; the target motion effect corresponding to each segmented text in the subtitle is determined based on the motion effect attribute information of each segmented text; wherein, the motion effect attribute information of each segmented text is determined based on the emotional category and emotional intensity corresponding to each segmented text. Since the emotional categories and emotional intensities of different segmented texts differ, the motion effects corresponding to different segmented texts are also different; thus, different motion effects can be generated for different segmented texts in the subtitle, increasing the difference in motion effects between different segmented texts in the subtitle and achieving diversification of subtitle motion effects. Furthermore, since the emotional intensity of the segmented text is determined based on the background music, the linkage between the subtitle motion effects and the background music is achieved, further improving the diversification of subtitle motion effects.
[0070] For example, such as Figure 3 As shown, Figure 3 This refers to a subtitle animation editing page and its descriptive text. Figure 3 Figure a shows a schematic diagram of a subtitle animation editing page. Figure 3 Image b shows the descriptive text of a subtitle animation editing page; for example... Figure 3As shown in Figure a, the rhythm energy timeline 11 and motion effect generation control 12 are displayed. After entering the subtitle motion effect mode, the music track automatically switches to the "rhythm energy" view. The rhythm energy indicator 15 visualizes the distribution of strong / weak beats in a bar chart. Subtitle phrases are aligned and colored according to the rhythm, with the color intensity indicating the energy intensity of the rhythm position. The rhythm energy timeline 11 includes at least two segmented texts 13 distributed along the timeline, as well as the emotion category indicator 14 and rhythm energy indicator 15 corresponding to each segmented text. Figure 3 Image b illustrates the description of the subtitle animation editing page: 1. When entering the subtitle animation editing page, the music track automatically switches to a rhythm energy bar view. High bars = strong beats, low bars = weak beats; color depth indicates energy value (0-100%); 2. The color depth of each subtitle segment (word segmentation text) reflects the rhythm energy corresponding to its starting position. Dark blue = strong beat landing point, light color = weak beat landing point; 3. AI automatically performs semantic classification on each subtitle segment, marked by the color of the small circle in the upper right corner; 4. Highlighting the currently selected word segmentation text (In the most beautiful season): blue highlighted border + subtitle track selection status. The video preview area simultaneously displays the current animation preview (heartbeat rhythm pack, continuous glowing subtitle animation).
[0071] In some embodiments, the method further includes: Obtain the subtitles of the target video, and perform word segmentation on the subtitles to obtain at least two segmented texts; Each segmented text is input into a large language model, and the sentiment intensity words, punctuation sentiment signals, and text length in each segmented text are extracted and semantically analyzed to output the sentiment category label for each segmented text; the sentiment category label is used to determine the sentiment category identifier.
[0072] In the embodiments of this specification, before word segmentation, Automatic Speech Recognition (ASR) technology can be used to extract speech from the target video and convert the speech into initial text. Then, the initial text can be cleaned to remove interjections, repetitions, and noisy characters before semantic word segmentation, thereby obtaining at least two segmented texts. Each segmented text can then be input into a large language model to extract the sentiment intensity words, punctuation sentiment signals, and text length from each segmented text. Semantic analysis is then performed to output the sentiment category label for each segmented text. Semantic analysis can be performed from three dimensions: sentiment intensity words (such as "most beautiful", "fiery", "despair"), punctuation sentiment signals (exclamation mark, ellipsis), and text length, thereby accurately identifying the sentiment category label. For example, short sentences with a text length within the target length (e.g., the length of 6 sentences) can be identified as emphatic sentences. The sentiment category label corresponding to the segmented text with the sentiment intensity word "most beautiful", the punctuation sentiment signal exclamation mark, and the text length less than the target length can be identified as the "climax" of the music. The emotion category label is used to determine the emotion category identifier, thereby accurately determining the emotion category identifier.
[0073] In some embodiments, the method further includes: Obtain the background music from the target video; Based on the audio track of the background music, a beat intensity analysis is performed to obtain a strong beat time series; the strong beat time series includes the timestamp corresponding to each strong beat in the background music; the strong beat is the beat in the audio track whose beat intensity is greater than a preset threshold; The audio track of the background music is analyzed by segment to obtain the emotional intensity corresponding to at least two music segments. Based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two musical segments, determine the motion effect attribute information of each segmented text.
[0074] In the embodiments of this specification, the background music is the background music selected by the user during the video creation process, and it comes from two sources: 1. Background music selected by the user from the music library; 2. Audio files imported by the user from their local device. After the user selects the music, the system can perform offline / online analysis on the audio track to obtain the emotional intensity of each music segment. For example, the system can perform beat intensity analysis on the background music audio track to obtain the beat intensity of each beat, and then determine the beats with a beat intensity greater than a preset threshold as strong beats; for example, the beat intensity can be determined based on the impact energy or frequency mutation of the beat. For example, beats with impact energy significantly higher than the local average (e.g., exceeding a set multiple of the average energy of the window before and after the beat position) can be judged as strong beats; beats with impact energy less than or equal to the local average can also be further divided into secondary strong beats and weak beats; and different intensity levels of beats can be displayed differentiatedly in the subtitle animation editing page. In this embodiment, the timestamps corresponding to each strong beat in the background music can be extracted sequentially to construct a strong beat time series, for example, [0.5s, 1.5s, 2.5s, ...]. The strong beat time series can also be a list of strong beat timestamps, that is, listing the precise time points (timestamps) of each strong beat in the background music in chronological order. The strong beat time series allows us to determine the exact millisecond in which the strong beat occurs.
[0075] The system can perform segment analysis on the background music audio track to identify musical segments such as intro, verse, chorus, interlude, and outro, and further determine the emotional intensity of each musical segment. The segment division is based on the harmonic changes, energy envelope fluctuations, and spectral distribution changes in the audio (such as a significant increase in overall energy and fuller harmonic progressions in the chorus). The strong beat sequence can be used as a time axis reference for segment boundary alignment. Then, based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two musical segments, the system can determine the timing of motion effect triggering, motion effect parameters, and other information, thereby further accurately determining the motion effect attribute information of each segmented text.
[0076] In some embodiments, determining the motion effect attribute information of each segmented text based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two musical segments includes: The timing of motion effect triggering for each music segment is determined based on the strong beat time sequence. Based on the emotion category and intensity of the target music segment corresponding to each segmented text, determine the animation type and animation parameters for each segmented text; Based on the timing of the motion effect trigger for the target music segment corresponding to each segmented text, the motion effect type of each segmented text, and the motion effect parameters, determine the motion effect attribute information of each segmented text.
[0077] In the embodiments of this specification, the timing of motion effect triggering for each music segment can be determined using a strong beat time sequence. The strong beat sequence can serve as a timeline reference for segment boundary alignment (ensuring that the segment is cut on a complete measure). The emotion category of each segmented text can be determined based on the emotion category of the target music segment corresponding to each segmented text. Then, based on the emotion category and emotion intensity corresponding to each segmented text, the motion effect type and motion effect parameters of each segmented text can be accurately determined. Finally, the motion effect triggering timing, motion effect type, and motion effect parameters of each segmented text are determined as the motion effect attribute information of each segmented text, thereby accurately obtaining the multi-dimensional motion effect attribute information of each segmented text.
[0078] In some embodiments, the step of performing beat intensity analysis based on the audio track of the background music to obtain a strong beat time series includes: The beat speed and at least one strong beat are extracted from the audio track of the background music based on a beat detection algorithm. Construct the strong beat time series based on the timestamp of each strong beat in the background music; The method further includes: determining the speed multiplier of the motion effect based on the beat speed, and determining the triggering time of the motion effect for each musical segment based on the strong beat time sequence.
[0079] In the embodiments of this specification, the beat per minute (BPM) and at least one strong beat can be extracted from the audio track of the background music according to the beat detection algorithm; then, the strong beat time sequence can be constructed according to the timestamp of each strong beat in the background music; then, the timing of the motion effect triggering for each music segment can be determined according to the strong beat time sequence, and the BPM can be used to calculate the speed multiplier of the motion effect; then, the speed multiplier of the motion effect and the timing of the motion effect triggering can be combined to further obtain information-rich motion effect attribute information.
[0080] In some embodiments, the step of performing segment analysis on the audio track of the background music to obtain the emotional intensity corresponding to at least two music segments includes: The audio track of the background music is analyzed to obtain at least two music segments and the start and end times of each music segment, and the segment type of each music segment is identified. The emotional intensity of each music segment is determined based on a preset emotional intensity mapping relationship and the segment type of each music segment; the preset emotional intensity mapping relationship includes the correspondence between preset segment types and preset emotional intensities.
[0081] In the embodiments of this specification, the audio track of background music can be structurally segmented, i.e., segment analysis, to identify the segment types of musical segments such as intro, verse, chorus, interlude, and outro. At least two preset segment types can also be pre-acquired, and a preset emotional intensity corresponding to each preset segment type can be determined. Then, based on the correspondence between the preset segment types and preset emotional intensities, a preset emotional intensity mapping relationship can be constructed. For example, the preset segment types may include intro, verse, chorus, interlude, and outro; the preset emotional intensity may include three levels: high intensity, medium intensity, and low intensity. The criteria for classifying emotional intensity can be set according to actual conditions. Therefore, the preset emotional intensity mapping relationship can be: chorus → high intensity; verse → medium intensity; intro, interlude, and outro → low intensity. Then, based on the segment type of each music segment, the preset emotional intensity that matches the segment type of each music segment is found in the preset emotional intensity mapping relationship, so that the emotional intensity of each music segment can be obtained quickly and accurately.
[0082] In some embodiments, the method further includes: constructing a rhythm package based on the beat speed, the strong beat time sequence, the start and end times corresponding to each musical segment, and the emotional intensity of each musical segment.
[0083] In the embodiments of this specification, the rhythm package of each music segment can be quickly constructed based on the tempo extracted from the background music, the strong beat time sequence, the start and end times of each music segment, and the emotional intensity of each music segment. Then, based on the timestamp correspondence between the music segment and the segmented text, the rhythm package corresponding to each segmented text can be quickly determined, and its corresponding rhythm package can be displayed during the display of the segmented text.
[0084] In some embodiments, a first timestamp of each segmented text in the target video and a second timestamp of each music segment in the target video can be obtained; based on the first timestamp and the second timestamp, the emotion category of each segmented text and the emotion intensity of each music segment are time-axis aligned; and then, based on the emotion category of each segmented text and the emotion intensity of the music segment corresponding to the same timestamp as each segmented text, the motion effect attribute information of each segmented text is determined.
[0085] In some embodiments, the motion effect parameters include velocity multiplier and amplitude intensity. Determining the motion effect type and parameters for each segmented text based on the emotion category and emotion intensity of the target music segment corresponding to each segmented text includes: Take any segmented text as the current segmented text, and take the music segment with the same timestamp as the current segmented text as the current music segment; If the current segmented text has a climax emotion category and the current music segment has a first-level emotion intensity, then the animation type corresponding to the current segmented text is determined to be a heartbeat animation, the speed multiplier is the first multiplier, and the amplitude intensity is the first intensity. If the current segmented text has a climax emotion category and the current music segment has a second-level emotion intensity, then the current segmented text is determined to have a bouncing motion effect, a speed multiplier of the second multiplier, and an amplitude intensity of the second intensity. The second-level type is lower than the first-level type, the second multiplier is lower than the first multiplier, and the second intensity is lower than the first intensity.
[0086] In the embodiments of this specification, the motion effect parameters may include speed multiplier and amplitude intensity. The motion effect type of each segmented text can be determined according to the emotion category and emotion intensity of the target music segment corresponding to each segmented text. For the current segmented text with an emotion category of climax and an emotion intensity of the first level type (i.e., the highest level) greater than a preset intensity threshold, the motion effect type corresponding to the current segmented text can be set to heartbeat motion effect, speed multiplier of the first multiplier greater than a preset multiplier threshold, and amplitude intensity of the first intensity greater than a preset amplitude intensity threshold. For the current segmented text with an emotion category of climax and an emotion intensity of the second level type, the motion effect type corresponding to the current segmented text can be set to bouncing motion effect, speed multiplier of the second multiplier less than the first multiplier, and amplitude intensity of the second intensity less than the first intensity. Thus, different motion effect types, speed multipliers, and amplitude intensities can be set for segmented texts with different emotion categories and different emotion intensities, improving the diversity of subtitle motion effect forms.
[0087] In some embodiments, the method further includes: If the current segmented text has a calm emotion category and the current music segment has a third-level emotion intensity, then the animation type corresponding to the current segmented text is determined to be a breathing animation, the speed multiplier is the third multiplier, and the amplitude intensity is the third intensity; the third-level type is lower than the second-level type, the third multiplier is lower than the second multiplier, and the third intensity is lower than the second intensity. If the current segmented text's emotion category is a transition category, and the current music segment's emotion intensity is the first level type, then the animation type corresponding to the current segmented text is determined to be a fade-in animation, the speed multiplier is the fourth multiplier, and the amplitude intensity is the fourth intensity; the fourth multiplier is greater than the third multiplier and less than the second multiplier, and the fourth intensity is greater than the third intensity and less than the second intensity. If the current segmented text has a narrative emotion category and the current music segment has an emotion intensity of the first level type, the second level type, or the third level type, then the motion effect type corresponding to the current segmented text is determined to be a typing motion effect, the speed multiplier is the fourth multiplier, and the amplitude intensity is zero.
[0088] In the embodiments of this specification, for the current segmented text with an emotion category of calm and an emotion intensity of level three, the corresponding animation type can be set to breathing animation, speed multiplier of level three, and amplitude intensity of level three; for the current segmented text with an emotion category of transition and an emotion intensity of level one, the corresponding animation type can be set to fade-in animation, speed multiplier of level four, and amplitude intensity of level four; for the current segmented text with an emotion category of narrative and an emotion intensity of level one, level two, or level three, the corresponding animation type can be set to typing animation, speed multiplier of level four, and amplitude intensity of zero; thus, different animation types, speed multipliers, and amplitude intensities can be set for segmented text with different emotion categories and different emotion intensities, improving the diversity of subtitle animation forms.
[0089] As exemplarily shown in Table 1 below, this embodiment provides a method for determining the animation type and animation parameters of segmented text.
[0090] Table 1
[0091] In some embodiments, the subtitle animation editing page includes a preview area, the rhythm energy timeline includes filtered word segmentation text from the subtitles, and the method further includes: Based on the rhythm energy identifier corresponding to each segmented text in the rhythm energy timeline, the display color of each segmented text is determined; the display color deepens as the value corresponding to the rhythm energy identifier increases; The filtered segmented text is highlighted with a prominent marker, and the preview result of the animated caption of the filtered segmented text is displayed in the preview area.
[0092] In this embodiment of the specification, the subtitle animation editing page also includes a preview area. The rhythm energy timeline includes the filtered segmented text in the subtitle. The display color of each segmented text can be determined according to the value of the rhythm energy identifier corresponding to each segmented text in the rhythm energy timeline. The larger the value of the rhythm energy identifier, the darker the display color of the segmented text. The filtered segmented text can be the currently selected text, and can be displayed with a highlight mark, such as a color mark, character mark, etc. The preview area can then display the animation subtitle preview result of the filtered segmented text, so that the user can preview the animation subtitle preview result of the filtered segmented text in advance to determine whether to adjust the dynamic subtitle effect of the filtered segmented text.
[0093] In some embodiments, the method further includes: In response to a rhythm pack viewing operation triggered on the target segmented text in the rhythm energy timeline, a rhythm pack selection panel corresponding to the target segmented text is displayed; the rhythm pack selection panel includes the currently filtered rhythm pack, candidate rhythm packs, and the current animated subtitle of the target segmented text; The animation corresponding to the current animated subtitle is generated based on the current filtered rhythm package, and the current filtered rhythm package is generated based on the animation attribute information corresponding to the target word segmentation text.
[0094] In the embodiments of this specification, any segmented text displayed in the rhythm energy timeline can be used as the target segmented text. Then, a rhythm pack viewing operation triggered by the target segmented text can be used to display its corresponding rhythm pack selection panel. For example, a user can click on the target segmented text to trigger the rhythm pack viewing operation corresponding to that target segmented text. The rhythm pack selection panel can be displayed as a floating layer on the subtitle animation editing page. This allows users to intuitively view the subtitle animations corresponding to the currently recommended rhythm packs and displays multiple rhythm packs to facilitate user selection of preferred rhythm packs. For example, as shown... Figure 4 As shown, Figure 4 Select a panel and its description text for a rhythm pack. Figure 4 Figure a shows a schematic diagram of a rhythm pack selection panel, which can be accessed by clicking... Figure 3 After the segmented text (subtitle sentence segmentation) in Figure a appears, a pop-up window will appear at the bottom of the page. Figure 4 The “Rhythm Pack Selection” panel is shown in Figure a. The system pre-selects and recommends rhythm pack 17 (currently selected rhythm pack 17) based on the semantic type of the current segmented text “In the most beautiful season”, i.e., the emotion category (climax / calm / transition); different emotion categories correspond to different rhythm packs 17.
[0095] For example, the rhythm pack 17 selection panel displays at least two emotion category identifiers 16 (gentle, energetic, rhythmic, explosive) corresponding to the current segmented text and their corresponding rhythm packs 17. Users can switch emotion category identifiers 16 (emotion tabs) to browse the corresponding rhythm packs 17, and real-time listening is supported. The system can determine the target rhythm pack 17 corresponding to the selected emotion category identifier 16 in response to a filtering command triggered by filtering the emotion category identifier 16. Figure 4 Figure a also shows a motion effect preview control (audio preview), which, in response to a trigger operation on the motion effect preview control, displays the subtitle motion effect of the current word segmented text generated based on the target rhythm pack 17. Figure 4 Figure a also shows a tempo pack application control (applied to all subtitles), which, in response to a trigger operation on the tempo pack application control, sets the target tempo pack as the tempo pack for all subtitles in the target video.
[0096] Figure 4 Image b shows the descriptive text of a rhythm pack selection panel. The system detects the current sentence "In the most beautiful season," which has the semantic meaning of "climax." It automatically filters out rhythm pack 17 with a beat intensity ≥3 and marks "bouncing" as an AI recommendation (because its strong beat pattern best matches the current rhythm energy distribution). Each rhythm pack card embeds a miniature waveform diagram, visually displaying the beat density and intensity pattern of the pack. Users can perceive the differences in rhythm characteristics without listening to it. Rhythm pack 17 is categorized into four emotional types: gentle, energetic, rhythmic, and explosive. Currently, the "energetic" tab is activated, and it is pre-selected in conjunction with the semantic classification results. After selecting a rhythm pack, it can be applied to all subtitles in the entire video with one click. The system automatically remaps the motion effect parameters according to the rhythm energy value of each sentence, eliminating the need for manual adjustment sentence by sentence.
[0097] In some embodiments, the method further includes: In response to a filtering operation triggered by the candidate rhythm pack, the current animated subtitle displayed in the rhythm pack selection panel is replaced with an updated animated subtitle that matches the candidate rhythm pack.
[0098] In the embodiments of this specification, users can also modify the animation effects of the current segmented text using candidate rhythm packs. In response to a filtering operation triggered by a candidate rhythm pack, the user can preview the updated animation subtitles corresponding to the candidate rhythm pack. If there are at least two candidate rhythm packs, either one can be selected as the target rhythm pack, and the current animation subtitles displayed in the rhythm pack selection panel can be replaced with updated animation subtitles matching the target rhythm pack. This facilitates the user's decision on whether to change the rhythm pack and improves the flexibility of rhythm pack replacement.
[0099] In some embodiments, the method further includes: In response to a motion effect fine-tuning instruction triggered on the target segmented text in the rhythm energy timeline, the current motion effect subtitle of the target segmented text, at least one motion effect parameter in the current filtered rhythm package, and parameter adjustment controls corresponding to each motion effect parameter are displayed in the motion effect fine-tuning interface. In response to the trigger operation of the parameter adjustment control corresponding to the filter animation parameter, the filter animation parameter is adjusted, and the animation in the current animation subtitle is adjusted according to the adjustment result to obtain the adjusted dynamic subtitle of the target word segmented text.
[0100] In the embodiments of this specification, a motion effect fine-tuning command can be triggered by long-pressing or performing other types of operations on the target segmented text in the rhythm energy timeline; and a motion effect fine-tuning interface can be displayed. For example, the motion effect fine-tuning interface can be displayed in the form of a pop-up or overlay on the subtitle motion effect editing page, that is, the displayed motion effect fine-tuning interface can cover part of the subtitle motion effect editing page; and the current motion effect subtitle of the target segmented text can be displayed in the motion effect fine-tuning interface, and one or more motion effect parameters in the currently selected rhythm package and the parameter adjustment control corresponding to each motion effect parameter can be displayed; for example, multiple motion effect parameters may include speed multiplier, amplitude intensity, entrance delay, etc.; the value of each motion effect parameter can be adjusted through the parameter adjustment control corresponding to each motion effect parameter, and the dynamic subtitle after parameter adjustment can be previewed simultaneously; thereby improving the convenience and flexibility of adjusting the motion effect parameters of the motion effect subtitle.
[0101] For example, such as Figure 5 As shown, Figure 5 This refers to a dynamic effect fine-tuning interface and its descriptive text. Figure 5 Image a shows a schematic diagram of a motion effect fine-tuning interface, which can be adjusted by long-pressing. Figure 3 Enter after a certain subtitle block in image A Figure 5 The fine-tuning mode shown in Figure a allows for precise adjustment of the animation parameters 18 for a single sentence (such as speed multiplier, amplitude intensity, entrance delay, and fading speed). It also displays the adjusted dynamic subtitles of the target segmented text, facilitating user preview. The animation fine-tuning interface also displays application controls 19. After previewing the subtitle effect, triggering the application controls 19 will apply the adjusted animation parameters as the current animation parameters for the subtitle.
[0102] Figure 5The text in section b describes the animation fine-tuning interface, allowing for precise adjustments to the animation parameters of individual subtitles, overriding the default values of the rhythm pack. Speed multiplier controls the animation playback rhythm, amplitude intensity controls the movement amplitude, and trigger delay adjusts the timing of the animation's early / late trigger. When the "Bind Rhythm Point" switch is enabled, the animation trigger time for the current subtitle sentence will be locked to the most recent strong musical beat, rather than playing according to the subtitle's start time. When disabled, it is entirely controlled by timecode and unaffected by music. For example, the distribution of strong beats within the current sentence's time range can be displayed below the "Bind Rhythm Point" switch; for instance, a white vertical line represents the current moment, and a blue vertical line represents the strong beat node, helping users intuitively determine if the trigger position is reasonable. The right side of the subtitle information card provides a toggle button for previous / next sentences, maintaining the current adjustment mode for efficient sentence-by-sentence processing.
[0103] For example, the motion intensity curve corresponding to the currently selected rhythm package can also be displayed in the motion effect fine-tuning interface. In response to the adjustment command triggered on the curve node, the motion intensity of the curve node can be adjusted. Users can control the motion intensity of different time intervals by dragging the curve node.
[0104] In some embodiments, the motion effect fine-tuning interface also displays a rhythm point binding control, and the method further includes: In response to the start command triggered by the bound rhythm point control, the moment corresponding to the music strong beat in the target segmented text that is closest to the current time is determined as the start trigger moment of the current animation; In response to the close command triggered by the bound rhythm point control, the time corresponding to the starting text in the target segmented text is determined as the starting trigger time of the current animation.
[0105] In the embodiments of this specification, the animation fine-tuning interface also displays a binding rhythm point control. The start command triggered by this control can determine the moment corresponding to the strongest musical beat in the target segmented text that is closest to the current time as the start trigger moment of the current animation effect; thereby setting the start trigger moment of the subtitle animation effect. If the binding rhythm point control triggers a binding rhythm point deactivation command, then the moment corresponding to the start text in the target segmented text is determined as the start trigger moment of the current animation effect; thus, the start trigger timing of the subtitle animation effect can be flexibly adjusted.
[0106] Continue as Figure 5 As shown in Figure a, the animation fine-tuning interface displays the binding rhythm point control 20. In response to the activation command triggered by the binding rhythm point control 20, the moment corresponding to the music strong beat in the target segmented text that is closest to the current time is determined as the start trigger moment of the current animation.
[0107] In some embodiments, the motion effect fine-tuning interface also displays a strong beat distribution timeline corresponding to the target word segmentation text, and the strong beat distribution timeline displays the current time marked with a first marker and the starting trigger time marked with a second marker.
[0108] In the embodiments of this specification, a strong beat distribution timeline within a preset time range corresponding to the target segmented text can also be displayed in the animation fine-tuning interface. This strong beat distribution timeline includes at least two strong beats displayed in chronological order. The horizontal axis of the timeline represents time, and the vertical axis represents the strong beat. The current time and forced nodes corresponding to the target segmented text can also be distinguishably marked in the timeline. For example, a white vertical line can be used to mark the current time, and a blue vertical line can be used to mark the starting trigger time (strong beat node). This makes it easier for users to intuitively judge whether the determined starting trigger time is reasonable.
[0109] For example, in response to a triggering operation that drags the selected text to the vicinity of the target strong beat in any time point of the strong beat distribution timeline, the starting triggering time of the animation corresponding to the selected text can be determined as the time corresponding to the target strong beat.
[0110] In some embodiments, the animation fine-tuning interface also displays a text switching control, and the method further includes: In response to the previous text switching command triggered by the text switching control, the animation fine-tuning interface corresponding to the previous text of the target segmented text in the subtitle is displayed; In response to the next text switching command triggered by the text switching control, the animation fine-tuning interface corresponding to the next segmented text of the target segmented text in the subtitle is displayed.
[0111] In the embodiments of this specification, a text switching control can also be displayed in the animation fine-tuning interface. This text switching control can be used to trigger a previous text switching command or a next text switching command; thereby displaying the animation fine-tuning interface corresponding to the previous or next segmented text of the target segmented text in the subtitle. For example, the text switching control may include a previous text switching control and a next text switching control. By triggering the previous text switching control, one can directly switch to the animation fine-tuning interface corresponding to the previous segmented text, or by using the next text switching control, one can directly switch to the animation fine-tuning interface corresponding to the next segmented text; thereby facilitating quick switching to the adjacent text of the target segmented text and facilitating animation fine-tuning of the adjacent text.
[0112] In some embodiments, the method further includes: If a change in the number of characters and / or the sentiment category identifier of the target segmented text is detected, the changed target segmented text is displayed, and a rhythm pack re-matching prompt and rhythm pack update strategy are displayed in a pop-up window; the rhythm pack update strategy is determined based on the changed target segmented text.
[0113] In the embodiments of this specification, during the rhythm pack recommendation process, it is also possible to detect whether the number of characters or the sentiment category identifier of the target segmented text has changed. If either of them changes, the rhythm pack can be re-determined based on the changed target segmented text. For example, a rematch prompt card can be displayed in a pop-up window, and the rhythm pack rematch prompt card can display rhythm pack rematch prompt information and rhythm pack update strategy. The rhythm pack update strategy can include the rhythm pack type before and after the change, thereby realizing intelligent change of recommended rhythm packs according to the changed target segmented text.
[0114] For example, a user modifies a subtitle text → the system detects the change → reclassifies the sentence semantically (emotion category) → if the semantic label changes (e.g., "climax" → "lyrical") or the number of words changes, causing the sentence length to jump (e.g., 5 words → 7 words, affecting the animation duration matching level) → the system re-executes the determination of animation attribute information based on emotion category and emotion intensity → obtains new animation recommendation parameters (rhythm pack type + speed / amplitude) → a rematch prompt card pops up.
[0115] For example, such as Figure 6 As shown, Figure 6 This refers to a rematching prompt card and its description text. Figure 6 Figure a shows a schematic diagram of a rematching prompt card, which displays the subtitle change information: "In the most beautiful season" has been changed to "When spring is in full bloom"; it also shows the change information of the emotion category identifier and the change information of the rhythm pack type. Figure 6 Figure b shows the descriptive text of a rematching prompt card; it illustrates the change detection strategy, the AI-suggested rhythm pack generation strategy, the original motion effect-intelligent rematching filtering strategy, and the memory preference prompting strategy.
[0116] In the embodiments of this specification, when a change in the number of characters in the target segmented text is detected, if the change is not a typo correction change, the changed target segmented text is displayed, and a rhythm pack re-matching prompt and an updated rhythm pack are shown in a pop-up window. If the change is a typo correction change, no change to the rhythm pack is required; if both the number of characters and the emotion category identifier of the target segmented text change, the animation duration level of the changed target segmented text can be determined based on the changed number of characters, and the changed rhythm pack category identifier can be determined based on the changed emotion category identifier.
[0117] In this embodiment, a rhythm pack category identifier corresponding to the rhythm pack can be set, and the correspondence between the rhythm pack category identifier and the sentiment category identifier of the segmented text can be preset, and an identifier mapping relationship library can be constructed. One rhythm pack category identifier can correspond to one or more sentiment category identifiers. When the sentiment category identifier changes, the changed rhythm pack category identifier corresponding to the changed sentiment category identifier can be queried according to the identifier mapping relationship library, thereby realizing the rapid recommendation of changed rhythm packs.
[0118] In some embodiments, the pop-up window also displays a confirmation control corresponding to the updated tempo package, and the method further includes: In response to the triggering operation of the confirmation control, the change animation parameters corresponding to the target word segmentation text of the change are determined based on the update rhythm package corresponding to the rhythm package update strategy, and the rhythm energy time axis is adjusted based on the change animation parameters.
[0119] In the embodiments of this specification, by triggering an operation command through a confirmation control, the pop-up window is closed and the subtitle animation editing page is displayed. This confirms the change in animation parameters corresponding to the updated rhythm pack and displays the rhythm energy timeline corresponding to the changed animation parameters on the subtitle animation editing page. This achieves the adjustment of the rhythm energy timeline and rhythm pack based on the changed subtitles, thereby improving the matching degree between the rhythm pack and the segmented text in the subtitles.
[0120] Continue as Figure 6 As shown in Figure a, the confirmation control 21 "Smart Rematch" is displayed. By clicking the confirmation control 21, the update rhythm package corresponding to the rhythm package update strategy can be determined, and the change animation parameters corresponding to the target segmented text can be further determined. The rhythm energy timeline can be adjusted according to the change animation parameters, and the changed rhythm energy timeline can be displayed in the subtitle animation editing page.
[0121] In some embodiments, the pop-up window also displays a rhythm pack rematch preference confirmation control, and the method further includes: In response to the triggering operation of the rhythm pack rematch preference confirmation control, if a new modified word segmentation text is detected, a rhythm pack rematch prompt message matching the new modified word segmentation text is displayed.
[0122] In the embodiments of this specification, by triggering the rhythm pack rematch preference confirmation control displayed in the pop-up window, the rematch preference can be saved. When a new modified word segmentation text is detected again, a rhythm pack rematch prompt matching the new modified word segmentation text can be displayed again in the pop-up window. In other words, the display of the rhythm pack rematch prompt matching the new modified word segmentation text can be automatically triggered. For example, an animation retention control (e.g., retain the original animation) can also be displayed in the pop-up window. Triggering this animation retention control will retain the animation before the target word segmentation text change; and when a new modified word segmentation text is detected again, the rhythm pack rematch prompt matching the new modified word segmentation text will not be displayed again, thus preserving the user's original animation retention preference and avoiding disturbance to the user.
[0123] Continue as Figure 6 As shown in Figure a, the rhythm pack rematch preference confirmation control 22 is displayed (it always automatically prompts for rematch after content changes). After checking it, the system remembers the user's preference and will actively prompt the user every time the subtitles are changed, without the need for the user to manually trigger it.
[0124] For example, such as Figure 7 As shown, Figure 7 This is a schematic diagram illustrating the principle of a subtitle animation generation method, including: 1. Users access the dynamic caption function; 2. Execute dual-link processing logic. Link A: Obtain the subtitles of the target video and perform word segmentation on the subtitles to obtain at least two segmented texts; input each segmented text into a large language model, extract the sentiment intensity words, punctuation sentiment signals and text length in each segmented text, perform semantic analysis, and output the sentiment category label (i.e., semantic label) of each segmented text. Link B: Obtain the background music of the target video; perform beat intensity analysis based on the audio track of the background music to obtain a strong beat time series; the strong beat time series includes the timestamp corresponding to each strong beat in the background music; the strong beat is the beat in the audio track whose beat intensity is greater than a preset threshold; perform segment analysis on the audio track of the background music to obtain the emotional intensity (segment type + emotional intensity) corresponding to at least two music segments; determine the rhythm packet of each segmented text according to the strong beat time series and the emotional intensity corresponding to the at least two music segments. 3. Determine the motion effect attribute information of each segmented text based on the emotion category label and rhythm package of each segmented text.
[0125] 4. Based on the animation attribute information of each segmented text, set independent animation effects for each segmented text (each subtitle); In response to a rhythm pack viewing operation triggered on the target segmented text in the rhythm energy timeline, a rhythm pack selection panel corresponding to the target segmented text is displayed; the rhythm pack selection panel includes the currently filtered rhythm pack, candidate rhythm packs, and the current animated subtitle of the target segmented text; In response to a filtering operation triggered by the candidate rhythm pack, the current animated subtitle displayed in the rhythm pack selection panel is replaced with an updated animated subtitle that matches the candidate rhythm pack; 5. In response to a motion effect fine-tuning instruction (e.g., a long press operation) triggered on the target segmented text in the rhythm energy timeline, the current motion effect subtitle of the target segmented text, at least one motion effect parameter in the current filtered rhythm package, and parameter adjustment controls corresponding to each motion effect parameter are displayed in the motion effect fine-tuning interface; for example, the motion effect parameters may include speed multiplier, amplitude intensity, entry delay, etc. In response to the trigger operation of the parameter adjustment control corresponding to the filter animation parameter, the filter animation parameter is adjusted, and the animation in the current animation subtitle is adjusted according to the adjustment result to obtain the adjusted dynamic subtitle of the target word segmented text.
[0126] The animation fine-tuning interface also displays a bound rhythm point control. In response to the start command triggered by the bound rhythm point control, the time corresponding to the music strong beat in the target segmented text that is closest to the current time is determined as the start trigger time of the current animation. In response to the stop command triggered by the bound rhythm point control, the time corresponding to the start text in the target segmented text is determined as the start trigger time of the current animation.
[0127] 6. If a change is detected in the number of characters and / or the emotion category identifier of the target segmented text (modification of subtitle text), the changed target segmented text is displayed, and a rhythm pack rematch prompt and rhythm pack update strategy are displayed in a pop-up window to perform automatic rhythm pack rematch; the rhythm pack update strategy is determined based on the changed target segmented text.
[0128] Figure 8 This is a block diagram illustrating a subtitle animation generation apparatus according to an exemplary embodiment. (Refer to...) Figure 8 The device includes: The subtitle timeline display module 810 is configured to display the rhythm energy timeline of the subtitles in the target video and the animation generation control in the subtitle animation editing page; the rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, and the emotion category identifier and rhythm energy identifier corresponding to each segmented text; the emotion category identifier corresponding to each segmented text is obtained by semantic analysis of each segmented text, and the rhythm energy identifier corresponding to each segmented text is determined based on the emotion intensity of the target music segment corresponding to each segmented text, and the target music segment corresponding to each segmented text is the music segment in the background music of the target video that has the same timestamp as each segmented text; the emotion intensity of the target music segment is determined based on the beat intensity corresponding to the target music segment; The target video generation module 820 is configured to perform a target video carrying target animation subtitles in response to a trigger operation of the animation generation control; the target animation corresponding to each segmented text in the target animation subtitles is determined based on the animation attribute information of each segmented text; the animation attribute information of each segmented text is determined based on the emotion category and emotion intensity corresponding to each segmented text.
[0129] The subtitle timeline display module is configured to display the rhythm energy timeline of the subtitles in the target video and the animation generation control in the subtitle animation editing page. The rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, as well as the emotion category identifier and rhythm energy identifier corresponding to each segmented text. The emotion category identifier corresponding to each segmented text is obtained by semantic analysis of each segmented text. The rhythm energy identifier corresponding to each segmented text is determined based on the emotion intensity of the target music segment corresponding to each segmented text. The target music segment corresponding to each segmented text is the music segment in the background music of the target video that has the same timestamp as each segmented text. The emotion intensity of the target music segment is determined based on the beat intensity corresponding to the target music segment. The target video generation module is configured to generate a target video carrying target animation subtitles in response to a trigger operation of the animation generation control; the target animation corresponding to each segmented text in the target animation subtitles is determined based on the animation attribute information of each segmented text; the animation attribute information of each segmented text is determined based on the emotion category and emotion intensity corresponding to each segmented text.
[0130] In one exemplary embodiment, the apparatus further includes: The word segmentation module is configured to acquire the subtitles of the target video and perform word segmentation on the subtitles to obtain at least two segmented texts; The semantic analysis module is configured to input each segmented text into a large language model, extract sentiment intensity words, punctuation sentiment signals, and text length from each segmented text, perform semantic analysis, and output a sentiment category label for each segmented text; the sentiment category label is used to determine the sentiment category identifier.
[0131] In one exemplary embodiment, the apparatus further includes: The background music acquisition module is configured to acquire the background music of the target video; The strong beat analysis module is configured to perform beat intensity analysis based on the audio track of the background music to obtain a strong beat time series; the strong beat time series includes the timestamp corresponding to each strong beat in the background music; the strong beat is the beat in the audio track whose beat intensity is greater than a preset threshold; The paragraph analysis module is configured to perform paragraph analysis on the audio track of the background music to obtain the emotional intensity corresponding to at least two music paragraphs. The motion effect attribute determination module is configured to determine the motion effect attribute information of each segmented text based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two music segments.
[0132] In one exemplary embodiment, the motion effect attribute determination module includes: The trigger timing determination unit is configured to determine the motion effect trigger timing for each music segment based on the strong beat time sequence; The motion effect parameter determination unit is configured to determine the motion effect type and motion effect parameters for each segmented text based on the emotion category and emotion intensity of the target music segment corresponding to each segmented text. The animation attribute determination unit is configured to determine the animation attribute information of each segmented text based on the animation triggering timing of the target music segment corresponding to each segmented text, the animation type of each segmented text, and the animation parameters.
[0133] In one exemplary implementation, the strong beat analysis module is further configured to perform the following: extracting the tempo and at least one strong beat from the audio track of the background music based on a beat detection algorithm; and constructing the strong beat time series based on the timestamp of each strong beat in the background music. The device further includes a trigger timing determination module, configured to determine the speed multiplier of the motion effect based on the beat speed, and to determine the motion effect trigger timing for each musical segment based on the strong beat time sequence.
[0134] In one exemplary embodiment, the paragraph analysis module includes: The paragraph type identification unit is configured to perform paragraph analysis on the audio track of the background music to obtain at least two music paragraphs and the start and end times of each music paragraph, and to identify the paragraph type of each music paragraph. The emotion intensity determination unit is configured to determine the emotion intensity of each music segment based on a preset emotion intensity mapping relationship and the segment type of each music segment; the preset emotion intensity mapping relationship includes a correspondence between preset segment types and preset emotion intensities.
[0135] In an exemplary embodiment, the motion effect parameters include speed multiplier and amplitude intensity. The motion effect parameter determining unit is configured to take any segmented text as the current segmented text and a music segment with the same timestamp as the current segmented text as the current music segment. If the emotion category of the current segmented text is a climax category and the emotion intensity of the current music segment is a first level type, the motion effect type corresponding to the current segmented text is determined to be a heartbeat motion effect, the speed multiplier is a first multiplier, and the amplitude intensity is a first intensity. If the emotion category of the current segmented text is a climax category and the emotion intensity of the current music segment is a second level type, the motion effect type corresponding to the current segmented text is determined to be a bouncing motion effect, the speed multiplier is a second multiplier, and the amplitude intensity is a second intensity. The second level type is lower than the first level type, the second multiplier is lower than the first multiplier, and the second intensity is lower than the first intensity.
[0136] In one exemplary embodiment, the apparatus further includes: The first determining module is configured to determine the animation type of the current segmented text as breathing animation, the speed multiplier as third multiplier, and the amplitude intensity as third intensity if the current segmented text's emotion category is calm and the current music segment's emotion intensity is third level. The third level is lower than the second level, the third multiplier is lower than the second multiplier, and the third intensity is lower than the second intensity. The second determining module is configured to determine the animation type corresponding to the current segmented text as a fade-in animation, the speed multiplier as a fourth multiplier, and the amplitude intensity as a fourth intensity if the emotion category of the current segmented text is a transition category and the emotion intensity of the current music segment is the first level type; wherein the fourth multiplier is greater than the third multiplier and less than the second multiplier, and the fourth intensity is greater than the third intensity and less than the second intensity. The third determining module is configured to determine the animation type of the current segmented text as typing animation, the speed multiplier as the fourth multiplier, and the amplitude intensity as zero if the emotion category of the current segmented text is narrative and the emotion intensity of the current music segment is the first level type, the second level type, or the third level type.
[0137] In one exemplary embodiment, the apparatus further includes a rhythm pack building module configured to build a rhythm pack based on the beat speed, the strong beat time sequence, the start and end times of each musical segment, and the emotional intensity of each musical segment.
[0138] In one exemplary embodiment, the subtitle animation editing page includes a preview area, the rhythm energy timeline includes filtered segmented text from the subtitles, and the device further includes: The color determination module is configured to determine the display color of each segmented text based on the rhythm energy identifier corresponding to each segmented text in the rhythm energy timeline; the display color deepens as the value corresponding to the rhythm energy identifier increases; The animation preview module is configured to display the filtered word segmented text with prominent markers and to display the animation subtitle preview result of the filtered word segmented text in the preview area.
[0139] In one exemplary embodiment, the apparatus further includes: The panel display module is configured to perform a rhythm pack viewing operation triggered by the target segmented text in the rhythm energy timeline, and display the rhythm pack selection panel corresponding to the target segmented text; the rhythm pack selection panel includes the currently filtered rhythm pack, candidate rhythm packs, and the current animated subtitle of the target segmented text corresponding to the target segmented text; The animation corresponding to the current animated subtitle is generated based on the current filtered rhythm package, and the current filtered rhythm package is generated based on the animation attribute information corresponding to the target word segmentation text.
[0140] In one exemplary embodiment, the apparatus further includes: The replacement module is configured to perform a filtering operation triggered by the candidate rhythm pack, replacing the current animated caption displayed in the rhythm pack selection panel with an updated animated caption that matches the candidate rhythm pack.
[0141] In one exemplary embodiment, the apparatus further includes: The interface display module is configured to execute a motion effect fine-tuning instruction triggered in response to the target segmented text in the rhythm energy timeline, and to display the current motion effect subtitle of the target segmented text, at least one motion effect parameter in the current filtered rhythm package, and parameter adjustment controls corresponding to each motion effect parameter in the motion effect fine-tuning interface. The parameter adjustment module is configured to perform a trigger operation in response to the parameter adjustment control corresponding to the filter animation parameter, adjust the filter animation parameter, and adjust the animation in the current animation subtitle according to the adjustment result to obtain the adjusted dynamic subtitle of the target word segmented text.
[0142] In one exemplary embodiment, the motion effect fine-tuning interface also displays a control for binding rhythm points, and the device further includes: The first moment determination module is configured to execute an activation command triggered by the bound rhythm point control, and determine the moment corresponding to the music strong beat closest to the current time in the target segmented text as the start trigger moment of the current animation. The second moment determination module is configured to execute a close command triggered by the bound rhythm point control, and determine the moment corresponding to the starting text in the target word segmentation text as the starting trigger moment of the current animation.
[0143] In one exemplary embodiment, the motion effect fine-tuning interface also displays a strong beat distribution timeline corresponding to the target segmented text, and the strong beat distribution timeline displays the current time marked with a first marker and the starting trigger time marked with a second marker.
[0144] In one exemplary embodiment, the motion effect fine-tuning interface also displays a text switching control, and the device further includes: The first interface display module is configured to execute a previous text switching instruction triggered by the text switching control, and display the animation fine-tuning interface corresponding to the previous text of the target segmented text in the subtitle; The second interface display module is configured to execute a next-sentence text switching instruction triggered by the text switching control, and display the animation fine-tuning interface corresponding to the next-sentence text of the target segmented text in the subtitle.
[0145] In one exemplary embodiment, the apparatus further includes: The modified text display module is configured to display the modified target word segmentation text and show a rhythm pack rematch prompt and rhythm pack update strategy in a pop-up window when a change in the number of characters and / or the sentiment category identifier of the target word segmentation text is detected. The rhythm pack update strategy is determined based on the modified target word segmentation text.
[0146] In one exemplary embodiment, the pop-up window also displays a confirmation control corresponding to the update rhythm package, and the device further includes: The parameter change determination module is configured to perform a response to the triggering operation of the confirmation control, determine the change animation parameters corresponding to the target word segmentation text of the change based on the update rhythm package corresponding to the rhythm package update strategy, and adjust the rhythm energy time axis based on the change animation parameters.
[0147] In one exemplary embodiment, the pop-up window also displays a rhythm pack rematch preference confirmation control, and the device further includes: The prompt message display module is configured to perform a prompt message in response to the triggering operation of the rhythm pack rematch preference confirmation control. When a new modified word segmentation text is detected, the module displays a rhythm pack rematch prompt message that matches the new modified word segmentation text.
[0148] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0149] In one exemplary embodiment, an electronic device is also provided, including a processor; a memory for storing processor-executable instructions; wherein, when the processor is configured to execute the instructions stored in the memory, it implements the subtitle animation generation method provided in any of the above embodiments.
[0150] The electronic device can be a terminal, a server, or a similar computing device. Taking a server as an example... Figure 9 This is a block diagram of a server according to an exemplary embodiment, such as... Figure 9As shown, the server 900 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 910 (CPUs 910 may include, but are not limited to, microprocessors such as MCUs or programmable logic devices such as FPGAs), a memory 930 for storing data, and one or more storage media 920 (e.g., one or more mass storage devices) for storing application programs 923 or data 922. The memory 930 and storage media 920 may be temporary or persistent storage. The program stored in the storage media 920 may include one or more modules, each module may include a series of instruction operations on the server. Furthermore, the CPU 910 may be configured to communicate with the storage media 920 and execute the series of instruction operations stored in the storage media 920 on the server 900. Server 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input / output interfaces 940, and / or one or more operating systems 921, such as Windows Server™, Mac OSX™, Unix™, Linux™, FreeBSD™, etc.
[0151] The input / output interface 940 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of server 900. In one example, the input / output interface 940 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 940 may be a radio frequency (RF) module used for wireless communication with the Internet.
[0152] Those skilled in the art will understand that Figure 9 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, server 900 may also include... Figure 9 The more or fewer components shown, or having the same Figure 9 The different configurations shown.
[0153] In one exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 930 including instructions, which can be executed by a processor of server 900 to perform the above-described method. Optionally, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0154] In one exemplary embodiment, a computer program product is also provided, including a computer program that, when executed by a processor, implements the subtitle animation generation method provided in any of the above embodiments.
[0155] Figure 10 This is a block diagram illustrating an electronic device for generating subtitle animation effects according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 10 As shown, the electronic device includes a processor, memory, network interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for generating subtitle animation effects. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the device's casing, or an external keyboard, touchpad, or mouse. Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the electronic device to which the present disclosure is applied. A specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0156] This disclosure displays a rhythm energy timeline and animation generation control for subtitles in a target video on a subtitle animation editing page. The rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, an emotion category identifier corresponding to each segmented text, and a rhythm energy identifier. The emotion category identifier for each segmented text is obtained through semantic analysis, and the rhythm energy identifier is determined based on the emotional intensity of the target music segment corresponding to each segmented text. The target music segment corresponding to each segmented text is a music segment in the background music of the target video that shares the same timestamp as each segmented text. Thus, the emotional intensity of the segmented text is determined based on the background music, and is visually represented through the rhythm energy identifier. The process involves several steps: The emotional intensity of the target music segment is determined based on the beat intensity corresponding to that segment; then, in response to a trigger operation on the motion effect generation control, a target video carrying subtitles with the target motion effect is generated; the target motion effect corresponding to each segmented text in the subtitle is determined based on the motion effect attribute information of each segmented text; wherein, the motion effect attribute information of each segmented text is determined based on the emotional category and emotional intensity corresponding to each segmented text. Since the emotional categories and emotional intensities of different segmented texts differ, the motion effects corresponding to different segmented texts are also different; thus, different motion effects can be generated for different segmented texts in the subtitle, increasing the difference in motion effects between different segmented texts in the subtitle and achieving diversification of subtitle motion effects. Furthermore, since the emotional intensity of the segmented text is determined based on the background music, the linkage between the subtitle motion effects and the background music is achieved, further improving the diversification of subtitle motion effects.
[0157] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0158] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0159] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for generating subtitle animation effects, characterized in that, include: The subtitle animation editing page displays the rhythm energy timeline of the subtitles in the target video, as well as the animation generation controls. The rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, as well as an emotion category identifier and a rhythm energy identifier corresponding to each segmented text. The emotion category identifier corresponding to each segmented text is obtained by semantic analysis of each segmented text. The rhythm energy identifier corresponding to each segmented text is determined based on the emotional intensity of the target music segment corresponding to each segmented text. The target music segment corresponding to each segmented text is the music segment in the background music of the target video that has the same timestamp as each segmented text. The emotional intensity of the target music segment is determined based on the beat intensity corresponding to the target music segment. In response to a trigger operation on the motion effect generation control, a target video carrying target motion effect subtitles is generated; The target animation effect corresponding to each segmented text in the target animation subtitle is determined based on the animation effect attribute information of each segmented text; the animation effect attribute information of each segmented text is determined based on the emotion category and emotion intensity corresponding to each segmented text.
2. The method according to claim 1, characterized in that, The method further includes: Obtain the subtitles of the target video, and perform word segmentation on the subtitles to obtain at least two segmented texts; Each segmented text is input into a large language model, and the sentiment intensity words, punctuation sentiment signals, and text length in each segmented text are extracted and semantically analyzed to output the sentiment category label for each segmented text; the sentiment category label is used to determine the sentiment category identifier.
3. The method according to claim 1 or 2, characterized in that, The method further includes: Obtain the background music from the target video; Based on the audio track of the background music, a beat intensity analysis is performed to obtain a strong beat time series; the strong beat time series includes the timestamp corresponding to each strong beat in the background music; the strong beat is the beat in the audio track whose beat intensity is greater than a preset threshold; The audio track of the background music is analyzed by segment to obtain the emotional intensity corresponding to at least two music segments. Based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two musical segments, determine the motion effect attribute information of each segmented text.
4. The method according to claim 3, characterized in that, The step of determining the motion effect attribute information of each segmented text based on the strong beat time sequence and the emotional intensity corresponding to each of the at least two musical segments includes: The timing of motion effect triggering for each music segment is determined based on the strong beat time sequence; Based on the emotion category and intensity of the target music segment corresponding to each segmented text, determine the animation type and animation parameters for each segmented text; Based on the timing of the motion effect triggering for the target music segment corresponding to each segmented text, the motion effect type of each segmented text, and the motion effect parameters, determine the motion effect attribute information of each segmented text.
5. The method according to claim 3, characterized in that, The audio track based on the background music is used to perform beat intensity analysis to obtain a strong beat time series, including: The beat speed and at least one strong beat are extracted from the audio track of the background music based on a beat detection algorithm. Construct the strong beat time series based on the timestamp of each strong beat in the background music; The method further includes: determining the speed multiplier of the motion effect based on the beat speed, and determining the triggering time of the motion effect for each musical segment based on the strong beat time sequence.
6. The method according to claim 3, characterized in that, The process of performing segment analysis on the audio track of the background music to obtain the emotional intensity corresponding to at least two music segments includes: The audio track of the background music is analyzed to obtain at least two music segments and the start and end times of each music segment, and the segment type of each music segment is identified. The emotional intensity of each music segment is determined based on a preset emotional intensity mapping relationship and the segment type of each music segment; the preset emotional intensity mapping relationship includes the correspondence between preset segment types and preset emotional intensities.
7. The method according to claim 4, characterized in that, The motion effect parameters include speed multiplier and amplitude intensity. The process of determining the motion effect type and parameters for each segmented text based on the emotion category and intensity of the target music segment corresponding to each segmented text includes: Take any segmented text as the current segmented text, and take the music segment with the same timestamp as the current segmented text as the current music segment; If the current segmented text has a climax emotion category and the current music segment has a first-level emotion intensity, then the animation type corresponding to the current segmented text is determined to be a heartbeat animation, the speed multiplier is the first multiplier, and the amplitude intensity is the first intensity. If the current segmented text has a climax emotion category and the current music segment has a second-level emotion intensity, then the current segmented text is determined to have a bouncing motion effect, a speed multiplier of the second multiplier, and an amplitude intensity of the second intensity. The second-level type is lower than the first-level type, the second multiplier is lower than the first multiplier, and the second intensity is lower than the first intensity.
8. The method according to claim 7, characterized in that, The method further includes: If the current segmented text has a calm emotion category and the current music segment has a third-level emotion intensity, then the animation type corresponding to the current segmented text is determined to be a breathing animation, the speed multiplier is the third multiplier, and the amplitude intensity is the third intensity; the third-level type is lower than the second-level type, the third multiplier is lower than the second multiplier, and the third intensity is lower than the second intensity. If the current segmented text's emotion category is a transition category, and the current music segment's emotion intensity is the first level type, then the animation type corresponding to the current segmented text is determined to be a fade-in animation, the speed multiplier is the fourth multiplier, and the amplitude intensity is the fourth intensity; the fourth multiplier is greater than the third multiplier and less than the second multiplier, and the fourth intensity is greater than the third intensity and less than the second intensity. If the current segmented text has a narrative emotion category and the current music segment has an emotion intensity of the first level type, the second level type, or the third level type, then the motion effect type corresponding to the current segmented text is determined to be a typing motion effect, the speed multiplier is the fourth multiplier, and the amplitude intensity is zero.
9. The method according to claim 6, characterized in that, The method further includes: constructing a rhythm package based on the beat speed, the strong beat time sequence, the start and end times of each musical segment, and the emotional intensity of each musical segment.
10. The method according to claim 1, characterized in that, The subtitle animation editing page includes a preview area, the rhythm energy timeline includes the filtered word segmentation text in the subtitles, and the method further includes: Based on the rhythm energy identifier corresponding to each segmented text in the rhythm energy timeline, the display color of each segmented text is determined; the display color deepens as the value corresponding to the rhythm energy identifier increases; The filtered segmented text is highlighted with a prominent marker, and the preview result of the animated caption of the filtered segmented text is displayed in the preview area.
11. The method according to claim 10, characterized in that, The method further includes: In response to a rhythm pack viewing operation triggered on the target segmented text in the rhythm energy timeline, a rhythm pack selection panel corresponding to the target segmented text is displayed; the rhythm pack selection panel includes the currently filtered rhythm pack, candidate rhythm packs, and the current animated subtitle of the target segmented text; The animation corresponding to the current animated subtitle is generated based on the current filtered rhythm package, and the current filtered rhythm package is generated based on the animation attribute information corresponding to the target word segmentation text.
12. The method according to claim 11, characterized in that, The method further includes: In response to a filtering operation triggered by the candidate rhythm pack, the current animated subtitle displayed in the rhythm pack selection panel is replaced with an updated animated subtitle that matches the candidate rhythm pack.
13. The method according to claim 11, characterized in that, The method further includes: In response to a motion effect fine-tuning instruction triggered on the target segmented text in the rhythm energy timeline, the current motion effect subtitle of the target segmented text, at least one motion effect parameter in the current filtered rhythm package, and parameter adjustment controls corresponding to each motion effect parameter are displayed in the motion effect fine-tuning interface. In response to the trigger operation of the parameter adjustment control corresponding to the filter animation parameter, the filter animation parameter is adjusted, and the animation in the current animation subtitle is adjusted according to the adjustment result to obtain the adjusted dynamic subtitle of the target word segmented text.
14. The method according to claim 13, characterized in that, The animation fine-tuning interface also displays a control for binding rhythm points, and the method further includes: In response to the start command triggered by the bound rhythm point control, the moment corresponding to the music strong beat in the target segmented text that is closest to the current time is determined as the start trigger moment of the current animation; In response to the close command triggered by the bound rhythm point control, the time corresponding to the starting text in the target word segmentation text is determined as the starting trigger time of the current animation.
15. The method according to claim 14, characterized in that, The animation fine-tuning interface also displays the strong beat distribution timeline corresponding to the target word segmentation text. The strong beat distribution timeline displays the current time marked with the first marker and the starting trigger time marked with the second marker.
16. The method according to claim 13, characterized in that, The animation fine-tuning interface also displays a text switching control, and the method further includes: In response to the previous text switching command triggered by the text switching control, the animation fine-tuning interface corresponding to the previous text of the target segmented text in the subtitle is displayed; In response to the next text switching command triggered by the text switching control, the animation fine-tuning interface corresponding to the next segmented text of the target segmented text in the subtitle is displayed.
17. The method according to claim 16, characterized in that, The method further includes: If a change in the number of characters and / or the sentiment category identifier of the target segmented text is detected, the changed target segmented text is displayed, and a rhythm pack re-matching prompt and rhythm pack update strategy are displayed in a pop-up window; the rhythm pack update strategy is determined based on the changed target segmented text.
18. The method according to claim 17, characterized in that, The pop-up window also displays a confirmation control corresponding to the updated rhythm package, and the method further includes: In response to the triggering operation of the confirmation control, the change animation parameters corresponding to the target word segmentation text of the change are determined based on the update rhythm package corresponding to the rhythm package update strategy, and the rhythm energy time axis is adjusted based on the change animation parameters.
19. The method according to claim 17, characterized in that, The pop-up window also displays a rhythm pack rematch preference confirmation control, and the method further includes: In response to the triggering operation of the rhythm pack rematch preference confirmation control, if a new modified word segmentation text is detected, a rhythm pack rematch prompt message matching the new modified word segmentation text is displayed.
20. A subtitle animation generation device, characterized in that, include: The subtitle timeline display module is configured to display the rhythm energy timeline of the subtitles in the target video and the motion effect generation control in the subtitle animation editing page; The rhythm energy timeline includes at least two segmented texts distributed along the timeline in the subtitles, as well as an emotion category identifier and a rhythm energy identifier corresponding to each segmented text. The emotion category identifier corresponding to each segmented text is obtained by semantic analysis of each segmented text. The rhythm energy identifier corresponding to each segmented text is determined based on the emotional intensity of the target music segment corresponding to each segmented text. The target music segment corresponding to each segmented text is the music segment in the background music of the target video that has the same timestamp as each segmented text. The emotional intensity of the target music segment is determined based on the beat intensity corresponding to the target music segment. The target video generation module is configured to perform a target video carrying target motion effect subtitles in response to a trigger operation of the motion effect generation control. The target animation effect corresponding to each segmented text in the target animation subtitle is determined based on the animation effect attribute information of each segmented text; the animation effect attribute information of each segmented text is determined based on the emotion category and emotion intensity corresponding to each segmented text.
21. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the subtitle animation generation method as described in any one of claims 1-19.
22. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by an electronic device processor, the electronic device is able to perform the subtitle animation generation method as described in any one of claims 1-19.
23. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the subtitle animation generation method according to any one of claims 1-19.
