Video data processing system and method, storage medium, and program product

The video data processing system monitors target key frames on large-screen devices to generate video clips and continuously encodes them. This solves the problem of unstable video recording and playback on large-screen devices and the loss of recorded clips when uploading while recording, achieving stable video recording and Playback and uploading functions while recording.

CN118764683APending Publication Date: 2024-10-11KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410674887.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Large-screen devices have backward hardware iterations during video recording and playback, resulting in unstable playback. When implementing the simultaneous recording and uploading function, video clips need to be recorded at intervals, leading to the problem of lost recorded clips.

Method used

Provide a video data processing system that obtains original video data for encoding and synthesis processing, monitors target key frames to generate video clips, and continues encoding while generating video clips to avoid the loss of recorded clips caused by encoder restarts, using multi-threading The processor and synthesizer alternately generate video clips, ensuring the data flows seamlessly.

Benefits of technology

It achieves the stability of video recording and playback on large-screen devices, avoids the loss of recording clips, and ensures the continuity and data integrity of uploading while recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764683A_ABST
    Figure CN118764683A_ABST
Patent Text Reader

Abstract

The invention provides a video data processing system, an electronic device, a method, a storage medium and a program product. The system can execute the following steps: acquiring original video data, and encoding the original video data to obtain video encoding data, the video encoding data comprising audio encoding data and image encoding data; synthesizing the audio coded data and the image coded data to generate synthesized video data, and monitoring video frames of the video coded data; and when the nth target key frame is monitored, generating an nth video clip based on the (n-1) th target key frame and synthetic video data synthesized by video frames between the frame moment of the nth target key frame and the frame moment of the (n-1) th target key frame, and synthesizing the audio coding data and the image coding data of the video coding data by taking the frame moment of the nth target key frame as a starting point, continuously generating synthesized video data and keeping monitoring the video frame of the video coding data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a video data processing system, a video data processing method, a storage medium, and a computer program product. Background Art

[0002] At present, the performance and hardware iteration of large-screen devices generally lag behind those of mobile phones. Large-screen device products mainly focus on video decoding and playback rather than encoding and recording. Therefore, when recording and playing videos on large-screen devices, you may face the problem of unstable playback.

[0003] One of the problems is that in order to use the HTTP protocol to achieve the function of recording and uploading at the same time, the large screen needs to record a video clip at a certain interval, then stop recording and restart recording, and repeat this process until all recordings are completed. In this way, since the encoder needs to be reinitialized each time the recording is restarted, the problem of recording clips being lost during the initialization of the encoder may occur. Summary of the invention

[0004] In order to solve one of the above technical problems, the present disclosure provides a video data processing system, an electronic device, a video data processing method, a storage medium and a computer program product.

[0005] According to a first aspect of the present disclosure, there is provided a video data processing system, a processor memory, the memory storing a computer program, and when the computer program is executed by the processor, the video data processing system performs the following process: obtaining original video data, encoding the original video data to obtain video encoding data, the video encoding data including audio encoding data and image encoding data; synthesizing the audio encoding data and the image encoding data to generate synthesized video data, and monitoring the video frames of the video encoding data; when an nth target key frame is monitored, generating an nth video segment based on the synthesized video data synthesized based on the n-1th target key frame and the video frames between the frame time of the n-1th target key frame and the frame time of the n-1th target key frame, and in the process of generating the nth video segment, synthesizing the audio encoding data and the image encoding data of the video encoding data with the frame time of the nth target key frame as the starting point, continuously generating the synthesized video data and keeping monitoring the video frames of the video encoding data; wherein n is a natural number greater than or equal to 1, and when n=1, the n-1th target key frame is the video frame at the first frame time of the video encoding data.

[0006] In an optional implementation, when n>1, the nth target key frame is the next key frame after a preset slicing time from the frame moment of the n-1th target key frame; the preset slicing time is the difference between the length of a video segment and the frame interval length of adjacent key frames of the video encoding data.

[0007] In an optional embodiment, the original video data includes original image data and original audio data, and the processor includes a first processing unit, a second processing unit and a third processing unit; when acquiring the original video data and encoding the original video data to obtain video encoding data: the first processing unit is used to acquire the original image data; the second processing unit is used to acquire the original audio data; the third processing unit is used to encode the original image data to obtain the image encoding data, and to encode the original audio data to obtain the audio encoding data.

[0008] In an optional embodiment, when acquiring the original image data, the video data processing system performs the following process: acquiring the image cache capacity; when the image cache capacity is greater than or greater than or equal to the image cache capacity threshold, issuing a first notification instruction, wherein the first notification instruction is used to instruct the third processing unit to encode the original image data.

[0009] In an optional implementation, when acquiring the audio data, the video data processing system performs the following process: acquiring the audio cache capacity; when the audio cache capacity is greater than or greater than or equal to an audio cache capacity threshold, issuing a second notification instruction, wherein the second notification instruction is used to instruct the third processing unit to encode the original audio data.

[0010] In an optional embodiment, when acquiring original video data and encoding the original video data to obtain video encoding data, the video data processing system performs the following process: monitoring the frame interval time between the m-1th frame and the mth frame of the video encoding data; when the frame interval time is less than a frame interval threshold, modifying the timestamp of the mth frame of the encoded data based on the frame interval threshold.

[0011] In an optional embodiment, the original video data includes original image data and original audio data. When acquiring the original video data and encoding the original video data to obtain video encoding data, the video data processing system performs the following process: calculating the compensation duration of the audio data based on the timestamp of the original image data and the timestamp of the original audio data; acquiring multiple segments of compensated audio data and the timestamp of each segment of the compensated audio data based on the audio data compensation duration, and the sum of the durations of the multiple segments of the compensated audio data is greater than or equal to the audio data compensation duration; matching the timing of the image encoding sequence and the audio encoding sequence based on the timestamp of the image data, the timestamp of the audio data and the timestamp of the compensated audio data to obtain a video encoding sequence; encoding the original video data based on the video encoding sequence to obtain the video encoding data.

