Video dynamic effect generation method and device, equipment and storage medium

By automatically identifying and constructing dynamic effect expressions, the problem of complex operation in traditional video production methods is solved, the structured expression of animation parameters and the automatic generation of dynamic effects are realized, and the efficiency of video production and the consistency of effects are improved.

CN120602739APending Publication Date: 2025-09-05GUANGZHOU SANQI DREAM NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510721756.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

Traditional video production methods have high operational barriers and low efficiency, making it difficult to meet users' needs for quickly generating customized dynamic content. They also lack a unified motion expression mechanism, making it difficult to reuse or dynamically modify animation logic.

Method used

By obtaining the target layer uploaded by the client, automatically identifying the animation type, animation duration and motion adjustment coefficient, constructing the motion expression, and adding it to the layer, the automatic generation and rendering of dynamic effects can be achieved.

Benefits of technology

It realizes the structured expression of animation parameters and programmable binding between layers, improves the flexibility and consistency of the motion effect injection process, ensures the accuracy and personalized effect of the generated video in motion effect presentation, and significantly improves the production efficiency and performance quality of dynamic visual content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120602739A_ABST
    Figure CN120602739A_ABST
Patent Text Reader

Abstract

The invention discloses a video dynamic effect generation method and device, equipment and a storage medium. The method comprises the following steps: acquiring a target layer of a to-be-added dynamic effect uploaded by a client, and determining an animation type, animation duration and a dynamic effect adjustment coefficient corresponding to the dynamic effect; constructing a dynamic effect expression for describing the dynamic effect based on the animation type, the animation duration and the dynamic effect adjustment coefficient; and adding the dynamic effect expression to the target layer to obtain a dynamic rendering layer, and generating a dynamic effect video based on the dynamic rendering layer. According to the scheme, the standardized and executable dynamic effect expression is constructed through animation type and parameter configuration, and is dynamically added to the layer content, so that automatic generation and video rendering of the dynamic effect are realized, the animation effect has adjustability, reusability and high adaptability, and the efficiency and consistency of video animation production are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for generating video dynamic effects. Background Art

[0002] With the rapid development of short video platforms, digital media creation tools and virtual content generation technologies, users' demand for dynamic visual effects is increasing. Especially in scenarios such as social communication, brand marketing and personalized expression, dynamic effect videos have become one of the mainstream content forms.

[0003] Traditional video production methods usually rely on professional video editing software and complex operating procedures. Users need to manually adjust layers, set keyframes, and apply motion templates. Not only is the operating threshold high, but the production efficiency is also low, making it difficult to meet users' needs for quickly generating customized dynamic content. In recent years, research and application of automated content generation have gradually emerged. Through parametric modeling, animation expression calculation and other means, users can quickly generate dynamic content that meets the expected effects at a lower cost. However, the existing solutions lack a unified motion expression mechanism, which makes it difficult to reuse or dynamically modify animation logic. Therefore, there is an urgent need for an efficient, scalable, and user-friendly method for generating video dynamic effects that can automatically obtain target layers and animation control parameters, build a unified motion expression system, and complete the automated process from injecting motion effects into video generation, thereby improving the production efficiency and performance quality of video content. Summary of the Invention

[0004] This application provides a method, device, equipment, and storage medium for generating video dynamic effects. These methods automatically identify and analyze target layers uploaded by a client, combine animation type, animation duration, and dynamic effect adjustment coefficients, construct executable dynamic effect expressions, and add these expressions to the layers, thereby achieving automatic generation and rendering of dynamic effects. This application can significantly improve the efficiency of video animation production, reduce the difficulty of manually configuring complex animation parameters, ensure the consistency and accuracy of animation effects, and is suitable for a variety of video editing and dynamic content generation scenarios.

[0005] In a first aspect, the present application provides a method for generating video dynamic effects, comprising: Obtain the target layer to which a dynamic effect is to be added, uploaded by the client, and determine the animation type, animation duration, and dynamic effect adjustment coefficient corresponding to the dynamic effect; Constructing a motion effect expression for describing the dynamic effect based on the animation type, the animation duration, and the motion effect adjustment coefficient; The dynamic effect expression is added to the target layer to obtain a dynamic rendering layer, and a dynamic effect video is generated based on the dynamic rendering layer.

[0006] In a second aspect, the present application provides a device for generating video dynamic effects, comprising: The acquisition module is used to obtain the target layer to be added with dynamic effects uploaded by the client; A determination module, configured to determine an animation type, animation duration, and a motion effect adjustment coefficient corresponding to the dynamic effect; A construction module, configured to construct a motion effect expression for describing the dynamic effect based on the animation type, the animation duration, and the motion effect adjustment coefficient; A rendering module is used to add the dynamic effect expression to the target layer to obtain a dynamic rendering layer, and generate a dynamic effect video based on the dynamic rendering layer.

[0007] In a third aspect, the present application provides a device for generating video dynamic effects, comprising: one or more processors; The memory stores one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the video dynamic effect generation method as described in the first aspect.

[0008] In a fourth aspect, the present application provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute the method for generating video dynamic effects as described in the first aspect.

[0009] In this application, by obtaining the target layer to be added with dynamic effects uploaded by the client, and combining the animation type, animation duration and dynamic effect adjustment coefficient associated with the layer, a dynamic effect expression for describing the dynamic effect is constructed, and the expression is applied to the target layer to generate a dynamic rendering layer. Then, a dynamic effect video is generated based on the dynamic rendering layer, and a full-process automated processing mechanism from layer recognition, dynamic effect modeling to video output is established. This application not only realizes the structured expression of animation parameters and programmable binding between layers, but also improves the flexibility and consistency of the dynamic effect injection process, ensuring the accuracy and personalized effect of the generated video in dynamic effect presentation. It has good scalability and can adapt to a variety of animation types and control dimensions, significantly improving the production efficiency and performance quality of dynamic visual content, and has high engineering practical value and application promotion potential. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 This is a flow chart of a method for generating video dynamic effects provided by an embodiment of the present application; Figure 2 This is a flow chart of determining dynamic effect parameters provided by an embodiment of the present application; Figure 3This is a flowchart of determining the target layer animation type provided by an embodiment of the present application; Figure 4 This is a flowchart of determining the target layer animation duration provided by an embodiment of the present application; Figure 5 This is a flowchart of dynamic expression generation provided by an embodiment of the present application; Figure 6 This is a flowchart of the dynamic expression construction provided by the embodiment of the present application; Figure 7 This is a flowchart of the dynamic effect preview provided by the embodiment of the present application; Figure 8 This is a structural diagram of a video dynamic effect generating device provided in an embodiment of the present application; Figure 9 This is a structural diagram of the video dynamic effect generation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0011] To further clarify the objectives, technical solutions, and advantages of this application, specific embodiments of this application are described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are intended only to illustrate this application and are not intended to limit it. It should also be noted that, for ease of description, the drawings only illustrate portions relevant to this application, not all of them. Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts depict the operations (or steps) as being performed sequentially, many of the operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. A process may terminate upon completion of its operations, but may also have additional steps not shown in the accompanying drawings. A process may correspond to a method, function, procedure, subroutine, subprogram, and the like.

