Video generation method and device, equipment and storage medium

By rendering and processing the image content node to generate videos, the problem of limited information on static image display is solved, and the amount of information exported and the effect of improving content is achieved.

CN118900343APending Publication Date: 2024-11-05GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310477793.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In the prior art, the static image display information exported by content is relatively limited, the export effect is poor, and the amount of information cannot be effectively enriched.

Method used

By acquiring multiple image content nodes, including picture nodes and writing nodes, image rendering processes are performed on them, multiple image frames are generated, and videos are generated based on these frames, and the input order of content nodes is dynamically presented, and content is exported in the form of video.

Benefits of technology

It enriches the amount of information exported by content and improves the content export effect, so that static pictures and writing records can be shared and displayed more effectively in the form of dynamic videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900343A_ABST
    Figure CN118900343A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a video generation method and device, equipment and a storage medium. According to the technical scheme provided by the embodiment of the invention, the image rendering processing is performed on the plurality of image content nodes to obtain the plurality of image frames, the first video is generated based on the plurality of image frames, the input sequence of the plurality of image content nodes can be dynamically presented through the first video, the image content is exported in a video mode, and the user experience is improved. The content exporting information amount is effectively enriched, and the content exporting effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of audio and video processing technology, and in particular to a video generation method, apparatus, device and storage medium. Background Art

[0002] With the development of computer technology, there are more and more ways to share content. Users can display and explain content through content display programs. For example, users can explain content while displaying pictures or writing. After the content explanation is finished, the displayed content can be exported and saved for sharing.

[0003] Existing content exports are generally static images or writing tracks. For example, after the user finishes sharing the content, the last element displayed on the screen is exported as an image. However, the information displayed in the static images exported by this image generation method is relatively limited, and the content export effect is poor. Summary of the invention

[0004] The embodiments of the present application provide a video generation method, apparatus, device and storage medium to solve the technical problems in the related art that the static image display is relatively limited and the content export effect is poor, enrich the amount of information exported, and improve the content export effect.

[0005] In a first aspect, an embodiment of the present application provides a video generation method, comprising:

[0006] Acquire a plurality of image content nodes, wherein the image content nodes include at least one of a picture node and a writing node;

[0007] Image rendering processing is performed on the plurality of image content nodes to obtain a plurality of image frames, and a first video is generated based on the plurality of image frames, wherein the first video is used to dynamically present an input sequence of the plurality of image content nodes.

[0008] In a second aspect, an embodiment of the present application provides a video generation device, including a node acquisition module and a first video module, wherein:

[0009] The node acquisition module is used to acquire a plurality of image content nodes, wherein the image content nodes include at least one of a picture node and a writing node;

[0010] The first video module is used to perform image rendering processing on the multiple image content nodes to obtain multiple image frames, and generate a first video based on the multiple image frames. The first video is used to dynamically present the input order of the multiple image content nodes.

[0011] In a third aspect, an embodiment of the present application provides a video generating device, including: a memory and one or more processors;

[0012] A memory for storing one or more programs;

[0013] When one or more programs are executed by one or more processors, the one or more processors implement the video generation method as described in the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides a storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute the video generation method as described in the first aspect.

[0015] The embodiment of the present application obtains multiple image frames by performing image rendering processing on multiple image content nodes, and generates a first video based on the multiple image frames. The input order of the multiple image content nodes can be dynamically presented through the first video, and the image content can be exported in the form of video, which effectively enriches the amount of information exported for the content and improves the content export effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flow chart of a video generation method provided in an embodiment of the present application;

[0017] Figure 2 is a flowchart of another video generation method provided by an embodiment of the present application;

[0018] Figure 3 This is a schematic diagram of generating the number of key frames under different schemes for determining the number of supplementary frames provided in an embodiment of the present application;

[0019] Figure 4 This is a schematic diagram of generating a writing key frame provided in an embodiment of the present application;

[0020] Figure 5 is a flowchart of another video generation method provided by an embodiment of the present application;

[0021] Figure 6 This is a schematic diagram of a frame complement alignment process provided by an embodiment of the present application;

[0022] Figure 7 is a structural schematic diagram of a video generating device provided in an embodiment of the present application;

[0023] Figure 8 It is a structural schematic diagram of a video generating device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The above process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0025] The video generation method provided in this application can be applied to scenes such as meetings and education. For example, when a conference tablet is used for a meeting, the meeting-related personnel can use the conference tablet to display content (such as displaying images, writing, etc.), and can also explain the displayed content, and can record the explanation content by recording; or when a teaching tablet is used for teaching, the teacher can use the teaching tablet to display content (such as displaying images, writing, etc.), and can also explain the displayed content, and can record the explanation content by recording. After the meeting or teaching is over, the video can be exported based on the displayed content (image content node) recorded on the conference tablet, or the video can be exported based on the displayed content and the recorded content (audio content node). By exporting the meeting content or teaching content as a video, the amount of information exported is effectively enriched, and the content export effect is improved.

[0026] Figure 1 A flowchart of a video generating method provided in an embodiment of the present application is given. The video generating method provided in an embodiment of the present application can be executed by a video generating device, which can be implemented by hardware and / or software and integrated in a video generating device.

[0027] The following description is made by taking a video generating device executing a video generating method as an example. Figure 1 , the video generation method comprises:

[0028] S101: Acquire multiple image content nodes, where the image content nodes include at least one of a picture node and a writing node.

[0029] The video generating device provided by this solution can display image content through a set content display program (such as a drawing board program, a teaching program, a conference program, etc.). For example, a user can insert pictures, write, etc. through the drawing board program provided by the video generating device, and display the corresponding pictures, writing tracks, etc. on the application interface of the drawing board program.

[0030] The content nodes provided by the present solution include image content nodes, wherein the image content nodes include at least one of a picture node and a writing node, the picture node can be obtained by recording a picture inserted on a video generating device, and the writing node can be obtained by recording a writing track generated by writing on the video generating device. The picture node provided by the present solution records a picture inserted and displayed on a video generating device, and the writing node records a writing track generated by writing on the video generating device.

[0031] Exemplarily, when it is necessary to export a video based on an image, multiple image content nodes are obtained. Among them, the image content nodes can be currently collected, for example, when the user inserts the image content on the video generation device, the image content nodes are collected in real time, and the image content nodes are directly obtained after the display or explanation of the image content is completed. The image content nodes can also be collected before, for example, when the user needs to export the previously collected image content nodes as a video, the image content nodes can be determined according to the user's selection operation. Optionally, the determination of the end time of the image content display or explanation can be actively triggered by the user, such as the user clicking the recording end button on the operation interface, or it can be determined according to the operation of the video generation device, for example, when no operation of the video generation device is detected within a set time period, it is considered that the display or explanation of the image content is over.

