Video content processing method, device, terminal and storage medium

By managing the status of video processing nodes through a linked list, the video processing operations are carried out in an orderly manner, which solves the problems of low video processing efficiency and chaotic business node management in the existing technology, and improves the video processing efficiency.

CN114697706BActive Publication Date: 2024-10-29深圳市恒扬数据股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210320051.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2024-10-29
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

In the existing technology, the video processing efficiency is low and the management of business nodes is chaotic, resulting in the inability to carry out different video processing operations in a timely and orderly manner.

Method used

By obtaining the status of the video processing node, use the pre-created linked list to manage the video to be processed, switch according to the node status, and store the video in the corresponding linked list to ensure the orderly progress of video processing operations.

Benefits of technology

It improves the efficiency of video processing, ensures timely and orderly processing of videos to be processed, and avoids inefficiency problems caused by chaotic business node management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114697706B_ABST
    Figure CN114697706B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of video processing, and provides a video content processing method, device, terminal and storage medium, wherein the method includes: obtaining a video to be processed, the video to be processed corresponds to a number of video processing nodes, and each video processing node has N node states; obtaining the first node state of a number of video processing nodes in the video to be processed; based on the first node state, determining a first linked list corresponding to the first node state, and storing the video to be processed in the first linked list; and when monitoring that the node state of a number of video processing nodes in the video to be processed jumps from the first node state to the second node state, determining a second linked list corresponding to the second node state based on the second node state; and storing the video to be processed in the second linked list. This solution can solve the technical problems existing in the prior art that the single-machine processing performance is weak, and the hardware cost is increased by relying on stacked hardware to improve the single-machine performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of video processing technology, and in particular, relates to a video content processing method, device, terminal and storage medium. Background Art

[0002] Currently in the field of video processing, each program involves multiple business nodes, and each node can be regarded as a task. The management of the program life cycle and the status of its business nodes is the problem we face.

[0003] At present, in the existing technology, the management of business nodes for video processing is chaotic, different video processing operations cannot be carried out in a timely and orderly manner, and the video processing efficiency is low. Summary of the invention

[0004] The embodiment of the present application provides a video content processing method to solve the technical problems existing in the prior art, such as chaotic management of business nodes, inability to perform different video processing operations in a timely and orderly manner, and low video processing efficiency.

[0005] In a first aspect, an embodiment of the present application provides a video content processing method, including:

[0006] Acquire a video to be processed, wherein the video to be processed corresponds to a plurality of video processing nodes, each of the video processing nodes having N node states, and the node states are used to indicate an execution state of a video processing operation corresponding to the video processing node;

[0007] Obtaining a first node state of the plurality of video processing nodes in the video to be processed;

[0008] Based on the first node state, determining a first linked list corresponding to the first node state from the pre-created N linked lists, and storing the to-be-processed video in the first linked list; wherein each of the linked lists corresponds to one of the node states;

[0009] When it is detected that the node states of the plurality of video processing nodes in the video to be processed jump from the first node state to the second node state, based on the second node state, a second linked list corresponding to the second node state is determined from the N linked lists;

[0010] The video to be processed is stored in the second linked list.

[0011] In a second aspect, an embodiment of the present application provides a video content processing device, including:

[0012] An acquisition module, used for acquiring a video to be processed, wherein the video to be processed corresponds to a plurality of video processing nodes, each of which has N node states, and the node state is used for indicating an execution state of a video processing operation corresponding to the video processing node;

[0013] A storage module, used for obtaining the first node state of the plurality of video processing nodes in the video to be processed, determining a first linked list corresponding to the first node state from N pre-created linked lists based on the first node state, and storing the video to be processed in the first linked list, wherein each linked list corresponds to one node state;

[0014] A jump module is used to determine a second linked list corresponding to the second node state from the N linked lists based on the second node state when it is monitored that the node state of the several video processing nodes in the video to be processed jumps from the first node state to the second node state, and store the video to be processed in the second linked list.

[0015] In a third aspect, an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal, enables the terminal to execute the steps of the method described in the first aspect.

[0018] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0019] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the present application refines the processing of each channel of the video to be processed to the node level, indicates the execution status of the video processing operation corresponding to the video processing node through different video processing node states, manages the different processing nodes of the video to be processed in an orderly manner, stores the video to be processed in different linked lists, and performs timely and orderly video processing operations on the video to be processed, thereby improving the video processing efficiency. This method can solve the technical problems existing in the prior art, such as the chaotic management of business nodes, the inability to carry out different video processing operations in a timely and orderly manner, and the low video processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 This is a process of a video content processing method provided by an embodiment of the present application Figure 1 ;

