Video stream compression method and device, computer equipment and storage medium

By determining video stream processing strategies and performing targeted compression at edge nodes, the bandwidth pressure problem caused by centralized compression is solved, achieving efficient and stable transmission of video streams and packet loss recovery, with flexibility and adaptability.

CN120956945APending Publication Date: 2025-11-14CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511003694.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

The centralized compression processing of video streams in existing technologies has led to a surge in bandwidth pressure on new metropolitan area networks and backbone links, which can easily cause congestion and packet loss, especially in scenarios with large-scale concurrent video streams.

Method used

The video stream processing strategy is determined at the edge node, and the strategy identifier is added to the video stream to be processed. The processing server performs targeted compression processing, and the compressed video stream is sent back to the edge node and finally sent to the cloud device, realizing dynamic adjustment and flexible adaptation.

Benefits of technology

It effectively alleviates the strain on backbone network bandwidth resources, improves the stability of video transmission and packet loss recovery efficiency, has greater flexibility and adaptability, and does not change the existing network architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120956945A_ABST
    Figure CN120956945A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network technologies, in particular to a video stream compression method and device, computer equipment and a storage medium. The method comprises the following steps: determining a video stream processing strategy corresponding to a to-be-processed video stream; and adding a strategy identifier corresponding to the video stream processing strategy to the to-be-processed video, and sending the to-be-processed video with the strategy identifier to a processing server, so that the processing server compresses the to-be-processed video stream according to the video stream processing strategy corresponding to the strategy identifier, the compressed video stream to be processed is transmitted back to the edge node; and receiving the compressed to-be-processed video stream sent by the processing server, and sending the compressed to-be-processed video stream to the cloud equipment. According to the method and the device, dynamic issuing and real-time adjustment of the compression strategy are realized, and higher flexibility and adaptability are achieved, so that the problem of shortage of bandwidth resources of a backbone network is effectively relieved, and the video transmission stability and the packet loss recovery efficiency are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network technology, and in particular to a video stream compression method, apparatus, computer equipment, and storage medium. Background Technology

[0002] In existing technologies, the SRv6 Policy mechanism can be used to specify forwarding paths for video streams, ensuring that they traverse the network according to a predetermined strategy, thereby achieving path optimization and centralized compression processing of video streams.

[0003] However, due to the centralized compression processing, all video streams must first be aggregated to the central node before compression processing, which causes a surge in bandwidth pressure on the new metropolitan area network and backbone links, especially in scenarios with large-scale concurrent video streams, which can easily lead to congestion, packet loss and other problems. Summary of the Invention

[0004] Therefore, it is necessary to provide a video stream compression method, apparatus, computer equipment, and storage medium that can alleviate bandwidth pressure when compressing video streams, in order to address the above-mentioned technical problems.

[0005] In a first aspect, this application provides a video stream compression method applied to edge nodes, the method comprising:

[0006] Determine the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent by the controller to the edge node;

[0007] The strategy identifier corresponding to the video stream processing strategy is added to the video to be processed, and the video to be processed with the strategy identifier is sent to the processing server, so that the processing server compresses the video stream to be processed according to the video stream processing strategy corresponding to the strategy identifier, and sends the compressed video stream to be processed back to the edge node.

[0008] The system receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0009] In one embodiment, determining the video stream processing strategy corresponding to the video stream to be processed includes:

[0010] Receive the video stream to be processed;

[0011] Based on the video stream type corresponding to the video stream to be processed, a video stream processing strategy corresponding to the video stream to be processed is selected from at least one candidate processing strategy.

[0012] In one embodiment, selecting a video stream processing strategy corresponding to the video stream to be processed from at least one candidate processing strategy based on the video stream type corresponding to the video stream to be processed includes:

[0013] The candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed shall be used as the video stream processing strategy corresponding to the video stream to be processed.

[0014] In one embodiment, the processing server caches keyframe information of the video stream to be processed, and the method further includes:

[0015] Receive frame interpolation requests sent by cloud devices;

[0016] Based on the frame number identifier to be supplemented contained in the frame supplementation request, the frame data corresponding to the frame number identifier to be supplemented is selected from the keyframe information of the video stream to be processed that is cached by the processing server.

[0017] The frame data is sent to the controller.