[0012] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the data used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects connected before and after are in an "or" relationship.

[0013] In the field of digital marketing, paid videos, which acquire traffic through paid placement, have become an important medium for advertising and user growth. To increase the appeal of videos and increase click-through conversion rates, paid videos often need to be embedded with rich dynamic visual effects. However, the traditional paid video production process relies on manual operation of animation software, with animators manually setting keyframes and adjusting motion parameters to achieve the desired visual performance. This method is particularly inefficient and uncontrollable when faced with large-scale video content demands. The existing technology in paid video production generally has the following problems: the frame-by-frame setting of animation effects requires a lot of time, which greatly limits production capacity, especially when content is generated in batches; the keyframe setting, parameter adjustment and other operational processes are cumbersome and difficult for non-professionals to quickly master, and the production threshold is high; the animation effects are manually set based on personal experience, and there are differences in style and quality between different producers, making it difficult to maintain consistent effects; when processing complex animations, manual operations are prone to configuration errors or visual defects, affecting the quality of the final video.

[0014] Therefore, there is an urgent need for a scripted tool or method with automated capabilities to replace traditional manual operations, simplify the production process of dynamic effects in paid videos, and improve efficiency, consistency, and stability. This technical direction is of great value in promoting the large-scale and standardized production of paid videos.

[0015] In order to solve the above problems, this embodiment provides a method for generating video dynamic effects, which realizes the automatic construction and efficient rendering of animation logic by introducing structured dynamic effect parameter modeling and expression driving mechanism. This method supports the extraction of content to be processed from the target layer uploaded by the client, and dynamically generates a dynamic effect expression describing the animation process in combination with the animation type, animation duration and dynamic effect adjustment coefficient set by the user, and automatically applies the expression to the target layer to generate a dynamic rendering layer with animation properties, and finally outputs a dynamic effect video. Through parameter driving and expression modeling, this solution effectively replaces the traditional manual keyframe setting and tedious parameter adjustment operation process, realizes the automation, template and standardization of the dynamic effect generation process, and significantly improves the content production efficiency and visual performance consistency in scenarios such as buying videos. At the same time, this method has good scalability and versatility, can adapt to a variety of animation types and business customization requirements, and comprehensively improves the production capacity and engineering implementation value of the video generation system.

[0016] The method for generating video dynamic effects provided in this embodiment can be executed by a video dynamic effects generating device. The video dynamic effects generating device can be implemented through software and / or hardware. The video dynamic effects generating device can be composed of two or more physical entities, or a single physical entity. For example, the video dynamic effects generating device can be an operation and maintenance server used to maintain the normal operation of a business.

[0017] The video dynamic effect generation device is installed with at least one type of operating system, including but not limited to Android, Linux, and Windows. The video dynamic effect generation device can install at least one application based on the operating system. The application can be an application that comes with the operating system or an application downloaded from a third-party device or server. In this embodiment, the video dynamic effect generation device has at least one application that can execute the video dynamic effect generation method.

[0018] For ease of understanding, this embodiment is described by taking an operation and maintenance server as an example of the main body for executing the video dynamic effect generation method.

[0019] Figure 1 A flow chart of a method for generating video dynamic effects provided by an embodiment of the present application is given. Figure 1 , the video dynamic effect generation method specifically includes: S110: Obtain the target layer to which a dynamic effect is to be added uploaded by the client, and determine the animation type, animation duration, and dynamic effect adjustment coefficient corresponding to the dynamic effect.

[0020] In one embodiment, the target layer to which dynamic effects are to be added is first obtained, uploaded by the client. The target layer refers to an image layer used to carry dynamically rendered content, typically including images, text, or interface elements. Dynamic effects refer to animations used to enhance visual presentation, such as zooming, transparent gradients, and sliding. The dynamic effects to be added refer to animations that have not yet been integrated with the target layer and need to be added as an overlay during the rendering process. The client can be a mobile terminal, web application, desktop software, or other application with layer upload capabilities.

[0021] After acquiring the target layer, the animation type, animation duration, and motion adjustment coefficient corresponding to the dynamic effect are further determined. The animation type refers to the form of expression that characterizes the dynamic effect, which is used to drive the target layer to execute a specific animation process; the animation duration refers to the time span from the start to the end of the animation type, which is used to control the visual rhythm; and the motion adjustment coefficient refers to the parameter value used to adjust the animation intensity, amplitude, or speed, which is usually used to achieve dynamic adaptation or style unification.

[0022] In one embodiment, the method for determining the animation type corresponding to the dynamic effect can be: based on the image content, label attributes or user interaction behavior of the target layer, using rule matching or machine learning algorithm to perform mapping judgment of the animation type.

[0023] In one embodiment, the duration of the animation corresponding to the dynamic effect may be determined by calculating based on the target layer's residence time in the scene, its association with other animations, and default animation configuration parameters or user-defined settings.

[0024] In one embodiment, the method for determining the motion effect adjustment coefficient corresponding to the dynamic effect can be: selecting the optimal adjustment coefficient from a preset parameter template based on the motion effect style set by the client or the system load, or generating it through real-time analysis.

[0025] Optionally, Figure 2 A flow chart of determining dynamic effect parameters provided by an embodiment of the present application is given. Figure 2 , the dynamic effect parameter determination method specifically includes: S1101: Perform image analysis on the target layer to obtain a target type of the target layer, and determine an animation type of the dynamic effect according to the target type.

[0026] Exemplarily, an image analysis operation is performed on the acquired target layer to identify the target type of the target layer, wherein image analysis refers to a processing flow of feature extraction, classification recognition or semantic annotation based on image content, usually including edge detection, target recognition, texture analysis and other processing methods; target type refers to a semantic category classified according to the layer content characteristics, such as people, faces, products, icons, text areas or background areas, etc., which is used to assist in inferring adaptive motion effect strategies.

