Video generation method and device, electronic equipment and storage medium

By obtaining image display parameters and video playback duration, and combining them with the target display function to generate video, the problem of unstable video playback in existing technologies is solved, and a more natural video playback experience is achieved.

CN121284331APending Publication Date: 2026-01-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410881649.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

Existing technologies in video production, when using interpolation algorithms or Bézier curves, result in unstable and uneven video playback, leading to a poor user experience.

Method used

By obtaining the display parameters of the image to be processed and combining them with the video playback duration, the target display function is determined. When the video display conditions are met, the video is generated based on the target playback parameters, ensuring precise control at each playback timestamp.

Benefits of technology

It achieves smooth and stable video playback, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121284331A_ABST
    Figure CN121284331A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a video generation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a display parameter of a to-be-processed image under at least one display index; determining at least one target display function associated with the to-be-processed image according to the display parameter and a preset video playing duration; when it is detected that the video display condition is met, based on the at least one target display function, determining a target playing parameter of the to-be-processed image under the at least one playing timestamp within the video playing duration; and playing the to-be-processed image based on the target playing parameter, and generating a target video. According to the technical scheme provided by the embodiment of the invention, the stability and smoothness of video playing are improved, the video playing is ensured to be more natural, and the effect of improving the user experience is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and more particularly to a video generation method, apparatus, electronic device, and storage medium. Background Technology

[0002] Currently, in fields such as animation, video processing, or game development, video production is often required. During the video production process, it is usually necessary to consider how the object attributes in the video frame sequence change. The object can be a point in the video frame, a local image, or the entire image. The object attributes can be point position or rotation angle, etc.

[0003] In existing technologies, there are generally two ways to determine how object attributes change. One way is to use interpolation algorithms to directly connect two objects, achieving a linear transition between object attributes. This transition can result in abrupt visual changes during video frame transitions. The other way is to use Bézier curves to make the transition trajectory between two object attributes conform to the curve. However, when using Bézier curves for video production, the control points are not directly located on the curve, leading to jitter during the transition. Summary of the Invention

[0004] This disclosure provides a video generation method, apparatus, electronic device, and storage medium to improve the smoothness and stability of video playback, making video playback more natural and enhancing the user experience.

[0005] In a first aspect, embodiments of this disclosure provide a video generation method, the method comprising:

[0006] Obtain the display parameters of the image to be processed under at least one display metric;

[0007] Based on the display parameters and the preset video playback duration, determine at least one target display function associated with the image to be processed;

[0008] When the video display conditions are met, the target playback parameters of the image to be processed at at least one playback timestamp within the video playback duration are determined based on the at least one target display function; wherein, the number of the target display functions is related to the number of the display indicators;

[0009] The image to be processed is played based on the target playback parameters, and a target video is generated.

[0010] Secondly, embodiments of this disclosure also provide a video generation apparatus, the apparatus comprising:

[0011] The sharpening parameter acquisition module is used to obtain the image sharpening parameters of the image to be rendered;

[0012] The display parameter acquisition unit is used to acquire the display parameters of the image to be processed under at least one display metric.

[0013] The target display function determination unit is used to determine at least one target display function associated with the image to be processed based on the display parameters and the preset video playback duration.

[0014] The target playback parameter determination unit is used to determine the target playback parameters of the image to be processed at at least one playback timestamp within the video playback duration based on the at least one target display function when the video display conditions are detected to be met; wherein, the number of the target display functions is related to the number of the display indicators;

[0015] The target video generation unit is used to play the image to be processed based on the target playback parameters and generate a target video.

[0016] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:

[0017] One or more processors;

[0018] Storage device for storing one or more programs.

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the video generation method as described in any of the embodiments of this disclosure.

[0020] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the video generation method as described in any of the embodiments of this disclosure.

[0021] Fifthly, embodiments of this disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements the video generation method as described in any of the embodiments of this disclosure.

[0022] The technical solution of this disclosure, when producing a video, can first obtain the display parameters of the image to be processed under at least one display metric. Then, based on the display parameters and a pre-set video playback duration, at least one target display function associated with the image to be processed is determined. When the video display conditions are met, based on the at least one target display function, the target playback parameters of the image to be processed under at least one playback timestamp within the video playback duration are determined. Thus, the image to be processed is played based on the target playback parameters, and the target video is generated. This solves the problem of poor video playback effect in the prior art when using interpolation algorithms or Bézier curves to produce videos. It achieves the precise control of the playback parameters under each playback timestamp by combining the display parameters of the image to be processed under at least one display metric and the video playback duration. The target display function represents the target playback parameters of the image to be processed under each playback timestamp within the video playback duration, thereby ensuring the smoothness and stability of video playback, making the video playback more natural, and improving the user experience. Attached Figure Description

[0023] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0024] Figure 1 This is a flowchart illustrating a video generation method provided in an embodiment of the present disclosure;

[0025] Figure 2 This is a flowchart illustrating a video generation method provided in an embodiment of the present disclosure;

[0026] Figure 3 This is a schematic diagram illustrating a target demonstration function provided in an embodiment of this disclosure;