[0022] Figure 2 This is a process of a video content processing method provided by an embodiment of the present application Figure 2 ;

[0023] Figure 3 is a structural diagram of a video content processing device provided in an embodiment of the present application;

[0024] Figure 4 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0026] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0027] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0028] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0029] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0030] In a specific implementation, the terminal described in the embodiments of the present application includes, but is not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).

[0031] In the following discussion, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse and / or joystick.

[0032] The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk burning application, a spreadsheet application, a game application, a telephone application, a video conferencing application, an email application, an instant messaging application, a workout support application, a photo management application, a digital camera application, a digital camcorder application, a web browsing application, a digital music player application, and / or a digital video player application.

[0033] Various applications that can be executed on the terminal can use at least one common physical user interface device such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and / or changed between applications and / or within corresponding applications. In this way, the common physical architecture of the terminal (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.

[0034] It should be understood that the size of the serial numbers of the steps in this embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0035] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

[0036] See also Figure 1 , Figure 1 This is a process of a video content processing method provided by an embodiment of the present application Figure 1 .like Figure 1 As shown, a video content processing method comprises the following steps:

[0037] Step 101, obtaining a video to be processed, the video to be processed corresponds to a number of video processing nodes, each video processing node has N node states, and the node state is used to indicate the execution state of the video processing operation corresponding to the video processing node.

[0038] The video to be processed refers to specific video content, and the video to be processed is divided into a number of video processing nodes according to different video processing operations.

[0039] When the video to be processed is in different video processing nodes, different video processing operations are performed on the video to be processed, and the different video processing operations are performed here on the complete video content. Different video processing nodes do not refer to the video content in different time periods of the video to be processed.

[0040] For example, the video to be processed has a first video processing node, a second video processing node, and a third video processing node. The video to be processed is demultiplexed at the first video processing node, decompressed at the second video processing node, and scaled at the third video processing node.

[0041] Each video processing node has several node states. When different video processing nodes perform video processing operations, each node state can be used as the node state of each video processing node. The node state is used to indicate the state of the current video processing node.

[0042] For example, the node state includes an initial state, a start state, and a finish state. Taking the decoding operation as an example, when the node performing the decoding operation receives a video to be processed, the node state changes from the initial state to the start state, and then the video is decoded. When the decoding process is completed, the node state changes from the start state to the finish state.

[0043] Step 102: Obtain the first node status of a plurality of video processing nodes in the video to be processed.

[0044] The first node state indicates the overall state of a plurality of video processing nodes, including the current node state of each video processing node, and may also indicate the current node state of some video processing nodes.

[0045] Step 103, based on the first node state, determine a first linked list corresponding to the first node state from the pre-created N linked lists, and store the video to be processed in the first linked list; wherein each linked list corresponds to a node state.

[0046] Different node states correspond to different linked lists, and there is a one-to-one correspondence between the node state and the linked list. When the video to be processed is in the first node state, the first node state corresponds to the first linked list, and the video to be processed will be stored in the first linked list.

[0047] For example, the first node state is an initialization state. Since the initialization state corresponds to a free list, the video to be processed is stored in the free list, waiting for different video processing operations to be performed on different video processing nodes later.

[0048] In step 104, when it is detected that the node state of several video processing nodes in the video to be processed jumps from the first node state to the second node state, a second linked list corresponding to the second node state is determined from the N linked lists based on the second node state.

[0049] During the operation of processing the video to be processed, the video to be processed will jump from the first node state to the second node state. The change of the node state indicates the change of the state of several video processing nodes. The second node state also corresponds to a second linked list.

[0050] For example, the first node state is the initialization state, the video to be processed is in the idle linked list, and the second node state is the video processing state. Then the video to be processed will jump from the initialization state to the video processing state, and the second node state corresponds to the video processing linked list.

[0051] Step 105: store the video to be processed in the second linked list.

[0052] The video to be processed is stored in the second linked list corresponding to the second node state. When it is detected that the video to be processed jumps from the initialization state to the video processing state, the video to be processed will be stored in the video processing linked list.

