Video stream processing method and related device

By detecting and replacing abnormal video streams during live broadcasts in real time on the cloud platform, the problem of video stream interruptions under traditional processing methods is solved, and stable transmission of video streams and high-quality services are achieved.

WO2024198618A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/071260
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-01-09
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

The traditional video stream processing method cannot restore abnormal video streams in time during the live broadcast process, resulting in the video transmission channel being unable to provide stable services and affecting the user experience.

Method used

By detecting abnormal video streams in real time on the cloud platform and generating replacement streams to replace the abnormal parts, it ensures that the receiver receives normal video streams and realizes automatic detection and replacement of video streams.

Benefits of technology

It achieves stable transmission of video streams, improves user experience, avoids video stream interruptions, and ensures the quality of video services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071260_03102024_PF_FP_ABST
    Figure CN2024071260_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application is a video stream processing method. The method is applied to a cloud platform, which is used for processing a video stream for a video platform. The method comprises: when a first video stream from a data source is acquired, a computing device cluster performing anomaly detection on the first video stream; and when it is determined by means of the anomaly detection that the first video stream is abnormal, the computing device cluster sending a second video stream to a receiver for the first video stream, so as to replace an abnormal portion in the first video stream. In this way, the receiver for the first video stream can receive a video stream the content of which is all normal. Therefore, the solution can achieve timely identification and replacement of abnormal content in a video stream, and after the replacement is completed, enables a receiver for a first video stream to continuously receive and view a video stream from a data source without feeling the abnormal content, so as to prevent a corresponding video from being directly terminated for reception and viewing, which causes a relatively large impact on the transmission and viewing of the video, and thus affects the viewing experience of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Video stream processing method and related equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 31, 2023, with application number CN202310339952.5 and invention name “A video stream processing method and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the technical field of video stream processing, and in particular to a video stream processing method and related equipment. Background Art

[0003] With the development of computer technology, video services serving various fields and scenarios are constantly emerging. Among them, live streaming is a rapidly growing video service.

[0004] During a live broadcast, the host usually records the video in real time. After receiving the real-time video stream, the live broadcast platform pushes the real-time video stream to the viewing users.

[0005] However, during the live broadcast process, if the content of the video is abnormal, the administrator of the live broadcast platform usually needs to ban the live broadcast room, making it impossible to continue the live broadcast. Even if the live broadcast has returned to normal, it is difficult to resume in time.

[0006] It can be seen that the traditional way of processing abnormal video streams causes the video stream transmission channel to be unable to provide stable video services to users, affecting the service quality of the video service and the user experience.

[0007] Summary of the Invention

[0008] This application provides a video stream processing method to address the problem that abnormal video stream processing methods cause the video stream transmission channel to be unable to provide stable video services to users, affecting the service quality of the video service and the user experience. This application also provides corresponding devices, equipment, computer-readable storage media, and computer program products.

[0009] A first aspect of the present application provides a video stream processing method, which is applied to a cloud platform, and the cloud platform is used to process video streams for a video platform. The method includes: when a first video stream from a data source is obtained, performing anomaly detection on the first video stream; when the first video stream is determined to be abnormal through anomaly detection, sending a second video stream to a recipient of the first video stream to replace the abnormal part in the first video stream.

[0010] In the first aspect, an abnormality detection can be performed on the first video stream to be transmitted by the data source, and after the first video stream is detected to be abnormal, the abnormal part in the first video stream is replaced, and after the replacement is completed, the second video stream obtained after the replacement is output to the receiver of the first video stream, so that the receiver of the first video stream can receive a video stream with normal content. It can be seen that the solution of the first aspect can realize the timely identification and replacement of abnormal content in the video stream, and after the replacement is completed, the receiver of the first video stream can continue to receive and watch the video stream from the data source without noticing, avoiding the direct termination of reception and viewing of the corresponding video, which has a greater impact on the transmission and viewing of the video, thereby affecting the user's viewing experience.

[0011] In a possible implementation of the first aspect, the method further includes: determining an audit policy corresponding to the data source based on a domain name corresponding to the data source; and performing anomaly detection on the first video stream when a first video stream from the data source is obtained, including: when the first video stream from the data source is obtained, performing anomaly detection on the first video stream based on the audit policy corresponding to the data source.

[0012] In this possible implementation, the audit policy corresponding to the data source is determined based on the domain name corresponding to the data source. Under the streaming domain dimension, the first video stream of the data source can be audited for exceptions based on the audit policy of the application corresponding to the streaming domain name, thereby meeting the needs of related video applications such as live streaming applications. This possible implementation allows different video applications on the cloud platform to flexibly configure their own audit policies to meet their respective audit needs.

[0013] In a possible implementation of the first aspect, when a first video stream is obtained from a data source, an anomaly detection is performed on the first video stream, including: when the first video stream is obtained from the data source, determining the audit policy corresponding to the first video stream based on the address information of the receiver of the first video stream; and performing an anomaly detection on the first video stream based on the audit policy corresponding to the first video stream.

[0014] In actual application scenarios, due to different laws, regulations, and requirements in different recipient regions, the definition of abnormality may also vary. For example, different regions may have different requirements for video content playback. For example, the same video stream may be normal in some regions but abnormal in others.

[0015] Therefore, in this possible implementation, an administrator can pre-configure audit policies corresponding to different regions. Then, based on the address information of the first video stream's receiver, the region of the client pulling the stream can be determined, and thus the audit policy appropriate for that region can be determined. In this way, based on the specific circumstances of the video stream, an audit policy for the first video stream can be specifically determined at the stream level. Using this audit policy, abnormal portions of the first video stream that do not meet the requirements of the region can be detected.

[0016] In a possible implementation manner of the first aspect, the method further includes: acquiring a video stream from a data source in real time, the first video stream being included in the video stream of the data source.

[0017] In this possible implementation, a computing device cluster can perform anomaly detection and abnormal content replacement on the video stream continuously uploaded by the data source in real time, and then output a video stream that does not contain abnormal content in real time.

[0018] The video stream containing no abnormal content can be pulled by the viewer's client, so that the viewer can watch the video stream containing no abnormal content without perceiving the abnormal content in the original video stream, which provides a better user experience.