[0027] Figure 4 This is a schematic diagram of the video generation method provided in the embodiments of this disclosure;

[0028] Figure 5 This is a flowchart illustrating a video generation method provided in an embodiment of the present disclosure;

[0029] Figure 6 This is a flowchart illustrating a video generation method provided in an embodiment of the present disclosure;

[0030] Figure 7 This is a schematic diagram of the video generation method provided in the embodiments of this disclosure;

[0031] Figure 8 This is a schematic diagram of the structure of a video generation apparatus provided in an embodiment of the present disclosure;

[0032] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0033] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0034] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0035] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0036] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0037] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0038] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0039] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0040] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0041] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0042] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0043] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0044] Before introducing this technical solution, an exemplary application scenario can be provided. This technical solution can be applied to any scenario requiring video production. For example, in any scenario such as animation, video processing, or game development, when it is necessary to create a video based on imported images, the technical solution provided in the embodiments of this disclosure can be adopted.

[0045] Figure 1 This is a flowchart illustrating a video generation method provided in an embodiment of the present disclosure. The embodiments of the present disclosure are applicable to any video production scenario. The method can be executed by a video generation device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.

[0046] like Figure 1 As shown, the method in this embodiment may specifically include:

[0047] S110. Obtain the display parameters of the image to be processed under at least one display metric.

[0048] The display metrics can refer to the animation attributes of an image. For example, display metrics include, but are not limited to, at least one of the following: display position metric, image transparency metric, image scaling metric, image rotation angle metric, and video playback speed metric. Display parameters can refer to the specific numerical values ​​of the animation attributes. It should be noted that display parameters under the same display metric include at least two values ​​to be processed. These at least two values ​​correspond to different video frame positions in the video frame sequence. For example, display parameters under the display position metric include two positions (i.e., values ​​to be processed). One position can be used as the starting point, and the other as the ending point, creating a transition from the starting point to the ending point, forming a video frame position change effect. Alternatively, display parameters under the image transparency metric include two transparency values ​​(i.e., values ​​to be processed). One transparency can be used as the starting point, and the other as the ending point, creating a transition from the starting point to the ending point, forming a video frame transparency change effect.

[0049] Specifically, when creating a video based on an image, that image can be used as a target image. To enable the target image to play as a video according to user requirements, display parameters corresponding to at least one display metric can be determined for the target image. These display parameters can be pre-configured or adjusted by the user to create a video corresponding to the target image based on display parameters under different display metrics.

[0050] It should be noted that when there are at least two images to be processed, each image can be processed separately to generate a video based on each image.

[0051] In this embodiment, when acquiring the display parameters of the image to be processed under at least one display metric, the user can edit the display parameters under at least one display metric. Optionally, in response to the display parameter editing operation of the image to be processed in the video editing interface, at least two display parameters of the image to be processed are acquired.

[0052] In this embodiment, the image to be processed can be displayed on the video editing interface. Users can configure display parameters for the image under at least one display metric based on actual needs or image display effects, thereby obtaining at least two display parameters corresponding to the image to be processed.

[0053] For example, some display parameters can be preset. After importing the image to be processed, two transparency values, such as 5 and 25, can be entered in the display parameters under the image transparency index, indicating that the image changes from transparency 5 to transparency 25; or, two scaling values, such as 70% and 80%, can be entered in the display parameters under the image scaling index, indicating that the image changes from scaling 70% to scaling 80%.

[0054] In this embodiment, when obtaining the display parameters of the image to be processed under at least one display metric, the display parameters corresponding to the target video template can also be retrieved in response to the triggering operation of the target video template. When an editing operation on the display parameters is detected, the updated display parameters can be obtained.

[0055] The target video template includes display parameters such as position, transparency, and rotation information. Different target video templates correspond to different transformed videos.

[0056] In this embodiment, users can select a template that meets their needs based on the video template display effect; the selected template is the target video template. Then, pre-cached display parameters corresponding to the target video template are obtained. Users can adjust these display parameters, for example, changing the transparency of point A from 5 to 25, and then updating it from 5 to 45, to create a video based on the adjusted display parameters.

[0057] The advantage of using the above method to determine display parameters is that users can select a template that meets their needs based on the video template display effect and obtain the display parameters. They can also adjust the display parameters according to actual needs and only update the adjusted display parameters. This improves the convenience of determining display parameters while meeting the needs of users' video production.

[0058] S120. Based on the display parameters and the preset video playback duration, determine at least one target display function associated with the image to be processed.

[0059] The video playback duration can refer to the total length of the video to be created. For example, the video playback duration can be 1 second or 2 seconds, which can be set by the user according to actual needs without specific limitations. The target display function can be used to characterize the transformation process from the first display parameter to the last display parameter under the same display metric. Different target display functions correspond to different display metrics, and the number of target display functions is related to the number of display metrics. That is, there is a corresponding target display function for each display metric.