[0032] The writing nodes provided by this solution can be understood as the writing content generated by the writing operation on the video generation device (including the trajectory coordinate information of each writing point on the writing trajectory, the timestamp corresponding to each writing point, etc.), and the writing operation can be performed on the video generation device through a stylus, a mouse, a user's finger, etc. The image node provided by this solution can be understood as the content such as pictures, shapes, elements, etc. inserted on the video generation device. For example, a user can insert a picture on the content display program running on the video generation device, and explain the picture and / or the writing content while writing on the interactive interface of the content display program. At this time, the pictures and handwriting can be collected, and the image content node can be obtained based on the collected pictures and handwriting after the explanation is completed. Optionally, the image content node can be a page of data in a compressed package (such as .mhb format) of data and files in the content display program. The image content node can be obtained based on the user operation record and saved in the disk in the form of a compressed package.

[0033] In a possible embodiment, there may be one or more image content nodes in one explanation of image content. For example, pictures may be inserted multiple times or writing may be performed multiple times in one content explanation (each stroke corresponds to a writing node, where one stroke is from the beginning of the stroke to the beginning of the stroke).

[0034] S102: Perform image rendering processing on multiple image content nodes to obtain multiple image frames, and generate a first video based on the multiple image frames.

[0035] Exemplarily, the image content node obtained above is subjected to image rendering processing to obtain multiple image frames. It is understandable that the screen displayed by the multiple image frames in sequence is the screen corresponding to the process of the user displaying or writing pictures on the video generation device.

[0036] Among them, the image rendering processing of the image content node may be the image rendering processing of the picture node or the writing node, or the image rendering processing of the picture node and the writing node. Among them, the image rendering processing of the writing node may include the image rendering processing of the writing starting point, the writing process and the writing end point in the writing node, and the image rendering processing corresponding to the writing process may be the image frame supplementation and rendering processing between the writing starting point and the writing end point. That is, when the image rendering processing of the writing node in the image content node is performed, in addition to the image rendering of the images corresponding to the writing starting point and the writing end point corresponding to the writing node, and the image frames corresponding to the writing starting point and the writing end point are obtained, the writing node is also subjected to frame supplementation processing, and one or more image frames between the image frames corresponding to the writing starting point and the writing end point are rendered. It can be understood that the picture displayed by the multiple image frames arranged in sequence is the corresponding picture of the user in the process of writing the corresponding strokes. Optionally, there may be multiple writing nodes obtained, and each writing node is individually interpolated to obtain one or more image frames corresponding to the writing process. For example, when a user writes a character composed of multiple strokes, a writing node is generated for each stroke. When image rendering is performed on the writing node, frame interpolation is performed on each writing node to obtain multiple image frames corresponding to each writing node.

[0037] In one embodiment, when image rendering is performed on each image content node, it can be performed based on the picture and / or stroke trajectory existing on the video generation device at the corresponding time point, that is, each image rendering processing result is based on the previous image rendering processing result, and the content corresponding to the current image content node is added. For example, a new picture is added to the image content node this time, or writing begins. The image frame generated this time has a new picture on the screen, or the starting point of the stroke begins to appear, relative to the previous image frame.

[0038] Further, a video data stream is generated according to the multiple image frames obtained by image rendering. Among them, the multiple image frames can be encoded and converted into the first video through the set video processing tool and encoding format, for example, the multiple image frames are encoded in H.264 by the video processing tool ffmpeg, and the multiple image frames are converted into the first video. It needs to be explained that this solution can ensure the picture quality of the first video at the image frame by generating the first video according to the image frame, reduce the impact of video compression on the video quality during the video encoding conversion process, and do not need to record the desktop data during the image content explanation process, reduce the occupation of the device computing resources by the desktop recording, reduce the device jamming, and effectively improve the video generation quality while ensuring the video generation efficiency. Among them, the first video provided by this solution can be used to dynamically present the input order of multiple image content nodes. For example, when playing the screen corresponding to the first video, multiple image content nodes will be displayed in sequence according to the input order of multiple image content nodes, and when adding and displaying image content nodes, the current image content node can be superimposed and displayed on the basis of the previously added image content node, that is, the time corresponding to the current image content node and the picture and / or writing track corresponding to the previously input image content node are displayed.

[0039] Furthermore, after the first video is generated, it can also be converted into a format so that it can be directly played by the user. It is understandable that the content displayed by the first video after the format conversion includes pictures displayed by the user during the content display or explanation process and / or writing tracks on the video generation device. Among them, the first video can be converted into a format through a set video processing tool and encoding format. For example, the first video is converted into MP4 format through the video processing tool ffmpeg.

[0040] For example, the teacher uses a video generation device to insert the pictures needed to be displayed on the teaching page corresponding to the teaching application. During this period, each time a picture is inserted, an image content node (picture node) is generated, or a writing operation is performed on the video generation device, such as writing the problem-solving process, formula, etc. on the screen of the video generation device. During this period, an image content node (writing node) is generated for each stroke. When the content display and explanation are completed in the classroom, multiple image frames can be generated according to the collected image content nodes, and the multiple image frames can be converted into a first video, which can be saved, played or shared. For example, the teacher can draw a picture, and after exporting the first video, the first video can be used as a teaching video with animation effects, or the teacher shows the notes of the derivation formula. After exporting the first video, the first video data can be used as a teaching video of the derivation formula. Playing the first video can show the entire derivation process of the formula, and the teaching video can be quickly shared. This solution can share static pictures and / or written records in the form of videos. Compared with the picture sharing method, the video sharing method can improve the expressiveness of content sharing and improve the video generation effect.

[0041] As described above, by performing image rendering processing on multiple image content nodes to obtain multiple image frames, and generating a first video based on the multiple image frames, the input order of the multiple image content nodes can be dynamically presented through the first video, and the image content can be exported in the form of video, effectively enriching the amount of information exported for the content and improving the content export effect.

[0042] Based on the above embodiments, Figure 2 A flowchart of another video generation method provided in an embodiment of the present application is given, and the video generation method is a specific embodiment of the above-mentioned video generation method. Figure 2 , the video generation method comprises:

[0043] S201: Acquire multiple image content nodes, where the image content nodes include at least one of a picture node and a writing node.

[0044] S202: Determine the timestamp of each image content node, and perform time sorting on the multiple image content nodes based on the acquired timestamps.