[0053] In the embodiment of the present application, the present application refines the processing of each channel of the video to be processed to the node level, indicates the execution status of the video processing operation corresponding to the video processing node through different video processing node states, manages the different processing nodes of the video to be processed in an orderly manner, stores the video to be processed in different linked lists, and performs timely and orderly video processing operations on the video to be processed, thereby improving the video processing efficiency. This method is used to solve the technical problems existing in the prior art, such as the chaotic management of business nodes, the inability to carry out different video processing operations in a timely and orderly manner, and the low video processing efficiency.

[0054] The embodiments of the present application also provide different implementation methods of the video content processing method.

[0055] See also Figure 2 , Figure 2 This is a process of a video content processing method provided by an embodiment of the present application Figure 2 .like Figure 2 As shown, a video content processing method comprises the following steps:

[0056] Step 201, obtaining a video to be processed, the video to be processed corresponds to a number of video processing nodes, each video processing node has N node states, and the node state is used to indicate the execution state of the video processing operation corresponding to the video processing node.

[0057] The implementation process of this step is the same as the implementation method of step 101 in the aforementioned embodiment, and will not be repeated here.

[0058] Step 202, respectively obtain the current node state of each video processing node in the video to be processed.

[0059] The video processing operations corresponding to the plurality of video processing nodes are executed in sequence.

[0060] The node states of all video processing nodes of the video to be processed are obtained. The video processing operations corresponding to different video processing nodes are executed in sequence, that is, the video processing operations corresponding to different video processing nodes are executed in series in a front-to-back order.

[0061] Step 203 , based on the current node state of each video processing node and the sequential execution relationship between the video processing operations corresponding to the video processing nodes, determine the first node state corresponding to the video processing nodes in the to-be-processed video.

[0062] The first node state is the node state of all video processing nodes arranged in sequence corresponding to the video processing operation sequence, that is, the first node state includes different video processing nodes arranged in sequence corresponding to the video processing operation sequence, and the node state of each video processing node in different order.

[0063] For example, the video to be processed includes three video processing nodes, namely, a first video processing node, a second video processing node, and a third video processing node. The video processing operations corresponding to the first video processing node, the second video processing node, and the third video processing node are executed in sequence, namely, demultiplexing, decoding, and scaling. In one state, the video to be processed has already executed demultiplexing and decoding operations, and is executing a scaling operation, then the first video processing node, the second video processing node, and the third video processing node are executed in sequence, and the first video processing node and the second video processing node are in a completed state, and the third video processing node is in a started state, which can be regarded as the first node state as a whole.

[0064] In this embodiment, the first node state includes an initialization state, a video processing state, and a video processing completed state.

[0065] The node state of each of the plurality of video processing nodes is currently that the video processing operation is not executed, and then determining that the first node state corresponding to the plurality of video processing nodes in the video to be processed is an initialization state;

[0066] The plurality of video processing nodes include a first video processing node whose current node state is that the video processing operation is being executed, and a second video processing node whose current node state is that the video processing operation has been executed or the video processing operation has not been executed, then determining that the first node state corresponding to the plurality of video processing nodes in the video to be processed is a video processing state;

[0067] The node state of each of the plurality of video processing nodes is currently that the video processing operation is completed, and then the first node state corresponding to the plurality of video processing nodes in the video to be processed is determined to be the video processing completed state.

[0068] When the acquired video to be processed does not perform any video processing operation, the video processing node is in an initialization state, and the initialization state indicates that the video processing operation is not performed.

[0069] When any video processing operation has been performed on the to-be-processed video but all video processing operations have not been completed, the video processing node is in a video processing state, and the video processing state indicates that a video processing operation is being performed.

[0070] When all video processing operations have been executed, the video processing node is in a video processing completed state, and the video processing completed state indicates that all video processing operations have been completed.

[0071] In another embodiment, based on the first node state corresponding to several video processing nodes in the video to be processed determined in the aforementioned process, a first linked list corresponding to the first node state is further determined from N pre-created linked lists based on the first node state, and the video to be processed is stored in the first linked list, specifically including: if the first node state is a video processing completion state, a resource reuse linked list is determined from the N pre-created linked lists as the first linked list corresponding to the first node state; and the processed video to be processed is stored in the resource reuse linked list.

[0072] When all video processing operations of the video to be processed are completed, that is, when the first node state is the video processing completed state, the processed video to be processed is stored in the resource reuse linked list. The processed video to be processed is reused to improve the reuse rate of the video to be processed, reduce memory fragmentation, and improve video processing efficiency. The video to be processed can be a complete video to be processed or a part of the video to be processed.