[0060] In this embodiment, the method for determining the target display function associated with each display metric is the same. For a given display metric, a Bézier curve can be calculated based on at least two display parameters corresponding to that metric and the video playback duration to obtain the target display function associated with that metric. This target display function describes how the image to be processed is displayed at each playback timestamp within the video playback duration. Accordingly, the target display function associated with the image to be processed under each display metric can be obtained.

[0061] S130. When the video display conditions are met, the target playback parameters of the image to be processed at at least one playback timestamp within the video playback duration are determined based on at least one target display function.

[0062] Here, video display conditions refer to the conditions used to determine whether or not to display the video. Each playback timestamp can be considered a point in time within the video playback duration. During video playback, each frame has a timestamp, indicating the playback time of that frame within the video. Target playback parameters can refer to the playback attribute information of the image. Target playback parameters include display position parameters, transparency parameters, rotation angle parameters, and / or video playback speed parameters.

[0063] In this embodiment, video display conditions can be pre-configured. For example, a video display condition could be triggered by a video display control. For instance, when a user clicks the video share button on the interface, it is considered that the video display condition has been met; or, when a user clicks the video creation button on the interface, it can also be considered that the video display condition has been met. Furthermore, the target playback parameters of the image to be processed under one or more playback timestamps within the video playback duration can be determined through the target display function corresponding to each display metric. For example, the target display function contains a correspondence between each input value and a unique output value. The input value is considered a playback timestamp, and the unique output value corresponding to the playback timestamp is the target playback parameter corresponding to that playback timestamp, which is also the target playback parameter of the image to be processed under that playback timestamp.

[0064] S140. Play the image to be processed based on the target playback parameters and generate the target video.

[0065] In this embodiment, the images to be processed can be processed and played sequentially using the target playback parameters corresponding to each playback timestamp according to the temporal relationship of the playback timestamps. The continuous playback of images with multiple timestamps forms a video, which is the target video.

[0066] It should be noted that during video playback, before reaching each playback timestamp, the image to be processed can be used with the target playback parameters corresponding to that timestamp before playback. The processing method for the image to be processed is the same for all images; any of the playback timestamps can be used as the current timestamp. The following explanation uses the processing of the image based on the target playback parameters corresponding to the current timestamp as an example.

[0067] In this embodiment, playing the image to be processed based on the target playback parameters and generating the target video includes: adjusting the image to be processed according to the target playback parameters of the current timestamp to obtain a video frame corresponding to the current timestamp; and generating the target video based on the video frames generated at least one playback timestamp within the video playback duration.

[0068] Specifically, the target playback parameters for the current timestamp can be used to adjust the image to be processed. The adjusted image is then used as a video frame corresponding to the current timestamp. Consequently, the video frame corresponding to each playback timestamp can be obtained. Furthermore, based on the temporal relationship of all playback timestamps, the video frames corresponding to each playback timestamp can be played sequentially, continuously playing the video frames to form the target video.

[0069] For example, assuming the target playback parameters for the current timestamp include: point coordinates (1,1), transparency (25), scaling size (80%), and video speed (1.5), then the point position, transparency, and image scaling size in the image to be processed can be adjusted according to these target playback parameters, and the video speed of the image to be processed at the current timestamp can be adjusted to play the adjusted video frames.

[0070] The technical solution of this disclosure, when producing a video, can first obtain the display parameters of the image to be processed under at least one display metric. Then, based on the display parameters and a pre-set video playback duration, at least one target display function associated with the image to be processed is determined. When the video display conditions are met, based on the at least one target display function, the target playback parameters of the image to be processed under at least one playback timestamp within the video playback duration are determined. Thus, the image to be processed is played based on the target playback parameters, and the target video is generated. This solves the problem of poor video playback effect in the prior art when using interpolation algorithms or Bézier curves to produce videos. It achieves the precise control of the playback parameters under each playback timestamp by combining the display parameters of the image to be processed under at least one display metric and the video playback duration. The target display function represents the target playback parameters of the image to be processed under each playback timestamp within the video playback duration, thereby ensuring the smoothness and stability of video playback, making the video playback more natural, and improving the user experience.

[0071] Figure 2 This is a flowchart illustrating a video generation method provided in an embodiment of this disclosure. Based on the foregoing embodiments, the display parameters under at least one display metric include at least two values ​​to be processed. Accordingly, the statement "determine at least one target display function associated with the image to be processed based on the display parameters and a pre-set video playback duration" can be further refined. For detailed implementation methods, please refer to the detailed description of the embodiments of this disclosure. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here.

[0072] like Figure 2 As shown, the method in this embodiment may specifically include:

[0073] S210. Obtain the display parameters of the image to be processed under at least one display metric.

[0074] S220. For at least one display indicator, based on the two unprocessed values ​​under the display indicator and the control point determination information, determine at least two control point information corresponding to the display indicator.

[0075] The control point determination information can be pre-set attribute information for control points, which are points on the Bézier curve and can be determined by the user. It should be noted that the two pending values ​​under the displayed indicator represent the starting point and the ending point, respectively, requiring a transformation from the starting point to the ending point. For an example, see [link to example]. Figure 3 The black dots pointed to by the arrows on the left and right sides represent the values ​​to be processed, and the remaining black dots in the middle represent control points.