[0027] Based on the analyzed target type, the animation type for the dynamic effect is further determined. The animation type refers to the recommended animation expression for the target type, which is used to improve the consistency of visual expression and user perception. For example, when the target type is "product image," the corresponding animation may be "bounce zoom"; when the target type is "text slogan," the corresponding animation may be "fade in"; when the target type is "icon button," highly interactive animation types such as "slide in" or "zoom and zoom" may be selected.

[0028] In one embodiment, the method of performing image analysis on the target layer may be: feature encoding of the image region through a convolutional neural network model, and outputting a semantic type label in combination with a trained classification model.

[0029] In one embodiment, the animation type may be determined according to the target type by searching a predefined target type to animation type mapping rule library or selecting the best matching animation type using a probability model in combination with context information.

[0030] Optionally, Figure 3 A flowchart of determining the target layer animation type provided by the embodiment of the present application is given. Figure 3 The method for determining the target layer animation type specifically includes: S11011. Obtain layer characteristic parameters of the target layer, and retrieve several historical layer records that match the layer characteristic parameters and the target type in historical dynamic effect video generation records.

[0031] Exemplarily, the layer feature parameters of the target layer are obtained, where the layer feature parameters refer to multi-dimensional structured information extracted from the layer that can be used for retrieval and similarity matching, and may include layer size, boundary outline, color histogram, texture pattern, transparency distribution, layer position and hierarchical relationship, etc.; these parameters are used to comprehensively characterize the visual and structural properties of the layer, and support subsequent rapid comparison in historical data.

[0032] After extracting layer feature parameters, combined with previously identified target types, a search operation is performed within historical dynamic effect video generation records to find several historical layer records that match both the current layer feature parameters and target type. Historical layer records refer to layer samples and their corresponding animation configurations that were recorded, annotated, and archived during past animation generation processes. These records cover multiple dimensions, including animation type, application scenario, and user feedback, to support data-driven animation effect recommendations and optimization.

[0033] In one embodiment, the layer feature parameters may be obtained by extracting feature vectors from the layer through image processing algorithms and feature extraction models, such as SIFT, SURF, ORB, or deep feature encoding networks, and constructing a high-dimensional feature index structure for easy retrieval.

[0034] In one embodiment, the retrieval method of historical layer records can be: using vector similarity calculation such as Euclidean distance, cosine similarity or ANN-based approximate search combined with target type consistency filtering strategy to filter out several layer records that meet the similarity threshold from the historical animation database for subsequent animation parameter reference or recommendation.

[0035] S11012. Calculate the recommendation weight of each of the animation types based on the historical layer records, and determine the animation type of the dynamic effect according to the recommendation weight.

[0036] For example, based on the retrieved historical layer records, a recommendation weight is calculated for each candidate animation type. The recommendation weight is a quantitative indicator used to measure the applicability, priority, or expected performance of a particular animation type within the current layer context. It reflects a weighted fusion of multiple factors, including the frequency of historical usage of the animation type with similar layers, user preference ratings, conversion effects, and stability of use. The recommendation weight can be calculated based on a comprehensive assessment of several dimensions: layer feature similarity score, target type consistency, animation usage frequency, user interaction feedback, and scene context relevance. By analyzing these historical dimensions, a weighted scoring model can be constructed to rank and prioritize multiple candidate animation types. Subsequently, based on the calculated recommendation weights, the animation type ultimately selected for the current dynamic effect is determined. Typically, the animation type with the highest weight is selected as the preferred choice. Alternatively, a threshold can be set or a multi-animation fusion strategy can be employed to enhance the diversity and adaptability of the dynamic effect.

[0037] In one embodiment, the recommendation weight may be calculated by scoring the candidate animation types using a scoring model based on a gradient boosting tree, random forest, or neural network, or by normalizing the indicators of each dimension using a weighted rule model and then calculating a weighted average score.

[0038] In one embodiment, the animation type may be determined by selecting the animation type with the highest score as the final animation expression of the current target layer, or performing joint optimization based on the animation duration and the motion effect adjustment coefficient.

[0039] S1102: Calculate the layer area of ​​the target layer based on the layer data of the target layer, and determine the animation duration of the dynamic effect based on the layer area.

[0040] For example, the target layer's layer area is calculated based on its layer data. Layer data refers to structured information describing the spatial dimensions and position of a layer, typically including the layer's width, height, bounding box coordinates, shape mask, or vector outline, used to precisely define the layer's geometric distribution within the display area. Layer area refers to the two-dimensional projected area of ​​the target layer in the canvas coordinate system, typically expressed in pixels or relative proportions. It is an important basic parameter for measuring animation coverage and visual saliency.

[0041] After obtaining the layer area, the animation duration of the dynamic effect is further determined based on this area information. The animation duration refers to the time interval from the start to the completion of the controlled animation, usually measured in milliseconds or seconds. It is used to influence the user's perceived rhythm, visual guidance efficiency, and timing coordination with other dynamic effects. By associating the layer area with the animation time, the visual rhythm can be dynamically adjusted, resulting in smoother and more natural transitions for large-area layers and more compact and flexible dynamic rhythms for small-area layers.

[0042] In one embodiment, the layer area may be calculated as follows: if the layer is a rectangular area, the area is calculated directly based on its width and height; if the layer is an irregular shape, the number of valid pixels is counted based on its outline or mask area, or a geometric algorithm is used to calculate the area of ​​the closed area.

[0043] In one embodiment, the animation duration can be determined by calculating based on the layer area and a preset mapping function, such as a linear mapping, a piecewise function, or a logarithmic adjustment strategy, to ensure that the animation duration is smoothly adjusted as the area changes; or automatically fitting the optimal duration distribution based on a machine learning model to improve the ergonomic adaptability of the animation rhythm.

[0044] Optionally, Figure 4 A flowchart of determining the duration of the target layer animation provided by the embodiment of the present application is given. Figure 4 The method for determining the target layer animation duration specifically includes: S11021. Obtain the canvas area of ​​the video canvas where the target layer is located.

[0045] For example, the canvas area of ​​the video canvas where the target layer is located is obtained. The video canvas refers to the overall display area used to support multiple layers, typically corresponding to the rendering canvas of a video frame or the boundary space of an editing container, and is used to limit the spatial range of all layer rendering. The canvas area refers to the total display area of ​​the video canvas in a two-dimensional coordinate system, typically expressed as a total number of pixels or a normalized ratio. It is a basic parameter for evaluating the relative size and visual proportion of the target layer.