[0018] In one embodiment, sending the frame data to the controller includes:

[0019] The frame data is encapsulated using the Internet Basic Protocol (SRv6) and the encapsulated frame data is sent to the controller.

[0020] In one embodiment, the edge node is connected to at least two processing servers. The step of selecting frame data corresponding to the frame number to be supplemented from the keyframe information of the video stream to be processed cached by the processing servers, based on the frame supplementation request containing the frame number identifier to be supplemented, includes:

[0021] Among the processing servers, determine the target server corresponding to the frame replacement request;

[0022] Based on the frame number identifier to be supplemented contained in the frame supplementation request, the frame data corresponding to the frame number identifier to be supplemented is selected from the keyframe information of the video stream to be processed cached by the target server.

[0023] Secondly, this application also provides a video stream compression device configured at an edge node, the device comprising:

[0024] A determination module is used to determine the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent by the controller to the edge node;

[0025] The sending module is used to add the strategy identifier corresponding to the video stream processing strategy to the video to be processed, and send the video to be processed with the strategy identifier to the processing server, so that the processing server compresses the video stream to be processed according to the video stream processing strategy corresponding to the strategy identifier, and sends the compressed video stream to be processed back to the edge node.

[0026] The receiving module is used to receive the compressed video stream to be processed sent by the processing server and send the compressed video stream to the cloud device.

[0027] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0028] Determine the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent by the controller to the edge node;

[0029] The strategy identifier corresponding to the video stream processing strategy is added to the video to be processed, and the video to be processed with the strategy identifier is sent to the processing server, so that the processing server compresses the video stream to be processed according to the video stream processing strategy corresponding to the strategy identifier, and sends the compressed video stream to be processed back to the edge node.

[0030] The system receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0031] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0032] Determine the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent by the controller to the edge node;

[0033] The strategy identifier corresponding to the video stream processing strategy is added to the video to be processed, and the video to be processed with the strategy identifier is sent to the processing server, so that the processing server compresses the video stream to be processed according to the video stream processing strategy corresponding to the strategy identifier, and sends the compressed video stream to be processed back to the edge node.

[0034] The system receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0035] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0036] Determine the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent by the controller to the edge node;

[0037] The strategy identifier corresponding to the video stream processing strategy is added to the video to be processed, and the video to be processed with the strategy identifier is sent to the processing server, so that the processing server compresses the video stream to be processed according to the video stream processing strategy corresponding to the strategy identifier, and sends the compressed video stream to be processed back to the edge node.

[0038] The system receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0039] The aforementioned video stream compression method, apparatus, computer equipment, and storage medium allow edge nodes to determine the video stream processing strategy corresponding to the video stream to be processed. This involves adding a strategy identifier corresponding to the strategy to the video stream to be processed and sending the video stream with the strategy identifier to the processing server. The processing server then compresses the video stream according to the strategy and sends the compressed video stream back to the edge node. The edge node then receives the compressed video stream from the processing server and sends it to the cloud device. As can be seen from the above, this application does not change the existing network architecture during video stream compression. Instead, by receiving the video stream processing strategy sent by the controller, it achieves targeted video stream compression for different types of video streams. This overcomes the limitations of traditional video compression relying on static configuration or centralized processing, enabling dynamic distribution and real-time adjustment of compression strategies. This provides greater flexibility and adaptability. Therefore, this application not only effectively alleviates the problem of backbone network bandwidth constraints but also significantly improves the stability of video transmission and packet loss recovery efficiency. Attached Figure Description

[0040] Figure 1 An application environment diagram of a video stream compression method provided in this application embodiment;

[0041] Figure 2 A flowchart illustrating the first video stream compression method provided in this application embodiment;

[0042] Figure 3A flowchart illustrating the second video stream compression method provided in this application embodiment;

[0043] Figure 4 A flowchart illustrating the third video stream compression method provided in this application embodiment;

[0044] Figure 5 A flowchart illustrating the fourth video stream compression method provided in this application embodiment;

[0045] Figure 6 Signaling diagram of the first video stream compression method provided in the embodiments of this application;

[0046] Figure 7 A structural block diagram of a video stream compression device provided in an embodiment of this application;