[0019] Alternatively, the video stream that does not contain abnormal content can also be output to the management platform of the relevant video application (e.g., the relevant video platform) for further processing by the management platform of the relevant video application. It can be seen that in this example, the computing device cluster can automatically detect and replace abnormal content in the video stream when transmitting the video stream at the system level. On the basis of ensuring the transmission of the video stream, the abnormal content can be intercepted and deleted, thereby better providing the normal transmission service of the video stream for the management platform of the relevant video application.

[0020] In a possible implementation of the first aspect, the method further includes: after performing anomaly detection on the first video stream, obtaining a third video stream, the third video stream being included in the video stream of the data source, and the third video stream being a video stream located after the first video stream; performing anomaly detection on the third video stream; and when it is determined through anomaly detection that the third video stream is a normal video stream, outputting the third video stream to a receiver of the first video stream.

[0021] In this possible implementation, the computing device cluster can perform anomaly detection on the video stream continuously uploaded by the data source in real time. When an anomaly is detected, the abnormal content can be replaced and a video stream without abnormal content can be output. After the video stream of the data source returns to normal, the normal video stream of the output data source can be promptly restored, thereby ensuring the normal transmission of the normal video stream of the data source.

[0022] In a possible implementation manner of the first aspect, the second video stream includes a replacement identifier, and the replacement identifier indicates that the second video stream is a video stream that replaces the abnormal portion of the first video stream of the data source.

[0023] In this possible implementation, the first video stream as the source stream and the second video stream as the replacement stream can be distinguished by the replacement identifier, thereby facilitating subsequent data transmission and other processing.

[0024] For example, after performing anomaly detection, when obtaining a second video stream, an identification field can be included in the header of the second video stream to distinguish the second video stream from the first video stream through the identification field. If the first video stream is used as the source stream and the second video stream is used as the replacement stream, the replacement identifier in the identification field can be used to determine that the second video stream is the replacement stream.

[0025] In a possible implementation of the first aspect, when the first video stream is determined to be abnormal through anomaly detection, a second video stream is sent to a receiver of the first video stream to replace the abnormal part in the first video stream, including: when the first video stream is determined to be abnormal through anomaly detection, based on time information of the abnormal part of the first video stream, outputting the second video stream to the receiver of the first video stream to replace the abnormal part in the first video stream.

[0026] In this possible implementation, a second video stream can be generated based on time information such as the timestamp and duration of the abnormal portion in the first video stream. Furthermore, the output timing of the second video stream can be determined based on the timestamp of the abnormal portion of the first video stream, so that the transmission timing of the second video stream can match the transmission timing of the normal portion of the first video stream and the video streams before and after the first video stream. This allows the second video stream to smoothly replace the abnormal portion of the first video stream and be smoothly output following the video stream before the abnormal portion.

[0027] In a possible implementation of the first aspect, the second video stream includes one or more of the following: a preset video stream, a video stream generated based on the first video stream, a distorted screen, and a video stream obtained by adding subtitles to a solid color background.

[0028] A second aspect of the present application provides a video stream processing device that has the functionality to implement the method of the first aspect or any possible implementation of the first aspect. This functionality can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functionality, such as an acquisition module, a processing module, and a sending module.

[0029] A third aspect of the present application provides a computing device cluster, which includes at least one computing device, each computing device including a processor and a memory, and the memory of at least one computing device stores computer execution instructions that can be run on the processor. When the computer execution instructions are executed by the processor, the processor executes the method as described in the first aspect or any possible implementation of the first aspect.

[0030] In a fourth aspect, the present application provides a computer-readable storage medium storing one or more computer-executable instructions. When the computer-executable instructions are executed by a computing device cluster, the computing device cluster executes the method as described in the first aspect or any possible implementation of the first aspect.

[0031] In a fifth aspect, the present application provides a computer program product storing one or more computer-executable instructions. The computer program product includes computer-executable instructions. When the computer-executable instructions are executed by a computing device cluster, the computing device cluster executes the method as described in the first aspect or any possible implementation of the first aspect.

[0032] A sixth aspect of the present application provides a chip system, which includes a processor for supporting a computing device cluster to implement the functions involved in the first aspect or any possible implementation of the first aspect. In one possible design, the chip system may also include a memory for storing necessary program instructions and data. The chip system may be composed of a chip or may include a chip and other discrete devices.

[0033] Among them, the technical effects brought about by the second to sixth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the first aspect or the relevant possible implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] FIG1 is an exemplary schematic diagram of a communication system provided in an embodiment of the present application;

[0035] FIG2 is an exemplary schematic diagram of a data center provided in an embodiment of the present application;

[0036] FIG3 is a schematic diagram of an embodiment of a video stream processing method provided by an embodiment of the present application;

[0037] FIG4 is an exemplary schematic diagram of a communication system provided in an embodiment of the present application;

[0038] FIG5 is a schematic diagram of an embodiment of a video stream processing method provided in an embodiment of the present application;

[0039] FIG6 is an exemplary schematic diagram of a cloud platform provided in an embodiment of the present application;

[0040] FIG7 is a schematic diagram of an embodiment of a video stream processing device provided in an embodiment of the present application;

[0041] FIG8 is a schematic diagram of a structure of a computing device provided in an embodiment of the present application;

[0042] FIG9 is a schematic diagram of a structure of a computing device cluster provided in an embodiment of the present application;

[0043] FIG10 is another schematic diagram of the structure of the computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0045] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of singular or plural items. The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate. This is merely a way of distinguishing objects with the same properties when describing them in the embodiments of this application. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a list of elements is not necessarily limited to those elements but may include other elements not expressly listed or inherent to such process, method, product, or apparatus.

[0046] The embodiments of the present application relate to a communication system.

[0047] As shown in FIG1 , the communication system may include a computing device cluster, a streaming client (also called a data source), and a streaming client. In addition, in some examples, it may also include a network system such as a content delivery network (CDN).

[0048] The computing device cluster may include at least one computing device, and the specific type of any computing device is not limited herein.

[0049] In one example, the computing device cluster can be used to implement a cloud platform. In this case, the embodiments of the present application can be applied to the cloud platform.

[0050] The cloud platform can provide computing, network and storage capabilities based on services of hardware resources and software resources. Exemplarily, the cloud platform can include one or more data centers to provide cloud resources through one or more data centers.