[0046] The canvas area serves as a reference for normalizing the target layer's absolute area to a relative scale. This allows for adaptive adjustments to animation duration or intensity, improving animation consistency and controllability across multiple resolutions and scenarios.

[0047] In one embodiment, the canvas area may be obtained by directly extracting the canvas width and height from the video metadata uploaded by the client, or by parsing the video frame structure information to extract the rendering size and then calculating the overall canvas area accordingly.

[0048] S11022. Calculate the area ratio of the layer area to the canvas area, and determine the animation duration of the dynamic effect based on the area ratio.

[0049] For example, the area ratio of the layer area to the canvas area is calculated. The area ratio refers to the relative size of the target layer within the video canvas. It is defined as the layer area divided by the canvas area and is typically expressed as a decimal value between 0 and 1. This ratio reflects the prominence of the target layer within the overall visual scene and is an important basis for adjusting the adaptability of animation parameters.

[0050] Based on the calculated area ratio, the animation duration of the dynamic effect is further determined. A larger area ratio indicates a higher visual weight for the layer and a more pronounced impact on user perception. Therefore, the animation duration can be appropriately extended to enhance expressiveness. Conversely, when the area ratio is smaller, a shorter animation duration can be set to improve the rhythm of the screen and interaction efficiency, achieving a reasonable allocation of visual resources.

[0051] In one embodiment, the area ratio may be calculated by performing a simple division operation using the obtained layer area and canvas area to obtain a ratio value. The calculation process may be completed on the client or server side, supporting dynamic real-time processing.

[0052] In one embodiment, the animation duration can be determined by taking the area ratio as an input parameter and inputting it into a preset mapping function, such as a linear function, for example T=a×R+b, an exponential function or a lookup table rule, to generate the corresponding animation duration; or a data-driven model can be used for prediction to achieve more refined motion effect rhythm control.

[0053] S1103: Determine a dynamic effect adjustment coefficient of the dynamic effect according to the animation type of the dynamic effect.

[0054] For example, based on the determined dynamic effect animation type, the dynamic effect adjustment coefficient of the dynamic effect is determined. The dynamic effect adjustment coefficient refers to the control parameter used to fine-tune the animation's performance intensity, rhythm details, or visual tension. It is often used to adjust the animation's zoom ratio, transparency change rate, displacement amplitude, elastic damping coefficient, easing function parameters, etc., and is an important means to achieve animation personalization, adaptation, and style consistency.

[0055] Animation types vary in their visual expression, and their reliance on adjustment coefficients and adjustment strategies can differ significantly. For example, a "bounce zoom" animation relies on a high elasticity coefficient to produce a dynamic rebound effect, while a "fade-in reveal" animation relies more on smooth control of the transparency change rate. Therefore, developing appropriate adjustment rules for different animation types is key to achieving refined motion effect management.

[0056] In one embodiment, the motion effect adjustment coefficient can be determined by querying a preset parameter template library based on the animation type, where each animation type corresponds to a set of recommended adjustment parameter values; or the target type, area ratio, context environment and user preference information of the target layer can be combined to select the optimal value from multiple candidate coefficients, or use a machine learning model for dynamic prediction.

[0057] In one embodiment, if custom animation style themes are supported, the motion effect adjustment coefficient can also be adjusted again in combination with the style settings to ensure the coordination of the final motion effect and consistency of user experience under a unified design language.

[0058] S120: Constructing a motion effect expression for describing the dynamic effect based on the animation type, the animation duration, and the motion effect adjustment coefficient.

[0059] In some embodiments, based on the determined animation type, animation duration, and animation adjustment coefficient, a motion expression is constructed to describe the dynamic effect. A motion expression refers to an executable parameter combination or function structure used to drive the target layer to present dynamic visual changes during rendering or playback, and is typically expressed in a data format recognizable by the animation engine, such as a keyframe sequence, an easing curve function, an action chain configuration, or a scripted animation description language.

[0060] The animation type determines the basic structure and execution logic of the motion expression, such as scaling, displacement, rotation, and transparency gradient. The animation duration sets the execution cycle of the entire expression, controlling the animation's startup, acceleration, stabilization, and termination processes. The motion adjustment coefficient further refines the animation's performance style and rhythmic characteristics, such as controlling the curvature of the easing function, the amplitude of the motion trajectory, and the nonlinear changes in dynamic intensity.

[0061] By combining the above three types of parameters, a complete and structured motion expression can be generated to drive animation execution in the client or rendering engine, ensuring that the visual effects meet user experience expectations.

[0062] In one embodiment, the animation expression can be constructed by mapping the animation type to the corresponding animation template, filling in the animation duration and adjustment coefficient to generate a complete configuration item, or generating a scripted expression through the animation DSL; or using a graphical animation engine for parameter injection and sequence generation.

[0063] In one embodiment, the motion effect expression can also support exporting to an intermediate format, such as JSON, XML, or a binary structure, to adapt to multi-platform playback and cross-end consistent rendering, providing a data basis for subsequent animation choreography, automated deployment, or user-personalized editing.

[0064] Optionally, Figure 5 The following is a flowchart of the dynamic expression generation provided by the embodiment of the present application. Figure 5 , the dynamic expression generation method specifically includes: S1201. Obtain a path coordinate function, a scaling function, and a rotation angle function of the dynamic effect based on the animation type, and generate an animation property function of the dynamic effect according to the path coordinate function, the scaling function, and the rotation angle function.

[0065] For example, based on the determined animation type, the path coordinate function, scaling function, and rotation angle function corresponding to the dynamic effect are obtained. The path coordinate function is used to describe the movement trajectory of the target layer in two-dimensional or three-dimensional space during the animation process, usually expressed as a sequence of coordinate points or a Bezier curve that changes over time; the scaling function is used to describe the size change process of the target layer, reflecting the enlargement or reduction trend of the layer during the animation execution; the rotation angle function is used to control the angle change of the layer around a certain center point, and is often used to create dynamic or three-dimensional visual effects.

[0066] All three functions above use time as their independent variable, forming a function curve that changes dynamically as the animation progresses. These functions can be linear, nonlinear, piecewise, or parametric curves, and can also be generated using keyframe interpolation or easing algorithms.

[0067] After obtaining these functions, the animation property functions for the dynamic effect are further generated based on the path coordinate function, scaling function, and rotation angle function. Animation property functions are a combination of functions that uniformly model multiple motion dimensions. They describe the joint changes in the position, size, and rotation state of the target layer throughout the animation cycle and are the core parameter set for executing motion effect expressions.