[0047] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0049] The video stream compression method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, edge node 102 communicates with cloud device 103 and controller 104 via a network. A data storage system can store the data that controller 104 needs to process. The data storage system can be integrated on server 104 or placed in the cloud or on other network servers. The edge node determines the video stream processing strategy corresponding to the video stream to be processed, adds a strategy identifier corresponding to the video stream processing strategy to the video stream to be processed, and sends the video stream to be processed with the strategy identifier to the processing server. The processing server then compresses the video stream to be processed according to the video stream processing strategy corresponding to the strategy identifier, and sends the compressed video stream back to the edge node. The edge node then receives the compressed video stream sent by the processing server and sends the compressed video stream to the cloud device.

[0050] In one embodiment, such as Figure 2 As shown, a video stream compression method is provided, which can be applied to... Figure 1 Taking edge node 102 as an example, the explanation includes the following steps:

[0051] S201, Determine the video stream processing strategy corresponding to the video stream to be processed.

[0052] The video stream processing strategy is sent from the controller to the edge nodes.

[0053] It should be noted that the controller generates different candidate processing strategies based on actual business needs, and the video stream types corresponding to different candidate processing strategies are also different. Then, the controller sends each candidate processing strategy to the edge nodes. After receiving the video stream to be processed, the edge nodes select the corresponding video stream processing strategy from among the candidate processing strategies based on the video stream type of the video stream to be processed.

[0054] S202, add the policy identifier corresponding to the video stream processing policy to the video to be processed, and send the video to be processed with the policy identifier to the processing server, so that the processing server can compress the video stream to be processed according to the video stream processing policy corresponding to the policy identifier, and send the compressed video stream to be processed back to the edge node.

[0055] The processing server is an edge processing server deployed alongside the edge node. It adopts a DPDK+ smart network card hardware acceleration architecture, which can realize high-speed decapsulation, bitrate compression, key frame caching and frame interpolation of video streams without modifying the main path structure, thus avoiding impacting the performance of the original business links.

[0056] S203 receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0057] In one embodiment of this application, the compressed video stream to be processed needs to be re-encapsulated into an SRv6 message, and then the encapsulated SRv6 message is sent to the cloud device.

[0058] Furthermore, cloud devices can detect the video stream quality of the video stream to be processed in real time and feed the video stream quality back to the controller, so that the controller can dynamically adjust the candidate processing strategy sent later according to the quality of the video stream, so as to ensure the compression quality of the video stream to be processed.

[0059] The aforementioned video stream compression method involves edge nodes determining the video stream processing strategy corresponding to the video stream to be processed, adding a strategy identifier corresponding to the strategy to the video stream to be processed, and sending the video stream to be processed with the strategy identifier to the processing server. The processing server then compresses the video stream according to the video stream processing strategy corresponding to the strategy identifier and sends the compressed video stream back to the edge node. The edge node then receives the compressed video stream from the processing server and sends it to the cloud device. As can be seen from the above, this application does not change the existing network architecture during video stream compression. Instead, by receiving the video stream processing strategy sent by the controller, it achieves targeted video stream compression processing for different types of video streams. This overcomes the limitations of traditional video compression relying on static configuration or centralized processing, realizing dynamic distribution and real-time adjustment of compression strategies, and possessing higher flexibility and adaptability. Therefore, this application not only effectively alleviates the problem of backbone network bandwidth resource shortages but also significantly improves the stability of video transmission and packet loss recovery efficiency.

[0060] In one embodiment, such as Figure 3 As shown, when it is necessary to determine the video stream processing strategy corresponding to the video stream to be processed, the following can be included:

[0061] S301 receives the video stream to be processed.

[0062] It should be noted that the video stream to be processed can come from many sources, such as smart city video surveillance, telemedicine, online education, etc. Therefore, the provider of the video stream to be processed is not limited here.

[0063] S302, select the video stream processing strategy corresponding to the video stream to be processed from at least one candidate processing strategy according to the video stream type corresponding to the video stream to be processed.

[0064] It should be noted that when it is necessary to select a video stream processing strategy corresponding to the video stream to be processed from at least one candidate processing strategy based on the video stream type corresponding to the video stream to be processed, the following may be included: the candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed shall be used as the video stream processing strategy corresponding to the video stream to be processed.