[0076] In this embodiment, control point determination information under the display indicator is obtained. Then, based on the two unprocessed values ​​under the display indicator, the control point determination information can be normalized to adjust the control point determination information to a preset range (such as the range of 0 to 1). The normalized control point determination information can be used as control point information. For example, if the control point determination information is the coordinate position of a point within 0-2s as (1.5, 1.5), (1.5, 1.5) can be normalized to represent the coordinate position of the point within 0-1s as (0.75, 0.75).

[0077] S230. Based on the two unprocessed values ​​corresponding to the display indicators, at least two control point information, video playback duration, and a preset third-order Bézier curve, determine the target display function corresponding to the display indicators.

[0078] The target display function is the function obtained after determining the coefficients of the preset third-order Bézier curve.

[0079] In this embodiment, two values ​​to be processed corresponding to the display index, at least two control point information, and video playback duration can be input into a preset third-order Bézier curve. The coefficients in the preset third-order Bézier curve are calculated, and the Bézier function after determining the coefficients is used as the target display function.

[0080] For example, see Figure 4Users can edit the attribute information of all points (including two values ​​to be processed and at least two control point information) on the client side. This attribute information can then be stored in a library and combined with a third-order Bézier curve to generate the target display function. A third-order Bézier curve is a smooth curve. It is typically defined by four points: two endpoints (e.g., P0 and P3) and two control points (e.g., P1 and P2). Endpoints P0 and P3 are the start and end points of the curve, respectively, while the shape of the curve is controlled by the positions of control points P1 and P2. For example, a third-order Bézier curve can be represented as: B(t) = (1-t) 3 P0+3(1-t) 2 tP1+3(1-t)t 2 P2+t 3 P3; where B(t) represents a point on the Bézier curve (the horizontal axis of the point represents the timestamp, and the vertical axis represents the display parameter), t is the parameter (0≤t≤1), P0 and P3 are the start and end points of the curve, and P1 and P2 are the control points of the curve.

[0081] S240. When the video display conditions are met, based on at least one target display function, determine the target playback parameters of the image to be processed at at least one playback timestamp within the video playback duration.

[0082] S250: Play the image to be processed based on the target playback parameters and generate the target video.

[0083] The technical solution of this disclosure embodiment determines the position of control points in the Bézier curve by user control, allowing users to freely move these points to achieve their desired animation effects. Simultaneously, normalization of the control point determination information ensures data consistency and guarantees the accuracy of video production. Furthermore, based on two unprocessed values ​​corresponding to the display metric, at least two control point information points, video playback duration, and a preset third-order Bézier curve, a target display function corresponding to the display metric is determined. This target display function describes the transformation curve from the first unprocessed value to the second unprocessed value, ensuring the smoothness and stability of the transition.

[0084] Figure 5 This is a flowchart illustrating a video generation method provided in an embodiment of this disclosure. Based on the foregoing embodiments, the display parameters under the display indicators include at least three values ​​to be processed. Accordingly, the statement "determine at least one target display function associated with the image to be processed based on the display parameters and a pre-set video playback duration" can be further refined. For detailed implementation methods, please refer to the detailed description of the embodiments of this disclosure. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here.

[0085] like Figure 5 As shown, the method in this embodiment may specifically include:

[0086] S310. Obtain the display parameters of the image to be processed under at least one display metric.

[0087] S320. Based on preset conditions, group at least two values ​​to be processed under the displayed indicators to obtain at least one data group.

[0088] The preset conditions can refer to the conditions for grouping numerical values. A data group includes two numerical values ​​to be processed that are adjacent in the editing or display order.

[0089] In this embodiment, grouping conditions can be pre-configured. For example, the preset conditions can be conditions for grouping values ​​according to editing order or display order. In this way, according to the preset conditions, every two values ​​to be processed that are adjacent in editing order under the display indicators can be grouped into a group to obtain at least one data group; or, according to the preset conditions, every two values ​​to be processed that are adjacent in display order under the display indicators can be grouped into a group to obtain at least one data group.

[0090] For example, the display parameters under the display position index include four values ​​to be processed: (0,0), (0.25,0.25), (0.75,0.75), and (1,1). They can be divided into three groups according to the display order: ((0,0),(0.25,0.25)), ((0.25,0.25),(0.75,0.75)), and ((0.75,0.75),(1,1)). Each group is called a data group.

[0091] S330. For at least one data set, based on the two values ​​to be processed in the data set and the control point determination information, determine at least two control point information corresponding to the data set.

[0092] It should be noted that the method for determining the segmented display function corresponding to each data group is the same. We can take the determination of the segmented display function corresponding to any one of the data groups as an example for explanation.

[0093] In this embodiment, the method for determining at least two control point information corresponding to the data group is similar to the method for determining at least two control point information corresponding to the display indicators. Both are for the purpose of normalizing the control point determination information and ensuring data consistency, and will not be elaborated here.