[0051] The following describes a data center with reference to an architecture diagram shown in FIG2 .

[0052] In Figure 2, in the data center, the cloud management platform exchanges information with one or more servers (such as server 1 and server 2 in Figure 1) through the data center's internal network. The server includes a hardware layer and a software layer. The hardware layer includes the hardware configured on the server, where PCI devices can be, for example, network cards, graphics processing units (GPUs), offload cards, and other devices that can be plugged into the server's peripheral component interconnect (PCI) or peripheral component interconnect express (PCIe) slots. The software layer includes an operating system installed and running on the server (relative to the virtual machine's operating system, it can be called a host operating system). The host operating system is equipped with a virtual machine manager (also known as a hypervisor). The role of the virtual machine manager is to implement computing virtualization, network virtualization, and storage virtualization of the virtual machine, and to manage the virtual machine. Among them, a virtual machine refers to a complete computer system with complete hardware system functions that is simulated by software and runs in a completely isolated environment. In the system architecture shown in Figure 2, multiple servers are set up in a data center. The servers can be used to run virtual machines. The specifications of each virtual machine can be the same or different. Among them, virtual machines can also be called cloud servers (elastic compute services, ECS), elastic instances, etc. Different cloud service providers may have different names.

[0053] In one example of an embodiment of the present application, the cloud platform may be a public cloud platform. In this case, cloud service providers such as individuals or software developers with cloud resource development capabilities can provide cloud services to users. Users obtain cloud services through the Internet but do not own cloud computing resources.

[0054] Specifically, in the example shown in Figure 2, the cloud management platform can provide an access interface (such as an interface or application programming interface (API)), and users of the cloud platform and cloud service providers can operate the client remote access access interface to register a cloud account and password on the cloud management platform, and after the cloud management platform successfully authenticates the cloud account and password, log in to the cloud management platform, thereby creating, managing, logging in and operating virtual machines in the cloud data center.

[0055] For example, some live streaming companies can purchase cloud services and use the cloud platform's cloud resources to provide live streaming services to users. In this case, the live streaming company can create a video platform on the cloud platform using the cloud platform's resources. After logging into the cloud platform, the live streaming company's administrator can use the corresponding video platform in the cloud data center to provide live streaming services and other video services to anchors and viewers.

[0056] It can be seen that the video stream of any video platform can be transmitted to the cloud platform and processed and transmitted through the cloud platform.

[0057] Video services also involve streaming clients (also called data sources) and streaming clients.

[0058] Push streaming refers to the process of transmitting packaged content (e.g., a live video stream) from the acquisition phase to a cloud platform server or network device. For example, in the live streaming field, the user of the push streaming client can be the host. Pull streaming, on the other hand, refers to the process of pulling live content from a cloud platform server using a specified address. The user of the pull streaming client can be the audience.

[0059] The specific type of the client for pushing the stream is not limited here. For example, the client for pushing the stream can be a terminal device that can capture and transmit the video stream. The specific type of the client for pulling the stream is also not limited. For example, the client for pulling the stream can be a terminal device that can receive and play the video stream.

[0060] There is no restriction on the type of terminal device.

[0061] Exemplarily, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a terminal in industrial control, a terminal in self-driving, a terminal in remote medical, a terminal in a smart grid, a terminal in transportation safety, a terminal in a smart city, a terminal in a smart home, a terminal in the Internet of Things (IoT), a wearable device, or a combination of one or more thereof.

[0062] In addition, the communication system may also include a network system such as CDN, which can realize information transmission between various clients and between the cloud platform and various clients.

[0063] For example, a CDN system can redirect user requests to the closest service node in real time based on comprehensive information such as network traffic, node connectivity, load status, distance to the user, and response time. The goal is to enable users to obtain the content they need locally, alleviate Internet congestion, and improve the response speed of website access.

[0064] Taking the live broadcast service as an example, in the live broadcast service, the user of the streaming client can be the anchor. The anchor collects video in real time through the client and uploads the real-time video stream to the cloud platform through the network system.

[0065] Live streaming companies can review and process live video streams through video platforms in cloud data centers. After processing, the live video stream is transmitted to the client through network systems such as CDN, so that users of the client can watch the corresponding video.

[0066] However, in the process of video services such as live broadcast, if the content of the video is abnormal, it is usually directly banned, making the live broadcast unable to continue. After the ban, even if the live broadcast can be restored to normal, the live broadcast cannot be resumed in time.

[0067] This abnormal processing method for the video stream causes the video stream transmission channel to be unable to provide stable video services to users, affecting the service quality of the video service and the user experience.

[0068] A video stream processing method is provided in an embodiment of the present application to solve the problem that the current abnormal processing method of video stream causes the transmission channel of the video stream to be unable to provide stable service to users, affects the service quality of the video service, and affects the user experience.

[0069] The video stream processing method can be applied to the cloud platform of the above-mentioned communication system, and the cloud platform of the communication system can be used to process video streams for the video platform.

[0070] As shown in FIG3 , the method includes steps 301 - 302 .

[0071] Step 301: When a first video stream is obtained from a data source, an anomaly detection is performed on the first video stream.

[0072] In the embodiment of the present application, the data source may be a streaming client in the above-mentioned communication system.

[0073] The first video stream may be a real-time video stream of a data source.

[0074] For example, in a live broadcast scenario, a data source collects video streams in real time and uploads them to a computing device cluster in real time.

[0075] In the process of the data source collecting the video stream in real time and uploading it to the computing device cluster in real time, the computing device cluster can obtain a portion of the video stream from the real-time video stream according to a time interval or a ratio to perform anomaly detection, and any portion of the video stream to be detected obtained can be used as the first video stream in the embodiment of the present application. For example, when the data source uploads the video stream to the computing device cluster in real time, the computing device cluster can obtain a video stream every 500ms at a time interval of 500ms, and perform anomaly detection on the 500ms video stream after each acquisition of a 500ms long video stream. The 500ms video stream can be used as the first video stream in the embodiment of the present application. Of course, the computing device cluster can also obtain the first video stream from the video stream uploaded by the data source in real time using other strategies.

[0076] The transmission path of the first video stream is not restricted here.

[0077] For example, a data source may send a first video stream to a CDN node in a CDN system. The CDN node may then forward the first video stream to a live streaming service in a computing device cluster. The live streaming service in the computing device cluster may then store the received first video stream in a designated storage space (e.g., a designated cache) pending subsequent operations such as anomaly detection.

[0078] After the first video stream is acquired, anomaly detection may be performed on the first video stream according to an audit policy corresponding to the first video stream.

[0079] There may be multiple specific methods and contents for determining the review policy for the first video stream.

[0080] In some examples, the audit policy can include one or more of the following:

[0081] (1) Audit switch: whether to audit the corresponding live streaming;

[0082] (2) Review period;

[0083] (3) Anomaly detection strategy;

[0084] (4) Abnormal part processing strategy: for example, how to determine the starting position of the abnormal part, how to replace the abnormal part (for example, replacing it with an advertising video, replacing it with a normal video with similar content, replacing it with a white screen or a distorted screen, etc.).

[0085] For example, the audit policy for the first video stream can be predetermined by an administrator, or it can be determined based on actual application scenarios. Furthermore, within the audit policy for the first video stream, different content can be determined in different ways. For example, the audit switch and audit time period can be predetermined by the enterprise administrator of the video platform, while the exception audit policy can be predetermined by the system administrator of the cloud platform.

[0086] In some embodiments, the method further comprises:

[0087] Determine the audit policy corresponding to the data source based on the domain name corresponding to the data source;

[0088] Step 301 includes:

[0089] When a first video stream is obtained from a data source, an anomaly detection is performed on the first video stream according to an audit policy corresponding to the data source.

[0090] For example, in the live broadcast field, the domain name corresponding to the data source may include the live broadcast streaming domain name of the data source.

[0091] The computing device cluster can be a system-level cloud platform, from which individual live streaming companies can purchase cloud services to obtain their own video platforms, deploy corresponding live streaming applications, and provide corresponding live streaming services. In this case, each data source can provide live streaming services to viewers through the corresponding video platform, and the live streaming domain name corresponding to each data source can be mapped to the corresponding video platform.

[0092] In this example, the audit policy for the data source is determined based on the domain name corresponding to the data source. Under the streaming domain dimension, the first video stream from that data source can be audited for exceptions based on the audit policy of the application corresponding to the streaming domain name, thereby meeting the needs of related video applications such as the corresponding video platform. This example shows that different video platforms within the cloud platform can flexibly configure their own audit policies to meet their respective audit needs.

[0093] In some embodiments, step 301 includes:

[0094] When a first video stream is obtained from a data source, an audit policy corresponding to the first video stream is determined according to the address information of the receiver of the first video stream;

[0095] According to the audit policy corresponding to the first video stream, anomaly detection is performed on the first video stream.

[0096] In an embodiment of the present application, an audit policy corresponding to a data source may be determined based on the address information of the recipient of the first video stream, where the address information may include, for example, Internet Protocol (IP) address information and / or Media Access Control (MAC) address information.

[0097] Because different receivers have different laws, regulations, and requirements, the definition of abnormality may vary from region to region. For example, different regions may have different requirements for video content playback. The same video stream may be normal in some regions but abnormal in others.

[0098] Therefore, in this embodiment of the present application, an administrator can pre-configure audit policies corresponding to different regions. Then, based on the address information of the recipient of the first video stream, the region of the client pulling the stream can be determined, and thus the audit policy appropriate for that region can be determined. In this way, based on the specific circumstances of the video stream, an audit policy for the first video stream can be specifically determined at the stream level, so that abnormal portions of the first video stream that do not meet the requirements of the region can be detected from the audit policy.

[0099] In the embodiment of the present application, there may be multiple specific methods for performing anomaly detection on the first video stream.

[0100] In some examples, anomaly detection can be performed on the first video stream using machine learning models such as convolutional neural networks (CNNs) and Transformer models to identify abnormal content in the first video stream, such as identifying abnormal image features and / or abnormal text in each video frame in the first video stream, and determining the abnormal type of the first video stream.

[0101] In addition, the audio in the first video stream can be obtained and anomaly detection can be performed on the audio through an audio detection algorithm to identify anomalies in the audio, so as to determine whether the first video stream is abnormal by combining anomalies in the video frame and anomalies in the audio.

[0102] There are also various specific ways to determine whether the first video stream is abnormal through anomaly detection. For example, a machine learning model may output an anomaly detection result of the first video stream, and the anomaly detection result is used to indicate whether the first video stream is abnormal.

[0103] Alternatively, a machine learning model may be used to perform anomaly detection on each video frame in the first video stream, thereby obtaining anomaly detection results corresponding to each video frame. Thus, whether the first video stream is abnormal can be determined based on the anomaly detection results corresponding to each video frame in the first video stream.

[0104] For example, if the ratio of abnormal video frames in the first video stream reaches a preset ratio, such as N times / second, or the number of abnormal video frames in the first video stream and the total number of video frames in the first video stream are greater than a preset ratio, the first video stream can be determined to be abnormal.

[0105] The specific method of performing anomaly detection on the first video stream may adopt an anomaly detection algorithm that is currently available or developed in the future, and is not limited here.

[0106] There are many types of anomaly categories detected by the anomaly detection algorithm.

[0107] For example, the exception category may be determined based on administrative regulations or based on customized exception content.

[0108] Step 302: When it is determined through anomaly detection that the first video stream is abnormal, a second video stream is sent to a receiver of the first video stream to replace the abnormal portion of the first video stream.

[0109] In the embodiment of the present application, there may be many specific abnormal categories of the first video stream, which are not limited here.

[0110] Exemplarily, the first video stream is abnormal, which may indicate that the audio content and / or image content in the first video stream includes abnormal content. The abnormal content may refer to content that violates specified administrative regulations or may be customized abnormal content.

[0111] In the embodiment of the present application, the abnormal portion in the first video stream can be determined by abnormality detection. The abnormal portion may include one or more video frames in the first video stream.

[0112] When it is determined that the first video stream is abnormal, a second video stream may be obtained to replace the abnormal portion of the first video stream with the second video stream and output to a receiver of the first video stream.

[0113] The receiver of the first video stream may be a predetermined device that is to receive the first video stream.

[0114] For example, in one example, as shown in FIG4 , the embodiment of the present application can be applied to a cloud platform, and enterprise-level users can purchase cloud services on the cloud platform to achieve enterprise-level live broadcast management. In other words, the cloud platform can provide enterprise-level video platforms (such as video platform A and video platform B) for multiple enterprises, and the cloud platform can respectively execute the video stream processing method of the embodiment of the present application on the video streams in each enterprise-level video platform to achieve abnormality detection and abnormal content replacement of the video streams in each enterprise-level video platform, and then output it to each enterprise-level video platform, so that the enterprise can perform enterprise-level processing through the corresponding video platform, and then provide it to the client that pulls the stream for the audience to watch.

[0115] In this example, the computing device cluster implementing the cloud platform can detect and replace anomalies in the first video stream at a system-level. After the replacement is complete, the second video stream is transmitted to the next-level video platform for further data processing. In this case, the recipient of the first video stream can be the server of the corresponding video platform.

[0116] In another example, the recipient of the first video stream may be a CDN node in a CDN system, and then the client pulling the stream may pull the stream from the CDN node for viewing.

[0117] In another example, the recipient of the first video stream may be a client that pulls the stream.

[0118] It can be seen that in the embodiment of the present application, the recipient of the first video stream can be in various situations, which are not limited here.

[0119] There are many specific ways to generate the second video stream. For example, the second video stream includes one or more of the following forms of content:

[0120] 1. Preset video streams such as advertising videos, normal videos with similar content, or videos of other content;

[0121] 2. A video stream obtained by adding subtitles to a solid color background. For example, the solid color background may be a white background, a blue background, or a background of another color. The solid color background generally does not contain any pattern, and the subtitles may include information indicating abnormalities in the video stream.

[0122] 3. Flower screen, for example, the flower screen may include dot, sheet or mosaic patterns, showing image forms such as stripes, spots or color blocks;

[0123] 4. A video stream generated based on the first video stream, for example, a video stream generated based on a normal part of the first video stream.

[0124] Among them, the preset video streams such as advertising videos or videos of other content can be pre-configured fixed video streams; or, they can be determined from multiple preset video streams based on the normal content type and / or data source information of the first video stream. For example, if the normal content type of the first video stream is scenery, a scenery-type video stream can be selected from multiple preset video streams as the second video stream.

[0125] In addition, when the second video stream includes a video stream generated according to the first video stream, there may be multiple specific ways of generating the video stream according to the first video stream.

[0126] Exemplarily, part or all of the content can be determined from the normal part of the first video stream through artificial or machine learning models, and the second video stream can be generated based on part or all of the content in the normal part.

[0127] When the first video stream is stored in a preset cache space, after the second video stream is generated, the second video stream can be transferred to the cache space, and the corresponding services such as the live streaming service in the cloud platform are notified to replace the abnormal part of the first video stream with the second video stream and output it.

[0128] Alternatively, the data source can extract some content from the historical video stream preceding the first video stream to generate the second video stream; for example, a normal group of pictures (GOP) preceding the first video stream can be used as the second video stream. When the first video stream and the GOP are both stored in the preset cache space, the corresponding service, such as the live streaming service in the cloud platform, can be notified to replace the abnormal part of the first video stream with the GOP and output it.

[0129] In this way, the style of the second video stream can be made more consistent with that of the first video stream, and the information transition can be smoother, thereby improving the user's viewing experience.

[0130] In some embodiments, the second video stream includes a replacement identifier, which indicates that the second video stream is a video stream that replaces the abnormal portion of the first video stream of the data source.

[0131] In the embodiment of the present application, the first video stream as the source stream and the second video stream as the replacement stream can be distinguished by the replacement identifier, thereby facilitating subsequent data transmission and other processing.

[0132] For example, after performing anomaly detection, when obtaining a second video stream, an identification field can be included in the header of the second video stream to distinguish the second video stream from the first video stream through the identification field. If the first video stream is used as the source stream and the second video stream is used as the replacement stream, the replacement identifier in the identification field can be used to determine that the second video stream is the replacement stream.

[0133] In some embodiments, step 302 specifically includes:

[0134] When the first video stream is determined to be abnormal through abnormality detection, a second video stream is output to the receiver of the first video stream based on time information of the abnormal part of the first video stream to replace the abnormal part in the first video stream.

[0135] Exemplarily, the time information of the abnormal portion of the first video stream may include timestamp information of the abnormal portion and / or duration of the abnormal portion, etc.

[0136] In an embodiment of the present application, a second video stream can be generated based on time information such as the timestamp and duration of the abnormal portion in the first video stream. Furthermore, the output timing of the second video stream can be determined based on the timestamp of the abnormal portion of the first video stream, so that the transmission timing of the second video stream can match the transmission timing of the normal portion of the first video stream and the video streams before and after the first video stream. This allows the second video stream to smoothly replace the abnormal portion of the first video stream and be smoothly output following the video stream before the abnormal portion.

[0137] It can be seen that in the embodiment of the present application, the first video stream to be transmitted by the data source can be detected for abnormalities, and after the first video stream is detected to be abnormal, the abnormal part in the first video stream is replaced, and after the replacement is completed, the second video stream obtained after the replacement is output to the receiver of the first video stream, so that the receiver of the first video stream can receive a video stream with normal content. It can be seen that this solution can realize the timely identification and replacement of abnormal content in the video stream, and after the replacement is completed, the receiver of the first video stream can continue to receive and watch the video stream from the data source without noticing, avoiding the corresponding video being directly terminated from being received and watched, causing a greater impact on the transmission and viewing of the video, thereby affecting the user's viewing experience.

[0138] In addition, in some embodiments, the first video stream may be transmitted in real time from the data source to the computing device cluster, thereby enabling real-time anomaly detection and abnormal content replacement of the video stream of the data source through the computing device cluster.

[0139] Specifically, as shown in FIG5 , in some embodiments, the method further includes:

[0140] Step 501: Acquire a video stream from a data source in real time.

[0141] The first video stream is included in the video stream of the data source.

[0142] In an embodiment of the present application, a computing device cluster can obtain a video stream from a data source in real time, and the first video stream is a video stream in any time period of the video stream of the data source.

[0143] For example, when a current video stream from a data source is transmitted to a computing device cluster, it can be cached there. A video content analysis service within the computing device cluster that implements anomaly detection then reads the current video stream from the cache according to pre-set rules to perform anomaly detection. For example, the video content analysis service may read a video stream of a preset size from the cached current video stream each time to perform anomaly detection. In this case, any video stream of the preset size read at any one time may be used as the first video stream.

[0144] In this way, the computing device cluster can execute the video stream processing method of any of the above embodiments of the present application on the video stream of the data source in real time to determine in real time whether there is an abnormal part in the video stream of the data source. If there is an abnormal part, a corresponding second video stream can be generated and replaced before being output. It can be seen that the computing device cluster can perform anomaly detection and abnormal content replacement on the video stream continuously uploaded by the data source in real time, and then output a video stream that does not contain abnormal content in real time.

[0145] The video stream containing no abnormal content can be pulled by the viewer's client, so that the viewer can watch the video stream containing no abnormal content without perceiving the abnormal content in the original video stream, which provides a better user experience.

[0146] Alternatively, the video stream that does not contain abnormal content can also be output to the management platform of the relevant video application (e.g., the relevant video platform) for further processing by the management platform of the relevant video application. It can be seen that in this example, the computing device cluster can automatically detect and replace abnormal content in the video stream when transmitting the video stream at the system level. On the basis of ensuring the transmission of the video stream, the abnormal content can be intercepted and deleted, thereby better providing the normal transmission service of the video stream for the management platform of the relevant video application.

[0147] As shown in FIG5 , in some embodiments, the method further includes:

[0148] Step 303: After performing abnormality detection on the first video stream, obtain a third video stream.

[0149] The third video stream is included in the video stream of the data source, and the third video stream is a video stream located after the first video stream.

[0150] Step 304: perform anomaly detection on the third video stream.

[0151] Step 305: When it is determined through abnormality detection that the third video stream is a normal video stream, the third video stream is output to the receiver of the first video stream.

[0152] For example, when the third video stream is transmitted to the computing device cluster, it can be cached in the computing device cluster. Then, a video content analysis service that implements anomaly detection in the computing device cluster reads the third video stream from the cache according to preset rules to perform anomaly detection. If the anomaly detection determines that the third video stream is a normal video stream, the video content analysis service can output a notification message to instruct the recipient in the first video to output the cached third video stream without replacing the cached third video stream.

[0153] It can be seen that in the embodiment of the present application, the computing device cluster can perform anomaly detection on the video stream continuously uploaded by the data source in real time. When an anomaly is detected, it can perform abnormal content replacement and output a video stream that does not contain abnormal content. After the video stream of the data source returns to normal, it can promptly restore to the normal video stream of the output data source, thereby ensuring the normal transmission of the normal video stream of the data source.

[0154] In addition, in some examples, the video stream processing method in any embodiment of the present application can be implemented through multiple microservices in the cloud platform.

[0155] A specific implementation method of the embodiment of the present application is described below through a specific example.

[0156] As shown in FIG6 , the cloud platform may include a video platform, an audit management service, a video content analysis service, a bypass service, a notification service, a stream management platform, a live broadcast indexing service, a live broadcast injection service, and a live broadcast playback service.

[0157] The CDN system may include CDN acceleration services.

[0158] The cloud platform involves two levels of administrators: enterprise administrators and system administrators. System administrators can manage live video streams at the cloud platform's system level and configure audit policies, anomaly detection policies, and more.

[0159] Enterprise administrators can manage live video streams and configure audit policies, anomaly detection policies, etc. on the video platform built by the enterprise from the cloud platform.

[0160] In this example, the video streams to be transmitted in the video platform services purchased by various enterprises can be processed at the cloud platform level through various services in the cloud platform.

[0161] The following describes the functions of each service in this example.

[0162] Video platform: used to provide administrators of live streaming companies. Enterprise administrators can log in to the corresponding video platform and configure the review policy and exception handling policy for one or more live streaming pushes in the specified application under the corresponding domain name. For example, you can configure whether to review the corresponding live streaming, the review time period, and the exception stream replacement policy. In addition, in some examples, administrators can also set a ban notification for a specified video stream through the video platform. The ban notification can be sent to the CDN node in the CDN system through the stream management service, so that the client pulling the stream cannot obtain the corresponding video stream.

[0163] Audit Management Service: This service manages the audit tasks for live streaming and monitors notifications of live streaming going online and offline. Upon detecting a live stream going online, it queries the corresponding audit policy and exception handling policy, and initiates and disables the audit tasks for the live streaming to the video content analysis service. Furthermore, it forwards the audit results to the administrator via the notification service.

[0164] Video Content Analysis Service: This service pulls video streams from designated locations for content analysis based on the audit policy and other information issued by the Audit Management Service. It then performs anomaly detection on the pulled video streams based on pre-configured anomaly detection policies to determine whether the streams are abnormal. Furthermore, it can send notifications regarding video stream anomalies after detecting them, and send recovery notifications when the stream returns to normal after detecting an anomaly.

[0165] Bypass Service: Based on the exception handling policy issued by the Audit Management Service, a second video stream is generated to replace the abnormal portion of the video stream. Upon receiving a notification of a video stream anomaly from the Video Content Analysis Service, a second video stream is generated to replace the abnormal portion of the video stream. This second video stream is then pushed to the Live Inflow Service for abnormal stream bypass processing, replacing the abnormal portion of the cached video stream with the second video stream. Upon receiving an exception recovery notification from the Video Content Analysis Service, a notification is then sent to the Live Inflow Service, enabling it to cache and transmit the original video stream.

[0166] Notification service: Receives notifications from the video content analysis service about video stream anomalies and anomaly recovery notifications, and forwards the notifications to specific recipients based on pre-configured information templates and recipients.

[0167] Stream management service: used for push and pull stream management, providing notifications such as bans to specific services to stop the push stream processing from the CDN center to the CDN node source station, or from the anchor to the CDN node.

[0168] Live streaming index service: used to manage streaming information, provide query services for information such as stream index and access address, and notify the review management service of the online and offline status of live video streams in real time.

[0169] Live streaming service: used to receive video stream information forwarded by the CDN node source station after the data source (i.e. the anchor) pushes the stream, and performs abnormal stream replacement processing (for example, replacing the abnormal part of the first video stream with the second video stream), and performs video stream caching.

[0170] Live streaming service: This service is used to pull the video stream cached by the live streaming service and return it to the CDN node when the CDN node returns to the source station.

[0171] CDN acceleration service: Accelerates the push and pull streams when the host pushes the stream and the audience pulls the stream.

[0172] The video stream processing method provided in the embodiment of the present application is introduced above from multiple aspects. Now, in conjunction with the accompanying drawings, the video stream processing device provided in the embodiment of the present application is introduced. The device is applied to a cloud platform, and the cloud platform is used to process video streams for the video platform.

[0173] As shown in FIG7 , an embodiment of the present application provides a video stream processing device 70, which includes:

[0174] The processing module 701 is configured to perform anomaly detection on a first video stream when the first video stream is obtained from a data source;

[0175] The sending module 702 is configured to send a second video stream to a receiver of the first video stream to replace the abnormal portion of the first video stream when the first video stream is determined to be abnormal through abnormality detection.

[0176] Optionally, the processing module 701 is configured to:

[0177] Determine the audit policy corresponding to the data source based on the domain name corresponding to the data source;

[0178] When a first video stream is obtained from a data source, an anomaly detection is performed on the first video stream according to an audit policy corresponding to the data source.

[0179] Optionally, the processing module 701 is configured to:

[0180] When a first video stream is obtained from a data source, an audit policy corresponding to the first video stream is determined according to the address information of the receiver of the first video stream;

[0181] According to the audit policy corresponding to the first video stream, anomaly detection is performed on the first video stream.

[0182] Optionally, the apparatus 70 further includes an acquisition module 703;

[0183] The acquisition module 703 is used to acquire a video stream from a data source in real time, where the first video stream is included in the video stream of the data source.

[0184] Optionally, the processing module 701 is further configured to:

[0185] After performing anomaly detection on the first video stream, obtaining a third video stream, where the third video stream is included in the video stream of the data source and is a video stream located after the first video stream;

[0186] performing anomaly detection on the third video stream;

[0187] The sending module 702 is further configured to:

[0188] In the case where it is determined through abnormality detection that the third video stream is a normal video stream, the third video stream is output to the receiver of the first video stream.

[0189] Optionally, the second video stream includes a replacement identifier, and the replacement identifier indicates that the second video stream is a video stream that replaces the abnormal part of the first video stream of the data source.

[0190] Optionally, the sending module 702 is used to output a second video stream to the receiver of the first video stream based on the time information of the abnormal part of the first video stream to replace the abnormal part in the first video stream when the first video stream is determined to be abnormal through abnormality detection.

[0191] Optionally, the second video stream includes one or more of the following: a preset video stream, a video stream generated according to the first video stream, a distorted screen, and a video stream obtained by adding subtitles to a solid color background.

[0192] In an embodiment of the present application, a module is used as an example of a software functional unit, and the video stream processing device may include code running on a computing instance. The computing instance may be at least one of a physical host (computing device), a virtual machine, a container, and other computing devices. Furthermore, the above-mentioned computing device may be one or more. For example, the video stream processing device may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the application may be distributed in the same region or in different regions. The multiple hosts / virtual machines / containers used to run the code may be distributed in the same available zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.

[0193] Similarly, the multiple hosts / virtual machines / containers used to run this code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is located within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0194] As an example of a hardware functional unit, a video stream processing device may include at least one computing device, such as a server. Alternatively, the video stream processing device may be implemented using an application specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex PLD (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0195] The multiple computing devices included in the video stream processing apparatus can be distributed in the same region or in different regions. The multiple computing devices included in the video stream processing apparatus can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the video stream processing apparatus can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0196] It should be noted that, in other embodiments, the acquisition module can be used to execute any step in the video stream processing method, the processing module can be used to execute any step in the video stream processing method, and the sending module can be used to execute any step in the video stream processing method. The steps that the acquisition module, the processing module, and the sending module are responsible for implementing can be specified as needed. The full functions of the video stream processing device are realized by respectively implementing different steps in the video stream processing method through the acquisition module, the processing module, and the sending module.