[0068] In one embodiment, the animation property function can be represented in a structured form, including three parts: a position function, a scaling function, and a rotation function. The position function is used to describe the coordinate trajectory of the target layer over time, reflecting the layer's movement path during the animation process; the scaling function is used to represent the size ratio of the target layer over time, controlling the layer's zooming in or out; and the rotation function is used to control the target layer's rotation angle around the center point, reflecting the layer's rotational motion. All three functions use animation time as a variable and jointly describe the dynamic changes in the target layer's position, size, and angle during the animation cycle.

[0069] In one embodiment, the path, scaling, and rotation functions may be determined by matching the animation function template library according to the animation type and selecting the function form that best matches the performance characteristics of the type; or dynamically generating function parameters to adapt to layer characteristics or animation adjustment coefficients to enhance the scene adaptability and performance diversity of the animation.

[0070] S1202: Calculate a dynamic interpolation function based on the dynamic adjustment coefficient of the dynamic effect.

[0071] For example, based on the dynamic effect adjustment coefficient, a corresponding dynamic interpolation function is calculated. The dynamic interpolation function refers to a mathematical function used to smoothly connect the state changes between animation keyframes. It can dynamically adjust the animation's change rate and transition curve according to the time progress, achieving delicate control of the animation rhythm.

[0072] The motion adjustment coefficient is an input parameter that reflects the intensity, easing characteristics, and nonlinear change requirements of the animation performance. It acts on the shape parameters of the interpolation function through a mapping relationship, such as the control points, acceleration coefficient, or damping factor of the easing curve, thereby affecting the change trajectory of the animation property function.

[0073] In one embodiment, the dynamic interpolation function can take various forms, such as a Bezier curve easing function, an exponential decay function, a spring damping model, or a custom nonlinear function, and dynamically adjust the slope and curvature of the function curve according to the dynamic effect adjustment coefficient to achieve a soft, elastic, or fast transition effect of the animation.

[0074] In one embodiment, the dynamic interpolation function can be calculated by mapping the motion effect adjustment coefficient to the parameter space of the interpolation function, combining the time variable to output the interpolation result, and generating a smooth animation value sequence that conforms to the expected rhythm for real-time rendering by the animation engine.

[0075] S1203: Construct a dynamic effect expression of the dynamic effect according to the animation property function, the animation duration and the dynamic interpolation function.

[0076] For example, a dynamic expression describing dynamic effects is constructed based on the animation property function, animation duration, and dynamic interpolation function. The animation property function describes the position, scale, and rotation changes of the target layer during the animation process, the animation duration determines the overall execution time of the animation, and the dynamic interpolation function is used to smooth the changes between keyframes, achieving a natural transition and delicate adjustment of the animation rhythm.

[0077] By combining animation property functions with dynamic interpolation functions, each animation property is sampled and interpolated within a given animation duration, generating a continuous and smooth sequence of animation states. This sequence serves as the core data of the motion effect expression, guiding the animation engine to render the target layer according to the predetermined motion trajectory, scale, and rotation angle, achieving the desired dynamic visual effect.

[0078] In one embodiment, the animation expression can be represented in a structured data format, including time parameters, interpolation function types and corresponding animation property functions, to support real-time calculation and flexible adjustment of animation.

[0079] In one embodiment, the construction of the motion effect expression can be based on a combination of predefined templates and real-time calculations, and an algorithm can automatically generate an expression that meets the requirements of the animation type and adjustment coefficient, thereby improving the efficiency of motion effect production and performance consistency.

[0080] In one embodiment, the construction of the dynamic effect expression can normalize the animation duration T and define a standard time variable t∈[0,1] to uniformly control the evolution of animation attributes such as path coordinates, scaling, and rotation angle throughout the animation cycle. Subsequently, with the normalized time t as the independent variable, the path coordinate function P(t), scaling function S(t), and rotation angle function R(t) are used as the basic attribute expressions, and the dynamic interpolation function I(t) is applied to the timeline mapping of the above attribute functions, thus constructing a composite expression:

[0081] Through the regulation of the interpolation function, the animation process is given nonlinear time-driven characteristics, thereby achieving speed and rhythm control of attribute changes, such as fast first and then slow, bounce and rebound, slow advance and sudden stop, and other rich dynamic effects. Finally, the three interpolated attribute functions mentioned above are combined to form a unified dynamic expression model to describe the displacement, scaling, and rotation change trajectory of the target layer in each frame during the animation cycle. This dynamic expression has both the rigor of mathematical expression and is compatible with the execution interface of the layer rendering engine, facilitating efficient and accurate frame-by-frame rendering and dynamic playback control by the subsequent animation execution module.

[0082] Optionally, Figure 6 A flowchart of the dynamic expression construction provided by the embodiment of this application is given. Figure 6 , the dynamic expression construction method specifically includes: S12031. Normalize the animation duration to obtain a normalized animation time that matches the dynamic interpolation function.

[0083] For example, the animation duration is normalized to obtain a normalized animation time that matches the dynamic interpolation function. The animation duration refers to the actual length of time from the start to the end of the animation, usually expressed in milliseconds or seconds. Normalization maps this time interval to a unified standard range, usually a closed interval from 0 to 1, to facilitate the calculation of the interpolation function and the unified management of time parameters.

[0084] Normalized time is used as an input variable for dynamic interpolation functions to ensure a linear relationship between animation state calculations and time progression, while also supporting the flexible application of multiple interpolation functions. By normalizing time, different animation durations can be made compatible, making the timing control of animation effects more precise and consistent.

[0085] In one embodiment, the normalization process is calculated by subtracting the animation start time from the current time point and dividing it by the total duration of the animation to obtain a normalized value of the current animation progress. This value is passed as input to the dynamic interpolation function to drive the smooth change of the animation properties.

[0086] In one embodiment, the normalization process can be performed by the following method: obtaining the original time length corresponding to the current animation , which represents the duration of the entire dynamic effect in the video. To ensure that the subsequent interpolation function I(t) can perform time axis mapping on the animation attribute function within a unified time scale, the time interval is normalized to the closed interval [0,1]. During the processing, a normalized time variable t∈[0,1] is defined to represent the standard animation progress of the current frame. For each frame timestamp , calculate its normalized time by the normalized transfer function:

[0087] The normalized time will be used as the input of the subsequent interpolation function I(t) to adjust the execution rhythm of the animation properties.

[0088] S12032. Combine the animation property function and the dynamic interpolation function to generate an animation execution path function for the target layer.