[0065] In one embodiment of this application, after acquiring the video stream to be processed, type analysis can be performed on the video stream to be processed to determine the video stream type of the video stream to be processed; then, the applicable type of each candidate processing strategy is traversed, and the candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed is used as the video stream processing strategy corresponding to the video stream to be processed.

[0066] The above-mentioned video stream compression method ensures the smooth progress of the subsequent video stream compression process by selecting the corresponding video stream processing strategy from at least one candidate processing strategy according to the video stream type of the video stream to be processed.

[0067] In one embodiment, such as Figure 4 As shown, if the processing server caches keyframe information of the video stream to be processed, the following may also be included:

[0068] S401 receives frame interpolation requests sent by cloud devices.

[0069] It should be noted that when the cloud device detects frame loss in the video stream, it can use SRv6 control to send a frame replacement request to the edge node, so that the edge node can receive the frame replacement request sent by the cloud device.

[0070] S402, based on the frame number identifier to be supplemented contained in the frame supplementation request, select the frame data corresponding to the frame number identifier to be supplemented from the key frame information of the video stream to be processed cached by the processing server.

[0071] It should be noted that the keyframe information records at least one frame data and a candidate identifier corresponding to each frame data. Then, each candidate identifier is compared with the identifier of the number of frames to be supplemented, and the frame data corresponding to the candidate identifier that is the same as the identifier of the number of frames to be supplemented is taken as the frame data corresponding to the identifier of the number of frames to be supplemented.

[0072] In one embodiment of this application, at least two processing servers are attached to the edge node. When it is necessary to select the frame data corresponding to the frame number to be supplemented from the keyframe information of the video stream to be processed cached by the processing server according to the frame number to be supplemented identifier contained in the frame supplementation request, the following may be included: determining the target server corresponding to the frame supplementation request among the processing servers; selecting the frame data corresponding to the frame number to be supplemented from the keyframe information of the video stream to be processed cached by the target server according to the frame number to be supplemented identifier contained in the frame supplementation request.

[0073] When it is necessary to determine the target server corresponding to the frame interpolation request, the video stream identifier contained in the frame interpolation request can be obtained. Then, from the video stream processing records of each processing server, the processing server that has processed the video stream corresponding to the video stream identifier is selected, and the processing server that has processed the video stream corresponding to the video stream identifier is set as the target server.

[0074] To further explain, a multi-edge node collaborative frame interpolation mechanism can be constructed to adapt to scenarios such as large-scale event live streaming or concurrent uploads from multiple cameras causing regional network congestion. Multiple processing servers share cache state information through the control plane. Each processing server caches keyframe information processed locally and registers it in the global cache directory. When an edge node receives a frame interpolation request from the cloud but the corresponding processing server does not have the corresponding cache locally, the controller routes the request to other nodes. The target node extracts the required frame data, encapsulates it into an SRv6 message, and directly sends it back to the cloud, achieving cross-node frame interpolation response.

[0075] S403 sends frame data to the controller.

[0076] It should be noted that when frame data needs to be sent to the controller, the following may be included: encapsulating the frame data with Internet Basic Protocol (SRv6) and sending the encapsulated frame data to the controller.

[0077] The aforementioned video stream compression method, without altering the existing network architecture, achieves efficient compression and integrity assurance of video streams. This solution not only effectively alleviates the problem of strained backbone network bandwidth resources but also significantly improves the stability of video transmission and packet loss recovery efficiency. It boasts multiple advantages, including low deployment cost, strong scalability, and wide applicability, making it highly valuable for commercial promotion.

[0078] In one embodiment, such as Figure 5 As shown, when video stream compression is required, the following can be included:

[0079] S501 receives the video stream to be processed.

[0080] S502, the candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed is used as the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent to the edge node by the controller.

[0081] S503, add the policy identifier corresponding to the video stream processing policy to the video to be processed, and send the video to be processed with the policy identifier to the processing server, so that the processing server can compress the video stream to be processed according to the video stream processing policy corresponding to the policy identifier, and send the compressed video stream to be processed back to the edge node.

[0082] S504 receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0083] The S505 receives frame interpolation requests sent by cloud devices.

[0084] S506: Based on the frame number identifier to be supplemented contained in the frame supplementation request, select the frame data corresponding to the frame number identifier to be supplemented from the keyframe information of the video stream to be processed cached by the processing server.