[0197] The present application also provides a computing device 80. As shown in FIG8 , computing device 80 includes a bus 82, a processor 84, a memory 86, and a communication interface 88. Processor 84, memory 86, and communication interface 88 communicate with each other via bus 82. Computing device 80 may be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 80.

[0198] Bus 82 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG8 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 84 may include a pathway for transmitting information between various components of computing device 80 (e.g., memory 86, processor 84, and communication interface 88).

[0199] The processor 84 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0200] The memory 86 may include volatile memory, such as random access memory (RAM). The processor 84 may also include non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0201] The memory 86 stores executable program code, and the processor 84 executes the executable program code to respectively implement the functions of the aforementioned acquisition module, processing module and sending module, thereby implementing the video stream processing method applied to the computing device cluster in the above-mentioned embodiment, that is, the memory 86 stores instructions for executing the video stream processing method applied to the computing device cluster in the above-mentioned embodiment.

[0202] The communication interface 88 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 80 and other devices or a communication network.

[0203] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0204] As shown in Figure 9, the computing device cluster includes at least one computing device 80. The memory 86 in one or more computing devices 80 in the computing device cluster may store the same instructions for executing the video stream processing method.

[0205] In some possible implementations, the memory 86 of one or more computing devices 80 in the computing device cluster may also store some instructions for executing the video stream processing method. In other words, the combination of one or more computing devices 80 can jointly execute the instructions for executing the video stream processing method.