[0094] S340. Based on the two values ​​to be processed associated with the data group, at least two control point information, the image display duration of the image to be processed corresponding to the data group, and the preset third-order Bézier curve, determine the piecewise display function corresponding to the data group.

[0095] The image display duration is the duration parameter in the video playback duration. The piecewise display function is a function obtained after determining the coefficients of a preset third-order Bézier curve. Each piecewise display function is a third-order Bézier function.

[0096] In this embodiment, the image display duration corresponding to a data group can be determined based on the interval between two values ​​to be processed in the data group; alternatively, the image display duration corresponding to each data group can be pre-configured. Further, the two values ​​to be processed in the data group, at least two control point information, and the image display duration of the image to be processed corresponding to the data group can be input into a preset third-order Bézier curve. The third-order Bézier curve between the two values ​​to be processed is solved to obtain the coefficients in the third-order Bézier curve. The third-order Bézier function with determined coefficients is used as the piecewise display function corresponding to the data group. Accordingly, the piecewise display function corresponding to each data group can be obtained, and each piecewise display function is a third-order Bézier function with a continuous second derivative.

[0097] The following is an example of how to determine the coefficients of a preset third-order Bézier curve:

[0098] Given n+1 (e.g., x0, x1, ..., x... n Generate n segments of Bessel function from ) points, with x0 as the starting point and x... n The endpoint is defined as y = a, and the remaining points are intermediate points between the starting point and the endpoint. Two adjacent points form a data set, and n data sets correspond to n segments of Bessel functions. Each segment is a second-order continuous function and a cubic polynomial with four variables. The cubic polynomial is represented as: y = a i +b i x+c i x 2 +d i x 3 (1). Among them, variable a i b i c i and d i These are the coefficients to be determined in the function.

[0099] First, we can define a function S(x)∈C2[a,b], which is a cubic polynomial on each subinterval [xi,xi+1], where a=x0 <x1<...<x n =If b is a given node, then S(x) is called a node x0, x1, ..., xn. n A cubic spline function on [a node x]. If at node x... i Given the function value y i =f(x) i (i = 0, 1, ..., n), then S(x) i )=yi (i = 0, 1, ..., n) holds true.

[0100] Constraints: From the above cubic polynomial (1), we know that there are a total of n segments of function, each function has 4 parameters, for a total of 4n parameters, so 4n equations are needed to solve the problem. Because the function is continuous as a whole, at node x... i The continuity condition should be satisfied at (i = 1, 2, ..., n-1): 3*(n-1). Each (x i y i The condition (n+1) is satisfied, i.e., S(x) i )=y i (i = 0, 1, ..., n).

[0101] The two boundary lines are: S"(x0) = S"(x n ) = 0.

[0102] Furthermore, the three-moment equations can be solved by defining a set of numbers M. i =S"(x i ). Due to S i "(x) is [x]" i x i+1 A cubic polynomial over ], therefore S i "(x) is a condition that satisfies S"(x) i ) = M i and S"(x i+1 ) = M i+1 It is a linear function, therefore S i (x) is also M i and M i+1 The straight line between them: Among them, h i =x i+1 -x i .

[0103] Equation (2) can be obtained by integrating equation (3); Equation (3) is expressed as: Interpolation condition S i (x)=y i and S i (x i+1 )=y i+1 Acting on S i We can determine C and D in equation (3) and obtain equation (4).

[0104] Equation (4) can be expressed as:

[0105] From equation (4), we can obtain...

[0106] S i (x)=S i-1 (x i );

[0107]

[0108] Equation (7) can be obtained from equations (5) and (6), and equation (7) is expressed as: In equation (7), M0 = M n =0.

[0109] Establish a matrix based on equation (7), solve for M, and substitute it into equation (4) to obtain S. i (x), and correspondingly, nodes x0, x1, ..., x2 are obtained. n The cubic spline function is considered as a piecewise display function.

[0110] The matrix can be represented as: h i =x i+1 -x i ;u i =2(h) i +h i-1 ); v i =b i -b i-1 .

[0111] S350. Determine the target display function based on the segmented display function corresponding to at least one data group.

[0112] In this embodiment, the segmented display function corresponding to each data group constitutes the entire target display function. For an example, see below. Figure 3 The curve segment between two adjacent points can be represented as a piecewise display function, and the entire curve segment from the starting point to the end point is called the target display function.

[0113] S360. When the video display conditions are met, based on at least one target display function, determine the target playback parameters of the image to be processed at at least one playback timestamp within the video playback duration.

[0114] S370: Play the image to be processed based on the target playback parameters and generate the target video.

[0115] The technical solution of this disclosure embodiment groups at least two values ​​to be processed under the display index according to preset conditions, and determines at least two control point information corresponding to the data group based on the two values ​​to be processed in the data group and the control point determination information, so as to ensure data consistency. Then, based on the two values ​​to be processed associated with the data group, the at least two control point information, the image display duration of the image to be processed corresponding to the data group, and the preset third-order Bézier curve, a piecewise display function corresponding to the data group is determined, so that each data group corresponds to a piecewise display function, ensuring the smoothness and stability of video frame changes.