[0085] The S507 encapsulates the frame data using the Internet Basic Protocol (SRv6) and sends the encapsulated frame data to the controller.

[0086] In one embodiment, to ensure the efficiency and security of the video stream during transmission, as follows: Figure 6 As shown, the edge router first needs to configure an RTSP traffic redirection policy through the network controller to ensure that only relevant control plane traffic is forwarded to the edge router when pulling RTSP video streams from the cloud. During this process, DPDK reads the interaction information established during the initial video stream pull session to identify the data plane port and passes this information to the network controller. Subsequently, the controller configures the edge router's data plane SR Policy based on this information to achieve precise control over data plane traffic. Once the SR Policy is configured, all subsequent data plane packets (i.e., video streams) will be encapsulated in SRv6 format and transmitted to the cloud after processing by the DPDK module. Furthermore, in case of anomalies such as missing keyframes, the cloud can request cached data stored in the queue from the edge application, thereby ensuring the continuity and integrity of the video stream. This mechanism not only improves the system's fault tolerance but also effectively guarantees the quality of the user experience.

[0087] The aforementioned video stream compression method involves edge nodes determining the video stream processing strategy corresponding to the video stream to be processed, adding a strategy identifier corresponding to the strategy to the video stream to be processed, and sending the video stream to be processed with the strategy identifier to the processing server. The processing server then compresses the video stream according to the video stream processing strategy corresponding to the strategy identifier and sends the compressed video stream back to the edge node. The edge node then receives the compressed video stream from the processing server and sends it to the cloud device. As can be seen from the above, this application does not change the existing network architecture during video stream compression. Instead, by receiving the video stream processing strategy sent by the controller, it achieves targeted video stream compression processing for different types of video streams. This overcomes the limitations of traditional video compression relying on static configuration or centralized processing, realizing dynamic distribution and real-time adjustment of compression strategies, and possessing higher flexibility and adaptability. Therefore, this application not only effectively alleviates the problem of backbone network bandwidth resource shortages but also significantly improves the stability of video transmission and packet loss recovery efficiency.

[0088] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0089] Based on the same inventive concept, this application also provides a video stream compression apparatus for implementing the video stream compression method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more video stream compression apparatus embodiments provided below can be found in the limitations of the video stream compression method described above, and will not be repeated here.

[0090] In one embodiment, such as Figure 7 As shown, a video stream compression device is provided, comprising: a determining module 10, a sending module 20, and a receiving module 30, wherein:

[0091] The determination module 10 is used to determine the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent to the edge node by the controller.

[0092] The sending module 20 is used to add the policy identifier corresponding to the video stream processing strategy to the video to be processed, and send the video to be processed with the policy identifier to the processing server, so that the processing server can compress the video stream to be processed according to the video stream processing strategy corresponding to the policy identifier, and send the compressed video stream to be processed back to the edge node.

[0093] The receiving module 30 is used to receive the compressed video stream to be processed sent by the processing server and send the compressed video stream to the cloud device.

[0094] In one embodiment, a video stream to be processed is received;

[0095] Based on the video stream type corresponding to the video stream to be processed, select the video stream processing strategy corresponding to the video stream to be processed from at least one candidate processing strategy.

[0096] In one embodiment, a candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed is used as the video stream processing strategy corresponding to the video stream to be processed.

[0097] In one embodiment, a frame interpolation request sent by a cloud device is received;

[0098] Based on the frame number identifier to be supplemented contained in the frame supplementation request, select the frame data corresponding to the frame number identifier to be supplemented from the keyframe information of the video stream to be processed cached by the processing server.

[0099] Send frame data to the controller.

[0100] In one embodiment, the frame data is encapsulated using the Internet Basic Protocol (SRv6) and the encapsulated frame data is sent to the controller.

[0101] In one embodiment, the target server corresponding to the frame interpolation request is determined from among the processing servers;

[0102] Based on the frame number identifier to be supplemented contained in the frame supplementation request, the frame data corresponding to the frame number identifier to be supplemented is selected from the keyframe information of the video stream to be processed cached on the target server.