[0206] It should be noted that the memory 86 in different computing devices 80 in the computing device cluster can store different instructions, each for executing a portion of the functions of the video stream processing method. In other words, the instructions stored in the memory 86 in different computing devices 80 can implement the functions of one or more of the acquisition module, the processing module, and the sending module.

[0207] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network (WAN) or a local area network (LAN), etc. FIG. 10 shows a possible implementation. As shown in FIG. 10 , two computing devices 80A and 80B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 86 in the computing device 80A may store instructions for executing the functions of the acquisition module and the processing module. At the same time, the memory 86 in the computing device 80B may store instructions for executing the functions of the sending module. Alternatively, the memory 86 in the computing device 80A may store instructions for executing part of the functions of the processing module. At the same time, the memory 86 in the computing device 80B may store instructions for executing another part of the functions of the processing module.

[0208] It should be understood that the functionality of the computing device 80A shown in FIG10 may also be performed by multiple computing devices 80. Similarly, the functionality of the computing device 80B may also be performed by multiple computing devices 80.

[0209] The present application also provides another computing device cluster. The connection relationship between the computing devices in this computing device cluster can be similar to the connection relationship between computing device clusters shown in Figures 9 and 10. However, the memory 86 in one or more computing devices 80 in this computing device cluster can store the same instructions for executing the video stream processing method.