[0045] The image content node provided by the present solution includes at least one of a picture node and a writing node. The image content node records the corresponding node content, and each content node has a corresponding timestamp. The node content corresponding to the picture node includes the inserted picture, and the time corresponding to the timestamp corresponding to the picture node is the time when the picture was inserted. The node content corresponding to the writing node records multiple track coordinate information, and each track coordinate information has a corresponding timestamp, wherein the time corresponding to the timestamp corresponding to the track coordinate information includes the writing starting time corresponding to the writing starting point (i.e., the writing starting point) and the writing ending point time corresponding to the writing starting point (i.e., the writing ending point) in the writing operation.

[0046] The timestamp of each image content node may be obtained at the same time as the image content node is obtained. For example, the image content node records the inserted picture or writing track, and the corresponding timestamp (including the timestamp of the inserted picture, the track coordinate information corresponding to the writing track, and the corresponding timestamp). The timestamp of each image content node is obtained at the same time as the image content node is obtained. The timestamp of each image content node may also be obtained before the multiple image content nodes are time-sorted. For example, the timestamp corresponding to the inserted picture or writing track is recorded in advance, and the image content node records the inserted picture or writing track. When the multiple image content nodes need to be time-sorted, the timestamps corresponding to these image content nodes are obtained.

[0047] Exemplarily, after determining the timestamp of each image content node, these image content nodes are time-sorted according to the timestamp. The time sorting of the image content nodes may be performed in ascending or descending order. For example, the image content nodes are time-sorted in ascending order according to the order of the timestamps of the image content nodes from small to large. It is understandable that when explaining the display content, pictures and writing may be inserted alternately, in which case the result of the time sorting is an interspersed sorting of picture nodes and writing nodes.

[0048] S203: performing image rendering processing on the multiple image content nodes in sequence based on the sorting result to obtain multiple image frames.

[0049] Exemplarily, after the image node contents are sorted in ascending time order, the image content nodes are acquired in sequence according to the sorting result, and image rendering processing is performed in sequence based on the acquired image content nodes to obtain multiple image frames.

[0050] Among them, each time the image rendering process is performed based on the image content node, the image rendering is performed based on the picture and / or writing track displayed on the video generation device (or content display program) in the timestamp corresponding to the image content node, that is, each image frame obtained by the image rendering process includes the picture and / or writing track corresponding to the current image content node, and the previously displayed picture and / or writing track (excluding deleted pictures and / or writing tracks). This scheme sorts the image content nodes in chronological order, and sequentially obtains the image content nodes for image rendering based on the sorting results, and sequentially generates multiple continuous image frames, ensuring that the first video record generated based on the image frame is a temporally ordered and continuous picture, thereby ensuring the quality of video generation.

[0051] In a possible embodiment, the video generation method provided by the present solution may sequentially extract image content nodes based on the sorting results, and perform image rendering processing based on the node types of the image content nodes to obtain image frames when performing image rendering processing on multiple image content nodes in sequence based on the sorting results to obtain multiple image frames.

[0052] The node types of image content nodes provided by this solution include picture nodes and writing nodes, and different image rendering processing methods can be pre-configured for different node types. Based on this, when performing image rendering processing on image content nodes, the image content nodes are extracted in sequence based on the sorting results, and for each image content node, the node type of the image content node is determined, and image rendering processing is performed according to the image rendering processing method corresponding to the node type to obtain an image frame. This solution uses different image rendering processing methods according to different node types to perform image rendering processing on image content nodes, effectively improving the image rendering processing effect of different image content nodes and improving the video generation effect.

[0053] In a possible embodiment, the image content nodes provided by the present solution may be picture nodes and / or writing nodes, and the image frames provided by the present solution may be picture key frames generated based on picture nodes, or may be writing key frames generated based on writing nodes. Based on this, when the video generation method provided by the present solution performs image rendering processing on multiple image content nodes in sequence based on the sorting results to obtain multiple image frames, the method may be: when the image content node is a picture node, a picture key frame is generated based on each picture node; and the multiple image frames include multiple picture key frames. When the video generation method provided by the present solution performs image rendering processing on multiple image content nodes in sequence based on the sorting results to obtain multiple image frames, the method may be: when the image content node is a writing node, a plurality of writing nodes are sequentially rendered based on the sorting results to obtain multiple writing key frames; and the multiple image frames include multiple writing key frames.

[0054] Exemplarily, the image content nodes are obtained in sequence according to the sorting results, and the node types corresponding to the image content nodes are determined. When the image content node is a picture node, a picture key frame is generated based on each picture node, and when the image content node is a writing node, a writing key frame is generated based on each writing node. In one embodiment, each picture node can generate an image key frame, and each writing node can generate two writing key frames corresponding to the writing starting point and the writing end point, respectively.

[0055] In one embodiment, when subsequently generating the first video based on the image frame, the video stream data may be generated based on the picture key frame and / or the writing key frame, and the first video may be generated based on the video stream data, wherein the video stream data frame includes multiple key frames (picture key frames and / or writing key frames), and the corresponding pictures between the key frames may be pictures corresponding to the previous key frames, or may be two intermediate pictures obtained by interpolating the two key frames. The number of pictures between the key frames may be determined based on the set number of video frames.

[0056] This solution generates picture key frames and writing key frames according to picture nodes and writing nodes respectively, thereby ensuring the picture quality corresponding to picture key frames and writing key frames. When generating a first video based on image frames, the picture quality of the first video at the key frames can be guaranteed, and the lossy compression of key frames during frequency encoding conversion can be reduced, and the impact of video compression on video quality during video encoding conversion can be reduced, thereby ensuring the quality of video generation.

[0057] In a possible embodiment, the multiple writing key frames corresponding to each writing node of the present solution include a starting key frame, multiple intermediate key frames, and an end key frame, that is, the writing key frame includes a starting key frame and an end key frame generated based on the writing starting point and the writing end point, and an intermediate key frame obtained by performing frame supplementation processing based on the writing process. Among them, the number of supplementary frames can be determined based on the set frame rate and the writing starting time and the writing end time corresponding to the writing node. Based on this, the video generation method provided by the present solution, when performing image rendering processing on multiple writing nodes in sequence based on the sorting results to obtain multiple writing key frames, includes:

[0058] S2031: Determine the trajectory coordinate information, writing start time and writing end time of the writing node.

[0059] S2032: Determine the number of supplementary frames corresponding to the writing node based on the writing start time, the writing end time and the set frame rate.

[0060] S2033: Determine the starting point of the writing node's trajectory based on the trajectory coordinate information, and generate a starting point key frame based on the starting point of the trajectory.

[0061] S2034: Generate multiple intermediate key frames based on the number of supplementary frames and trajectory coordinate information.