[0116] Figure 6 This is a flowchart illustrating a video generation method provided in an embodiment of this disclosure. Based on the foregoing embodiments, the statement "When video display conditions are detected, based on at least one target display function, determine the target playback parameters of the image to be processed at at least one playback timestamp within the video playback duration" can be further refined. For detailed implementation methods, please refer to the detailed description of the embodiments of this disclosure. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here.

[0117] like Figure 6 As shown, the method in this embodiment may specifically include:

[0118] S410. Obtain the display parameters of the image to be processed under at least one display metric.

[0119] S420. Based on the display parameters and the preset video playback duration, determine at least one target display function associated with the image to be processed.

[0120] S430. When the system detects that the editing completion control has been triggered and / or the editing duration has reached the preset editing duration threshold, obtain the current timestamp of the target video.

[0121] Among them, editing time can refer to the duration after editing the display parameters.

[0122] In this embodiment, the video display condition can be triggered by the completion of the editing control and / or the editing duration reaching a preset editing duration threshold. Thus, when the system detects that the user has clicked the completion of the editing control, or that the duration of the editing operation on the display parameters has reached the preset editing duration threshold, it confirms that the video display condition is met. At this point, the first playback timestamp of the target video can be obtained as the current timestamp.

[0123] S440. Substitute the current timestamp into at least one target display function to obtain the target playback parameters corresponding to at least one display indicator at the current timestamp.

[0124] In this embodiment, the current timestamp can be substituted into each target display function, and each target display function can output the target playback parameters corresponding to the display index at the current timestamp, so that the image to be processed can be played at the current timestamp according to each target playback parameter.

[0125] For example, see Figure 7 The timestamp X is input from the client to the target display function, and the output ordinate Y is the target playback parameter corresponding to the timestamp X.

[0126] It should be noted that if there are multiple data groups, the timestamps belonging to the data group need to be input into the segmented display function corresponding to that data group to ensure the accuracy of the target playback parameters.

[0127] In this embodiment, the current timestamp is substituted into at least one target display function to obtain the target playback parameters of at least one display metric under the current timestamp, including: for the target display function of at least one display metric, determining the target segmented display function of the current timestamp under the current display metric; substituting the current timestamp into the target segmented display function to obtain the playback parameters to be merged under the current display metric; and determining the target playback parameters based on the playback parameters to be merged under at least one display metric.

[0128] In this embodiment, after determining the current timestamp, the data group containing the current timestamp and its corresponding segmented display function for the current display metric can be determined, and this segmented display function is used as the target segmented display function. Then, the current timestamp is input into the target segmented display function, and the output value of the target segmented display function is used as the playback parameter to be merged for the current timestamp under the current display metric. The playback parameters to be merged under each display metric can be used as the target playback parameters.

[0129] For example, see [link to previous article] Figure 7 The client inputs a timestamp X, where x is the x-coordinate value. The system calculates which interval x falls within (i.e., the duration of the image display), inputs the result of the segmented display function corresponding to that interval's data set, and returns the Y-value corresponding to x to the client. This Y-value is the target playback parameter. (See also...) Figure 3 , Figure 3 The horizontal axis represents the timestamp, and the vertical axis represents the playback parameters. Each timestamp corresponds to a target playback parameter.

[0130] S450. When playing the image to be processed corresponding to the playback timestamp according to the target playback parameters, obtain the next playback timestamp as the current timestamp.

[0131] In practical applications, after determining the target playback parameters corresponding to at least one display indicator at the current timestamp, the image to be processed can be adjusted according to the target playback parameters, and the adjusted image to be processed can be played at the current timestamp (i.e., the playback timestamp). The next playback timestamp is then used as the current timestamp, and steps S440-S450 are executed again to continuously play images at multiple timestamps and generate the target video.

[0132] S460: Play the image to be processed based on the target playback parameters and generate the target video.

[0133] The technical solution of this disclosure, by detecting that the editing completion control is triggered and / or the editing duration reaches a preset editing duration threshold, obtains the current timestamp of the target video, and then substitutes the current timestamp into at least one target display function to obtain the target playback parameters corresponding to at least one display indicator under the current timestamp. When playing the image to be processed corresponding to the playback timestamp according to the target playback parameters, the next playback timestamp is obtained as the current timestamp, thereby realizing real-time playback of video frames, ensuring the smoothness of video playback, and making the video playback more natural.

[0134] Figure 8 This is a schematic diagram of the structure of a video generation apparatus provided in an embodiment of this disclosure, as shown below. Figure 8 As shown, the device includes: a display parameter acquisition module 510, a target display function determination module 520, a target playback parameter determination module 530, and a target video generation module 540.

[0135] The system includes a display parameter acquisition module 510, used to acquire display parameters of the image to be processed under at least one display metric; a target display function determination module 520, used to determine at least one target display function associated with the image to be processed based on the display parameters and a pre-set video playback duration; a target playback parameter determination module 530, used to determine the target playback parameters of the image to be processed under at least one playback timestamp within the video playback duration based on the at least one target display function when the video display conditions are detected; wherein the number of target display functions is related to the number of display metrics; and a target video generation module 540, used to play the image to be processed based on the target playback parameters and generate a target video.