[0210] In some possible implementations, the memory 86 of one or more computing devices 80 in the computing device cluster may also store some instructions for executing the video stream processing method. In other words, the combination of one or more computing devices 80 can jointly execute the instructions for executing the video stream processing method.

[0211] It should be noted that the memory 86 in different computing devices 80 in the computing device cluster can store different instructions for executing portions of the video stream processing method. That is, the instructions stored in the memory 86 in different computing devices 80 can implement the functions of one or more of the acquisition module, the processing module, and the sending module.

[0212] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the video stream processing method.

[0213] The present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the video stream processing method.

[0214] The present application also provides a chip system, which includes a processor configured to implement the steps performed by the computing device cluster. In one possible design, the chip system may also include a memory configured to store necessary program instructions and data. The chip system may be composed solely of a chip or may include a chip and other discrete components.

[0215] Finally, it should be noted that the above embodiments 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, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A video stream processing method, characterized in that: The method is applied to a cloud platform, and the cloud platform is used to process video streams for a video platform. The method includes: When a first video stream from a data source is acquired, performing anomaly detection on the first video stream; In the case where the first video stream is determined to be abnormal through abnormality detection, a second video stream is sent to a receiver of the first video stream to replace the abnormal part in the first video stream.

2. The method according to claim 1, characterized in that The method further comprises: Determine the audit policy corresponding to the data source according to the domain name corresponding to the data source; When a first video stream from a data source is obtained, performing abnormality detection on the first video stream includes: When a first video stream is obtained from a data source, an anomaly detection is performed on the first video stream according to an audit policy corresponding to the data source.