[0073] In another embodiment, after all video processing operations are executed, the processed videos to be processed are further stored in a resource reuse linked list, specifically including: data decomposition of the processed videos to be processed to obtain video reuse data; and storage of the video reuse data in a resource reuse linked list.

[0074] Data decomposition may include decomposing the processed video to be processed into several groups and storing the data of the several groups, which may be processing actions or quantized data of video processing operations of different video processing nodes, such as decompression actions, scaling actions, initial brightness, and video resolution. The data of the several groups is video multiplexing data.

[0075] Data decomposition may also include extraction of important data, that is, retaining required data and discarding unnecessary data, and the important data to be retained may be specifically set according to specific circumstances. The important data to be retained is the video multiplexing data.

[0076] The video multiplexed data, for example, includes several groups of data decomposed from the processed video to be processed, and important data that needs to be retained that has been extracted.

[0077] In another embodiment, obtaining the video to be processed specifically includes: based on the video processing configuration parameters, extracting target video multiplexing data matching the video processing configuration parameters from a resource multiplexing linked list; and using the video content containing the target video multiplexing data as the video to be processed.

[0078] The resource reuse linked list is a first linked list corresponding to when the first node state is a video processing completion state, and the linked list is used to store different video multiplexing data.

[0079] The video processing configuration parameters are configuration parameters corresponding to the current video processing task, and include, for example, video name, video processing node, video processing operation corresponding to the video processing node, quantization data, and the like.

[0080] Correspondingly, the target video multiplexing data is, for example, a complete video to be processed after processing, a part of the video to be processed after processing, several groups of data groups that have been disassembled, and important data that needs to be retained that have been extracted.

[0081] Through the above processing steps, the video multiplexing data extracted in the previous video processing process is reused to directly obtain and integrate relevant available data of the video to be processed in the subsequent video processing process, thereby realizing rapid video processing and improving processing efficiency.

[0082] In another embodiment, the first node state corresponds to the first acquisition time. After acquiring the first node state of the several video processing nodes in the video to be processed, it specifically includes: at the second acquisition time, acquiring the real-time node state of the several video processing nodes in the video to be processed; judging whether the real-time node state and the first node state are the same node state; when the real-time node state and the first node state are not the same node state, determining that it is monitored that the node state of the several video processing nodes in the video to be processed jumps from the first node state to the second node state; when the real-time node state and the first node state are the same node state, returning to execute the step of acquiring the real-time node state of the several video processing nodes in the video to be processed at the second acquisition time.

[0083] Compare the real-time node state at the second acquisition time with the first node state, and determine whether the node state needs to be jumped according to the comparison result. Monitor the video processing progress of the video to be processed in real time, perform video processing operations on the video to be processed in time, or reuse the processed video to be processed.

[0084] Step 204, based on the first node state, determine a first linked list corresponding to the first node state from the pre-created N linked lists, and store the video to be processed in the first linked list; wherein each linked list corresponds to a node state.

[0085] The implementation process of this step is the same as the implementation method of step 103 in the aforementioned embodiment, and will not be repeated here.

[0086] In step 205, when it is detected that the node state of several video processing nodes in the video to be processed jumps from the first node state to the second node state, a second linked list corresponding to the second node state is determined from the N linked lists based on the second node state.

[0087] The implementation process of this step is the same as the implementation method of step 104 in the aforementioned embodiment, and will not be repeated here.

[0088] Step 206: store the video to be processed in the second linked list.

[0089] The implementation process of this step is the same as the implementation method of step 105 in the aforementioned embodiment, and will not be repeated here.

[0090] In the embodiment of the present application, the execution state of the video processing operation corresponding to the video processing node is indicated by different video processing node states, the different processing nodes of the video to be processed are managed in an orderly manner, the video to be processed is stored in different linked lists, and the video to be processed is subjected to timely and orderly video processing operations, thereby improving the video processing efficiency. The video processing operations corresponding to the several video processing nodes have a sequential execution relationship, which can avoid the situation that the video processing operation cannot be normally performed due to the reversed order of the video processing operation. And further through the video multiplexing technology, the processed video to be processed is reused, so as to further improve the processing efficiency of the video to be processed by directly acquiring and integrating the relevant available data of the video to be processed in the subsequent video processing process. Through this method, the technical problems existing in the prior art, such as the chaotic management of the business nodes, the inability of different video processing operations to be carried out in a timely and orderly manner, and the low video processing efficiency, can be solved, and the situation that the video processing operation cannot be normally performed can be avoided through the sequential execution relationship between different video processing operations, and the processing efficiency of the video to be processed is further improved through the video multiplexing technology.