[0012] In an optional embodiment, when obtaining multiple segments of compensated audio data and the timestamp of each segment of the compensated audio data based on the compensation duration of the audio data, the video data processing system performs the following process: based on a preset compensation interval, dividing the audio data compensation duration into multiple compensation time periods, and the time interval between two adjacent compensation time periods is greater than or equal to the preset compensation interval; obtaining a segment of the compensated audio data of the corresponding length of each compensation time period, and obtaining the corresponding timestamp of each segment of the compensated audio data based on the timestamp of each compensation time period.

[0013] In an optional implementation, the preset compensation interval has a value range of [80 ms (milliseconds), 120 ms].

[0014] In an optional embodiment, the original video data includes original image data and original audio data. When acquiring the original video data, the video data processing system performs the following process: acquiring the total load value of the processor; when the total load value is greater than a load threshold, reducing the storage of one frame of the original image data each time a first number of frames of the original image data are acquired; when the total load value is less than or equal to the load threshold, reducing the storage of one frame of the original image data each time a second number of frames of the original video data are acquired; wherein the first number is less than the second number.

[0015] In an optional embodiment, the video data processing system is also used to perform the following process: based on the generation order of the video segments, the first video segment, the nth video segment, and each video segment between the first video segment and the nth video segment are sequentially spliced ​​to obtain a target video.

[0016] A second aspect of the present disclosure provides an electronic device, which includes a video data processing system according to any one of the embodiments of the present disclosure.

[0017] The third aspect of the present disclosure provides a video data processing method, which includes: acquiring original video data, encoding the original video data to obtain video encoding data, wherein the video encoding data includes audio encoding data and image encoding data; synthesizing the audio encoding data and the image encoding data to generate synthesized video data, and monitoring the video frames of the video encoding data; when the nth target key frame is monitored, generating an nth video segment based on the synthesized video data synthesized based on the n-1th target key frame and the video frames between the frame time of the n-1th target key frame and the frame time of the n-1th target key frame, and in the process of generating the nth video segment, synthesizing the audio encoding data and the image encoding data of the video encoding data with the frame time of the nth target key frame as the starting point, continuously generating the synthesized video data and keeping monitoring the video frames of the video encoding data; wherein n is a natural number greater than or equal to 1, and when n=1, the n-1th target key frame is the video frame at the first frame time of the video encoding data.

[0018] A fourth aspect of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a video data processing method according to any embodiment of the present disclosure is executed.

[0019] A fifth aspect of the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the video data processing method of any embodiment of the present disclosure is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0021] Figure 1 The present invention is a schematic diagram of a scenario in which a video data processing system according to some embodiments of the present invention is applied to an electronic device.

[0022] Figure 2 It is a schematic diagram of the flow of video data processing performed by a video data processing system according to some embodiments of the present disclosure.

[0023] Figure 3 The present invention is a flowchart of encoding synthesis of a video data processing system according to some embodiments of the present invention.

[0024] Figure 4 It is a schematic diagram of the structure of a video data processing system according to some embodiments of the present disclosure.

[0025] Figure 5 It is a schematic diagram of the structure of a video data processing system according to some embodiments of the present disclosure.

[0026] Figure 6 The diagram is a schematic diagram of a coding sequence of a video data processing system according to some embodiments of the present disclosure.

[0027] Figure 7 It is a flowchart of a video data processing method according to some embodiments of the present disclosure.

[0028] Figure 8 It is a flowchart of a video data processing method according to some embodiments of the present disclosure.

[0029] Fig. 9 It is a flowchart of a video data processing method according to some embodiments of the present disclosure.

[0030] Fig.10 It is a flowchart of a video data processing method according to some embodiments of the present disclosure.

[0031] Fig.11 It is a flowchart of a video data processing method according to some embodiments of the present disclosure.

[0032] Fig.12 It is a flowchart of a video data processing method according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0033] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.

[0034] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0035] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.

[0036] The use of cross-hatching and / or shading in the accompanying drawings is generally used to make the boundaries between adjacent components clear. As such, unless otherwise specified, the presence or absence of cross-hatching or shading does not convey or indicate any preference or requirement for the specific materials, material properties, dimensions, proportions, commonalities between the components shown, and / or any other characteristics, attributes, properties, etc. of the components. In addition, in the accompanying drawings, the sizes and relative sizes of the components may be exaggerated for clarity and / or descriptive purposes. When the exemplary embodiments can be implemented differently, the specific process sequence can be performed in a different order than described. For example, two successively described processes can be performed substantially simultaneously or in an order opposite to the described order. In addition, the same figure numbers represent the same components.

[0037] When a component is referred to as being "on" or "over," "connected to," or "coupled to" another component, the component may be directly on, directly connected to, or directly coupled to the other component, or intervening components may be present. However, when a component is referred to as being "directly on," "directly connected to," or "directly coupled to" another component, there are no intervening components. For this purpose, the term "connected" may refer to a physical connection, an electrical connection, etc., with or without intervening components.

[0038] The terms used herein are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "(the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups are not excluded from existence or addition. It should also be noted that, as used herein, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values ​​and / or the values ​​provided that will be recognized by those of ordinary skill in the art.

[0039] At present, the performance and hardware iteration of large-screen devices generally lag behind those of mobile phones. Large-screen device products mainly focus on video decoding and playback rather than encoding and recording. Therefore, when recording and playing videos on large-screen devices, you may face the problem of unstable playback.

[0040] One of the problems is that in order to use the Http protocol to achieve the function of recording and uploading at the same time, the large screen needs to record a video clip at a certain interval, then stop recording and wait for the video clip to be generated and uploaded before restarting recording, and repeat this process until all recordings are completed. In this way, since the encoder needs to be reinitialized each time the recording is restarted, the problem of recording clips being lost during the initialization of the encoder may occur.

[0041] Based on the above problems, the present disclosure provides a video data processing system 100 . Figure 1 The application scenario of the video data processing system 100 of the embodiment of the present disclosure for video data processing is shown. In this application scenario, the video data processing system 100 can be applied to an electronic device 1000. The electronic device 1000 includes a display screen 200 and the video data processing system 100.