[0103] The aforementioned video stream compression device involves edge nodes determining the video stream processing strategy corresponding to the video stream to be processed, adding a strategy identifier corresponding to the strategy to the video stream to be processed, and sending the video stream to be processed with the strategy identifier to the processing server. The processing server then compresses the video stream according to the video stream processing strategy corresponding to the strategy identifier and sends the compressed video stream back to the edge node. The edge node then receives the compressed video stream from the processing server and sends it to the cloud device. As can be seen from the above, this application does not change the existing network architecture during video stream compression. Instead, by receiving the video stream processing strategy sent by the controller, it achieves targeted video stream compression for different types of video streams, breaking through the limitations of traditional video compression that relies on static configuration or centralized processing. It realizes dynamic distribution and real-time adjustment of compression strategies, possessing higher flexibility and adaptability. Therefore, this application not only effectively alleviates the problem of backbone network bandwidth resource shortages but also significantly improves the stability of video transmission and packet loss recovery efficiency.

[0104] Each module in the aforementioned video stream compression device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware within or independently of the processor in a computer device, or stored in software within the memory of the computer device, so that the processor can call and execute the corresponding operations of each module.

[0105] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a video stream compression method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0106] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0107] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0108] Determine the video stream processing strategy corresponding to the video stream to be processed; the video stream processing strategy is sent by the controller to the edge node;

[0109] Add the policy identifier corresponding to the video stream processing policy to the video to be processed, and send the video to be processed with the policy identifier to the processing server, so that the processing server can compress the video stream to be processed according to the video stream processing policy corresponding to the policy identifier, and send the compressed video stream to be processed back to the edge node.

[0110] It receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0111] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0112] Receive the video stream to be processed;

[0113] Based on the video stream type corresponding to the video stream to be processed, select the video stream processing strategy corresponding to the video stream to be processed from at least one candidate processing strategy.

[0114] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0115] The candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed shall be used as the video stream processing strategy corresponding to the video stream to be processed.

[0116] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0117] Receive frame interpolation requests sent by cloud devices;

[0118] Based on the frame number identifier to be supplemented contained in the frame supplementation request, select the frame data corresponding to the frame number identifier to be supplemented from the keyframe information of the video stream to be processed cached by the processing server.

[0119] Send frame data to the controller.

[0120] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0121] The frame data is encapsulated using the Internet Basic Protocol (SRv6) and then sent to the controller.

[0122] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0123] Among the processing servers, determine the target server corresponding to the frame interpolation request;

[0124] Based on the frame number identifier to be supplemented contained in the frame supplementation request, the frame data corresponding to the frame number identifier to be supplemented is selected from the keyframe information of the video stream to be processed cached on the target server.

[0125] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0126] Determine the video stream processing strategy corresponding to the video stream to be processed; the video stream processing strategy is sent by the controller to the edge node;

[0127] Add the policy identifier corresponding to the video stream processing policy to the video to be processed, and send the video to be processed with the policy identifier to the processing server, so that the processing server can compress the video stream to be processed according to the video stream processing policy corresponding to the policy identifier, and send the compressed video stream to be processed back to the edge node.

[0128] It receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0129] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0130] Receive the video stream to be processed;

[0131] Based on the video stream type corresponding to the video stream to be processed, select the video stream processing strategy corresponding to the video stream to be processed from at least one candidate processing strategy.

[0132] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0133] The candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed shall be used as the video stream processing strategy corresponding to the video stream to be processed.

[0134] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0135] Receive frame interpolation requests sent by cloud devices;

[0136] Based on the frame number identifier to be supplemented contained in the frame supplementation request, select the frame data corresponding to the frame number identifier to be supplemented from the keyframe information of the video stream to be processed cached by the processing server.

[0137] Send frame data to the controller.

[0138] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0139] The frame data is encapsulated using the Internet Basic Protocol (SRv6) and then sent to the controller.

[0140] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0141] Among the processing servers, determine the target server corresponding to the frame interpolation request;

[0142] Based on the frame number identifier to be supplemented contained in the frame supplementation request, the frame data corresponding to the frame number identifier to be supplemented is selected from the keyframe information of the video stream to be processed cached on the target server.

[0143] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0144] Determine the video stream processing strategy corresponding to the video stream to be processed; the video stream processing strategy is sent by the controller to the edge node;