[0089] For example, the animation execution path function for the target layer is generated by combining the animation property function with the dynamic interpolation function. The animation property function describes the theoretical changes in the position, scale, and rotation of the target layer during the animation process, while the dynamic interpolation function is responsible for smoothly interpolating and adjusting the time progress of these properties to achieve natural transitions and subtle changes in the animation rhythm.

[0090] By applying normalized time as input, the dynamic interpolation function is applied to the parameters of the animation property function, enabling dynamic adjustment of properties such as position, scale, and rotation over time. The resulting animation execution path function is a comprehensive function that outputs the actual position, size, and rotation angle of the target layer at any moment. The execution path function provides the animation engine with a precise time-property mapping, ensuring that the layer's state remains continuous and meets the desired visual effect during the animation process, thereby enhancing the smoothness and realism of the dynamic performance.

[0091] In one embodiment, the animation execution path function may be in the form of a multidimensional function set, which formally includes the following expressions: Position execution function P'(t) = dynamic interpolation function (position attribute function P(t), normalized time t) Scaling execution function S'(t) = dynamic interpolation function (scaling attribute function S(t), normalized time t) Rotation execution function R'(t) = dynamic interpolation function (rotation attribute function R(t), normalized time t) Where t represents the normalized animation time (0≤t≤1), and P'(t), S'(t), and R'(t) represent the final animation property values ​​after dynamic interpolation adjustment.

[0092] S12033. Construct a motion effect expression of the dynamic effect based on the animation execution path function and the animation normalized time.

[0093] For example, an animation expression describing dynamic effects is constructed based on the animation execution path function and the animation normalized time. The animation execution path function provides the specific property values ​​of the target layer at any normalized time point, including dynamic parameters such as position, scale, and rotation. The animation normalized time is used as an input variable to drive the real-time calculation of the function.

[0094] By inputting the animation's normalized time into the animation execution path function, the precise state of the target layer at the current point in time is calculated, generating a series of continuously and smoothly changing animation attribute data. This data set forms the core content of the motion effect expression, guiding the animation engine to render the target layer according to the preset trajectory during animation playback, achieving precise dynamic effects.

[0095] In one embodiment, the animation expression can be represented in a structured data format, including time parameters and corresponding animation attribute value sequences, to support efficient storage, transmission, and multi-terminal synchronous playback.

[0096] In one embodiment, the process of constructing the motion effect expression can be integrated into an animation production tool or a rendering engine to achieve automatic generation and real-time updating, thereby improving the production efficiency and performance quality of the animation effect.

[0097] In one embodiment, the construction of the animation expression can be as follows: using the standard normalized time variable t∈[0,1] as the core input, driving the generated animation execution path function , respectively calculating the spatial coordinate position, scaling ratio, and rotation angle of the target layer at any time point t. The above execution path function is structured and encapsulated to construct a formalized dynamic expression object E(t), which is defined as follows:

[0098] Among them, Translate represents the layer position transformation operation, corresponding to ; Scale represents the scaling of the layer, corresponding to ; Rotate represents the rotation transformation of the layer around the specified axis, corresponding to Transform is a unified scheduling function that encapsulates multiple attribute transformations into a unified frame transformation instruction. The animation expression E(t) is organized as a time-driven sequence of transformation instructions. During execution, the normalized time t is mapped to an absolute frame time according to the animation duration T, achieving precise animation rendering through absolute frame time.

[0099] Optionally, Figure 7 A flow chart of the dynamic effect preview provided by the embodiment of this application is given. Figure 7 , the dynamic effect preview method specifically includes: S121. Generate a preview effect video based on the dynamic rendering layer, and display the preview effect video and its corresponding parameter adjustment area on a preview interface.

[0100] For example, a dynamic effect video is generated for preview based on a dynamic rendering layer. A dynamic rendering layer refers to a continuous frame sequence of a target layer, driven and rendered by a motion effect expression, that truly reflects the visual performance of the added dynamic effect. The preview effect video can be stored in a common video encoding format for easy playback on the client or related terminal devices.

[0101] After the preview effect video is generated, it is displayed on the preview interface, allowing users to view the overall performance and detailed changes of the dynamic effect in real time. At the same time, the preview interface also has a parameter adjustment area, through which users can interactively adjust key parameters such as animation type, animation duration, and motion effect adjustment coefficient.

[0102] The parameter adjustment area can support various control forms such as sliders, input boxes, drop-down menus, etc., allowing users to modify motion effect parameters intuitively and flexibly, triggering the re-rendering and refresh of dynamic effect videos in real time, and enhancing user experience and adjustment efficiency.

[0103] In one embodiment, the preview interface can support batch preview and parameter adjustment of multiple dynamic rendering layers to meet the editing needs in complex animation scenes.

[0104] In one embodiment, the generation and display of the preview effect video can adopt asynchronous processing and caching mechanisms to improve the interface response speed and ensure smooth user operation without lag.

[0105] S122 : In response to the adjustment parameters input in the parameter adjustment area, generate a rendering adjustment layer based on the adjustment parameters, and update the dynamic rendering layer to the rendering adjustment layer.

[0106] Exemplarily, the adjustment parameters received in response to the user input in the parameter adjustment area include the animation type, animation duration, motion effect adjustment coefficient, and other numerical changes of animation attributes.

[0107] Based on the received adjustment parameters, the corresponding rendering adjustment layer is recalculated and generated. The rendering adjustment layer is based on the original dynamic rendering layer, combined with the latest parameters to recalculate the target layer animation state, reflecting the user's changes to the animation effect.

[0108] When generating a render adjustment layer, the latest animation execution path and status of the target layer are calculated in real time based on new animation property functions, dynamic interpolation functions, and motion expressions, ensuring accurate and smooth rendering results. Subsequently, the dynamic render layer is updated to a render adjustment layer, achieving instant refresh of the animation effect. This update process supports seamless transitions, ensuring the continuity and real-time responsiveness of dynamic effects in the preview interface, and enhancing the user experience.

[0109] In one embodiment, the generation and update process of the rendering adjustment layer can support incremental calculation and cache optimization, reduce the system computing burden, and improve performance.

[0110] S123: Generate a preview adjustment video based on the rendering adjustment layer, and display the preview adjustment video on the preview interface.

[0111] For example, based on rendering the adjustment layer, a corresponding preview adjustment video is generated. The preview adjustment video is a continuous image sequence that dynamically represents the target layer after being re-rendered according to the user's latest adjustment parameters, truly reflecting the visual changes of the adjusted animation effect.

[0112] When generating a preview adjustment video, you can calculate the state of the target layer frame by frame based on the animation property function, dynamic interpolation function, and motion expression in the rendered adjustment layer to ensure that the animation is coherent and smooth and meets the expected effect after the user's adjustment.