[0136] The technical solution of this disclosure, when producing a video, can first obtain the display parameters of the image to be processed under at least one display metric. Then, based on the display parameters and a pre-set video playback duration, at least one target display function associated with the image to be processed is determined. When the video display conditions are met, based on the at least one target display function, the target playback parameters of the image to be processed under at least one playback timestamp within the video playback duration are determined. Thus, the image to be processed is played based on the target playback parameters, and the target video is generated. This solves the problem of poor video playback effect in the prior art when using interpolation algorithms or Bézier curves to produce videos. It achieves the precise control of the playback parameters under each playback timestamp by combining the display parameters of the image to be processed under at least one display metric and the video playback duration. The target display function represents the target playback parameters of the image to be processed under each playback timestamp within the video playback duration, thereby ensuring the smoothness and stability of video playback, making the video playback more natural, and improving the user experience.

[0137] Based on the above technical solution, the display parameter acquisition module 510 is specifically used to acquire at least two display parameters of the image to be processed in response to the display parameter editing operation of the image to be processed in the video editing interface; or, in response to the triggering operation of the target video template, to retrieve the pre-cached display parameters corresponding to the target video template, and to acquire the updated display parameters when the editing operation of the display parameters is detected.

[0138] Based on the above technical solution, the display indicators include at least one of the following: display position indicator, image transparency indicator, image rotation angle indicator, and video playback speed indicator, and the display parameters under the at least one display indicator include at least two values ​​to be processed.

[0139] Based on the above technical solution, the target display function determination module 520 includes:

[0140] The first control point information determination unit is used to determine, for the at least one display indicator, at least two control point information corresponding to the display indicator based on two unprocessed values ​​under the display indicator and control point determination information;

[0141] The first unit for determining the target display function is used to determine the target display function corresponding to the display index based on two unprocessed values ​​corresponding to the display index, at least two control point information, the video playback duration, and a preset third-order Bézier curve; wherein, the target display function is a function obtained after determining the coefficients of the preset third-order Bézier curve.

[0142] Based on the above technical solution, the display parameters under the display index include at least three values ​​to be processed, and the target display function determination module 520 includes:

[0143] The data group determination unit is used to group at least two values ​​to be processed under the display index according to preset conditions to obtain at least one data group, wherein the data group includes two values ​​to be processed that are adjacent in editing order or display order.

[0144] The second control point information determination unit is used to determine, for the at least one data group, at least two control point information corresponding to the data group based on two values ​​to be processed in the data group and control point determination information.

[0145] The segmented display function determination unit is used to determine the segmented display function corresponding to the data group based on two unprocessed values ​​associated with the data group, the information of the at least two control points, the image display duration of the unprocessed image corresponding to the data group, and a preset third-order Bézier curve; wherein, the image display duration is the duration parameter in the video playback duration, and the segmented display function is a function obtained after determining the coefficients of the preset third-order Bézier curve;

[0146] The second unit for determining the target display function is used to determine the target display function based on the segmented display function corresponding to the at least one data group.

[0147] Based on the above technical solution, the target playback parameter determination module 530 includes:

[0148] The current timestamp acquisition unit is used to acquire the current timestamp of the target video when it is detected that the editing completion control is triggered and / or the editing duration reaches a preset editing duration threshold;

[0149] The target playback parameter determination unit is used to substitute the current timestamp into the at least one target display function to obtain the target playback parameters corresponding to at least one display indicator under the current timestamp;

[0150] The current timestamp determination unit is used to obtain the next playback timestamp as the current timestamp when playing the image to be processed corresponding to the playback timestamp according to the target playback parameters.

[0151] Based on the above technical solution, the target playback parameter determination unit includes:

[0152] The target segmented display function determination unit is used to determine the target segmented display function of the current timestamp under the current display function for the target display function of the at least one display indicator;

[0153] The unit for determining playback parameters to be merged is used to substitute the current timestamp into the target segmented display function to obtain the playback parameters to be merged under the current display index;

[0154] The target playback parameter determination subunit is used to determine the target playback parameters based on the playback parameters to be merged under at least one display metric.

[0155] Based on the above technical solution, the target playback parameters include display position parameters, transparency parameters, rotation angle parameters, and / or video playback speed parameters, and the target video generation module 540 includes:

[0156] The video frame determination unit is used to adjust the image to be processed according to the target playback parameters of the current timestamp to obtain a video frame corresponding to the current timestamp;

[0157] The target video determination unit is used to generate the target video based on the video frames generated at least once during the video playback duration.

[0158] The video generation apparatus provided in this disclosure can execute the video generation method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.

[0159] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0160] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 9 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 9 The diagram below shows the structure of the terminal device or server 600. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0161] like Figure 9As shown, electronic device 600 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of electronic device 600. The processing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. An edit / output (I / O) interface 605 is also connected to bus 604.