[0042] The electronic device 1000 can record video through the configured hardware devices, for example, collect original video data through external hardware devices such as USB cameras and microphones, and the original video data includes original audio data and original video data. The video data processing system 100 can encode the original video data collected by the electronic device 1000 to obtain audio encoding data and image encoding data, and synthesize the audio encoding data and the image encoding data to generate synthesized video data, and generate a video clip with sound and picture from the synthesized data.

[0043] In some application scenarios, such as video conferencing, webcasting, etc., the electronic device 1000 needs to upload the real-time recorded video to the Internet. In order to use the Http protocol to realize the function of recording and uploading at the same time, the electronic device 1000 needs to output the video clips generated corresponding to the original video data collected during this period of time for uploading every time the original video data collected during this period of time is collected by the video data processing system 100. The video data processing system 100 provided in the present disclosure, while generating video clips, still continues to encode the original video data collected by the electronic device 1000, which can ensure that the original video data collected at each moment can be encoded by the video data processing system 100, thereby avoiding the problem of recording clip loss caused by the failure to encode part of the original video data due to the need to initialize the encoding process when generating video clips.

[0044] The video data processing system 100 may include a processor 10 and a memory 20 .

[0045] The processor 10 refers to a central processing unit (CPU). The processor 10 can be used to perform data processing such as data encoding and data synthesis on the collected original video data. The original video data includes video image data and sound data, that is, original image data and original audio data.

[0046] The memory 20 stores a computer program, which can be executed by the processor 10 to implement corresponding functions.

[0047] In one example, the computer program in the memory 20 includes an encoder and a synthesizer implemented by software on the processor 10. For example, MediaCodec can be used as an encoder. When the processor 10 executes the program of MediaCodec, the original video data can be encoded to obtain video encoded data, and the video encoded data includes audio encoded data and image encoded data. MediaMuxer can be used as a synthesizer. When the program of MediaMuxer is executed on the processor 10, the video encoded data can be synthesized. The synthesis processing of the video encoded data is to synthesize the image encoded data and the audio encoded data obtained by the encoding process into a video clip with sound and picture.

[0048] The video data processing system 100 provided by the present disclosure encodes the original video data through an encoder to obtain video encoding data, and synthesizes the video encoding data through a synthesizer. That is, the encoding task and the synthesis task are performed by the encoder and the synthesizer respectively. In this way, when the recorded video reaches the preset slicing time, the synthesizer performs the task of generating video segments, and the encoding task of the encoder continues. In this way, when generating video segments, the encoder does not need to be restarted, which can avoid the problem of loss of recorded segments caused by failure to encode part of the collected original video data due to the restart of the encoder.

[0049] Furthermore, while one synthesizer (the synthesizer is called the main synthesizer) is synthesizing the video encoding data, another backup synthesizer is prepared. When the main synthesizer performs the task of generating video segments at the preset slicing time, the video encoding data output by the encoder is passed to the backup synthesizer for synthesis processing. When the main synthesizer completes the generation of the video segment, the main synthesizer is automatically destroyed, and the backup synthesizer is upgraded to a new main synthesizer, which will generate a new video segment at the next preset slicing time. While the backup synthesizer is upgraded to a new main synthesizer, a new backup synthesizer is prepared for the generation of the next video segment. In this way, it can be ensured that the video encoding data output by the encoder can always be synthesized in real time, and that there is no data loss between two video segments.

[0050] See also Figure 2 , Figure 2 A schematic flowchart of video data processing performed by the video data processing system 100 according to an embodiment of the present disclosure is shown.

[0051] In order to use the HTTP protocol to achieve the capability of uploading while recording, the video data processing system 100 uploads a recorded video segment after recording a video segment for a certain period of time.

[0052] The video data processing system 100 uses an encoder to obtain image encoding data and audio encoding data corresponding to the collected original image data and original audio data. The synthesizer synthesizes the image encoding data and the audio encoding data into a video clip. Assuming that the expected clip time is set to 5 minutes based on the HTTP protocol, the video data processing system 100 uploads a recorded video clip every 5 minutes.

[0053] The encoder does not stop working until all video recording tasks are completed, and continues encoding. That is, when the synthesizer generates video clips, the encoder will not restart and continue encoding the original image data and original audio data into image coded data and audio coded data.

[0054] like Figure 2 As shown, in one example, synthesizer 1 is first used as the main synthesizer, and synthesizer 2 is used as the backup synthesizer. The image encoding data and audio encoding data output by the encoder are first passed to synthesizer 1 for synthesis processing to obtain synthesized video data. When the video recording time reaches the preset slicing time, synthesizer 1 generates the first video segment; at the same time, the image encoding data and audio encoding data output by the encoder are passed to synthesizer 2 for synthesis processing, and synthesizer 2 will generate the second video segment.

[0055] Please combine Figure 3 The video data processing system 100 realizes the seamless alternation synthesis of video segments by the synthesizer by monitoring the target key frames of the video encoding data.

[0056] Assume that the time of the video segments generated by each synthesizer is equal, which is the preset slicing time. The target key frame is the next key frame after the preset slicing time from the start time of a video segment. For example, if the preset slicing time is 300 seconds, the start time of the first video segment is the frame time of the first video frame of the video encoding data, then after 300 seconds from the frame time of the first video frame of the video encoding data, the next key frame of the video encoding data monitored is the target key frame.

[0057] The target key frame serves as the node where the main synthesizer ends the synthesis task, and also serves as the node where the standby synthesizer starts the synthesis task. Specifically, when the target key frame is detected, the video encoding data corresponding to the target key frame has been transmitted to the main synthesizer. At this time, the video encoding data corresponding to the target key frame is copied to the standby synthesizer, and the video encoding data subsequently output by the encoder is passed to the standby synthesizer, and the standby synthesizer starts to synthesize the synthesized video data with the target key frame as the starting frame. At the same time, when the target key frame is detected, the main synthesizer generates a video clip with the synthesized video data it has synthesized, wherein the synthesized video data ends at the previous video frame of the target key frame.