[0113] After the generation is completed, the preview adjustment video is displayed in real time on the preview interface, allowing users to intuitively view the changes in the latest animation effects, assisting users in further parameter adjustments and effect confirmation.

[0114] In one embodiment, the preview interface can support dynamic switching between the original preview video and the preview adjustment video, so that users can compare the animation effects before and after the adjustment.

[0115] In one embodiment, the generation of the preview adjustment video may adopt an efficient rendering and caching strategy to ensure the smoothness of video playback and the speed of interface response.

[0116] S130: Add the dynamic effect expression to the target layer to obtain a dynamic rendering layer, and generate a dynamic effect video based on the dynamic rendering layer.

[0117] In some embodiments, the generated animation expression is added to the target layer to implement dynamic property binding of the target layer. The animation expression serves as a mathematical model that describes the change of the target layer's animation state over time, giving the target layer specific animation behavior and visual effects.

[0118] By integrating the animation expression into the target layer's data structure, a dynamic rendering layer is formed. This dynamic rendering layer not only includes the static visual content of the target layer, but also includes complete animation performance information, which can drive the presentation of animation effects in real time within the rendering engine.

[0119] Generate dynamic effect videos based on dynamic rendering layers. The generation process involves rendering the animation state frame by frame, capturing the visual performance of the target layer at different time points, and synthesizing it into a continuous video frame sequence to form a complete dynamic effect video file. Dynamic effect videos can be used for animation preview, post-editing, effect sharing, or terminal playback, and truly reflect the visual animation effects expressed by the dynamic rendering layers.

[0120] In one embodiment, the generation process of the dynamic effect video can support multiple video formats and encoding methods to meet the compatibility requirements of different platforms and devices.

[0121] In one embodiment, the generation process of dynamic rendering layers and dynamic effect videos can be integrated into animation production tools or client software to achieve automation and efficiency of animation production.

[0122] Based on the above embodiments, Figure 8 This is a schematic diagram of the structure of the video dynamic effect generation device provided in the embodiment of the present application. Figure 8 The video dynamic effect generation device provided in this embodiment specifically includes: an acquisition module 21, a determination module 22, a construction module 23, and a rendering module 24.

[0123] Among them, the acquisition module 21 is configured to obtain the target layer to which the dynamic effect is to be added uploaded by the client; the determination module 22 is configured to determine the animation type, animation duration and motion effect adjustment coefficient corresponding to the dynamic effect; the construction module 23 is configured to construct a motion effect expression for describing the dynamic effect based on the animation type, the animation duration and the motion effect adjustment coefficient; the rendering module 24 is configured to add the motion effect expression to the target layer, obtain a dynamic rendering layer, and generate a dynamic effect video based on the dynamic rendering layer.

[0124] Based on the above embodiment, the determination module 22 includes: a type determination unit, configured to perform image analysis on the target layer, obtain the target type of the target layer, and determine the animation type of the dynamic effect according to the target type; a time determination unit, configured to calculate the layer area of ​​the target layer based on the layer data of the target layer, and determine the animation duration of the dynamic effect based on the layer area; a coefficient determination unit, configured to determine the animation effect adjustment coefficient of the dynamic effect according to the animation type of the dynamic effect.

[0125] Based on the above embodiment, the type determination unit includes: a historical layer sub-unit, configured to obtain the layer characteristic parameters of the target layer, and retrieve several historical layer records that match the layer characteristic parameters and the target type in the historical dynamic effect video generation records; a type determination sub-unit, configured to calculate the recommendation weight of each of the animation types based on the historical layer records, and determine the animation type of the dynamic effect according to the recommendation weight.

[0126] Based on the above embodiment, the time determination unit includes: an area acquisition subunit, configured to obtain the canvas area of ​​the video canvas where the target layer is located; a time determination subunit, configured to calculate the area ratio of the layer area to the canvas area, and determine the animation duration of the dynamic effect based on the area ratio.

[0127] Based on the above embodiment, the construction module 23 includes: a function generation unit, configured to obtain the path coordinate function, scaling function and rotation angle function of the dynamic effect based on the animation type, and generate the animation property function of the dynamic effect according to the path coordinate function, the scaling function and the rotation angle function; a dynamic interpolation unit, configured to calculate the dynamic interpolation function based on the dynamic adjustment coefficient of the dynamic effect; an expression generation unit, configured to construct the dynamic effect expression of the dynamic effect according to the animation property function, the animation duration and the dynamic interpolation function.

[0128] Based on the above embodiment, the expression generation unit includes: a normalization sub-unit, configured to normalize the animation duration to obtain the normalized animation time that matches the dynamic interpolation function; a path function sub-unit, configured to combine the animation property function and the dynamic interpolation function to generate the animation execution path function of the target layer; an expression construction sub-unit, configured to construct the dynamic effect expression of the dynamic effect based on the animation execution path function and the animation normalized time.

[0129] Based on the above embodiment, the video dynamic effect generation device also includes: a preview module, configured to generate a preview effect video based on the dynamic rendering layer, and display the preview effect video and its corresponding parameter adjustment area on the preview interface; an input module, configured to respond to the adjustment parameters input on the parameter adjustment area, generate a rendering adjustment layer based on the adjustment parameters, and update the dynamic rendering layer to a rendering adjustment layer; an adjustment module, configured to generate a preview adjustment video based on the rendering adjustment layer, and display the preview adjustment video on the preview interface.

[0130] As mentioned above, the video dynamic effect generation device provided by the embodiment of the present application realizes the automatic processing and dynamic effect generation of the layer content uploaded by the client by integrating functional modules such as target layer recognition, intelligent acquisition of animation parameters, construction of dynamic effect expressions and dynamic rendering. The device can accurately determine the animation type, duration and adjustment coefficient based on the multi-dimensional feature analysis results of the layer image, combined with historical animation data and recommendation strategies, and construct a dynamic effect expression with high matching degree and coordinated visual performance, thereby efficiently generating dynamic rendering layers and video output results. The overall solution significantly reduces the manual configuration cost in video editing and improves the efficiency, accuracy and user experience of animation generation.

[0131] The video dynamic effect generation device provided in the embodiment of the present application can be used to execute the video dynamic effect generation method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0132] Figure 9 This is a schematic diagram of the structure of a video dynamic effect generation device provided by an embodiment of the present application, with reference to Figure 9 The video dynamic effect generating device includes: a processor 31, a memory 32, a communication device 33, an input device 34, and an output device 35. The number of processors 31 in the video dynamic effect generating device can be one or more, and the number of memories 32 in the video dynamic effect generating device can be one or more. The processor 31, memory 32, communication device 33, input device 34, and output device 35 of the video dynamic effect generating device can be connected via a bus or other means.