[0062] S2035: Determine the end point of the writing node's trajectory based on the trajectory coordinate information, and generate an end point key frame based on the trajectory end point; the multiple writing key frames include a start point key frame, multiple intermediate key frames, and an end point key frame.

[0063] The trajectory coordinate information of the writing node provided in this solution includes multiple trajectory coordinate information from the writing starting point to the writing end point, among which the first trajectory coordinate information is the trajectory coordinate information corresponding to the writing starting point, the last trajectory coordinate information is the trajectory coordinate information corresponding to the writing end point, and the middle trajectory coordinate information is the trajectory coordinate information corresponding to the writing process.

[0064] Exemplarily, for each writing node, multiple trajectory coordinate information in the writing node, as well as the writing start time and the writing end time of the writing node are determined. Among them, the writing node records the writing of the pen down, the writing process and the starting point, and the trajectory points corresponding to the pen down, the writing process and the starting point form the writing trajectory. The writing start time can be the time corresponding to the pen down when writing, and the writing end time can be the time corresponding to the pen starting when writing. Optionally, the writing start time can be determined according to the timestamp corresponding to the first trajectory coordinate information in the writing node (i.e., the smallest timestamp), and the writing end time can be determined according to the timestamp corresponding to the last trajectory coordinate information in the writing node (i.e., the largest timestamp).

[0065] After determining the trajectory coordinate information, writing start time and writing end time of the writing node, the number of supplementary frames corresponding to the writing node is determined according to the writing start time, the writing end time and the set frame rate. The number of supplementary frames can be understood as the writing key frames that need to be supplemented and inserted between the writing key frames corresponding to the writing start time and the writing end time.

[0066] In a possible embodiment, the number of interpolation frames provided by this solution may be determined based on the following formula:

[0067] s=(t1+t2-c) / c

[0068] t2=(t1+t2 ′ -c)%c

[0069] Among them, s is the number of supplementary frames, t1 is the length of writing node time, t2 is the compensation time, and t2 ′is the compensation time determined last time (i.e., the compensation time corresponding to the previous writing node), c is the frame interval time determined based on the set frame rate, and the frame interval time can be understood as the time interval between adjacent intermediate key frames. Optionally, after determining the number of supplementary frames, the timestamp of the writing trajectory information required to generate the intermediate key frame can be determined in sequence based on the compensation time, the timestamp corresponding to the writing trajectory information, and the set frame interval time, and the corresponding image content node is obtained based on the timestamp for image rendering. Optionally, the timestamp of the writing trajectory information required to generate the first intermediate key frame can be determined by moving the current compensation time forward according to the timestamp of the first writing trajectory information at the writing node.

[0070] Furthermore, the trajectory starting point of the writing node is determined according to the trajectory coordinate information corresponding to the writing node, and a starting point key frame is generated according to the trajectory starting point. The trajectory starting point can be understood as the trajectory point corresponding to the place where the pen is put down when writing. Generally, the trajectory starting point is the trajectory point corresponding to the first trajectory coordinate information in the writing node. For example, the first trajectory coordinate information of the writing node is determined, and the first trajectory coordinate information is the trajectory coordinate information corresponding to the trajectory starting point, and a starting point key frame is generated based on the trajectory coordinate information of the trajectory starting point. The picture corresponding to the starting point key frame can be a picture in which the starting point of the writing trajectory is newly added on the basis of the previous key frame.

[0071] Furthermore, multiple intermediate key frames are generated according to the number of supplementary frames and the trajectory coordinate information. The picture corresponding to each intermediate key frame can be a section of a trajectory with a new writing trajectory added on the basis of the starting key frame or the previous intermediate key frame. Among them, the number of generated intermediate key frames is consistent with the number of supplementary frames, and the frame rate setting can be determined based on the frame rate of the first video to be generated. When rendering and generating an intermediate key frame, image rendering can be performed based on the picture and trajectory coordinate information existing on the video generation device at the corresponding timestamp (including all trajectory coordinate information of the previous writing nodes, and the trajectory coordinate information of the current writing node at and before the timestamp).

[0072] Furthermore, after the end point keyframe and multiple intermediate keyframes are generated in sequence, the end point of the trajectory of the writing node is determined according to the trajectory coordinate information, and the end point keyframe is generated according to the trajectory end point. The trajectory end point can be understood as the trajectory point corresponding to the starting point of the pen when writing. Generally, the trajectory end point is the trajectory point corresponding to the last trajectory coordinate information in the writing node. For example, the last trajectory coordinate information of the writing node is determined, and the end point keyframe is generated based on the trajectory coordinate information. The picture corresponding to the end point keyframe can be the end point of the writing trajectory added on the basis of the last intermediate keyframe.

[0073] This solution generates the starting key frame and the ending key frame according to the trajectory coordinate information of the writing node, reduces the lossy compression of the starting key frame and the ending key frame during the video encoding conversion, reduces the impact of video compression on the video quality during the video encoding conversion process, ensures the quality of video generation, and generates multiple intermediate key frames according to the number of supplementary frames and the trajectory coordinate information, so that the first video can show the pictures corresponding to the writing process, and improves the quality of video generation. Among them, the starting key frame, the intermediate key frame and the ending key frame are rendered in time sequence, and the intermediate key frame may be lossy compressed in the process of synthesizing the video stream. The starting key frame and the ending key frame can reduce the lossy compression when the video stream is generated, and ensure the quality of the generated video.

[0074] like Figure 3 As shown in the schematic diagram of the number of key frames generated under a different scheme for determining the number of interpolation frames, it is assumed that the user has written three times, and the corresponding writing node times are 0-100ms, 200-300ms, and 400-500ms. Assuming that a fixed number of interpolation frames is used for interpolation, as shown in part A of the figure, if a multi-interpolation frame method is used for interpolation, 2 intermediate key frames are generated between each starting key frame and the end key frame, and a total of 6 intermediate key frames are generated. As shown in part B of the figure, if a less-interpolation frame method is used for interpolation, 1 intermediate key frame is generated between each starting key frame and the end key frame, and a total of 3 intermediate key frames are generated. Since the writing time of each writing is not fixed, the method of fixing the number of interpolation frames is likely to cause the final number of frames to seriously exceed or be less than the expected number of frames, affecting the quality of the first video. As shown in part C of the figure, the compensation time corresponding to the frame supplement of the previous writing node is added to the frame supplement operation of the current writing node, and the number of supplement frames corresponding to each writing node is dynamically set. The number of supplement frames for three times is 1 frame, 2 frames and 1 frame respectively, and a total of 4 intermediate key frames are generated. Finally, the number of frames of the first video is closer to the expected number of frames, thereby ensuring the quality of the first video.