[0058] like Figure 3 As shown, it is assumed that at time t0, it is the frame time of the 1st video frame of the video coding data; at time t1, it is the frame time of the 1000th video frame of the video coding data. If it is monitored that the 1000th video frame of the video coding data is the target key frame, the synthesizer 1 generates the first video segment based on the synthesized video data of the synthesized 1st video frame, the 999th video frame, and each video frame between the 1st video frame and the 999th video frame. At the same time, at time t1, the synthesizer 2 uses the 1000th video frame of the video coding data as the starting frame and synthesizes the received video coding data into synthesized video data for future generation of the second video segment. In this way, the synthesized video data synthesized by the synthesizer 1 and the synthesizer 2 can be seamlessly connected, and in the process of switching the synthesizer receiving the video coding data, there is no unsynthesized video coding data, thereby ensuring that there is no missing video frame between the first video segment and the second video segment.

[0059] The video data processing system 100 according to the embodiment of the present disclosure is further described below with reference to the accompanying drawings.

[0060] See also Figure 4 , Figure 4 1 is a schematic diagram of the structure of a video data processing system 100 provided in an embodiment of the present disclosure. The video data processing system 100 includes a processor 10 and a memory 20, and the memory 20 stores a computer program. When the computer program is executed by the processor 10, the video data processing system 100 performs the following process:

[0061] Acquire original video data, and encode the original video data to obtain video encoding data, where the video encoding data includes audio encoding data and image encoding data;

[0062] Performing synthesis processing on the audio coding data and the image coding data to generate synthetic video data, and monitoring the video frames of the video coding data;

[0063] When the nth target key frame is monitored, the nth video clip is generated based on the synthetic video data synthesized from the video frames between the frame time of the n-1th target key frame and the frame time of the n-1th target key frame. In the process of generating the nth video clip, the audio coding data and the image coding data of the video coding data are synthesized with the frame time of the nth target key frame as the starting point, and the synthetic video data is continuously generated while the video frames of the video coding data are kept monitored.

[0064] Wherein, n is a natural number greater than or equal to 1. When n=1, the n-1th target key frame is a video frame at the first frame time of the video encoding data.

[0065] The synthesized video data is data obtained by synthesizing the image coding data and the audio coding data in the video coding data in a specific order and superposition relationship.

[0066] A video clip is a clip including images and sounds, which can be obtained by decoding and outputting the composite video data.

[0067] Please combine Figure 2 In one example, the original video data may be encoded using an encoder program implemented by software to obtain video encoded data. For example, in an Android system, the MediaCodec class may be used as an encoder.

[0068] In one example, a synthesizer program implemented by software can be used to synthesize the audio encoding data and the image encoding data to generate synthesized video data. For example, in an Android system, a MediaMuxer class can be used as a synthesizer.

[0069] After the original video data is encoded, the obtained video encoding data includes multiple video frames. In one example, based on the video encoding method, the number of video frames, ordinary frame interval, and key frame interval of the video encoding data can correspond to the number of image frames, ordinary frame interval, and key frame interval of the image encoding data.

[0070] Please combine Figure 3 Before the acquisition of the original video data is completed, the video data processing system 100 continuously encodes the acquired original video data to obtain the encoded video data. The video data processing system 100 monitors the target key frame of the video encoding data while generating the video encoding data, and when the target key frame is detected, synchronously executes the generation of the video segment ending with the target key frame and the generation of the synthesized data starting from the target key frame. In the above synchronously executed tasks, the generation of the video segment and the generation of the synthesized data can be respectively implemented by executing two different synthesizer programs.

[0071] For example, time t0 is the first frame of the video coding data, and the video frame of the video coding data at time t0 is the 0th target key frame. From time t0 to time t1, the video coding data is imported into synthesizer 1 for synthesis processing, and at this time, synthesizer 2 is prepared as an alternative switching synthesizer. At time t1, the first target key frame of the video coding data is monitored, and at this time, synthesizer 1 generates the first video segment based on the synthesized video data at time t0 and between time t0 and time t1, and synthesizer 1 is automatically destroyed after the first video segment is generated; at the same time, synthesizer 2 performs synthesis processing of the video coding data starting from the first target key frame, continuously generates synthesized coding data and keeps monitoring the video frames of the video coding data; and after synthesizer 1 is destroyed, a synthesizer 3 is prepared as a new alternative switching synthesizer.

[0072] At time t2, the second target key frame of the video coding data is monitored, and at this time, synthesizer 2 generates a second video segment based on the synthesized video data at time t1 and between time t1 and time t2, and synthesizer 2 is automatically destroyed after the second video segment is generated; at the same time, synthesizer 3 performs synthesis processing of the video coding data with the second target key frame as the starting point, continuously generates synthesized coding data and keeps monitoring the video frames of the video coding data; and, after the destruction of synthesizer 2, a synthesizer 4 is prepared as a new alternative switching synthesizer.

[0073] Similarly, when the nth target key frame of the video coding data is monitored, synthesizer n generates the nth video segment based on the synthetic video data synthesized based on the frame time of the n-1th target key frame and the video frames between the frame time of the n-1th target key frame and the frame time of the nth target key frame, and synthesizer n is automatically destroyed after the nth video segment is generated; at the same time, synthesizer n+1 performs synthesis processing of the video coding data with the nth target key frame as the starting point, continuously generates synthetic coding data and keeps monitoring the video frames of the video coding data; and, after the destruction of synthesizer n, a synthesizer n+2 is prepared as a new alternative switching synthesizer.

[0074] When n>1, the nth target key frame is the next key frame after a preset slicing time from the frame time of the n-1th target key frame.

[0075] In an optional implementation, the preset slicing time is the difference between the preset video segment duration and the frame interval duration between adjacent key frames of the video encoding data.

[0076] The preset video segment duration refers to the preset duration of each video segment for output. For example, the preset video segment duration is 300 seconds, and the frame interval duration of adjacent key frames of the video encoding data is 20 seconds, then the preset slicing time is 300-20=280 seconds. For synthesizer 2, it generates the second video segment when the second target key frame is detected, then the second target key frame is the next key frame after 280 seconds from the frame moment of the first target key frame. Assuming that time t1 is the frame moment of the first target key frame, there is no key frame at time t1' after 280 seconds from time t1, until there is a key frame at time t2 after 1 second from time t1', then time t2 is the frame moment of the second target key frame, the key frame at time t2 is the second target key frame, and t2-t1=281 seconds.