3. The method according to claim 1, characterized in that When a first video stream from a data source is obtained, performing abnormality detection on the first video stream includes: When a first video stream is obtained from a data source, determining an audit policy corresponding to the first video stream according to address information of a receiver of the first video stream; According to the audit policy corresponding to the first video stream, anomaly detection is performed on the first video stream.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: A video stream from the data source is acquired in real time, wherein the first video stream is included in the video stream of the data source.

5. The method according to claim 4, characterized in that The method further comprises: After performing abnormality detection on the first video stream, obtaining a third video stream, wherein the third video stream is included in the video stream of the data source and is a video stream located after the first video stream; Performing anomaly detection on the third video stream; When it is determined through abnormality detection that the third video stream is a normal video stream, the third video stream is output to the receiver of the first video stream.

6. The method according to any one of claims 1 to 5, characterized in that: The second video stream includes a replacement identifier, and the replacement identifier indicates that the second video stream is a video stream of an abnormal part in the first video stream of a replacement data source.

7. The method according to any one of claims 1 to 6, characterized in that: The step of sending a second video stream to a receiver of the first video stream to replace the abnormal part of the first video stream when the first video stream is determined to be abnormal through abnormality detection includes: When the first video stream is determined to be abnormal through abnormality detection, the second video stream is output to the receiver of the first video stream based on time information of the abnormal part of the first video stream to replace the abnormal part in the first video stream.