[0075] like Figure 4As shown in the schematic diagram of a writing key frame generation provided, it is assumed that the user writes writing nodes L1 and L2 in sequence on the content display program. For the generation of the writing key frame of the writing node L2, the image frame rendering of the writing node L1 has been completed before. At this time, the starting point key frame P1 can be generated according to the first writing trajectory information in the writing node. The compensation time can be determined according to the writing node time length corresponding to the writing node L2, the compensation time corresponding to the writing node L1, and the frame interval time, and the number of supplementary frames can be determined according to the writing node time length, the current compensation time, and the frame interval time. The figure takes the number of supplementary frames as 2 as an example. According to the number of supplementary frames, the various image contents (pictures, trajectory coordinate information, etc.) displayed by the corresponding timestamp are obtained, and the corresponding intermediate key frames are generated based on these image contents, as shown in the intermediate key frames P2 and P3 generated in sequence in the figure. Finally, the end point key frame P4 is generated based on the last writing trajectory information in the writing node, and the image rendering of the corresponding writing key frame under the writing node L2 is completed.

[0076] This solution determines the compensation time by combining the writing node time length corresponding to the current writing node, the last determined compensation time and the frame interval time, and determines the number of supplementary frames based on the writing node time length, the current compensation time and the frame interval time. By dynamically determining the compensation time, when the last supplementary frame cannot be divided evenly into the determined number of supplementary frames, the missed time will be compensated for in this supplementary frame, so that the number of frames of the first video is closer to the expected number of frames, thereby ensuring the quality of the first video.

[0077] S204: Generate a first video based on the multiple image frames.

[0078] In the above, by performing image rendering processing on multiple image content nodes to obtain multiple image frames, and generating a first video based on the multiple image frames, the input order of multiple image content nodes can be dynamically presented through the first video, and the image content can be exported in the form of video, effectively enriching the amount of information exported from the content and improving the content export effect. At the same time, the starting key frame and the ending key frame are generated according to the trajectory coordinate information of the writing node, reducing the lossy compression of the starting key frame and the ending key frame during the frequency encoding conversion, reducing the impact of video compression on the video quality during the video encoding conversion process, and ensuring the quality of video generation. At the same time, multiple intermediate key frames are generated according to the number of supplementary frames and the trajectory coordinate information, so that the first video can show the pictures corresponding to the writing process, improving the quality of video generation.

[0079] Based on the above embodiments, Figure 5 A flowchart of another video generation method provided in an embodiment of the present application is given. The video generation method can be executed by a video generation device. The video generation device can be implemented in hardware and / or software and integrated in a video generation device. Figure 2, the video generation method comprises:

[0080] S301: Acquire multiple image content nodes, where the image content nodes include at least one of a picture node and a writing node.

[0081] S302: Perform image rendering processing on multiple image content nodes to obtain multiple image frames, and generate a first video based on the multiple image frames.

[0082] This solution performs image rendering processing on multiple image content nodes to obtain multiple image frames, and generates a first video based on the multiple image frames. The above embodiments can be referred to, and this solution will not be repeated.

[0083] S303: Acquire an audio content node, and generate audio stream data based on the audio content node.

[0084] The video generation device provided by the present solution can display image content through a set content display program, and can also collect audio content nodes through an audio acquisition module (such as a microphone). While displaying the content, the video generation device can also collect the sound of the scene. For example, when the user is displaying a picture or writing, he or she can explain the content in combination with the picture or writing trajectory, and the sound corresponding to the explanation can be recorded.

[0085] The content nodes provided by this solution include image content nodes and audio content nodes, wherein the image content nodes can be recorded by inserting pictures and writing tracks on the video generation device, and the audio content nodes can be recorded by the video generation device. The audio content nodes provided by this solution record the audio data obtained by recording the sound of the video generation device.

[0086] Exemplarily, when it is necessary to export a video based on images and audio, multiple image content nodes and audio content nodes are obtained. Among them, the image content nodes and audio content nodes can be currently collected, for example, when the user inserts the image content on the video generation device and performs the sound explanation, the image content nodes and audio content nodes are collected in real time, and the image content nodes and audio content nodes are directly obtained after the explanation is completed. The image content nodes and audio content nodes can also be collected before, for example, when the user needs to export the previously collected image content nodes and audio content nodes as a video, the image content nodes and audio content nodes can be determined according to the user's selection operation. Optionally, the determination of the end time of the image content explanation can be actively triggered by the user, such as the user clicking the recording end button on the operation interface, or it can be determined according to the sound recording situation, for example, when the user's voice is not detected within a set time period, it is considered that the explanation of the image content is over.

[0087] The image content node provided by this scheme includes at least one of a picture node and a writing node. The writing node can be understood as the writing content generated by the writing operation on the video generation device, and the picture node can be understood as the picture, shape, element and other content inserted on the video generation device. For example, the user can insert a picture on the content display program running on the video generation device, and while writing on the interactive interface of the content display program, the picture and / or the writing content can be explained in sound. At this time, the picture, handwriting and sound can be collected, and after the explanation is completed, the image content node and the audio content node can be obtained based on the collected pictures, handwriting and sound. Optionally, the image content node can be a page of data in a compressed package (such as .mhb format) of data and files in the content display program. The image content node can be saved based on the user operation record and saved in the form of a compressed package in the disk, and the corresponding audio content node (audio file) will be generated after the recording is completed, and the audio content node will be associated with the current page and saved to the disk. The audio content node corresponding to each image content node can be determined based on the association relationship.

[0088] In a possible embodiment, there may be one or more image content nodes in one explanation of image content. For example, pictures may be inserted multiple times or writing may be performed multiple times in one content explanation (each stroke corresponds to a writing node, wherein one stroke is from the beginning of the stroke to the beginning of the stroke). Optionally, there may be one or more audio content nodes in one explanation of image content. For example, a voice explanation is used as the end point of video generation, in which case there is only one audio content node in one explanation of image content. Alternatively, multiple audio segments may be recorded in one voice explanation, in which case there are multiple audio content nodes in one explanation of image content.