[0162] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 9 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0163] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.

[0164] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0165] The electronic device provided in this disclosure and the video generation method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this disclosure can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0166] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the video generation method provided in the above embodiments.

[0167] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0168] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0169] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0170] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire display parameters of an image to be processed under at least one display metric; determine at least one target display function associated with the image to be processed based on the display parameters and a pre-set video playback duration; when a video display condition is detected to be met, determine target playback parameters of the image to be processed under at least one playback timestamp within the video playback duration based on the at least one target display function; wherein the number of target display functions is associated with the number of display metrics; play the image to be processed based on the target playback parameters, and generate a target video.

[0171] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0172] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0173] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0174] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0175] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0176] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0177] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0178] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method of video generation, the method comprising: The method comprises the following steps: acquiring display parameters of a to-be-processed image under at least one display index; determining at least one target display function associated with the to-be-processed image according to the display parameters and a preset video playing time length; when a video display condition is detected, determining target playing parameters of the to-be-processed image under at least one playing time stamp within the video playing time length based on the at least one target display function; the number of the target display functions is associated with the number of the display indexes; playing the to-be-processed image based on the target playing parameters and generating a target video.

2. The method of claim 1, wherein, The acquiring of the display parameters of the to-be-processed image under at least one display index comprises: in response to a display parameter editing operation of the to-be-processed image in a video editing interface, acquiring at least two display parameters of the to-be-processed image; or in response to a triggering operation of a target video template, calling pre-stored display parameters corresponding to the target video template, and acquiring updated display parameters when an editing operation of the display parameters is detected.

3. The method of claim 1, wherein, The display indexes comprise at least one of the following: a display position index, an image transparency index, an image rotation angle index and a video speed playing index; the display parameters under the at least one display index comprise at least two to-be-processed values.

4. The method of claim 3, wherein, The determining of the at least one target display function associated with the to-be-processed image according to the display parameters and the preset video playing time length comprises: for the at least one display index, determining at least two control point information corresponding to the display index according to two to-be-processed values under the display index and control point determination information; determining a target display function corresponding to the display index according to the two to-be-processed values corresponding to the display index, the at least two control point information, the video playing time length and a preset cubic Bezier curve; wherein the target display function is a function obtained after determining coefficients of the preset cubic Bezier curve.

5. The method of claim 1, wherein, The display parameters under the display index comprise at least three to-be-processed values; the determining of the at least one target display function associated with the to-be-processed image according to the display parameters and the preset video playing time length comprises: grouping at least two to-be-processed values under the display index according to a preset condition to obtain at least one data group, wherein the data group comprises two to-be-processed values adjacent in editing order or display order; for the at least one data group, determining at least two control point information corresponding to the data group according to two to-be-processed values in the data group and control point determination information; determining a segmented display function corresponding to the data group according to two to-be-processed values associated with the data group, the at least two control point information, an image display time length of the to-be-processed image corresponding to the data group and a preset cubic Bezier curve; wherein the image display time length is a time length parameter in the video playing time length, and the segmented display function is a function obtained after determining coefficients of the preset cubic Bezier curve. Determine the target display function according to a segment display function corresponding to the at least one data set.

6. The method of claim 1, wherein, The target display function is determined according to a segment display function corresponding to the at least one data set. The target display function is determined according to a segment display function corresponding to the at least one data set. When it is detected that the editing completion control is triggered and / or the editing duration reaches a preset editing duration threshold, a current timestamp of the target video is obtained. The current timestamp is substituted into the at least one target display function to obtain a target playback parameter corresponding to at least one display index at the current timestamp.

7. The method of claim 6, wherein, When the target playback parameter is used to play the to-be-processed image corresponding to the playback timestamp, a next playback timestamp is obtained as the current timestamp. The target display function is determined according to a segment display function corresponding to the at least one data set. For the target display function of the at least one display index, a target segment display function of the current timestamp under the current display index is determined. The current timestamp is substituted into the target segment display function to obtain a to-be-fused playback parameter of the current timestamp under the current display index.

8. The method according to claim 1 or 7, characterized in that, The target playback parameter is determined according to the to-be-fused playback parameter under at least one display index. The target playback parameter includes a display position parameter, a transparency parameter, a rotation angle parameter, and / or a video speed playback parameter. According to the target playback parameter of the current timestamp, the to-be-processed image is adjusted to obtain a video frame corresponding to the current timestamp.

9. A video generating apparatus characterized by comprising: According to the generated video frame at at least one playback timestamp within the video playback duration, the target video is generated. The electronic device includes: One or more processors; Storage device for storing 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 generation method of any one of claims 1-8.

10. An electronic device, comprising: The computer executable instructions, when executed by a computer processor, are used to perform the video generation method of any one of claims 1-8. The computer executable instructions, when executed by a computer processor, are used to perform the video generation method of any one of claims 1-8. ​ ​ 11. A storage medium containing computer-executable instructions, wherein: ​ 12. A computer program product comprising a computer program, characterized in that, The computer program, which when executed by a processor implements the video generation method of any one of claims 1-8.