8. The method according to any one of claims 1 to 7, characterized in that: The second video stream includes one or more of the following: A preset video stream, a video stream generated according to the first video stream, a distorted screen, and a video stream obtained by adding subtitles to a solid color background.

9. A video stream processing device, characterized in that: The device is applied to a cloud platform, and the cloud platform is used to process video streams for a video platform. The device includes: A processing module, configured to perform anomaly detection on a first video stream when acquiring the first video stream from a data source; A sending module is used to send a signal to a receiving device of the first video stream when the first video stream is determined to be abnormal through abnormality detection. The party sends a second video stream to replace the abnormal part in the first video stream.

10. The device according to claim 9, characterized in that The processing module is used for: Determine the audit policy corresponding to the data source according to the domain name corresponding to the data source; When a first video stream is obtained from a data source, an anomaly detection is performed on the first video stream according to an audit policy corresponding to the data source.

11. The device according to claim 9, characterized in that The processing module is used for: When a first video stream is obtained from a data source, determining an audit policy corresponding to the first video stream according to address information of a receiver of the first video stream; According to the audit policy corresponding to the first video stream, anomaly detection is performed on the first video stream.

12. The device according to any one of claims 9 to 11, characterized in that: The device also includes an acquisition module; The acquisition module is used to acquire the video stream from the data source in real time, and the first video stream is included in the video stream of the data source.

13. The device according to claim 12, characterized in that The processing module is also used for: After performing abnormality detection on the first video stream, obtaining a third video stream, wherein the third video stream is included in the video stream of the data source and is a video stream located after the first video stream; Performing anomaly detection on the third video stream; The sending module is also used for: When it is determined through abnormality detection that the third video stream is a normal video stream, the third video stream is output to the receiver of the first video stream.

14. The device according to any one of claims 9 to 13, characterized in that: The second video stream includes a replacement identifier, and the replacement identifier indicates that the second video stream is a video stream of an abnormal part in the first video stream of a replacement data source.

15. The device according to any one of claims 9 to 14, characterized in that: The sending module is used to output the second video stream to the receiver of the first video stream based on the time information of the abnormal part of the first video stream to replace the abnormal part in the first video stream when the first video stream is determined to be abnormal through abnormality detection.

16. The device according to any one of claims 9 to 15, characterized in that: The second video stream includes one or more of the following: A preset video stream, a video stream generated according to the first video stream, a distorted screen, and a video stream obtained by adding subtitles to a solid color background.

17. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 8.

18. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Audio abnormality monitoring method, audio abnormality monitoring device, equipment and storage medium

    CN110085213A

  • Live broadcast anomaly detection processing method and device

    CN114928758A

  • Video live broadcast method and device and live broadcast server

    CN115499678A

  • Live broadcast picture processing method and device, equipment and storage medium

    CN115767115A

  • Live video anomaly detection

    US20190327183A1