[0089] Exemplarily, the audio content node obtained above is subjected to audio coding processing to generate audio stream data. Wherein, the audio content node includes audio data and audio insertion time (i.e., the time when the audio recording starts or the time when the user's speech is detected), and the audio coding processing of the audio content node can be audio coding processing of the audio data in the audio content node. For example, the audio acquisition module can be used to collect sound and generate audio data in PCM format, and the audio data can be subjected to AAC coding processing to obtain audio stream data.

[0090] In one embodiment, when the explanation of the image content includes only one audio content node, the audio content node is directly audio-encoded to obtain complete audio stream data. When the explanation of the image content includes multiple audio content nodes, each audio content node is audio-encoded to obtain multiple sub-audio stream data. When the first video and audio stream data are synthesized later, the first video and the multiple sub-audio stream data can be aligned and synthesized together. Optionally, blank voice audio data can be added between adjacent sub-audio stream data, so that the multiple sub-audio stream data can be synthesized into one audio stream data, and then the first video and the single audio stream data can be directly synthesized later.

[0091] S304: synthesize the first video and the audio stream data to obtain a second video.

[0092] Exemplarily, after obtaining the first video and audio stream data, the first video and audio stream data are synthesized to obtain a second video containing video and audio. It is understandable that when playing the second video, the content displayed by the second video includes the pictures displayed by the user during the content explanation process and / or the writing tracks on the video generation device, as well as the explanation voice during the content explanation process. Among them, the first video and audio stream data can be synthesized into the second video through the set video processing tools and encoding formats, for example, the first video and audio stream data are synthesized into the second video in MP4 format through the video processing tool ffmpeg. The second video can be used to dynamically present the input order of multiple image content nodes and audio content nodes. For example, when playing the picture and sound corresponding to the second video, multiple image content nodes will be displayed in sequence according to the input order of the multiple image content nodes, and when adding and displaying image content nodes, the current image content node can be superimposed and displayed on the basis of the previously added image content node, that is, the time corresponding to the current image content node and the picture and / or writing track corresponding to the previously input image content node are displayed. At the same time, when playing the picture corresponding to the second video, the corresponding sound is played synchronously. For example, when inputting new image content, the corresponding sound can be an explanation of the input image content.

[0093] For example, teachers use video generation devices to insert pictures that need to be displayed during lectures. During this period, each time a picture is inserted, an image content node (picture node) is generated. Alternatively, teachers can perform writing operations on the video generation device, such as writing problem-solving processes and formulas on the screen of the video generation device. During this period, an image content node (writing node) is generated for each stroke. At the same time, teachers can explain the teaching content, record the explanation sound and generate an audio content node.

[0094] When the content display and explanation are completed in the classroom, the first video and audio data stream can be generated respectively according to the collected image content nodes and audio content nodes, and the first video and audio stream data can be synthesized into a second video, which can be saved, played or shared. For example, the teacher can draw a picture and record the explanation. After exporting the second video, it can be used as a teaching video with animation effects for the second video, or the teacher shows the notes of the derivation of the formula. After exporting the second video, the entire derivation process of the formula can be shared, and the teaching video can be shared quickly. Among them, because when the image content node is rendered, the intermediate key frame is obtained based on the writing node by interpolation processing, the intermediate key frame can show the writing process of each stroke of the teacher, improve the picture smoothness of the second video, and improve the quality of video generation. At the same time, this solution can share static writing records in the form of video. Compared with the picture sharing method, the video sharing method can improve the expressiveness of content sharing and improve the video generation effect.

[0095] In a possible embodiment, the video generation method provided by the present solution, when synthesizing the first video and the audio stream data to obtain the second video, includes:

[0096] S3041: Perform frame alignment processing on the first video and audio stream data.

[0097] S3042: Combining the first video and the audio stream data after the frame alignment processing into the second video.

[0098] It needs to be explained that the start time and end time of the image content node and the audio content node provided by this solution are different. In order to synchronize the picture and audio of the final synthesized second video, the first video and audio stream data may be subjected to frame alignment processing before being synthesized into the second video, so that the first video and audio stream data are aligned in time, and the first video and audio stream data after the frame alignment processing are synthesized into the second video, thereby improving the video generation quality.

[0099] In a possible embodiment, the video generation method provided by the present scheme includes, when performing frame complement alignment processing on the first video and audio stream data: determining the video start time and the video end time based on multiple image content nodes and the audio content nodes; wherein the video start time is the time corresponding to the node with the earliest timestamp among the multiple image content nodes and the audio content nodes, and the video end time is the time corresponding to the node with the latest timestamp among the multiple image content nodes and the audio content nodes; performing frame complement alignment processing on the first video and the audio stream data based on the video start time and the video end time.

[0100] Exemplarily, the timestamp corresponding to the content of each image content node (i.e., the time when the image content is inserted) and the timestamp corresponding to the audio content node (including the start time and end time corresponding to the audio content node) are determined, and the video start time and the video end time are determined from the timestamps corresponding to the image content node and the audio content node.

[0101] The video start time provided by this solution is the time corresponding to the node with the earliest timestamp among the multiple image content nodes and the audio content nodes, for example, the time corresponding to the timestamp with the smallest value among the timestamps corresponding to the above-determined image content nodes and audio content nodes is used as the video start time. The video end time provided by this solution is the time corresponding to the node with the latest timestamp among the multiple image content nodes and the audio content nodes, for example, the time corresponding to the timestamp with the largest value among the timestamps corresponding to the above-determined image content nodes and audio content nodes is used as the video end time. Optionally, when determining the video start time and the video end time based on the multiple image content nodes and the audio content nodes, the video start time and the video end time can be determined from the timestamps corresponding to the first image content node, the last image content node, the first audio content node and the last audio content node. Wherein, when there is only one audio content node, the first audio content node and the last audio content node are both the audio content node, that is, only one audio content node participates in the frame alignment.

[0102] Furthermore, the first video and the audio stream data are aligned in time according to the video start time and the video end time determined above. This solution determines the video start time and the video end time according to a plurality of image content nodes and audio content nodes, and performs frame alignment on the first video and the audio stream data according to the video start time and the video end time, so that the first video and the audio stream data are aligned in time, thereby improving the quality of video generation.

[0103] For example, when the video start time is the time corresponding to the timestamp of the image node content, the start point of the audio stream data is after the start point of the first video, and the audio stream data is aligned forward based on the video start time, and the start point of the audio stream data after the alignment is aligned with the start point of the first video. Optionally, when the audio stream data is aligned forward, blank audio data may be added forward on the basis of the audio stream data.

[0104] When the video start time is the time corresponding to the timestamp of the audio content node (the start time corresponding to the audio content node), the start point of the first video is after the start point of the audio stream data, and the first video is aligned with the start point of the audio stream data based on the video start time. Optionally, when the first video is aligned with the start point of the audio stream data, a blank image frame or a first image frame may be added forward based on the first video.

[0105] When the video end time is the time corresponding to the timestamp of the image node content, the end point of the audio stream data is before the end point of the first video, and the audio stream data is aligned backward based on the video end time, and the end point of the audio stream data after the alignment is aligned with the end point of the first video. Optionally, when the audio stream data is aligned backward, blank audio data may be added to the audio stream data.

[0106] When the end time of the video is the time corresponding to the timestamp of the first video (the end time corresponding to the audio content node), the end point of the first video is before the end point of the audio stream data. Based on the end time of the video, the first video is aligned with the end point of the audio stream data by adding frames backwards. Optionally, when the first video is aligned by adding frames backwards, a blank image frame or the last image frame may be added backwards based on the first video.

[0107] For example, taking the insertion time of the first image content node as the starting point of the second video and the end time of the audio node as the video end time of the second video, the frame alignment processing for the first video and the audio stream data can be to perform frame alignment processing on the audio stream data forward based on the video start time, align the start point of the audio stream data after the frame alignment with the start point of the first video, and perform frame alignment processing on the first video backward based on the video end time, align the end point of the first video after the frame alignment with the end point of the audio stream data. Exemplarily, the insertion time of the first non-audio node is used as the starting point of the second video, that is, the timestamp corresponding to the first image content node (the insertion timestamp of the picture node or the start timestamp of the writing node) is used as the video start time of the second video, and the audio stream data is frame aligned based on the video start time. At the same time, the end time of the audio node (the insertion time of the audio node + the audio duration) is used as the video end time of the second video, and the first video is frame aligned based on the video end time.

[0108] like Figure 6A schematic diagram of a frame interpolation and alignment process is provided, wherein D1 is the time span of the original first video, D2 is the time span of the video data that needs to be interpolated for the first video, D3 is the insertion time corresponding to the first image content node, D4 ​​is the end time corresponding to the last image content node, E1 is the time span of the original audio stream data, E2 is the time span of the audio data that needs to be interpolated for the audio stream data, E3 is the start time of the audio node, E4 is the end time of the audio node, and F is the time span corresponding to the second video. For example, when performing frame interpolation and alignment processing on the audio stream data, blank audio data can be added forward on the basis of the audio stream data (for example, E2 is added before E1), so that the starting time of the audio data stream is consistent with the starting time of the first video. When performing frame interpolation and alignment processing on the first video, the last image frame can be added backward on the basis of the first video (for example, D2 is added after D1), so that the end time of the audio data stream is consistent with the end time of the first video. This solution performs frame-adding alignment processing on the audio stream data according to the video start time of the image content node, and performs frame-adding alignment processing on the first video according to the video end time determined by the audio content node, so that the first video and the audio stream data are aligned in time, thereby improving the video generation quality.

[0109] In the above, by performing image rendering processing on multiple image content nodes to obtain multiple image frames, and generating a first video based on the multiple image frames, and generating audio stream data based on the audio content nodes, the first video and audio stream data can be synthesized into a second video, and the image content and audio content can be combined and exported, effectively enriching the amount of information exported and improving the content export effect. At the same time, the video start time and the video end time are determined according to the multiple image content nodes and audio content nodes, and the first video and audio stream data are aligned according to the video start time and the video end time, so that the first video and audio stream data are aligned in time, thereby improving the quality of video generation.

[0110] Figure 7 A schematic diagram of the structure of a video generation device provided in an embodiment of the present application is given. Figure 7 The video generating device includes a node acquisition module 71 and a first video module 72.

[0111] Among them, the node acquisition module 71 is used to obtain multiple image content nodes, and the image content nodes include at least one of a picture node and a writing node; the first video module 72 is used to perform image rendering processing on the multiple image content nodes to obtain multiple image frames, and generate a first video based on the multiple image frames, and the first video is used to dynamically present the input order of the multiple image content nodes.

[0112] As described above, by performing image rendering processing on multiple image content nodes to obtain multiple image frames, and generating a first video based on the multiple image frames, the input order of the multiple image content nodes can be dynamically presented through the first video, and the image content can be exported in the form of video, effectively enriching the amount of information exported for the content and improving the content export effect.

[0113] In a possible embodiment, the video generating device further includes an audio stream generating module and a second video module.

[0114] The audio stream generation module is used to obtain audio content nodes and generate audio stream data based on the audio content nodes;

[0115] The first video module 72 is used to synthesize the first video and the audio stream data to obtain a second video, and the second video is used to dynamically present the input sequence of multiple image content nodes and audio content nodes.

[0116] As described above, by performing image rendering processing on multiple image content nodes to obtain multiple image frames, and generating a first video based on the multiple image frames, and generating audio stream data based on the audio content nodes, the first video and the audio stream data can be synthesized into a second video, and the image content and the audio content can be combined and exported, effectively enriching the amount of information exported for the content and improving the content export effect.

[0117] In a possible embodiment, when the video stream generation module 72 performs image rendering processing on multiple image content nodes to obtain multiple image frames, it includes:

[0118] Determine the timestamp of each image content node;

[0119] Based on the acquired timestamps, multiple image content nodes are time-sorted;

[0120] Based on the sorting result, image rendering processing is performed on multiple image content nodes in sequence to obtain multiple image frames.

[0121] In a possible embodiment, when the video stream generation module 72 performs image rendering processing on multiple image content nodes in sequence based on the sorting result to obtain multiple image frames, it includes:

[0122] In the case where the image content node is a picture node, image rendering processing is performed on the multiple picture nodes in sequence based on the sorting result to obtain multiple picture key frames; the multiple image frames include the multiple picture key frames.

[0123] In a possible embodiment, when the video stream generation module 72 performs image rendering processing on multiple image content nodes in sequence based on the sorting result to obtain multiple image frames, it includes:

[0124] In the case where the image content node is a writing node, image rendering processing is performed on the multiple writing nodes in sequence based on the sorting result to obtain multiple writing key frames; the multiple image frames include the multiple writing key frames.

[0125] In a possible embodiment, when the video stream generating module 72 performs image rendering processing on multiple writing nodes in sequence based on the sorting result to obtain multiple writing key frames, the process includes:

[0126] Determine the trajectory coordinate information of the writing node, the writing starting time and the writing ending time;

[0127] Determine the number of supplementary frames corresponding to the writing node based on the writing start time, the writing end time, and the set frame rate;

[0128] Based on the trajectory coordinate information, determine the trajectory starting point of the writing node, and generate a starting point key frame based on the trajectory starting point;

[0129] Generate multiple intermediate key frames based on the number of supplementary frames and trajectory coordinate information;

[0130] Based on the trajectory coordinate information, the trajectory endpoint of the writing node is determined, and an endpoint key frame is generated based on the trajectory endpoint; the multiple writing key frames include a start point key frame, multiple intermediate key frames, and an endpoint key frame.

[0131] In a possible embodiment, when the second video module synthesizes the first video and the audio stream data to obtain the second video, it includes:

[0132] Performing frame complement alignment processing on the first video and the audio stream data;

[0133] The first video and the audio stream data after the frame alignment processing are synthesized into the second video.

[0134] In a possible embodiment, when the second video module performs frame complement alignment processing on the first video and the audio stream data, the process includes:

[0135] Based on the plurality of image content nodes and the audio content nodes, determine the video start time and the video end time; wherein the video start time is the time corresponding to the node with the earliest timestamp among the plurality of image content nodes and the audio content nodes, and the video end time is the time corresponding to the node with the latest timestamp among the plurality of image content nodes and the audio content nodes;

[0136] The first video and the audio stream data are aligned with each other based on the video start time and the video end time.

[0137] It is worth noting that in the embodiment of the above-mentioned video generating device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0138] The embodiment of the present application also provides a video generating device, which can integrate the video generating apparatus provided in the embodiment of the present application. Figure 8 is a schematic diagram of the structure of a video generation device provided in an embodiment of the present application. Figure 8 The video generation device includes: an input device 83, an output device 84, a memory 82 and one or more processors 81; the memory 82 is used to store one or more programs; when one or more programs are executed by one or more processors 81, the one or more processors 81 implement the video generation method provided in the above embodiment. The input device 83, the output device 84, the memory 82 and the processor 81 can be connected by a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0139] The memory 82, as a computing device readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the video generation method provided in any embodiment of the present application (for example, the node acquisition module 71 and the first video module 72 in the video generation device). The memory 82 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the device, etc. In addition, the memory 82 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 82 may further include a memory remotely arranged relative to the processor 81, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0140] The input device 83 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 84 may include a display device such as a display screen.