[0133] Memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the video dynamic effect generation method of any embodiment of the present application (e.g., the acquisition module 21, determination module 22, construction module 23, and rendering module 24 in the video dynamic effect generation device). Memory 32 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on device usage. Furthermore, memory 32 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some instances, the memory may further include memory remotely located from the processor, which can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0134] The communication device 33 is used for data transmission.

[0135] The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 32, that is, realizes the above-mentioned video dynamic effect generation method.

[0136] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.

[0137] The video dynamic effect generation device provided above can be used to execute the video dynamic effect generation method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0138] An embodiment of the present application also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute a method for generating video dynamic effects. The method includes: obtaining a target layer to which a dynamic effect is to be added, uploaded by a client, and determining the animation type, animation duration, and motion effect adjustment coefficient corresponding to the dynamic effect; based on the animation type, the animation duration, and the motion effect adjustment coefficient, constructing a motion effect expression for describing the dynamic effect; adding the motion effect expression to the target layer to obtain a dynamic rendering layer, and generating a dynamic effect video based on the dynamic rendering layer.

[0139] Storage medium—any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape drives; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, and Rambus RAM; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements; and the like. Storage media may also include other types of memory or a combination thereof. Furthermore, a storage medium may be located in a first computer system where a program is executed, or in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system may provide program instructions to the first computer system for execution. The term "storage medium" may include two or more storage media residing in different locations (e.g., in different computer systems connected via a network). A storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.

[0140] Of course, the storage medium containing computer-executable instructions provided in an embodiment of the present application is not limited to the above-mentioned video dynamic effect generation method, and can also execute related operations in the video dynamic effect generation method provided in any embodiment of the present application.

[0141] The video dynamic effect generation device, storage medium and video dynamic effect generation equipment provided in the above embodiments can execute the video dynamic effect generation method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the video dynamic effect generation method provided in any embodiment of the present application.

[0142] The above are only preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments described herein, and any obvious changes, readjustments, and substitutions that are apparent to those skilled in the art will not depart from the scope of protection of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present application. The scope of the present application is determined by the scope of the claims.

Claims

1. A method for generating video dynamic effects, characterized in that: include: Obtain the target layer to which a dynamic effect is to be added, uploaded by the client, and determine the animation type, animation duration, and dynamic effect adjustment coefficient corresponding to the dynamic effect; Constructing a motion effect expression for describing the dynamic effect based on the animation type, the animation duration, and the motion effect adjustment coefficient; The dynamic effect expression is added to the target layer to obtain a dynamic rendering layer, and a dynamic effect video is generated based on the dynamic rendering layer.

2. The method for generating video dynamic effects according to claim 1, wherein: Determining the animation type, animation duration, and animation effect adjustment coefficient corresponding to the dynamic effect includes: Performing image analysis on the target layer to obtain a target type of the target layer, and determining an animation type of the dynamic effect according to the target type; Calculating the layer area of ​​the target layer based on the layer data of the target layer, and determining the animation duration of the dynamic effect based on the layer area; Determine a dynamic effect adjustment coefficient of the dynamic effect according to the animation type of the dynamic effect.

3. The method for generating video dynamic effects according to claim 2, wherein: Determining the animation type of the dynamic effect according to the target type includes: Acquire layer characteristic parameters of the target layer, and search for several historical layer records matching the layer characteristic parameters and the target type in historical dynamic effect video generation records; The recommendation weight of each of the animation types is calculated based on the historical layer records, and the animation type of the dynamic effect is determined according to the recommendation weight.

4. The method for generating video dynamic effects according to claim 2, wherein: The determining of the animation duration of the dynamic effect based on the layer area includes: Get the canvas area of ​​the video canvas where the target layer is located; An area ratio of the layer area to the canvas area is calculated, and an animation duration of the dynamic effect is determined based on the area ratio.

5. The method for generating video dynamic effects according to claim 1, wherein: The constructing of a motion effect expression for describing the dynamic effect based on the animation type, the animation duration, and the motion effect adjustment coefficient includes: Acquire a path coordinate function, a scaling function, and a rotation angle function of the dynamic effect based on the animation type, and generate an animation property function of the dynamic effect according to the path coordinate function, the scaling function, and the rotation angle function; Calculating a dynamic interpolation function based on a dynamic adjustment coefficient of the dynamic effect; The dynamic effect expression of the dynamic effect is constructed according to the animation property function, the animation duration and the dynamic interpolation function.

6. The method for generating video dynamic effects according to claim 5, wherein: The step of constructing the dynamic effect expression according to the animation property function, the animation duration, and the dynamic interpolation function includes: Normalizing the animation duration to obtain a normalized animation time that matches the dynamic interpolation function; Combining the animation property function and the dynamic interpolation function, generating an animation execution path function of the target layer; Based on the animation execution path function and the animation normalized time, a motion effect expression of the dynamic effect is constructed.

7. The method for generating video dynamic effects according to claim 1, wherein: Before generating a dynamic effect video based on the dynamic rendering layer, the method further includes: Generate a preview effect video based on the dynamic rendering layer, and display the preview effect video and its corresponding parameter adjustment area on the preview interface; In response to an adjustment parameter inputted in the parameter adjustment area, generating a rendering adjustment layer based on the adjustment parameter, and updating the dynamic rendering layer to the rendering adjustment layer; A preview adjustment video is generated based on the rendering adjustment layer, and the preview adjustment video is displayed on the preview interface.

8. A video dynamic effect generation device, characterized in that: include: The acquisition module is used to obtain the target layer to be added with dynamic effects uploaded by the client; A determination module, configured to determine an animation type, animation duration, and a motion effect adjustment coefficient corresponding to the dynamic effect; A construction module, configured to construct a motion effect expression for describing the dynamic effect based on the animation type, the animation duration, and the motion effect adjustment coefficient; A rendering module is used to add the dynamic effect expression to the target layer to obtain a dynamic rendering layer, and generate a dynamic effect video based on the dynamic rendering layer.

9. A video dynamic effect generation device, characterized in that: include: one or more processors; A memory stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the video dynamic effect generation method as described in any one of claims 1-7.

10. A storage medium containing computer-executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the video dynamic effect generation method according to any one of claims 1 to 7.