[0077] In an optional embodiment, the video data processing system 100 splices the generated video segments in sequence according to the time sequence of the corresponding video encoding data to obtain the target video. For example, when generating the second video segment, the first video segment and the second video segment are spliced ​​in time sequence to obtain the target video. When generating the third video segment, the third video segment is spliced ​​after the target video obtained by the first video segment and the second video segment to obtain a new target video. The target video can be saved in the local device where the video data processing system 100 is located.

[0078] See also Figure 5 In an optional embodiment, the processor 10 includes a first processing unit 11, a second processing unit 12, and a third processing unit 13. The first processing unit 11, the second processing unit 12, and the third processing unit 13 are three different cores of the processor 10. For example, the processor 10 is a quad-core processor, wherein the three different cores are the first processing unit 11, the second processing unit 12, and the third processing unit 13.

[0079] The processor 10 can perform image acquisition, audio acquisition and data encoding tasks in a multi-threaded manner through the first processing unit 11, the second processing unit 12 and the third processing unit 13, thereby avoiding the problems of excessive load on the processor 10 and data loss and playback jamming caused by untimely data processing caused by a single-threaded execution of the above tasks by one processor 10.

[0080] Specifically, when the processor 10 obtains original video data and encodes the original video data to obtain video encoding data:

[0081] The first processing unit 11 is used to obtain original image data. The second processing unit 12 is used to obtain original audio data. The third processing unit 13 is used to encode the original image data to obtain image encoding data, and to encode the original audio data to obtain audio encoding data.

[0082] On the basis of data collection and encoding processing by the multi-threaded processor 10, it is necessary to stably schedule the tasks performed by each thread of the processor 10. If the load of the processor 10 is too high, and the thread corresponding to the processor 10 is not scheduled for execution in time within a short period of time, it will cause problems related to the tasks performed by the processor 10.

[0083] For example, if the processor 10 is overloaded when acquiring raw image data, the image data may be lost. Based on this, in an optional implementation, the video data processing system performs the following process:

[0084] Get the image cache capacity;

[0085] When the image cache capacity is greater than or equal to the image cache capacity threshold, a first notification instruction is issued, where the first notification instruction is used to instruct the third processing unit to encode the original image data.

[0086] That is to say, the processor 10 does not issue the first notification instruction immediately after acquiring the original image data each time, but accumulates and caches the original image data until the cached original image data is greater than or equal to the image cache capacity threshold before issuing the first notification instruction. In this way, the frequency of context switching of the video data processing system 100 can be reduced, the performance overhead of the video data processing system 100 can be reduced, and the efficiency of image acquisition can be improved.

[0087] In one example, the image cache capacity threshold is half of the maximum video cache capacity. In this way, before the accumulated cached original image data reaches the maximum image cache capacity, a certain amount of accumulated cached original image data can be cached before issuing the first notification instruction, so that the frequency of issuing the first notification instruction is relatively low.

[0088] In one example, the image cache capacity threshold is a times the maximum image cache capacity, and the value range of a is [0.30, 0.70]. For example, the image cache capacity threshold can be 0.30 times, 0.35 times, 0.40 times, 0.45 times, 0.50 times, 0.55 times, 0.60 times, 0.65 times, 0.70 times, etc., of the maximum image cache capacity, which are not listed here one by one. In this way, it is possible to avoid the notification frequency being too fast, resulting in a low degree of reduction in the performance overhead of the video data processing system 100; and to avoid the notification frequency being too slow, resulting in the image data easily accumulating to exceed the maximum image cache capacity between two adjacent issuances of the first notification instructions, resulting in image data loss.

[0089] Similarly, when the processor 10 acquires the original audio data, if the load of the processor 10 is too high, the audio data may be lost. Based on this, in an optional implementation, the video data processing system 100 performs the following process:

[0090] Get the audio buffer capacity;

[0091] When the audio buffer capacity is greater than or equal to the audio buffer capacity threshold, a second notification instruction is issued, where the second notification instruction is used to instruct the third processing unit to encode the original audio data.

[0092] In this way, the frequency of context switching of the video data processing system 100 can be reduced, the performance overhead of the video data processing system 100 can be reduced, and the efficiency of audio acquisition can be improved.

[0093] In one example, the audio cache capacity threshold is half of the maximum audio cache capacity. In this way, a certain amount of audio data can be accumulated before the accumulated cached audio data reaches the maximum image cache capacity before issuing the second notification instruction, so that the frequency of issuing the second notification instruction is relatively low.

[0094] In one example, the audio cache capacity threshold is b times the maximum audio cache capacity, and the value range of b is [0.30, 0.70]. For example, the audio cache capacity threshold can be 0.30 times, 0.35 times, 0.40 times, 0.45 times, 0.50 times, 0.55 times, 0.60 times, 0.65 times, 0.70 times, etc., of the maximum audio cache capacity, which are not listed here one by one. In this way, it is possible to avoid the notification frequency being too fast, resulting in a low degree of reduction in the performance overhead of the video data processing system 100; and to avoid the notification frequency being too slow, resulting in the audio data easily accumulating to exceed the maximum audio cache capacity between two adjacent issuances of the first notification instructions, thereby causing audio data loss.

[0095] When encoding the original video data, since the original image data and the original audio data are placed in an encoding queue, when the encoding thread is started, the timestamps of each frame of the encoded data in the cache may be the same or very close during the encoding process. In this case, video frames with the same or very close timestamps are difficult to display normally during playback, and a distorted screen may occur. In addition, video frames with the same or very close timestamps may affect the playback and decoding of subsequent frames, resulting in inaccurate reference frames for subsequent frames during decoding, resulting in decoding errors, and continuous distorted screens during playback of subsequent frames.

[0096] Based on this, in an optional implementation, the video data processing system 100 performs the following process:

[0097] Monitoring the frame interval time between the m-1th frame and the mth frame of the video encoding data;

[0098] When the frame interval time is less than the frame interval threshold, the time stamp of the mth frame of the encoded data is modified based on the frame interval threshold.

[0099] The frame interval threshold is the minimum time interval between two adjacent frames that can be displayed normally. In an example, assume that the frame interval threshold is recorded as J, J = 1 / tbn, in seconds, and tbn is the time base during encoding. Assume that tbn = 90000, the timestamp of the previous frame is recorded as lastTimeStamp, and the timestamp of the current frame is recorded as TimeStamp. If the difference between the timestamp of the current frame and the timestamp of the previous frame is less than the frame interval threshold, that is, TimeStamp-lastTimeStamp<J, then the timestamp of the current frame is modified based on the frame interval threshold J.

[0100] Specifically, when TimeStamp-lastTimeStamp<J, the modified TimeStamp=lastTimeStamp+J, that is, TimeStamp=lastTimeStamp+1 / tbn. Assuming tbn=90000, then TimeStamp=lastTimeStamp+1 / 90000, that is, add 1 / 90000 seconds to the timestamp of the previous frame to get the timestamp of the current frame. In this way, when decoding, it can be ensured that the timestamps corresponding to each frame are monotonically increasing and meet the minimum time interval, which can prevent the problem of a certain frame being decoded and played without display due to equal or close timestamps, and also solve the decoding error phenomenon of subsequent multi-frame chaining, thereby avoiding the occurrence of screen distortion.

[0101] See also Figure 6 When the processor 10 is under a high load, the original audio data and the original image data acquired at the same time have some missing compared to the original image data. If the original image data and the original audio data are encoded according to their respective timestamps, the timestamps of the original image data and the original audio data will gradually deviate, and the final video will have the problem of sound and picture being out of sync.

[0102] Based on this, in an optional implementation, the video data processing system 100 performs the following process:

[0103] Calculate the compensation duration of the audio data based on the timestamp of the original image data and the timestamp of the original audio data;

[0104] Acquire multiple segments of compensated audio data and a timestamp of each segment of compensated audio data based on the compensation duration of the audio data, wherein the sum of the durations of the multiple segments of compensated audio data is greater than or equal to the compensation duration of the audio data;

[0105] Based on the timestamp of the image data, the timestamp of the audio data and the timestamp of the compensated audio data, the timing of the image coding sequence and the audio coding sequence is matched to obtain a video coding sequence;

[0106] The original video data is encoded based on the video encoding sequence to obtain video encoding data.

[0107] The audio data compensation duration refers to the amount of time missing from the original audio data duration relative to the original image data duration. The audio data compensation duration can be calculated based on the time difference between the timestamp of the original image data and the timestamp of the original audio data.

[0108] Compensated audio data is empty source audio data that does not contain actual sound signals. It is used to fill the audio data track during encoding so that the total time of the original audio data and the compensated audio data can be aligned with the total time of the original image data. According to the compensated duration of the audio data, the time length that the original audio data lacks relative to the original image data can be determined, and then the compensated audio data of the corresponding time length can be obtained to compensate the time length of the audio data.

[0109] The timestamp of the compensated audio data represents the timing of the compensated audio data, that is, the specific position where the compensated audio data is filled in the time sequence of the original audio data.

[0110] The image coding sequence refers to the time sequence of the original image data during encoding, which is obtained by arranging the original image data in the order of image timestamps.

[0111] The audio coding sequence refers to the time sequence of the original audio data and the compensated audio data during encoding, which is obtained by arranging the original audio data and the compensated audio data in the order of their respective timestamps.

[0112] Matching the image coding sequence and the audio coding sequence means that after adding the compensated audio data to the audio coding sequence, the duration of the obtained audio coding sequence matches the duration of the image coding sequence. For example, the problem of audio and video being out of sync after encoding can be avoided.

[0113] like Figure 6As shown, in a video cycle, based on the known timestamps of the original image data and the original audio data, it is assumed that according to the timestamps of the compensated audio data, a section of compensated audio data needs to be added in the middle of the original audio data to obtain the final audio coding sequence. First, the original audio data is arranged in the order of the timestamps of the original audio data; then, after the compensated audio data is added according to the timestamps of the compensated audio data, the timestamps of the original audio data after the compensated audio data are postponed backwards, and the length of the postponement is the length of the compensated audio data.

[0114] Specifically, in an optional implementation, the video data processing system 100 performs the following process:

[0115] Based on a preset compensation interval, the audio data compensation duration is divided into a plurality of compensation time periods, and the time interval between two adjacent compensation time periods is greater than or equal to the preset compensation interval;

[0116] A segment of compensated audio data of a duration corresponding to each compensation time period is obtained, and a timestamp of each segment of corresponding compensated audio data is obtained based on the timestamp of each compensation time period.

[0117] like Figure 6 As shown in the figure, it is assumed that each time the original audio data is obtained, there will be a certain amount of audio data loss, and the duration of the audio data loss each time the original audio data is obtained is set to △ts. If the audio coding sequence is filled with compensated audio data with a duration of △ts after each sampling, there may be defects such as poor continuity of the audio data and frequent freezes.

[0118] Based on this, after obtaining the collected original audio data, instead of compensating each collected original audio data separately, a unified audio compensation is performed after the length of the lost original audio data reaches a certain loss threshold. In this way, the original audio data can be made relatively coherent and the occurrence of stuttering can be reduced.

[0119] At the same time, since the compensated audio data is an empty source audio data that does not contain an actual sound signal, if the duration of the compensated audio data filled by the audio compensation is too long, there will be a more obvious sound missing jam. Based on this, after calculating the audio data compensation duration, multiple segments of compensated audio data can be divided based on the audio data compensation duration, and the interval between the timestamps of two adjacent segments of compensated audio data is greater than or equal to the preset compensation interval. In other words, the original audio data is filled once every period of time when the duration reaches the preset compensation interval. In this way, by setting the preset compensation interval, the compensated original audio data can be made as continuous as possible, so that the filling of the compensated audio data will not cause frequent jamming due to being too frequent; at the same time, the audio data compensation duration is divided into multiple time segments based on the preset compensation interval, and the corresponding number and duration of compensated audio data are obtained according to the duration of these time segments, which can avoid the problem of long pauses or high-frequency jams corresponding to each segment of compensated audio data being too long or too short.