[0091] See also Figure 3 , Figure 3 This is a structural diagram of a video content processing device provided in an embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.

[0092] The video content processing device 300 includes:

[0093] The acquisition module 301 is used to acquire a video to be processed, wherein the video to be processed corresponds to a plurality of video processing nodes, each of which has N node states, and the node state is used to indicate the execution state of the video processing operation corresponding to the video processing node;

[0094] The storage module 302 is used to obtain the first node state of the plurality of video processing nodes in the video to be processed, determine the first linked list corresponding to the first node state from the pre-created N linked lists based on the first node state, and store the video to be processed in the first linked list, wherein each linked list corresponds to one node state;

[0095] The jump module 303 is used to determine the second linked list corresponding to the second node state from the N linked lists based on the second node state when it is monitored that the node state of the several video processing nodes in the video to be processed jumps from the first node state to the second node state, and store the video to be processed in the second linked list.

[0096] The video processing operations corresponding to the plurality of video processing nodes are executed in sequence; the storage module 302 is specifically used for:

[0097] Respectively obtain the current node state of each of the video processing nodes in the video to be processed;

[0098] Based on the current node state of each of the video processing nodes and the sequential execution relationship between the video processing operations corresponding to the plurality of video processing nodes, the first node state corresponding to the plurality of video processing nodes in the video to be processed is determined.

[0099] The storage module 302 is further specifically used for:

[0100] If the node state of each of the plurality of video processing nodes is currently that the video processing operation is not executed, determining that the first node state corresponding to the plurality of video processing nodes in the video to be processed is an initialization state;

[0101] If the plurality of video processing nodes include a first video processing node whose current node status is that the video processing operation is being executed, and a second video processing node whose current node status is that the video processing operation has been completed or the video processing operation has not been executed, then determining that the first node status corresponding to the plurality of video processing nodes in the video to be processed is a video processing status;

[0102] If the node state of each of the plurality of video processing nodes is currently that the video processing operation is completed, it is determined that the first node state corresponding to the plurality of video processing nodes in the video to be processed is a video processing completed state.

[0103] The storage module 302 is further specifically used for:

[0104] If the first node state is a video processing completed state, determining a resource reuse linked list from the pre-created N linked lists as the first linked list corresponding to the first node state;

[0105] The processed video to be processed is stored in the resource reuse linked list.

[0106] The storage module 302 is further specifically used for:

[0107] Decomposing the processed video to be processed to obtain video multiplexing data;

[0108] The video multiplexing data is stored in the resource multiplexing linked list.

[0109] The storage module 302 is further specifically used for:

[0110] Based on the video processing configuration parameters, extracting target video multiplexing data matching the video processing configuration parameters from the resource multiplexing linked list;

[0111] The video content including the target video multiplexing data is used as the video to be processed.

[0112] The storage module 302 is further specifically used for:

[0113] The first node state corresponds to a first acquisition time, and at a second acquisition time, the real-time node states of the plurality of video processing nodes in the video to be processed are acquired;

[0114] Determine whether the real-time node state and the first node state are the same node state;

[0115] When the real-time node state and the first node state are not the same node state, determining that the node state of the plurality of video processing nodes in the video to be processed is monitored to jump from the first node state to a second node state;

[0116] When the real-time node state and the first node state are the same node state, the step of obtaining the real-time node states of the plurality of video processing nodes in the video to be processed at the second obtaining time is returned to be executed.

[0117] The video content processing device provided in the embodiment of the present application can implement each process of the embodiment of the above-mentioned video content processing method and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0118] Figure 4 4 is a structural diagram of a terminal provided in an embodiment of the present application. As shown in the figure, the terminal 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, wherein the processor 40 implements the steps of any of the above-mentioned method embodiments when executing the computer program 42.

[0119] The terminal 4 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0120] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0121] The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used to store the computer program and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0125] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0127] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0128] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0129] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be implemented through a computer program product. When the computer program product runs on a terminal, the terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0130] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A video content processing method, characterized in that: Acquire a video to be processed, wherein the video to be processed corresponds to a plurality of video processing nodes, each of the video processing nodes has N node states, and the node states are used to indicate the execution state of the video processing operation corresponding to the video processing node. When the video to be processed is in different video processing nodes, different video processing operations are executed on the video to be processed, and the video on which different video processing operations are executed is a complete video content; Obtaining a first node state of the plurality of video processing nodes in the video to be processed; Based on the first node state, determining a first linked list corresponding to the first node state from the pre-created N linked lists, and storing the to-be-processed video in the first linked list; wherein each of the linked lists corresponds to one of the node states; When it is detected that the node states of the plurality of video processing nodes in the video to be processed jump from the first node state to the second node state, based on the second node state, a second linked list corresponding to the second node state is determined from the N linked lists; The video to be processed is stored in the second linked list.