[0145] Add the policy identifier corresponding to the video stream processing policy to the video to be processed, and send the video to be processed with the policy identifier to the processing server, so that the processing server can compress the video stream to be processed according to the video stream processing policy corresponding to the policy identifier, and send the compressed video stream to be processed back to the edge node.

[0146] It receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

[0147] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0148] Receive the video stream to be processed;

[0149] Based on the video stream type corresponding to the video stream to be processed, select the video stream processing strategy corresponding to the video stream to be processed from at least one candidate processing strategy.

[0150] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0151] The candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed shall be used as the video stream processing strategy corresponding to the video stream to be processed.

[0152] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0153] Receive frame interpolation requests sent by cloud devices;

[0154] Based on the frame number identifier to be supplemented contained in the frame supplementation request, select the frame data corresponding to the frame number identifier to be supplemented from the keyframe information of the video stream to be processed cached by the processing server.

[0155] Send frame data to the controller.

[0156] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0157] The frame data is encapsulated using the Internet Basic Protocol (SRv6) and then sent to the controller.

[0158] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0159] Among the processing servers, determine the target server corresponding to the frame interpolation request;

[0160] Based on the frame number identifier to be supplemented contained in the frame supplementation request, the frame data corresponding to the frame number identifier to be supplemented is selected from the keyframe information of the video stream to be processed cached on the target server.

[0161] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0162] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0163] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0164] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A video stream compression method, characterized in that, Applied to edge nodes, the method includes: Determine the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent by the controller to the edge node; The strategy identifier corresponding to the video stream processing strategy is added to the video to be processed, and the video to be processed with the strategy identifier is sent to the processing server, so that the processing server compresses the video stream to be processed according to the video stream processing strategy corresponding to the strategy identifier, and sends the compressed video stream to be processed back to the edge node. The system receives the compressed video stream to be processed from the processing server and sends the compressed video stream to the cloud device.

2. The method according to claim 1, characterized in that, The video stream processing strategy for determining the video stream to be processed includes: Receive the video stream to be processed; Based on the video stream type corresponding to the video stream to be processed, a video stream processing strategy corresponding to the video stream to be processed is selected from at least one candidate processing strategy.

3. The method according to claim 2, characterized in that, The step of selecting a video stream processing strategy corresponding to the video stream to be processed from at least one candidate processing strategy based on the video stream type corresponding to the video stream to be processed includes: The candidate processing strategy with the same applicable type as the video stream type corresponding to the video stream to be processed shall be used as the video stream processing strategy corresponding to the video stream to be processed.

4. The method according to claim 1, characterized in that, The processing server caches keyframe information of the video stream to be processed, and the method further includes: Receive frame interpolation requests sent by cloud devices; Based on the frame number identifier to be supplemented contained in the frame supplementation request, the frame data corresponding to the frame number identifier to be supplemented is selected from the keyframe information of the video stream to be processed cached by the processing server. The frame data is sent to the controller.

5. The method according to claim 4, characterized in that, Sending the frame data to the controller includes: The frame data is encapsulated using the Internet Basic Protocol (SRv6) and the encapsulated frame data is sent to the controller.

6. The method according to claim 4, characterized in that, The edge node is connected to at least two processing servers. The step of selecting frame data corresponding to the frame number to be supplemented from the keyframe information of the video stream to be processed cached by the processing server, based on the frame supplementation request containing the frame number identifier to be supplemented, includes: Among the processing servers, determine the target server corresponding to the frame replacement request; Based on the frame number identifier to be supplemented contained in the frame supplementation request, the frame data corresponding to the frame number identifier to be supplemented is selected from the keyframe information of the video stream to be processed cached by the target server.

7. A video stream compression device, characterized in that, The device, configured at an edge node, includes: A determination module is used to determine the video stream processing strategy corresponding to the video stream to be processed; wherein, the video stream processing strategy is sent by the controller to the edge node; The sending module is used to add the strategy identifier corresponding to the video stream processing strategy to the video to be processed, and send the video to be processed with the strategy identifier to the processing server, so that the processing server compresses the video stream to be processed according to the video stream processing strategy corresponding to the strategy identifier, and sends the compressed video stream to be processed back to the edge node. The receiving module is used to receive the compressed video stream to be processed sent by the processing server and send the compressed video stream to the cloud device.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.