[0120] In an optional implementation, assuming that the preset compensation interval is △tj, the value range of the preset compensation interval △tj is [80ms, 120ms]. Among them, ms is a time unit, representing milliseconds. For example, the value of the preset compensation interval △tj can be 80ms, 85ms, 90ms, 95ms, 100ms, 105ms, 110ms, 115ms, 120ms, etc., which are not listed here one by one. In this way, it can be ensured that the frequency of audio compensation is relatively appropriate and the sense of auditory stuttering can be reduced.

[0121] When the processor 10 is performing video data acquisition and encoding, the load pressure of the processor 10 mainly comes from the encoding of the image data. The greater the encoding overhead of the image data, the higher the load of the processor 10, and the higher the loss of audio sampling.

[0122] Based on this, in an optional implementation, the video data processing system 100 performs the following process:

[0123] Obtaining a total load value of the processor 10;

[0124] When the total load value is greater than the load threshold, when the first number of frames of raw image data are acquired, the storage of one frame of raw image data is reduced;

[0125] When the total load value is less than or equal to the load threshold, when acquiring the second number of frames of raw video data, reducing the storage of one frame of raw image data;

[0126] The first number is smaller than the second number.

[0127] The load threshold can be specifically set based on processing with different computing power. The first processing unit 11 releases part of the computing power by actively dropping frames to compensate for the collection of audio data and reduce the loss of audio sampling.

[0128] For example, the first number of frames is 3 frames, the second number of frames is 4 frames, and the load threshold is 380% (quad-core). When the total load value of the processor 10 does not exceed 380%, during the acquisition of the original image data, one frame of image data is actively lost for every 4 frames of image data acquired to reduce the storage of one frame of original image data. When the total load value of the processor 10 exceeds 380%, during the acquisition of the original image data, one frame of image data is actively lost for every 3 frames of image data acquired to reduce the storage of one frame of original image data, and frames are actively dropped at a higher frequency, thereby releasing part of the computing power.

[0129] See also Figure 1 In an embodiment of the present disclosure, an electronic device 1000 is further provided. The electronic device 1000 includes the video data processing system 100 in any of the above embodiments. The video data processing system 100 is used to process the video data recorded by the electronic device 1000.

[0130] Based on the same inventive concept, a video data processing method corresponding to the video data processing system 100 is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the video data processing method in the embodiment of the present disclosure is similar to that of the above-mentioned video data processing system 100 in the embodiment of the present disclosure, the implementation of the method can refer to the implementation of the device, and the repeated parts will not be repeated.

[0131] Figure 7 is a flowchart of a video data processing method of some embodiments of the present disclosure. Figure 7 The video data processing method M100 provided in the present disclosure may include step S110, step S120 and step S130.

[0132] S110: Acquire original video data, and encode the original video data to obtain video encoding data.

[0133] S120: synthesizing the audio coding data and the image coding data to generate synthesized video data, and monitoring the video frames of the video coding data.

[0134] S130: When the nth target key frame is monitored, the nth video segment is generated based on the synthetic video data synthesized from the video frames between the frame time of the n-1th target key frame and the frame time of the n-1th target key frame. In the process of generating the nth video segment, the audio coding data and the image coding data of the video coding data are synthesized with the frame time of the nth target key frame as the starting point, and the synthetic video data is continuously generated while the video frames of the video coding data are monitored.

[0135] Wherein, n is a natural number greater than or equal to 1. When n=1, the n-1th target key frame is a video frame at the first frame time of the video encoding data.

[0136] See also Figure 8 In some implementations, step S110 includes step S111 and step S112.

[0137] S111: Obtain image cache capacity.

[0138] S112: When the image cache capacity is greater than or equal to the image cache capacity threshold, issue a first notification instruction.

[0139] See also Fig. 9 In some implementations, step S110 includes step S113 and step S114.

[0140] S113: Obtain audio buffer capacity.

[0141] S114: When the audio cache capacity is greater than or equal to the audio cache capacity threshold, issuing a second notification instruction.

[0142] See also Fig.10 In some implementations, step S110 includes step S115 and step S116.

[0143] S115: Monitor the frame interval time between the m-1th frame and the mth frame of the video encoding data.

[0144] S116: When the frame interval time is less than the frame interval threshold, modify the timestamp of the mth frame of the encoded data based on the frame interval threshold.

[0145] See also Fig.11 In some implementations, step S110 includes step S117, step S118, step S119, and step S1110.

[0146] S117: Calculate the compensation duration of the audio data based on the timestamp of the original image data and the timestamp of the original audio data.

[0147] S118: Acquire multiple segments of compensated audio data and a timestamp of each segment of compensated audio data based on the audio data compensation duration, wherein the sum of the durations of the multiple segments of compensated audio data is greater than or equal to the audio data compensation duration.

[0148] S119: Based on the timestamp of the image data, the timestamp of the audio data and the timestamp of the compensated audio data, the timing of the image coding sequence and the audio coding sequence is matched to obtain a video coding sequence.

[0149] S1110: Encode the original video data based on the video encoding sequence to obtain video encoding data.

[0150] See also Fig.12 In some implementations, step S110 includes step S1111, step S1112, and step S1113.

[0151] S1111: Obtain the total load value of the processor.

[0152] S1112: When the total load value is greater than the load threshold, each time a first number of frames of raw image data are acquired, the storage of one frame of raw image data is reduced.

[0153] S1113: When the total load value is less than or equal to the load threshold, each time a second number of frames of raw video data are acquired, the storage of one frame of raw image data is reduced.

[0154] The first number is smaller than the second number.