2. The video content processing method according to claim 1, characterized in that: The video processing operations corresponding to the plurality of video processing nodes are executed in sequence; The obtaining of the first node status of the plurality of video processing nodes in the video to be processed includes: Respectively obtain the current node state of each of the video processing nodes in the video to be processed; Based on the current node state of each of the video processing nodes and the sequential execution relationship between the video processing operations corresponding to the plurality of video processing nodes, the first node state corresponding to the plurality of video processing nodes in the video to be processed is determined.

3. The video content processing method according to claim 2, characterized in that: The determining, based on the node state currently located at each of the video processing nodes and the sequential execution relationship between the video processing operations corresponding to the plurality of video processing nodes, the first node state corresponding to the plurality of video processing nodes in the video to be processed comprises: If the node state of each of the plurality of video processing nodes is currently that the video processing operation is not executed, determining that the first node state corresponding to the plurality of video processing nodes in the video to be processed is an initialization state; If the plurality of video processing nodes include a first video processing node whose current node status is that the video processing operation is being executed, and a second video processing node whose current node status is that the video processing operation has been completed or the video processing operation has not been executed, then determining that the first node status corresponding to the plurality of video processing nodes in the video to be processed is a video processing status; If the node state of each of the plurality of video processing nodes is currently that the video processing operation is completed, it is determined that the first node state corresponding to the plurality of video processing nodes in the video to be processed is a video processing completed state.

4. The video content processing method according to claim 3, characterized in that: The method of determining, based on the first node state, a first linked list corresponding to the first node state from the pre-created N linked lists, and storing the to-be-processed video in the first linked list comprises: If the first node state is a video processing completed state, determining a resource reuse linked list from the pre-created N linked lists as the first linked list corresponding to the first node state; The processed video to be processed is stored in the resource reuse linked list.

5. The video content processing method according to claim 4, characterized in that: The storing the processed video to be processed into the resource reuse linked list includes: Decomposing the processed video to be processed to obtain video multiplexing data; The video multiplexing data is stored in the resource multiplexing linked list.

6. The video content processing method according to claim 5, characterized in that: The step of obtaining the video to be processed includes: Based on the video processing configuration parameters, extracting target video multiplexing data matching the video processing configuration parameters from the resource multiplexing linked list; The video content including the target video multiplexing data is used as the video to be processed.

7. The video content processing method according to claim 3, characterized in that: The first node state corresponds to a first acquisition time, and after acquiring the first node state of the plurality of video processing nodes in the video to be processed, the method further includes: At a second acquisition time, acquiring real-time node states of the plurality of video processing nodes in the video to be processed; Determine whether the real-time node state and the first node state are the same node state; When the real-time node state and the first node state are not the same node state, determining that the node state of the plurality of video processing nodes in the video to be processed is monitored to jump from the first node state to a second node state; When the real-time node state and the first node state are the same node state, the step of obtaining the real-time node states of the plurality of video processing nodes in the video to be processed at the second obtaining time is returned to be executed.

8. A video content processing device, characterized in that: include: An acquisition module is used to acquire a video to be processed, wherein the video to be processed corresponds to a plurality of video processing nodes, each of which has N node states, and the node states are used to indicate the execution state of the video processing operation corresponding to the video processing node. When the video to be processed is in different video processing nodes, different video processing operations are executed on the video to be processed, and the video to which different video processing operations are executed is a complete video content; A storage module, used for obtaining the first node state of the plurality of video processing nodes in the video to be processed, determining a first linked list corresponding to the first node state from N pre-created linked lists based on the first node state, and storing the video to be processed in the first linked list, wherein each linked list corresponds to one node state; A jump module is used to determine a second linked list corresponding to the second node state from the N linked lists based on the second node state when it is monitored that the node state of the several video processing nodes in the video to be processed jumps from the first node state to the second node state, and store the video to be processed in the second linked list.

9. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Video information chained storage method and device, computer equipment and storage medium

    CN109582823A

  • Resource processing method and device, electronic equipment and storage medium

    CN111274017A