[0141] The processor 81 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 82, that is, implements the above-mentioned video generation method.

[0142] The video generation apparatus, device and computer provided above can be used to execute the video generation method provided in any of the above embodiments, and have corresponding functions and beneficial effects.

[0143] An embodiment of the present application also provides a storage medium storing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute the video generation method provided in the above embodiment. The video generation method includes: obtaining multiple image content nodes, wherein the image content nodes include at least one of a picture node and a writing node; performing image rendering processing on the multiple image content nodes to obtain multiple image frames, and generating a first video based on the multiple image frames, wherein the first video is used to dynamically present the input order of the multiple image content nodes.

[0144] 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-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0145] Of course, the computer executable instructions of a storage medium storing computer executable instructions provided in an embodiment of the present application are not limited to the video generation method provided above, and can also execute related operations in the video generation method provided in any embodiment of the present application.

[0146] The video generating apparatus, device and storage medium provided in the above embodiments can execute the video generating 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 generating method provided in any embodiment of the present application.

[0147] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments provided herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A video generation method, characterized in that: include: Acquire a plurality of image content nodes, wherein the image content nodes include at least one of a picture node and a writing node; Image rendering processing is performed on the plurality of image content nodes to obtain a plurality of image frames, and a first video is generated based on the plurality of image frames, wherein the first video is used to dynamically present an input sequence of the plurality of image content nodes.