[0155] The disclosed embodiment also provides a computer-readable storage medium, in which execution instructions are stored, and when the execution instructions are executed by the processor 10, they are used to implement the above-mentioned method. "Readable storage medium" can be any device that can contain, store, communicate, propagate or transmit programs for use with an instruction execution system, device or equipment or in combination with these instruction execution systems, devices or equipment. More specific examples of readable storage media include the following: an electrical connection portion (electronic device) having one or more wirings, a portable computer disk box (magnetic device), a random access memory 20 (RAM), a read-only memory 20 (ROM), an erasable and editable read-only memory 20 (EPROM or flash memory 20), an optical fiber device, and a portable read-only memory 20 (CDROM), etc.

[0156] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which, when executed by the computer program / instruction processor 10, implements the question answering method provided in the embodiments of the present disclosure.

[0157] The method in the embodiment of the present disclosure can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function of the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.

[0158] The computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instructions may be transmitted from one website, computer, server 110 or data center to another website, computer, server 110 or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server 110, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0159] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present application. In this specification, the schematic representations of the above terms are not necessarily the same embodiment / method or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments / methods or examples described in this specification and the features of the different embodiments / methods or examples, without contradiction.

[0160] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0161] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure and the technical solutions of the present disclosure, rather than limiting them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art who is familiar with the present technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be based on the protection scope of the claims.

Claims

1. A video data processing system, It is characterized in that The video data processing system comprises a processor memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the video data processing system performs the following process: Acquire original video data, and encode the original video data to obtain video encoding data, wherein the video encoding data includes audio encoding data and image encoding data; Performing synthesis processing on the audio coding data and the image coding data to generate synthesized video data, and monitoring the video frames of the video coding data; When the nth target key frame is monitored, the synthesized video data synthesized based on the n-1th target key frame and the video frames between the frame time of the n-1th target key frame and the frame time of the n-1th target key frame generates an nth video segment, and in the process of generating the nth video segment, the audio coding data and the image coding data of the video coding data are synthesized with the frame time of the nth target key frame as the starting point, the synthesized video data is continuously generated and the video frames of the video coding data are kept monitored; Wherein, n is a natural number greater than or equal to 1. When n=1, the n-1th target key frame is the video frame at the first frame time of the video encoding data.

2. The video data processing system according to claim 1, It is characterized in that The original video data includes original image data and original audio data, and the processor includes a first processing unit, a second processing unit, and a third processing unit; when the original video data is acquired and the original video data is encoded to obtain the video encoding data: The first processing unit is used to obtain the original image data; The second processing unit is used to obtain the original audio data; The third processing unit is used to encode the original image data to obtain the image encoding data, and to encode the original audio data to obtain the audio encoding data.

3. The video data processing system according to claim 2, It is characterized in that When acquiring the original image data, the video data processing system performs the following process: Get the image cache capacity; When the image cache capacity is greater than or equal to an image cache capacity threshold, a first notification instruction is issued, where the first notification instruction is used to instruct the third processing unit to encode the original image data.

4. The video data processing system according to claim 2, It is characterized in that When acquiring the audio data, the video data processing system performs the following process: Get the audio buffer capacity; When the audio cache capacity is greater than or equal to an audio cache capacity threshold, a second notification instruction is issued, where the second notification instruction is used to instruct the third processing unit to encode the original audio data.

5. The video data processing system according to claim 1, It is characterized in that The original video data includes original image data and original audio data. When the original video data is acquired and encoded to obtain video encoded data, the video data processing system performs the following process: Calculating the audio data compensation duration based on the timestamp of the original image data and the timestamp of the original audio data; Acquire multiple segments of compensated audio data and a timestamp of each segment of the compensated audio data based on the audio data compensation duration, wherein the sum of the durations of the multiple segments of the compensated audio data is greater than or equal to the audio data compensation duration; Based on the timestamp of the image data, the timestamp of the audio data and the timestamp of the compensated audio data, matching the timing of the image coding sequence and the audio coding sequence to obtain a video coding sequence; The original video data is encoded based on the video encoding sequence to obtain the video encoding data.

6. The video data processing system according to claim 5, It is characterized in that When acquiring multiple segments of compensated audio data and a timestamp of each segment of the compensated audio data based on the audio data compensation duration, the video data processing system performs the following process: Based on a preset compensation interval, the audio data compensation duration is divided into a plurality of compensation time periods, and the time interval between two adjacent compensation time periods is greater than or equal to the preset compensation interval; A segment of the compensated audio data having a duration corresponding to each compensation time period is obtained, and a timestamp of each segment of the compensated audio data corresponding to the compensation time period is obtained based on the timestamp of each compensation time period.

7. The video data processing system according to claim 1, It is characterized in that The original video data includes original image data and original audio data. When acquiring the original video data, the video data processing system performs the following process: Obtaining a total load value of the processor; When the total load value is greater than the load threshold, when acquiring the first number of frames of the original image data, reducing the storage of one frame of the original image data; When the total load value is less than or equal to the load threshold, when acquiring the second number of frames of the original video data, reducing the storage of one frame of the original image data; Wherein, the first number is smaller than the second number.

8. A video data processing method, It is characterized in that include: Acquire original video data, and encode the original video data to obtain video encoding data, wherein the video encoding data includes audio encoding data and image encoding data; Performing synthesis processing on the audio coding data and the image coding data to generate synthesized video data, and monitoring the video frames of the video coding data; When the nth target key frame is monitored, the synthesized video data synthesized based on the n-1th target key frame and the video frames between the frame time of the n-1th target key frame and the frame time of the n-1th target key frame generates an nth video segment, and in the process of generating the nth video segment, the audio coding data and the image coding data of the video coding data are synthesized with the frame time of the nth target key frame as the starting point, the synthesized video data is continuously generated and the video frames of the video coding data are kept monitored; Wherein, n is a natural number greater than or equal to 1. When n=1, the n-1th target key frame is the video frame at the first frame time of the video encoding data.

9. A readable storage medium, It is characterized in that The readable storage medium stores a computer program, and the computer program is used to implement the method according to claim 8 when executed by a processor.

10. A computer program product, It is characterized in that The computer program product comprises a computer program, which is used to implement at least the method according to claim 8 when executed by a processor.