2. The video generation method according to claim 1, characterized in that: The video generation method further includes: Acquire an audio content node, and generate audio stream data based on the audio content node; The first video and the audio stream data are synthesized to obtain a second video, where the second video is used to dynamically present an input sequence of a plurality of the image content nodes and the audio content nodes.

3. The video generation method according to claim 1, characterized in that: The performing image rendering processing on the plurality of image content nodes to obtain a plurality of image frames comprises: Determine the timestamp of each image content node; Based on the acquired timestamps, time-sorting the plurality of image content nodes; Based on the sorting result, image rendering processing is performed on the plurality of image content nodes in sequence to obtain a plurality of image frames.

4. The video generation method according to claim 3, characterized in that: The step of performing image rendering processing on the plurality of image content nodes in sequence based on the sorting result to obtain a plurality of image frames includes: In the case where the image content node is a picture node, image rendering processing is performed on the multiple picture nodes in sequence based on the sorting result to obtain multiple picture key frames; the multiple image frames include the multiple picture key frames.

5. The video generation method according to claim 3, characterized in that: The step of performing image rendering processing on the plurality of image content nodes in sequence based on the sorting result to obtain a plurality of image frames includes: In the case where the image content node is a writing node, image rendering processing is performed on the plurality of writing nodes in sequence based on the sorting result to obtain a plurality of writing key frames; the plurality of image frames include the plurality of writing key frames.

6. The video generation method according to claim 5, characterized in that: The step of sequentially performing image rendering processing on the plurality of writing nodes based on the sorting result to obtain a plurality of writing key frames includes: Determine the trajectory coordinate information, writing start time and writing end time of the writing node; Determine the number of supplementary frames corresponding to the writing node based on the writing start time, the writing end time and the set frame rate; Based on the trajectory coordinate information, determining the trajectory starting point of the writing node, and generating a starting point key frame based on the trajectory starting point; Generate a plurality of intermediate key frames based on the number of supplemented frames and the trajectory coordinate information; Based on the trajectory coordinate information, the trajectory end point of the writing node is determined, and an end point key frame is generated based on the trajectory end point; the multiple writing key frames include the starting point key frame, multiple intermediate key frames, and the end point key frame.

7. The video generation method according to claim 2, characterized in that: The synthesizing the first video and the audio stream data to obtain the second video includes: Performing frame complement alignment processing on the first video and the audio stream data; The first video and the audio stream data after the frame alignment processing are synthesized into the second video.

8. The video generation method according to claim 7, characterized in that: The performing frame complement alignment processing on the first video and the audio stream data includes: Based on the plurality of image content nodes and the audio content nodes, determine the video start time and the video end time; wherein the video start time is the time corresponding to the node with the earliest timestamp among the plurality of image content nodes and the audio content nodes, and the video end time is the time corresponding to the node with the latest timestamp among the plurality of image content nodes and the audio content nodes; The first video and the audio stream data are aligned with each other based on the video start time and the video end time.

9. A video generating device, characterized in that: It includes a node acquisition module and a first video module, wherein: The node acquisition module is used to acquire a plurality of image content nodes, wherein the image content nodes include at least one of a picture node and a writing node; The first video module is used to perform image rendering processing on the multiple image content nodes to obtain multiple image frames, and generate a first video based on the multiple image frames. The first video is used to dynamically present the input order of the multiple image content nodes.

10. A video generating device, characterized in that: include: memory and one or more processors; The memory is used to store 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 generating method according to any one of claims 1 to 8.

11. A storage medium storing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the video generation method according to any one of claims 1 to 8.