Live data processing method and device, computer device and storage medium
By using live streaming equipment to perform intra-frame encoding of the target image to generate keyframes and inter-frame encoding of the subsequent video frames, the encoding pressure caused by the access of new viewers during live streaming is solved, and the encoding efficiency and live streaming stability are improved.
Patent Information
- Application Number
- CN202210092735.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-01-26
AI Technical Summary
During a live stream, each time a new viewer connects, the live streaming platform needs to encode new video stream data for them, leading to increased encoding pressure and low encoding efficiency.
The live streaming device performs intra-frame encoding on the target image to generate target keyframe encoded data, and performs inter-frame encoding on the backward video frames of the currently encoded video frame to generate backward video frame encoded data. Only one keyframe is encoded for newly added target playback devices, and the encoded data of other video frames are processed through inter-frame encoding, reducing the encoding pressure on the live streaming device.
It improves the encoding efficiency of live streaming equipment, avoids stuttering on the initial playback device and increases downlink bandwidth, and ensures the stability and efficiency of live streaming.
Smart Images

Figure CN116546210B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of live streaming technology, and in particular to a live streaming data processing method, apparatus, computer equipment, storage medium, and computer program product. Background Technology
[0002] With the development of computer technology, live streaming technology has emerged, allowing live streaming clients to invite viewers to join the live stream. Given its interactive convenience, live streaming technology is widely used across various industries.
[0003] In traditional technology, during live streaming, if a new viewer joins, the streaming client needs to encode new video stream data separately for the new viewer. However, encoding a new video stream every time a new viewer joins increases the encoding burden and computational cost for the streaming client, resulting in low encoding efficiency. Summary of the Invention
[0004] Therefore, it is necessary to provide a live data processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve encoding efficiency in response to the above-mentioned technical problems.
[0005] A live streaming data processing method, applied to a live streaming device, the method comprising:
[0006] Get the live data retrieval request corresponding to the target playback device to be added to the live stream;
[0007] In response to the live data acquisition request, intra-frame encoding is performed on the target image to obtain target keyframe encoding data. The target image is the current encoded video frame or the current reconstructed image corresponding to the current encoded video frame. The current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame. The current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame.
[0008] Based on the current reconstructed image, inter-frame coding is performed on the backward video frames of the current encoded video frame to obtain the backward video frame encoded data corresponding to the backward video frame;
[0009] The target keyframe encoded data and the backward video frame encoded data are sent to the target playback device, and the current video frame encoded data and the backward video frame encoded data are sent to the initial playback device that has joined the live broadcast.
[0010] A live streaming data processing device, the device comprising:
[0011] The first request acquisition module is used to acquire the live data acquisition request corresponding to the target playback device to be added to the live stream.
[0012] The image intra-frame coding module is used to respond to the live data acquisition request by performing intra-frame coding on the target image to obtain target keyframe coding data. The target image is the current coded video frame or the current reconstructed image corresponding to the current coded video frame. The current reconstructed image is obtained based on the current video frame coding data corresponding to the current coded video frame. The current video frame coding data is obtained by inter-frame coding of the current coded video frame.
[0013] An image inter-frame coding module is used to perform inter-frame coding on the backward video frames of the current coded video frame based on the current reconstructed image, so as to obtain the backward video frame coded data corresponding to the backward video frame;
[0014] The data transmission module is used to send the target keyframe encoded data and the backward video frame encoded data to the target playback device, and to send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast.
[0015] A live streaming data processing method, applied to a live streaming server, the method comprising:
[0016] Obtain the live data acquisition request sent by the target playback device to be added to the live stream;
[0017] The live data acquisition request is sent to the live streaming device, so that the live streaming device responds to the live data acquisition request by performing intra-frame encoding on the target image to obtain target keyframe encoding data, and performing inter-frame encoding on the backward video frames of the current encoded video frame based on the current reconstructed image corresponding to the current encoded video frame to obtain backward video frame encoding data corresponding to the backward video frame; the target image is the current encoded video frame or the current reconstructed image, the current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame, and the current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame;
[0018] Obtain the target keyframe encoding data, the current video frame encoding data, and the backward video frame encoding data returned by the live streaming device;
[0019] The target keyframe encoded data and the backward video frame encoded data are sent to the target playback device, and the current video frame encoded data and the backward video frame encoded data are sent to the initial playback device that has joined the live broadcast.
[0020] A live streaming data processing device. The device includes:
[0021] The second request acquisition module is used to acquire live data acquisition requests sent by the target playback device to be added to the live stream;
[0022] A request sending module is used to send the live data acquisition request to the live streaming device, so that the live streaming device responds to the live data acquisition request by performing intra-frame encoding on the target image to obtain target keyframe encoding data, and performing inter-frame encoding on the backward video frames of the current encoded video frame based on the current reconstructed image corresponding to the current encoded video frame to obtain backward video frame encoding data corresponding to the backward video frame; the target image is the current encoded video frame or the current reconstructed image, the current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame, and the current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame;
[0023] The encoding data acquisition module is used to acquire the target keyframe encoding data, the current video frame encoding data, and the backward video frame encoding data returned by the live streaming device;
[0024] The encoded data sending module is used to send the target keyframe encoded data and the backward video frame encoded data to the target playback device, and to send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast.
[0025] A live streaming data processing method, applied to a target playback device, the method comprising:
[0026] Send a live data retrieval request to the live streaming device;
[0027] The target keyframe encoding data and backward video frame encoding data returned by the live streaming device are obtained and decoded for playback;
[0028] The target keyframe encoding data is obtained by intra-frame encoding of the target image. The target image is the current encoded video frame or the current reconstructed image corresponding to the current encoded video frame. The current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame. The current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame. The backward video frame encoding data is obtained by inter-frame encoding of the backward video frame of the current encoded video frame based on the current reconstructed image. The live streaming device is also used to send the current video frame encoding data and the backward video frame encoding data to the initial playback device that has joined the live stream.
[0029] A live streaming data processing device. The device includes:
[0030] The third request sending module is used to send live data acquisition requests to the live streaming device;
[0031] The data decoding and playback module is used to acquire the target keyframe encoded data and backward video frame encoded data returned by the live streaming device, and to decode and play them.
[0032] The target keyframe encoding data is obtained by intra-frame encoding of the target image. The target image is the current encoded video frame or the current reconstructed image corresponding to the current encoded video frame. The current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame. The current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame. The backward video frame encoding data is obtained by inter-frame encoding of the backward video frame of the current encoded video frame based on the current reconstructed image. The live streaming device is also used to send the current video frame encoding data and the backward video frame encoding data to the initial playback device that has joined the live stream.
[0033] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps described in the various live data processing methods above.
[0034] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps described in the various live data processing methods above.
[0035] A computer program product includes a computer program that, when executed by a processor, implements the steps described in the various live data processing methods above.
[0036] The aforementioned live streaming data processing method, apparatus, computer equipment, storage medium, and computer program product involve the live streaming device acquiring a live streaming data acquisition request corresponding to the target playback device to join the live stream, responding to the live streaming data acquisition request, performing intra-frame encoding on the target image to obtain target keyframe encoded data, where the target image is the current encoded video frame or the current reconstructed image corresponding to the current encoded video frame, the current reconstructed image is obtained based on the current video frame encoded data corresponding to the current encoded video frame, the current video frame encoded data is obtained by inter-frame encoding of the current encoded video frame, based on the current reconstructed image, performing inter-frame encoding on the backward video frames of the current encoded video frame to obtain the backward video frame encoded data corresponding to the backward video frame, the live streaming device sending the target keyframe encoded data and the backward video frame encoded data to the target playback device, and sending the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live stream, and when sending encoded data, the live streaming device can send it to the live streaming server, which then sends the encoded data to the corresponding playback device. In this way, whenever a target playback device needs to join the live stream, the live streaming device only needs to encode a keyframe specifically for the target playback device. For the encoding data of other video frames, there is no difference between the target playback device and the initial playback device that has already joined the live stream. Therefore, no new video streams are added, and the encoding burden on the live streaming device is not increased, thus improving the encoding efficiency of the live streaming device. Furthermore, only the encoded data of this keyframe needs to be sent to the target playback device; the initial playback device is unaware of the encoded data of this keyframe, and it will not cause any stuttering in the initial playback device's live stream, nor will it increase the total downlink bandwidth. Attached Figure Description
[0037] Figure 1 This is an application environment diagram of a live data processing method in one embodiment;
[0038] Figure 2 This is a flowchart illustrating a live data processing method in one embodiment;
[0039] Figure 3 This is a flowchart illustrating the process of analyzing image quality differences between playback devices in one embodiment;
[0040] Figure 4A This is a schematic diagram of the image quality difference analysis results in one embodiment;
[0041] Figure 4B This is a schematic diagram of the image quality difference analysis results in another embodiment;
[0042] Figure 5 This is a flowchart illustrating a live data processing method in another embodiment;
[0043] Figure 6This is a flowchart illustrating the process of analyzing image quality differences between playback devices in another embodiment;
[0044] Figure 7 This is a flowchart illustrating the live data processing method in yet another embodiment;
[0045] Figure 8 This is an application environment diagram for live data processing in another embodiment;
[0046] Figure 9 This is a schematic diagram of the video encoding structure in one embodiment;
[0047] Figure 10 This is a schematic diagram of the video decoding structure in one embodiment;
[0048] Figure 11 This is a schematic diagram of a structure for evaluating image quality differences based on a no-reference image evaluation algorithm in one embodiment.
[0049] Figure 12 This is a schematic diagram of a structure for evaluating image quality differences based on a reference image evaluation algorithm in one embodiment.
[0050] Figure 13 This is a structural block diagram of a live data processing device in one embodiment;
[0051] Figure 14 This is a structural block diagram of a live data processing device in another embodiment;
[0052] Figure 15 This is a structural block diagram of the live data processing device in another embodiment;
[0053] Figure 16 This is an internal structural diagram of a computer device in one embodiment;
[0054] Figure 17 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0055] 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.
[0056] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
[0057] Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to achieve data computing, storage, processing, and sharing.
[0058] Cloud computing is a computing model that distributes computing tasks across a large pool of computers, enabling various application systems to access computing power, storage space, and information services as needed. The network providing these resources is called the "cloud." From the user's perspective, resources in the "cloud" appear infinitely scalable, readily available, on-demand, and expandable, with payment based on usage.
[0059] As a provider of fundamental cloud computing capabilities, a cloud resource pool (referred to as a cloud platform, generally called an IaaS (Infrastructure as a Service) platform) is established. Various types of virtual resources are deployed in the resource pool for external customers to choose from. The cloud resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, and network devices.
[0060] Based on logical function, a PaaS (Platform as a Service) layer can be deployed on top of the IaaS (Infrastructure as a Service) layer, and a SaaS (Software as a Service) layer can be deployed on top of the PaaS layer. Alternatively, SaaS can be deployed directly on top of IaaS. PaaS is a platform for running software, such as databases and web containers. SaaS refers to various types of business software, such as web portals and bulk SMS senders. Generally speaking, SaaS and PaaS are upper layers compared to IaaS.
[0061] Cloud conferencing is an efficient, convenient, and low-cost form of meeting based on cloud computing technology. Users only need to use an internet interface to quickly and efficiently share voice, data files, and video with teams and clients around the world. The complex technologies such as data transmission and processing during the meeting are handled by the cloud conferencing service provider.
[0062] Currently, domestic cloud conferencing mainly focuses on services based on the SaaS (Software as a Service) model, including telephone, internet, and video services. Video conferencing based on cloud computing is called cloud conferencing.
[0063] In the era of cloud conferencing, data transmission, processing, and storage are all handled by the computer resources of the video conferencing vendors. Users no longer need to purchase expensive hardware or install cumbersome software. They can simply open a browser, log in to the corresponding interface, and conduct efficient remote meetings.
[0064] Cloud conferencing systems support dynamic multi-server cluster deployment and provide multiple high-performance servers, significantly improving meeting stability, security, and availability. In recent years, video conferencing has gained popularity due to its ability to greatly improve communication efficiency, continuously reduce communication costs, and upgrade internal management, and is widely used in various fields such as government, transportation, logistics, finance, telecommunications, education, and enterprises. Undoubtedly, with the application of cloud computing, video conferencing is even more attractive in terms of convenience, speed, and ease of use, which will surely usher in a new wave of video conferencing applications.
[0065] The live streaming data processing method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the live streaming device 102 communicates with the live streaming server 104 via a network, and the live streaming server 104 communicates with the playback device 106 via a network. The live streaming device 102 can also communicate with the playback device 106 via a network. The live streaming device 102 and the playback device 106 can be, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc., and portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. The live streaming device 102 can include at least one live streaming device. The playback device 106 includes a target playback device 1061 and an initial playback device 1062. The target playback device can include at least one playback device, and the initial playback device can include at least one playback device. The live streaming server 104 can be a standalone server, a server cluster composed of multiple servers, or a distributed system. It can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0066] Specifically, the live streaming device can obtain a live data acquisition request from the target playback device to be joined in the live stream. In response to the request, it performs intra-frame encoding on the target image to obtain target keyframe encoded data. The target image is either the currently encoded video frame or the currently reconstructed image corresponding to the currently encoded video frame. The currently reconstructed image is obtained based on the current video frame encoded data, which is obtained through inter-frame encoding of the current encoded video frame. Based on the currently reconstructed image, inter-frame encoding is performed on the subsequent video frames of the current encoded video frame to obtain the subsequent video frame encoded data. The live streaming device can send the target keyframe encoded data and the subsequent video frame encoded data to the target playback device, and send the current video frame encoded data and the subsequent video frame encoded data to the initial playback device that has joined the live stream.
[0067] Of course, the live streaming server can receive live data acquisition requests from target playback devices that want to join the live stream, and then forward these requests to the live streaming devices. In response to the live data acquisition request, the live streaming device performs intra-frame encoding on the target image to obtain target keyframe encoded data. Based on the currently reconstructed image corresponding to the currently encoded video frame, it performs inter-frame encoding on the subsequent video frames of the current encoded video frame to obtain the subsequent video frame encoded data. The live streaming server then receives the target keyframe encoded data, current video frame encoded data, and subsequent video frame encoded data returned by the live streaming device. It then sends the target keyframe encoded data and subsequent video frame encoded data to the target playback device, and sends the current video frame encoded data and subsequent video frame encoded data to the initial playback device that has already joined the live stream.
[0068] After the target playback device obtains the target keyframe encoded data and the backward video frame encoded data, it can decode and play them. Similarly, after the initial playback device obtains the current video frame encoded data and the backward video frame encoded data, it can decode and play them.
[0069] In one embodiment, such as Figure 2 As shown, a live streaming data processing method is provided, which can be applied to... Figure 1 Taking the live streaming equipment in the example, the following steps are included:
[0070] Step S202: Obtain the live data acquisition request corresponding to the target playback device to be added to the live stream.
[0071] In this context, "live streaming device" refers to the device that initiates the live stream, while "playback device" refers to the device that watches the live stream. Both the live streaming and playback devices can have live streaming applications installed. A live streaming application can be a client installed on a terminal (also known as an application client or APP client), a program installed and running on the terminal; it can also be a portable application, meaning an application that can be used without downloading and installing, often called a mini-program, which typically runs as a subroutine on the client; a live streaming application can also be a web application opened through a browser; and so on. Live streaming content initiated by the live streaming device includes online meetings, online classes, various sports competitions, and cultural events, among others, without further limitation.
[0072] The target playback device refers to the playback device that is to be added to the live stream. The playback device to be added to the live stream can be a newly added playback device, or a playback device that has already joined the live stream but is unable to watch the live content and needs to re-request the live stream data. For example, it could be due to a failure to decode the live stream data, or due to network abnormalities or severe packet loss.
[0073] Specifically, when a target playback device wants to watch a live stream, it can generate a live stream data acquisition request and send it to the live streaming device. The live stream data acquisition request is used to request live stream data, which includes keyframe encoded data. This keyframe encoded data is used to generate a reconstructed frame on the target playback device. Based on this reconstructed frame, the target playback device can correctly decode the subsequent bitstream, ultimately enabling the viewing of the live stream content. It can be understood that the live stream data acquisition request can be sent from the target playback device to the live streaming server, and then from the live streaming server to the live streaming device. Alternatively, the live stream data acquisition request can be sent directly from the target playback device to the live streaming device.
[0074] Step S204: In response to the live data acquisition request, intra-frame encoding is performed on the target image to obtain target keyframe encoding data. The target image is the current encoded video frame or the current reconstructed image corresponding to the current encoded video frame. The current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame. The current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame.
[0075] The target image is either the currently encoded video frame or the currently reconstructed image corresponding to the currently encoded video frame. The currently encoded video frame refers to the video frame that the live streaming device is currently encoding. The current video frame encoding data is obtained by encoding the current encoded video frame, specifically by inter-frame encoding; that is, the current video frame encoding data is obtained by inter-frame encoding the current encoded video frame. The currently reconstructed image refers to the reconstructed image corresponding to the current encoded video frame. The currently reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame, specifically by decoding the current video frame encoding data.
[0076] Inter-frame coding refers to a coding method that references relevant data from at least one preceding video frame to encode the current video frame. Intra-frame coding refers to a coding method that does not reference relevant data from other video frames and encodes only the relevant data of the current video frame itself. Both inter-frame and intra-frame coding can use custom coding algorithms or commonly used algorithms. In video encoding and decoding technology, the encoded data of an I-frame (also known as a keyframe) is obtained through intra-frame coding, while the encoded data of a P-frame (also known as a non-keyframe) is obtained through inter-frame coding. The first P-frame following an I-frame needs to reference the relevant data of the I-frame during encoding; correspondingly, during decoding, this P-frame needs to reference the decoding data of the I-frame to be successfully decoded.
[0077] Specifically, after receiving a live data acquisition request from the target playback device, the live streaming device can respond to the request by generating live data and sending it to the target playback device. For the live data from the target playback device, an I-frame corresponding to the target playback device can be generated based on the relevant data of the current encoded video frame, and the subsequent video frame of the current encoded video frame can be used as the P-frame corresponding to the target playback device. For live data from playback devices that are already watching the live stream without any abnormalities, since these playback devices have already watched the live stream for a period of time—that is, they have successfully received I-frames, successfully decoded for a period of time, and can successfully decode subsequent bitstreams—then, for these playback devices, the current encoded video frame and the subsequent video frame of the current encoded video frame are used as the P-frame corresponding to this playback device.
[0078] Since the backward video frames of the current encoded video frame are P-frames corresponding to all playback devices, to reduce the encoding burden on the live streaming device, only the backward video frames of the current encoded video frame need to be uniformly encoded, without needing to encode them separately for different types of playback devices. If the target playback device has not received I-frame data before, or if it urgently needs I-frame data to decode subsequent streams due to viewing anomalies, the live streaming device needs to encode I-frames for the target playback device. For playback devices already watching the live stream without anomalies, the live streaming device does not need to send new I-frame data to these devices; it only needs to continuously send P-frame data. After receiving a live data retrieval request from the target playback device, the live streaming device can directly use the current encoded video frame as an I-frame and perform intra-frame encoding on it to obtain the target keyframe encoded data. Alternatively, the live streaming device can use the current reconstructed image corresponding to the current encoded video frame as an I-frame and perform intra-frame encoding on the current reconstructed image to obtain the target keyframe encoded data.
[0079] Furthermore, considering that P-frames are encoded with reference to the reconstructed image of the preceding video frame during inter-frame encoding, and the encoded data of P-frames needs to be decoded with reference to the decoding result of the preceding video frame, choosing to perform intra-frame encoding on the current reconstructed image can result in smaller differences between the decoded images obtained by different playback devices when decoding, compared to directly performing intra-frame encoding on the current encoded video frame.
[0080] Step S206: Based on the current reconstructed image, perform inter-frame coding on the backward video frame of the current encoded video frame to obtain the backward video frame coding data corresponding to the backward video frame.
[0081] In this context, a backward video frame refers to a video frame encoded after the current encoded video frame. That is, a video frame encoded after the current encoded video frame. It can be understood that although a backward video frame is encoded after the current encoded video frame, its timestamp can be earlier or later than the current encoded video frame. In other words, a backward video frame can be rendered and played either after or before the current encoded video frame. A backward video frame of the current encoded video frame includes at least one video frame.
[0082] Specifically, for the current encoded video frame, the live streaming device needs to encode a keyframe specifically for the target playback device based on the relevant data of the current encoded video frame. For subsequent video frames, the live streaming device can use the previous encoding method—the encoding method used before receiving the request—to perform inter-frame encoding on the subsequent video frames to obtain the subsequent video frame encoded data. It can be understood that inter-frame encoding typically references the reconstructed image corresponding to the preceding video frame; the live streaming device can perform inter-frame encoding on the subsequent video frames based on the current reconstructed image.
[0083] Step S208: Send the target keyframe encoded data and the backward video frame encoded data to the target playback device, and send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast.
[0084] The initial playback device refers to a playback device that has joined the live stream. Furthermore, the initial playback device is one capable of decoding and playing the live stream content normally. Once a playback device successfully joins the live stream, the live stream device will continuously send live stream data to the playback device that has joined.
[0085] Specifically, the live streaming device can send the target keyframe encoded data and the subsequent video frame encoded data to the target playback device, and send the current video frame encoded data and the subsequent video frame encoded data to the initial playback device that has joined the live stream. After receiving the encoded data, the target playback device and the initial playback device can decode and play the encoded data.
[0086] It is understandable that the live streaming device can first send the target keyframe encoded data to the target playback device, and then send the subsequent video frame encoded data to the target playback device, or it can send the target keyframe encoded data and the subsequent video frame encoded data together to the target playback device. Similarly, the live streaming device can first send the current video frame encoded data to the initial playback device, and then send the subsequent video frame encoded data to the initial playback device, or it can send the current video frame encoded data and the subsequent video frame encoded data together to the initial playback device. This encoded data can be sent by the live streaming device to the live streaming server, and then by the live streaming server to the target playback device and the initial playback device, or it can be sent directly by the live streaming device to the target playback device and the initial playback device.
[0087] From an overall technical perspective, the target playback device to be added to the live stream will receive the target keyframe encoded data, while the initial playback device already added to the live stream will not. The main difference between the target and initial playback devices is that the target playback device receives additional target keyframe encoded data. The live streaming device only needs to add encoding to the existing encoding process, without adding a new data stream, thus avoiding increased encoding overhead. Furthermore, if the live streaming device, in order to uniformly send data to all playback devices, uses the currently encoded video frame as an I-frame, directly performs intra-frame encoding on the current encoded video frame to obtain traditional keyframe encoded data, decodes the traditional keyframe encoded data to obtain a traditional reconstructed image, and then performs inter-frame encoding on the next video frame with reference to the traditional reconstructed image, and so on, with subsequent backward video frames sequentially referencing the reconstructed images of the preceding video frames for inter-frame encoding. Thus, the live streaming device re-encodes a new video stream and sends it to all playback devices. Since the encoded data of keyframes is typically tens or hundreds of times larger than that of non-keyframes, each new playback device sends a video stream containing the new keyframe encoded data to all playback devices. This frequent receipt of new keyframe encoded data by the initial playback device already participating in the live stream can easily cause stuttering on that device and results in a large total downlink bandwidth. However, in the technical solution adopted in this application, only the target playback device receives the target keyframe encoded data; the initial playback device does not receive it. This prevents stuttering on the initial playback device and avoids a large total downlink bandwidth.
[0088] In the above live streaming data processing method, the live streaming device obtains a live streaming data acquisition request from the target playback device to be joined in the live stream. In response to the request, it performs intra-frame encoding on the target image to obtain target keyframe encoded data. The target image is either the current encoded video frame or the currently reconstructed image corresponding to the current encoded video frame. The current reconstructed image is obtained based on the current video frame encoded data, which is obtained through inter-frame encoding. Based on the current reconstructed image, inter-frame encoding is performed on the subsequent video frames of the current encoded video frame to obtain the subsequent video frame encoded data. The live streaming device sends the target keyframe encoded data and the subsequent video frame encoded data to the target playback device, and sends the current video frame encoded data and the subsequent video frame encoded data to the initial playback device that has joined the live stream. In this way, whenever a target playback device needs to join the live stream, the live streaming device only needs to encode one keyframe specifically for that target playback device. For the encoded data of other video frames, there is no difference between the target playback device and the initial playback device that has joined the live stream, thus avoiding the addition of new video streams and reducing the encoding burden on the live streaming device, thereby improving its encoding efficiency. Furthermore, as long as the encoded data of the keyframe is sent to the target playback device, the initial playback device will not be aware of the encoded data of the keyframe, and it will not cause live streaming interruptions on the initial playback device, nor will it increase the total downlink bandwidth.
[0089] In one embodiment, based on the currently reconstructed image, inter-frame coding is performed on the backward video frames of the currently coded video frame to obtain the backward video frame coded data corresponding to the backward video frame, including:
[0090] Obtain the reconstructed image corresponding to the forward video frame of the current backward video frame as the forward reconstructed image, and use the forward reconstructed image as the reference image of the current backward video frame; perform inter-frame coding on the current backward video frame based on the reference image to obtain the backward video frame coded data corresponding to the current backward video frame.
[0091] Here, the current backward video frame refers to the video frame currently undergoing inter-frame coding, and is any one of the backward video frames of the currently coded video frame. The forward video frame of the current backward video frame refers to the video frame encoded before the current backward video frame, that is, the video frame encoded before the current backward video frame.
[0092] Specifically, during inter-frame coding, each video frame is encoded with reference to the reconstructed image of its respective preceding video frame. Taking the encoding of the current following video frame as an example, the live streaming device can obtain the reconstructed image corresponding to at least one preceding video frame of the current following video frame as the preceding reconstructed image, use the preceding reconstructed image as the reference image of the current following video frame, and perform inter-frame coding on the current following video frame based on the reference image to obtain the corresponding following video frame encoded data.
[0093] For any backward video frame of the current encoded video frame, the reconstructed image corresponding to the forward video frame directly adjacent to the current backward video frame can be obtained as the forward reconstructed image. Alternatively, the reconstructed image corresponding to the forward video frame not adjacent to the current backward video frame can be obtained as the forward reconstructed image. Or, the reconstructed images corresponding to both the forward and non-adjacent forward video frames directly adjacent to the current backward video frame can be obtained as the forward reconstructed image.
[0094] For example, if the current encoded video frame is B, and its preceding video frames include C, D, and E, and its preceding video frames include A, with the encoding order of these frames being ABCDE, then video frame C is the adjacent preceding video frame. When inter-coding video frame C, it can obtain the reconstructed image corresponding to video frame B as the preceding reconstructed image, or it can obtain the reconstructed images corresponding to video frames A and B respectively as the preceding reconstructed images; and so on. Similarly, when inter-coding video frame E, it can obtain the reconstructed image corresponding to video frame D as the preceding reconstructed image, or it can obtain the reconstructed image corresponding to video frame B as the preceding reconstructed image, or it can obtain the reconstructed images corresponding to B and C respectively as the preceding reconstructed images; and so on. The reconstructed image corresponding to each video frame is an image reconstructed based on the encoded data obtained from inter-frame coding of the video frame.
[0095] In one embodiment, when performing inter-frame coding on the current backward video frame based on the reference image, the reference image and the current backward video frame are segmented to obtain multiple reference image blocks corresponding to the reference image and multiple backward image blocks corresponding to the current backward video frame. The reference image blocks and backward image blocks are matched to determine the matching image blocks corresponding to each backward image block. The backward image blocks and the corresponding matching image blocks are subjected to residual calculation, DCT (Discrete Cosine Transform), and quantization coding to obtain sub-coded data corresponding to each backward image block. The backward video frame coding data corresponding to the current backward video frame is obtained based on each sub-coded data.
[0096] In the above embodiments, the inter-frame coding of the backward video frame references the reconstructed image of the forward video frame, which can reduce the amount of coding computation and improve coding efficiency.
[0097] In one embodiment, obtaining a live data acquisition request corresponding to the target playback device to be added to the live stream includes:
[0098] Get the live data retrieval request sent by the first server; the live data retrieval request carries the device identifier corresponding to the target playback device, and the live data retrieval request is sent from the target playback device to the first server.
[0099] The first server is used to forward requests sent by the playback device to the live streaming device. Specifically, the first server can be a flow control policy server, which is used to issue live streaming-related parameter configurations to the live streaming client, such as issuing client start and stop commands, and issuing encoding parameter commands.
[0100] Specifically, a live data acquisition request can be sent from the target playback device to the first server, and then from the first server to the live streaming device. The live data acquisition request carries the device identifier corresponding to the target playback device, so that the live streaming device can distinguish between the live data that needs to be sent to the target playback device and the initial playback device.
[0101] Sending the target keyframe encoded data and subsequent video frame encoded data to the target playback device, and sending the current video frame encoded data and subsequent video frame encoded data to the initial playback device that has joined the live stream, including:
[0102] The target keyframe encoded data, the current video frame encoded data, and the backward video frame encoded data are sent to the second server, so that the second server sends the target keyframe encoded data and the backward video frame encoded data to the target playback device, and sends the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast; the target keyframe encoded data carries the device identifier corresponding to the target playback device.
[0103] The second server is used to forward live streaming data and encoded data sent by the live streaming device to the playback device. Specifically, the second server can be a push streaming server, which performs pull and push streaming services. A device identifier is an identifier used to uniquely identify a device, and can specifically include a string of at least one character among letters, numbers, and symbols.
[0104] Specifically, after the live streaming device generates encoded data, it can send the target keyframe encoded data, the current video frame encoded data, and the subsequent video frame encoded data to a second server for data distribution. The target keyframe encoded data carries the device identifier corresponding to the target playback device. Therefore, after receiving the target keyframe encoded data, the second server can send the target keyframe encoded data to the target playback device based on the device identifier carried in the target keyframe encoded data. The current video frame encoded data and the subsequent video frame encoded data may not carry a device identifier; the second server can, by default, send the current video frame encoded data to the target playback device and the initial playback device. It is understandable that even if the current video frame encoded data is sent to the target playback device, the target playback device will not be able to decode it successfully; the current video frame encoded data is invalid data for the target playback device.
[0105] In one embodiment, the current video frame encoded data may carry a device identifier corresponding to the initial playback device. Therefore, after receiving the current video frame encoded data, the second server can send the current video frame encoded data to the initial playback device based on the device identifier carried in the current video frame encoded data, instead of sending the current video frame encoded data to the initial playback device. Since the subsequent video frame encoded data does not carry a device identifier, the second server can, by default, send the subsequent video frame encoded data to both the target playback device and the initial playback device.
[0106] In the above embodiments, the first server is responsible for receiving and sending live data acquisition requests, while the second server is responsible for pulling and pushing live data. By having servers with different functions handle different tasks, the orderliness and reliability of data processing can be guaranteed.
[0107] In one embodiment, such as Figure 3 As shown, the method also includes:
[0108] Step S302: Obtain the first target frame image quality information; the first target frame image quality information is obtained by performing image quality analysis on the first reconstructed image corresponding to the target video frame, and the first reconstructed image corresponds to the target playback device.
[0109] Step S304: Obtain the image quality information of the second target frame; the image quality information of the second target frame is obtained by performing image quality analysis on the second reconstructed image corresponding to the target video frame, and the second reconstructed image corresponds to the initial playback device.
[0110] The target video frame can be any video frame in the subsequent video frames of the currently encoded video frame. The first reconstructed image corresponding to the target video frame refers to the reconstructed image of the target video frame from the perspective of the target playback device. The first reconstructed image corresponding to the target video frame can be considered as the decoding result or decoded image of the target video frame on the target playback device.
[0111] The second reconstructed image corresponding to the target video frame refers to the reconstructed image corresponding to the target video frame from the perspective of the initial playback device. The second reconstructed image corresponding to the target video frame can be considered as the decoding result or decoded image of the target video frame on the initial playback device.
[0112] The first target frame image quality information is obtained by performing image quality analysis on the first reconstructed image corresponding to the target video frame. The second target frame image quality information is obtained by performing image quality analysis on the second reconstructed image corresponding to the target video frame. Image quality analysis refers to analyzing the picture quality of an image. Specifically, it can employ image quality analysis methods with or without reference images. Image quality analysis methods with reference images perform image quality analysis on the current image based on both the reference image and the current image. Image quality analysis methods without reference images perform image quality analysis based on the current image's own data. Image quality analysis methods without reference images can employ commonly used image sharpness assessment algorithms, image information content assessment algorithms, or custom algorithms.
[0113] Specifically, the live stream data acquired by the target playback device includes target keyframe encoded data and backward video frame encoded data. Since the backward video frame encoded data is obtained through inter-frame encoding, the initial encoded data in the backward video frame encoded data needs to be decoded with reference to the decoding result corresponding to the target keyframe encoded data, and other encoded data needs to be decoded sequentially with reference to the already obtained decoding results. The live stream data acquired by the initial playback device includes current video frame encoded data and backward video frame encoded data. Similarly, the initial encoded data in the backward video frame encoded data needs to be decoded with reference to the decoding result corresponding to the current video frame encoded data, and other encoded data needs to be decoded sequentially with reference to the already obtained decoding results. Because the target keyframe encoded data and the current video frame encoded data are obtained based on different encoding methods, there are data differences between them. Therefore, the decoding results also differ. That is, for the current encoded video frame, the images decoded by the target playback device and the initial playback device are not completely identical. Consequently, for subsequent video frames, the images decoded by the target playback device and the initial playback device are also not completely identical, and the differences will increase over time. Furthermore, since the current video frame encoded data and the backward video frame encoded data are encoded using the same encoding method, decoding the backward video frame encoded data by referencing the decoding result corresponding to the target keyframe encoded data yields a more accurate decoding result compared to decoding the backward video frame encoded data by referencing the decoding result corresponding to the target keyframe encoded data. Moreover, since both the current and backward video frame encoded data are obtained using conventional encoding methods, the initial playback device decodes the initial encoded data of the backward video frame encoded data based on the decoding result corresponding to the current video frame encoded data, obtaining the reconstructed image used to encode the initial encoded data. However, if the target keyframe encoded data is obtained by intra-encoding the current reconstructed image corresponding to the current encoded video frame, due to some data loss during encoding, decoding the target keyframe encoded data usually cannot completely reconstruct the current reconstructed image.
[0114] Therefore, to ensure playback quality on the target playback device, the live streaming device can monitor the image quality difference between the target playback device and the initial playback device. If the image quality difference exceeds a certain threshold, new keyframe encoding data is regenerated (i.e., the keyframe encoding data is updated) and sent to the target playback device to reduce the live streaming difference between the target and initial playback devices. During monitoring, the live streaming device can obtain the first target frame image quality information corresponding to the target playback device and the second target frame image quality information corresponding to the initial playback device. If the image quality difference between the first and second target frame image quality information is greater than a preset image quality difference, the keyframe encoding data of the target playback device is updated.
[0115] Regarding the second reconstructed image, when performing inter-frame coding on video frames, the live streaming device performs inter-frame coding on the current video frame based on the reconstructed image of the previous video frame. Decoding the inter-frame coded data can restore the reconstructed image used. Therefore, when performing image quality analysis, the live streaming device can directly obtain the second reconstructed image corresponding to the target video frame.
[0116] For the first reconstructed image, the live streaming device can simulate the decoding process of the target playback device to obtain the reconstructed images of each backward video on the target playback device. For example, if the backward video frames sequentially refer to the reconstructed image of the previous frame for inter-frame encoding, then the target keyframe encoding data is decoded to obtain keyframe decoded data. Based on the keyframe decoded data, the first encoded data in the backward video frame encoding data is decoded to obtain the reconstructed image of the first backward video frame on the target playback device. Based on the obtained reconstructed image, the next encoded data in the backward video frame encoding data is decoded to obtain the reconstructed image of the second backward video frame on the target playback device, and so on, to obtain the reconstructed images of each backward video on the target playback device. Then, the first reconstructed image corresponding to the target video frame is obtained from each reconstructed image.
[0117] In one embodiment, the live streaming device can periodically acquire the latest encoded video frames as target video frames and periodically monitor the quality differences of the live streaming content between the target playback device and the initial playback device. For example, the quality difference of the live streaming content between the target playback device and the initial playback device is monitored every 20 encoded frames.
[0118] Step S306: When the image quality difference between the first target frame image quality information and the second target frame image quality information is greater than the preset image quality difference, the updated keyframe encoding data is sent to the target playback device. The updated keyframe encoding data is obtained by intra-frame encoding of the updated image. The updated image is the updated encoded video frame or the updated reconstructed image corresponding to the updated encoded video frame.
[0119] Here, "updated encoded video frame" refers to the video frame that the live streaming device is encoding or preparing to encode when the quality difference between the first target frame and the second target frame is determined to be greater than a preset quality difference. "Updated reconstructed image" refers to the reconstructed image corresponding to the updated encoded video frame. Similar to the current reconstructed image, the updated reconstructed image is obtained based on the updated video frame encoding data, which is obtained through inter-frame encoding of the updated encoded video frame.
[0120] Specifically, after obtaining the image quality information of the first target frame and the second target frame, the live streaming device can calculate the image quality difference between the two. If the image quality difference is greater than a preset difference, the live streaming device can use the video frame currently being encoded as the updated encoded video frame, or it can use the next video frame to be encoded as the updated encoded video frame. The live streaming device can directly perform intra-frame encoding on the updated encoded video frame, or it can perform intra-frame encoding on the updated reconstructed image corresponding to the updated encoded video frame, thereby obtaining updated keyframe encoding data. The live streaming device sends the updated keyframe encoding data to the target playback device. For the subsequent video frames of the updated encoded video frame, inter-frame encoding is still used, and the encoding result is sent to the target playback device. For the initial playback device, the data received by the initial playback device for both the updated encoded video frame and its subsequent video frames is still encoded data obtained using inter-frame encoding.
[0121] The image quality difference can be calculated by determining the similarity between the image quality information of the first target frame and the image quality information of the second target frame, or by calculating the difference between the image quality information of the first target frame and the image quality information of the second target frame, or by calculating the image quality difference based on a custom formula. The preset image quality difference can be set according to actual needs.
[0122] In one embodiment, the image quality difference between the decoded images from the target playback device and the initial playback device was specifically analyzed through experiments. In a video conferencing scenario, the encoding / decoding process of this application was used to calculate the SSIM (Structural Similarity) and PSNR (Peak Signal-to-Noise Ratio) of corresponding frames from the initial playback device and the target playback device to verify the degree of image degradation. Experimental results can be found in [reference needed]. Figure 4A and Figure 4B In this context, the quantization parameter QP used during intra-frame coding was 35, 30, 20, and 10, respectively. The target keyframe coded data is obtained by intra-coding the current reconstructed image. For example... Figure 4A and Figure 4B As shown, with the increase in the number of encoded frames, the PSNR and SSIM of the decoded images between the initial playback device and the target playback device gradually decrease, indicating that the image differences between the devices are becoming increasingly larger. However, it is generally believed that when SSIM is greater than 0.95 and PSNR is greater than 40, the image quality of different images is very similar and indistinguishable to the human eye. The experimental results show that within 2000 encoded frames, the image quality of the initial playback device and the target playback device remains very similar. In other words, using the encoding / decoding process of this application, although the decoded images of the target playback device and the initial playback device are not completely identical, it does not significantly affect the user's viewing and understanding of the live broadcast content.
[0123] SSIM evaluates the similarity between two images by calculating the covariance of their brightness, contrast, and structure. PSNR evaluates the similarity between two images by calculating the reciprocal of the mean square error of corresponding pixels in the two images.
[0124] In the above embodiments, the first target frame image quality information corresponding to the target playback device and the second target frame image quality information corresponding to the initial playback device are obtained. When the image quality difference between the first target frame image quality information and the second target frame image quality information is greater than a preset image quality difference, updated keyframe encoding data is generated and sent to the target playback device. In this way, when the difference between the live broadcast content of the target playback device and the initial playback device exceeds a preset threshold, the keyframe encoding data of the target playback device is updated in a timely manner, which can reduce the live broadcast difference between the target playback device and the initial playback device and improve the live broadcast quality of the target playback device.
[0125] In one embodiment, the current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. The process of obtaining the current target frame image quality information includes:
[0126] The pixel statistics of the target reconstructed image corresponding to the target video frame are statistically analyzed to obtain pixel statistics information; the image quality information of the current target frame is obtained based on the pixel statistics information.
[0127] The current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. If the current target frame image quality information is the first target frame image quality information, then the target reconstructed image corresponding to the target video frame is the first reconstructed image. If the current target frame image quality information is the second target frame image quality information, then the target reconstructed image corresponding to the target video frame is the second reconstructed image.
[0128] Specifically, live streaming equipment can employ a reference-free image quality analysis method for image quality analysis. During this analysis, the equipment can statistically analyze the pixels of the reconstructed image corresponding to the target video frame to obtain pixel statistics. For example, it can calculate at least one data point based on the pixels in the reconstructed image, such as pixel mean, variance, covariance, gradient, and the sum of squared differences between pixels in the X and Y directions, and use this calculated data as pixel statistics. Furthermore, the equipment can obtain the current target frame's image quality information based on this pixel statistics. Alternatively, the pixel statistics can be used as the current target frame's image quality information, or they can be fused together. For instance, the pixel statistics include pixel mean and variance; a weighted sum of these two values yields the current target frame's image quality information.
[0129] In the above embodiments, the image pixels of the target reconstructed image corresponding to the target video frame are statistically analyzed to obtain pixel statistical information. Based on the pixel statistical information, the image quality information of the current target frame is obtained. This allows for the rapid acquisition of the image quality information of the current target frame through data analysis of the image pixels.
[0130] In one embodiment, the current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. The process of obtaining the current target frame image quality information includes:
[0131] Obtain the common image between the live streaming device and the target playback device; obtain the current target frame image quality information based on the image difference between the common image and the target reconstructed image corresponding to the target video frame.
[0132] The common image between the live streaming device and the target playback device refers to the image shared by both devices. This shared image can be an image involved in the encoding / decoding process, or an image pre-stored by both devices. For example, at least one image can be stored as a common image in the installation package of the live streaming application.
[0133] Specifically, live streaming devices can employ image quality analysis methods with reference images for analysis. During image quality analysis, the live streaming device can acquire a common image between the live streaming device and the target playback device as a reference image, calculate the image difference between the reference image and the target reconstructed image corresponding to the target video frame, and use the calculated image difference as the image quality information of the current target frame. For example, the SSIM (Similar Similarity to Image Quality) can be calculated based on the reference image and the target reconstructed image as the image difference, or the PSNR (Personal Signal-to-Noise Ratio) can be calculated based on the reference image and the target reconstructed image as the image difference. Alternatively, other methods can be used to calculate the image similarity between the reference image and the target reconstructed image as the image difference.
[0134] In the above embodiments, a common image between the live streaming device and the target playback device is obtained, and the image quality information of the current target frame is obtained based on the image difference between the common image and the target reconstructed image corresponding to the target video frame. The image quality information of the current target frame can be quickly obtained by performing data analysis on the common image and the current image.
[0135] In one embodiment, the public image is a reconstructed image obtained based on target keyframe encoded data.
[0136] Specifically, after obtaining the target keyframe encoded data, the live streaming device can decode the target keyframe encoded data to obtain a keyframe reconstructed image. Similarly, after obtaining the target keyframe encoded data, the target playback device can also decode the target keyframe encoded data to obtain a keyframe reconstructed image. In other words, since keyframe reconstructed images can be obtained on both the encoding and decoding sides, these images can be used as a common image between the live streaming device and the target playback device. That is, the common image used for image quality analysis can be the reconstructed image obtained based on the target keyframe encoded data.
[0137] In the above embodiments, the reconstructed image obtained based on the target keyframe encoding data is used as a common image for image quality analysis. This makes full use of the encoded data, improves data utilization, eliminates the need to acquire other images, and helps to improve the speed of image quality analysis.
[0138] In one embodiment, the image quality information of the current target frame is obtained based on the image difference between the public image and the target reconstructed image corresponding to the target video frame, including:
[0139] The image pixels of the common image and the target reconstructed image are statistically analyzed to obtain the first pixel statistics of the common image and the second pixel statistics of the target reconstructed image. Based on the information difference between the first pixel statistics and the second pixel statistics, the image quality information of the current target frame is obtained.
[0140] Specifically, when calculating the image difference between the common image and the target reconstructed image, the live streaming device can employ a no-reference-image image quality analysis method to extract image quality information. Based on the image quality difference between the current image and the common image, the current target frame's image quality information is obtained. The live streaming device can statistically analyze the image pixels of the common image and the target reconstructed image separately, obtaining first pixel statistics for the common image and second pixel statistics for the target reconstructed image. Furthermore, based on the information difference between the first and second pixel statistics, the current target frame's image quality information is obtained. For example, the similarity between the first and second pixel statistics is calculated as the current target frame's image quality information, and the information difference between the first and second pixel statistics is calculated as the current target frame's image quality information.
[0141] In the above embodiments, the image pixels of the common image and the target reconstructed image are statistically analyzed to obtain the first pixel statistical information corresponding to the common image and the second pixel statistical information corresponding to the target reconstructed image. Based on the information difference between the first pixel statistical information and the second pixel statistical information, the image quality information of the current target frame is obtained, which can quickly obtain the image quality information of the current target frame.
[0142] In one embodiment, such as Figure 5As shown, a live streaming data processing method is provided, which can be applied to... Figure 1 Taking a live streaming server as an example, the following steps are included:
[0143] Step S502: Obtain the live data acquisition request sent by the target playback device to be added to the live stream.
[0144] Step S504: A live data acquisition request is sent to the live streaming device, so that the live streaming device responds to the live data acquisition request by performing intra-frame encoding on the target image to obtain target keyframe encoding data. Based on the current reconstructed image corresponding to the current encoded video frame, inter-frame encoding is performed on the backward video frame of the current encoded video frame to obtain backward video frame encoding data corresponding to the backward video frame. The target image is the current encoded video frame or the current reconstructed image. The current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame. The current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame.
[0145] Specifically, a live streaming server is a server that transmits data between live streaming devices and playback devices. The live streaming server can receive live data acquisition requests from target playback devices that want to join the live stream and forward these requests to the live streaming devices. The live streaming devices respond to these requests by sending encoded data, obtained through video encoding, back to the live streaming server. During video encoding, the live streaming devices perform inter-frame encoding on the current encoded video frame to obtain the current video frame's encoded data. They can also decode this encoded data to obtain the corresponding reconstructed image, and perform intra-frame encoding on the reconstructed image to obtain the target keyframe's encoded data. Alternatively, they can directly perform intra-frame encoding on the current encoded video frame to obtain the target keyframe's encoded data. For subsequent video frames of the current encoded video frame, inter-frame encoding can be performed based on the current reconstructed image to obtain the corresponding subsequent video frame's encoded data.
[0146] The calculation process of the target keyframe encoding data, the current video frame encoding data, and the backward video frame encoding data can be referred to in various relevant embodiments of the live data processing method applied to live streaming equipment, and will not be repeated here.
[0147] Step S506: Obtain the target keyframe encoding data, current video frame encoding data, and backward video frame encoding data returned by the live streaming device.
[0148] Step S508: Send the target keyframe encoded data and the backward video frame encoded data to the target playback device, and send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast.
[0149] Specifically, the live streaming server can obtain the target keyframe encoded data, current video frame encoded data, and backward video frame encoded data returned by the live streaming device based on the live streaming data acquisition request, send the target keyframe encoded data and backward video frame encoded data to the target playback device, and send the current video frame encoded data and backward video frame encoded data to the initial playback device that has joined the live stream.
[0150] In one embodiment, the live streaming server may include a first server and a second server, wherein the first server is used to forward requests sent by the playback device to the live streaming device, and the second server is used to forward encoded data sent by the live streaming device to the playback device.
[0151] In the above live streaming data processing method, the live streaming server obtains a live streaming data acquisition request sent by the target playback device to be joined in the live stream, and sends the live streaming data acquisition request to the live streaming device so that the live streaming device responds to the live streaming data acquisition request by performing intra-frame encoding on the target image to obtain target keyframe encoded data. Based on the current reconstructed image corresponding to the current encoded video frame, inter-frame encoding is performed on the backward video frames of the current encoded video frame to obtain backward video frame encoded data corresponding to the backward video frames. The target image is either the current encoded video frame or the current reconstructed image. The current reconstructed image is obtained based on the current video frame encoded data corresponding to the current encoded video frame, and the current video frame encoded data is obtained by inter-frame encoding of the current encoded video frame. The live streaming server obtains the target keyframe encoded data, current video frame encoded data, and backward video frame encoded data returned by the live streaming device, sends the target keyframe encoded data and backward video frame encoded data to the target playback device, and sends the current video frame encoded data and backward video frame encoded data to the initial playback device that has joined the live stream. In this way, whenever a target playback device needs to join the live stream, the live streaming device only needs to encode a keyframe specifically for the target playback device. For the encoding data of other video frames, there is no difference between the target playback device and the initial playback device that has already joined the live stream. Therefore, no new video streams are added, and the encoding burden on the live streaming device is not increased, thus improving the encoding efficiency of the live streaming device. Furthermore, only the encoded data of this keyframe needs to be sent to the target playback device; the initial playback device is unaware of the encoded data of this keyframe, and it will not cause any stuttering in the initial playback device's live stream, nor will it increase the total downlink bandwidth.
[0152] In one embodiment, such as Figure 6 As shown, the method also includes:
[0153] Step S602: Obtain the first target frame image quality information sent by the target playback device; the first target frame image quality information is obtained by the target playback device through image quality analysis of the first reconstructed image corresponding to the target video frame.
[0154] Specifically, in addition to monitoring the image quality differences between the target playback device and the initial playback device using live streaming equipment, the live streaming server can also monitor these differences. To watch the live stream, the target playback device needs to decode and play the received encoded data, thus obtaining the reconstructed images corresponding to each video frame. Furthermore, the target playback device can perform image quality analysis on the first reconstructed image corresponding to the target video frame to obtain the image quality information of the first target frame, and then report this information to the live streaming server.
[0155] Step S604: Obtain the second target frame image quality information sent by the target device; the second target frame image quality information is obtained by the target device through image quality analysis of the second reconstructed image corresponding to the target video frame, the second reconstructed image corresponds to the initial playback device, and the target device is a live streaming device or an initial playback device.
[0156] Specifically, the first reconstructed image can be considered as the local reconstructed image of the target video frame on the target playback device. The second reconstructed image can be considered as the local reconstructed image of the target video frame on the initial playback device. To watch the live stream, the initial playback device needs to decode and play the received encoded data, thus obtaining the reconstructed images corresponding to each video frame. Furthermore, the initial playback device can perform image quality analysis on the second reconstructed image corresponding to the target video frame to obtain the image quality information of the second target frame, and then report the image quality information of the second target frame to the live streaming server.
[0157] Considering that the number of initial playback devices will increase, and that the live streaming device can also obtain the local reconstructed image of the target video frame on the initial playback device when performing video encoding, it is also possible to choose to have the live streaming device perform image quality analysis on the second reconstructed image corresponding to the target video frame to obtain the image quality information of the second target frame, and then report the image quality information of the second target frame to the live streaming server.
[0158] The calculation process of the first target frame image quality information and the second target frame image quality information can be referred to in various relevant embodiments of the live data processing method applied to live streaming equipment, and will not be repeated here.
[0159] Step S606: When the image quality difference between the first target frame image quality information and the second target frame image quality information is greater than the preset image quality difference, a live data update request is sent to the live streaming device so that the live streaming device responds to the live data update request and sends the updated keyframe encoded data to the target playback device; the updated keyframe encoded data is obtained by intra-frame encoding of the updated image, and the updated image is the updated encoded video frame or the updated reconstructed image corresponding to the updated encoded video frame.
[0160] Specifically, when the image quality difference between the first target frame and the second target frame is greater than a preset image quality difference, the live streaming server can generate a live data update request and send it to the live streaming device. The live data update request requests the live streaming device to generate new keyframe encoded data for the target playback device, enabling the target playback device to decode subsequent streams based on the new keyframe encoded data, thereby reducing the live streaming difference between the target playback device and the initial playback device.
[0161] Upon receiving a live data update request, the live streaming device responds by using the currently encoded or about-to-be-encoded video frame as the updated encoding video frame. It then performs intra-frame encoding on the updated encoding video frame or its corresponding updated reconstructed image to obtain updated keyframe encoded data, which is sent to the target playback device. For subsequent video frames following the updated encoding video frame, inter-frame encoding is still used, and the encoding results are sent to the target playback device. For the initial playback device, the data received is also encoded data obtained using inter-frame encoding.
[0162] In the above embodiments, the live streaming server receives the first target frame image quality information and the second target frame image quality information, and compares the image quality information, which can reduce the computational burden on the live streaming device. When the difference between the live streaming content of the target playback device and the initial playback device exceeds a preset threshold, the keyframe encoding data of the target playback device is updated in a timely manner, which can reduce the live streaming difference between the target playback device and the initial playback device and improve the live streaming quality of the target playback device.
[0163] In one embodiment, such as Figure 7 As shown, a live streaming data processing method is provided, which can be applied to... Figure 1 Taking the target playback device as an example, the explanation includes the following steps:
[0164] Step S702: Send a live data acquisition request to the live streaming device.
[0165] Step S704: Obtain the target keyframe encoding data and backward video frame encoding data returned by the live streaming device, and decode and play them.
[0166] Specifically, the target playback device needs to join the live stream. It can generate a live stream data acquisition request and send it to the live stream device to request live stream data. The target live stream device can generate the request based on user-triggered actions. For example, it can generate a request based on user actions triggered by the live stream application's entry point to the live stream room, based on live stream room information entered by the user (e.g., streamer name, live stream room name), based on a user-triggered interface refresh when watching the live stream fails, or based on a user-triggered action triggered by a received live stream sharing message. The target live stream device can also automatically generate the request; for example, it can automatically generate a request when watching the live stream fails. The target live stream device can determine if a live stream viewing failure has occurred by detecting the current displayed image and network conditions. For example, if multiple consecutive black frames appear, it can be determined that the live stream viewing has failed.
[0167] After receiving a live data acquisition request, the live streaming device performs video encoding specifically for the target playback device to obtain target keyframe encoded data, which is then fed back to the target playback device. The target keyframe encoded data is obtained by the live streaming device through intra-frame encoding of the current encoded video frame or its corresponding reconstructed image. For other encoded data, there is no difference between the target playback device and the initial playback device that has joined the live stream. The live streaming device performs inter-frame encoding on the subsequent video frames of the current encoded video frame to obtain the corresponding subsequent video frame encoded data, which is then sent to both the initial and target playback devices. For the initial playback device, the encoding of the current encoded video frame is obtained by inter-frame encoding of the current encoded video frame.
[0168] The target playback device can decode and play the received target keyframe encoded data and backward video frame encoded data, thereby enabling the viewing of live content. The initial playback device can also decode and play the received encoded data, thereby enabling the viewing of live content.
[0169] Among them, the target keyframe coding data is obtained by intra-frame coding of the target image. The target image is the current coded video frame or the current reconstructed image corresponding to the current coded video frame. The current reconstructed image is obtained based on the current video frame coding data corresponding to the current coded video frame. The current video frame coding data is obtained by inter-frame coding of the current coded video frame. The backward video frame coding data is obtained by inter-frame coding of the backward video frame of the current coded video frame based on the current reconstructed image.
[0170] It is understood that the calculation process of the target keyframe encoded data, the current video frame encoded data, and the backward video frame encoded data can refer to the various relevant embodiments of the live data processing method applied to live streaming equipment, and will not be repeated here.
[0171] In the above live streaming data processing method, the target playback device sends a live streaming data acquisition request to the live streaming device, acquires the target keyframe encoded data and backward video frame encoded data returned by the live streaming device, and decodes and plays them. The target keyframe encoded data is obtained by intra-frame encoding of the target image, which is the current encoded video frame or the current reconstructed image corresponding to the current encoded video frame. The current reconstructed image is obtained based on the current video frame encoded data corresponding to the current encoded video frame. The current video frame encoded data is obtained by inter-frame encoding of the current encoded video frame. The backward video frame encoded data is obtained by inter-frame encoding of the backward video frame of the current encoded video frame based on the current reconstructed image. The live streaming device is also used to send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live stream. In this way, whenever the target playback device needs to join the live stream, the live streaming device only needs to encode a keyframe specifically for the target playback device. For the encoded data of other video frames, there is no difference between the target playback device and the initial playback device that has joined the live stream, so no new video stream is added, the encoding pressure of the live streaming device is not increased, and the encoding efficiency of the live streaming device can be improved. Furthermore, only the encoded data of this keyframe needs to be sent to the target playback device. The initial playback device is unaware of the encoded data of this keyframe, and it will not cause any live streaming interruptions on the initial playback device, nor will it increase the total downlink bandwidth.
[0172] In one embodiment, the live streaming device includes at least two devices, and the process of acquiring target keyframe encoded data and backward video frame encoded data returned by the live streaming device, and decoding and playing them includes:
[0173] Obtain the target keyframe encoding data and backward video frame encoding data returned by each live streaming device; decode each target keyframe encoding data and each backward video frame encoding data to obtain multiple video frames corresponding to each live streaming device, with each video frame carrying a video frame timestamp; synchronously play the video frames corresponding to different live streaming devices with matching video frame timestamps.
[0174] Specifically, in some live streaming scenarios, there can be at least two live streaming devices, such as multiple hosts broadcasting together or multi-person video conferencing. For live streaming scenarios with at least two devices, each device can encode its own live content and send the encoded data to a playback device, or send the encoded data to the playback device via a live streaming server. The playback device decodes the encoded data corresponding to each live streaming device and synchronously plays the live content from each device, thus enabling viewing of the live content.
[0175] Therefore, if there are at least two live streaming devices, the target playback device can obtain the target keyframe encoding data and backward video frame encoding data returned by each live streaming device, and decode these data to obtain multiple video frames corresponding to each live streaming device. Each video frame carries a video timestamp, which is used to determine the playback order between video frames. For multiple video frames corresponding to the same live streaming device, they can be played sequentially according to their timestamps from earliest to latest. For video frames corresponding to different live streaming devices, it is necessary to determine the video frames to be played synchronously. The target playback device can match the video frames corresponding to different live streaming devices based on their timestamps to determine the video frames that need to be played synchronously. For example, video frames with a time difference less than a preset difference and corresponding to different live streaming devices can be used as the matching video frames. Finally, the target playback device can synchronously play the video frames corresponding to different live streaming devices with matching timestamps, enabling simultaneous viewing of live content from multiple live streaming devices.
[0176] Understandably, the decoding and playback process on other playback devices is similar.
[0177] In one embodiment, for a live streaming scenario with at least two live streaming devices, the target playback device can select the live streaming device from which it wants to watch the live content, designating the selected live streaming device as the target live streaming device, and only sending live data acquisition requests to the target live streaming device. Alternatively, the target playback device can send live data acquisition requests to all live streaming devices, and upon receiving the encoded data, only decode and play the encoded data corresponding to the target live streaming device.
[0178] In the above embodiments, when there are at least two live streaming devices, the target playback device can synchronously play the content broadcast by each live streaming device.
[0179] In one specific embodiment, the live data processing method of this application can be applied to video conferencing scenarios.
[0180] refer to Figure 8In a video conference with at least two downlink devices (i.e., playback devices), if one downlink device B (i.e., the target playback device) fails to decode properly due to network packet loss, downlink device B will request a keyframe from the flow control policy server. The flow control policy server will then send a keyframe retrieval request to uplink device A (i.e., the live streaming device). Uplink device A will encode a keyframe for downlink device B. The encoded keyframe data will be pushed to the media proxy server, which will only send this encoded keyframe data to downlink device B and will not send it to other downlink devices (i.e., the initial playback device). For subsequent frames, all downlink devices receive the same encoded data without any difference.
[0181] The flow control policy server and the media proxy server have different functions. The flow control policy server sends parameter configurations to the client, while the media proxy server provides streaming and push services.
[0182] refer to Figure 9 The encoding process is explained below. Dashed boxes represent video frames that need to be encoded at the encoding end, and solid boxes represent the reconstructed images obtained after decoding. The first video frame is an I-frame, and subsequent video frames are all P-frames. Each frame is inter-frame encoded by referencing the reconstructed image of the nearest preceding frame. Assume that uplink device A receives a keyframe request before encoding frame P2. Uplink device A first acquires the reconstructed image P2' of frame P2, then intra-frame encodes P2' using appropriate quantization parameters QP to obtain the encoded data corresponding to the new keyframe I2. Next, it continues encoding P3, which is encoded with reference to P2'. Subsequent frames are encoded by referring to the reconstructed image of the preceding frame in sequence. The encoded data of the new keyframe I2 is only sent to the downlink device B that requested the keyframe and is not sent to other playback devices that have joined the live stream and are watching normally (i.e., the initial playback device). The bitstream received by downlink device B will be encoded data of I2, P3, ..., PN, P(N+1), while the complete bitstream received by other downlink devices will be encoded data of I0, P1, P2, P3, ..., PN, P(N+1).
[0183] The encoding of I2 keyframes can use h.264, HEVC (High Efficiency Video Coding), VVC (Versatile Video Coding), AV1 (AOMedia Video 1), and other encoders, without restriction on encoder type.
[0184] refer to Figure 10The decoding process is explained below. Dashed boxes represent video frames that need to be encoded at the encoding end, and solid boxes represent the decoded image. Downlink device B receives encoded data in the bitstream I2, P3, ..., PN, P(N+1), and the decoded image is I2”, P3”, P4”, ..., PN”, P(N+1)”. Downlink device C, which decodes normally, receives encoded data in the bitstream I0, P1, P2, P3, ..., PN, P(N+1), and the decoded image is I0', P1', P2', P3', P4', ..., PN', P(N+1)'. The main difference between the data received by downlink devices B and C at the decoding side is that downlink device B receives the encoded data of the new keyframe I2.
[0185] When uplink device A encodes P3, it references P2'. Downlink device B receives the P3 bitstream and decodes it with reference to I2" to obtain P3"; while downlink device C receives the P3 bitstream and decodes it with reference to P2' to obtain P3'. Since I2" is the reconstructed image obtained after intra-frame coding of P2', P2' and I2" are not completely consistent. The size of the difference mainly depends on the size of the quantization parameter QP of the intra-frame coding. This will cause the P3" and P3' decoded by downlink device B and downlink device C to be not completely consistent. Similarly, P4" and P4' and other subsequent decoded frames will also have differences. That is, the image decoded by downlink device B after rejoining the conference will be different from the image decoded by downlink device C in the original conference.
[0186] The flow control policy server can employ either a no-reference image evaluation algorithm or a reference-based image quality assessment algorithm to evaluate the image quality difference between downlink device B and downlink device C. If the image quality difference exceeds a preset threshold, a keyframe request will be sent to uplink device A to obtain new keyframe encoded data, which will then be sent to uplink device B to reduce the image quality difference between downlink device B and downlink device C. For example, when a live streaming device is encoding a PN frame and receives a keyframe request, the live streaming device can perform intra-frame encoding on the reconstructed image PN' to obtain new keyframe encoded data.
[0187] refer to Figure 11 This describes the process of evaluating image quality differences using a no-reference image quality assessment algorithm. Uplink device A obtains the reconstructed image PN' of PN during encoding, and downlink device B obtains the reconstructed image PN'' during decoding. Both uplink and downlink devices A and B use the same no-reference image evaluation algorithm to calculate image quality scores for PN' and PN'' based on their pixel values. These scores are then reported to the flow control policy server. The flow control policy server compares the differences between the two image quality scores. If the score difference exceeds a first preset threshold, it requests a keyframe from uplink device A. The media proxy server then sends the newly encoded keyframe data from uplink device A to downlink device B. For subsequent video frames, there are no differences between the downlink devices.
[0188] refer to Figure 12 This describes the process of using a reference image quality assessment algorithm to evaluate image quality differences. Uplink device A can obtain the reconstructed image I2” during encoding, and downlink device B can also obtain the reconstructed image I2” during decoding. Therefore, the I2” image can be used as a common image for both uplink and downlink devices B. When encoding to a PN frame, uplink device A can obtain PN’, calculate the SSIM using PN’ and I2”, and report it to the flow control policy server. Downlink device B can obtain PN”, calculate the SSIM using PN” and I2”, and report it to the flow control policy server. The difference between the two SSIMs is calculated. When the difference exceeds a second preset threshold, a keyframe is requested from uplink device A, and the new keyframe encoded data is sent to downlink device B. Besides using I2” as the common image in the reference image quality assessment algorithm, the same image stored locally on both uplink and downlink devices B can also be used as the common image.
[0189] In the above-described live streaming data processing method, at the encoding end, only the encoded data of a keyframe is added to the original video stream; no new video stream is added, thus avoiding increased encoding pressure. At the decoding end, the encoded data of the keyframe is only sent to the terminal requesting the keyframe; other downlink terminals do not need to receive this keyframe's encoded data, preventing stuttering risks for other downlink terminals and reducing overall downlink bandwidth. At the cost of a slight loss in image quality, this method effectively mitigates the risk of downlink terminal stuttering caused by keyframes during live streaming and reduces overall downlink bandwidth. Furthermore, combined with image quality evaluation algorithms, it can also reduce live streaming differences between downlink terminals, ensuring live streaming quality.
[0190] It is understandable that, in addition to intra-coding the reconstructed image P2' of frame P2 to obtain keyframe encoded data, uplink device A can also directly intra-code P2 to obtain keyframe encoded data. Downlink device B can be a newly added playback device to the live stream, or a device that has failed to watch the live stream content for other reasons. The live stream data processing method of this application can also be applied to other live stream scenarios besides video conferencing, and can be applied to live stream scenarios with at least two live stream ends.
[0191] It should be understood that although the steps in the flowcharts of the embodiments described above 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 embodiments described above 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.
[0192] Based on the same inventive concept, this application also provides a live data processing apparatus for implementing the live data processing method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in the various live data processing apparatus embodiments provided below can be found in the limitations of the live data processing method described above, and will not be repeated here.
[0193] In one embodiment, such as Figure 13 As shown, a live data processing device 1300 is provided, including: a first request acquisition module 1302, an intra-frame image coding module 1304, an inter-frame image coding module 1306, and a data transmission module 1308, wherein:
[0194] The first request acquisition module 1302 is used to acquire the live data acquisition request corresponding to the target playback device to be added to the live stream;
[0195] The image intra-frame coding module 1304 is used to respond to the live data acquisition request, perform intra-frame coding on the target image, and obtain target keyframe coding data. The target image is the current coded video frame or the current reconstructed image corresponding to the current coded video frame. The current reconstructed image is obtained based on the current video frame coding data corresponding to the current coded video frame. The current video frame coding data is obtained by inter-frame coding of the current coded video frame.
[0196] The image inter-frame coding module 1306 is used to perform inter-frame coding on the backward video frame of the current coded video frame based on the current reconstructed image, so as to obtain the backward video frame coding data corresponding to the backward video frame.
[0197] The data transmission module 1308 is used to send the target keyframe encoded data and the backward video frame encoded data to the target playback device, and to send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast.
[0198] The aforementioned live streaming data processing device only needs to encode a single keyframe specifically for the target playback device whenever it needs to join the live stream. For the encoding of other video frames, there is no difference between the target playback device and the initial playback device already joining the live stream. Therefore, it does not add new video streams, does not increase the encoding burden on the live streaming device, and can improve its encoding efficiency. Furthermore, only the encoded data of this keyframe needs to be sent to the target playback device; the initial playback device is unaware of the encoded data of this keyframe, and it will not cause any stuttering in the initial playback device's live stream, nor will it increase the total downlink bandwidth.
[0199] In one embodiment, the image inter-frame coding module is further configured to obtain the reconstructed image corresponding to the forward video frame of the current backward video frame as the forward reconstructed image, and use the forward reconstructed image as the reference image of the current backward video frame; and perform inter-frame coding on the current backward video frame based on the reference image to obtain the backward video frame coding data corresponding to the current backward video frame.
[0200] In one embodiment, the first request acquisition module is further configured to acquire a live data acquisition request sent by the first server; the live data acquisition request carries a device identifier corresponding to the target playback device, and the live data acquisition request is sent from the target playback device to the first server.
[0201] The data transmission module is also used to send the target keyframe encoded data, the current video frame encoded data, and the backward video frame encoded data to the second server, so that the second server sends the target keyframe encoded data and the backward video frame encoded data to the target playback device, and sends the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast; the target keyframe encoded data carries the device identifier corresponding to the target playback device.
[0202] In one embodiment, the live data processing device 1300 further includes:
[0203] The image quality information acquisition module is used to acquire the image quality information of the first target frame; the image quality information of the first target frame is obtained by performing image quality analysis on the first reconstructed image corresponding to the target video frame, and the first reconstructed image corresponds to the target playback device.
[0204] The image quality information acquisition module is also used to acquire the image quality information of the second target frame; the image quality information of the second target frame is obtained by performing image quality analysis on the second reconstructed image corresponding to the target video frame, and the second reconstructed image corresponds to the initial playback device.
[0205] The image quality information comparison module is used to send updated keyframe encoding data to the target playback device when the image quality difference between the first target frame and the second target frame is greater than the preset image quality difference. The updated keyframe encoding data is obtained by intra-frame encoding of the updated image, and the updated image is the updated encoded video frame or the updated reconstructed image corresponding to the updated encoded video frame.
[0206] In one embodiment, the current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. The image quality information acquisition module is further used to count the image pixels of the target reconstructed image corresponding to the target video frame to obtain pixel statistics information; and to obtain the current target frame image quality information based on the pixel statistics information.
[0207] In one embodiment, the current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. The image quality information acquisition module is also used to acquire the common image between the live streaming device and the target playback device; and to obtain the current target frame image quality information based on the image difference between the common image and the target reconstructed image corresponding to the target video frame.
[0208] In one embodiment, the public image is a reconstructed image obtained based on target keyframe encoded data.
[0209] In one embodiment, the image quality information acquisition module is further configured to perform statistical analysis on the image pixels of the common image and the target reconstructed image respectively, to obtain first pixel statistical information corresponding to the common image and second pixel statistical information corresponding to the target reconstructed image; and to obtain the current target frame image quality information based on the information difference between the first pixel statistical information and the second pixel statistical information.
[0210] In one embodiment, such as Figure 14 As shown, a live data processing device 1400 is provided, including: a second request acquisition module 1402, a request sending module 1404, an encoded data acquisition module 1406, and an encoded data sending module 1408, wherein:
[0211] The second request acquisition module 1402 is used to acquire the live data acquisition request sent by the target playback device to be added to the live stream;
[0212] The request sending module 1404 is used to send a live data acquisition request to the live streaming device, so that the live streaming device responds to the live data acquisition request by performing intra-frame encoding on the target image to obtain target keyframe encoding data, and performing inter-frame encoding on the backward video frame of the current encoded video frame based on the current reconstructed image corresponding to the current encoded video frame to obtain backward video frame encoding data corresponding to the backward video frame; the target image is the current encoded video frame or the current reconstructed image, the current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame, and the current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame;
[0213] The encoding data acquisition module 1406 is used to acquire the target keyframe encoding data, the current video frame encoding data, and the backward video frame encoding data returned by the live streaming device.
[0214] The encoding data sending module 1408 is used to send the target key frame encoding data and the subsequent video frame encoding data to the target playback device, and to send the current video frame encoding data and the subsequent video frame encoding data to the initial playback device that has joined the live broadcast.
[0215] The aforementioned live streaming data processing device only needs to encode a keyframe specifically for the target playback device whenever it needs to join the live stream. For the encoding data of other video frames, there is no difference between the target playback device and the initial playback device that has already joined the live stream. Therefore, it does not add new video streams, does not increase the encoding burden on the live streaming device, and can improve the encoding efficiency of the live streaming device. Furthermore, only the encoded data of this keyframe needs to be sent to the target playback device; the initial playback device is unaware of the encoded data of this keyframe, and it will not cause any live stream stuttering on the initial playback device, nor will it increase the total downlink bandwidth.
[0216] In one embodiment, the live data processing device 1400 further includes:
[0217] The encoding data update module is used to acquire first target frame image quality information sent by the target playback device; the first target frame image quality information is obtained by the target playback device through image quality analysis of the first reconstructed image corresponding to the target video frame; acquire second target frame image quality information sent by the target device; the second target frame image quality information is obtained by the target device through image quality analysis of the second reconstructed image corresponding to the target video frame, the second reconstructed image corresponds to the initial playback device, and the target device is a live streaming device or the initial playback device; when the image quality difference between the first target frame image quality information and the second target frame image quality information is greater than a preset image quality difference, a live streaming data update request is sent to the live streaming device, so that the live streaming device responds to the live streaming data update request and sends updated keyframe encoding data to the target playback device; the updated keyframe encoding data is obtained by intra-frame encoding of the updated image, and the updated image is an updated encoded video frame or an updated reconstructed image corresponding to the updated encoded video frame.
[0218] In one embodiment, such as Figure 15 As shown, a live data processing device 1500 is provided, including: a third request sending module 1502 and a data decoding and playback module 1504, wherein:
[0219] The third request sending module 1502 is used to send a live data acquisition request to the live streaming device;
[0220] The data decoding and playback module 1504 is used to acquire the target keyframe encoded data and the backward video frame encoded data returned by the live streaming device, and to decode and play them.
[0221] Among them, the target keyframe encoded data is obtained by intra-frame encoding of the target image. The target image is the current encoded video frame or the current reconstructed image corresponding to the current encoded video frame. The current reconstructed image is obtained based on the current video frame encoded data corresponding to the current encoded video frame. The current video frame encoded data is obtained by inter-frame encoding of the current encoded video frame. The backward video frame encoded data is obtained by inter-frame encoding of the backward video frame of the current encoded video frame based on the current reconstructed image. The live streaming equipment is also used to send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live streaming.
[0222] The aforementioned live streaming data processing device only needs to encode a keyframe specifically for the target playback device whenever it needs to join the live stream. For the encoding data of other video frames, there is no difference between the target playback device and the initial playback device that has already joined the live stream. Therefore, it does not add new video streams, does not increase the encoding burden on the live streaming device, and can improve the encoding efficiency of the live streaming device. Furthermore, only the encoded data of this keyframe needs to be sent to the target playback device; the initial playback device is unaware of the encoded data of this keyframe, and it will not cause any live stream stuttering on the initial playback device, nor will it increase the total downlink bandwidth.
[0223] In one embodiment, the live streaming device includes at least two devices, and the data decoding and playback module is further configured to acquire target keyframe encoded data and backward video frame encoded data returned by each live streaming device; decode each target keyframe encoded data and each backward video frame encoded data to obtain multiple video frames corresponding to each live streaming device, each video frame carrying a video frame timestamp; and synchronously play video frames corresponding to different live streaming devices with matching video frame timestamps.
[0224] Each module in the aforementioned live data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0225] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 16 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores encoded data, first target frame image quality information, second target frame image quality information, and other data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a live data processing method.
[0226] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 17 As 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 live data processing method. The display unit of the computer device is used to form a visually visible image. It 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.
[0227] Those skilled in the art will understand that Figure 16 , 17 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.
[0228] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0229] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0230] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.
[0231] 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 related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0232] 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, and when executed, it 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.
[0233] 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.
[0234] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent 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 method for processing live streaming data, characterized in that, Applied to live streaming equipment, the method includes: Obtain the live data acquisition request corresponding to the target playback device to be added to the live stream. The live stream device refers to the device that initiates the live stream and is used to generate live stream data. In response to the live data acquisition request, the target image is intra-frame encoded to obtain target keyframe encoded data, wherein the target image is the current encoded video frame; Based on the current reconstructed image, inter-frame coding is performed on the backward video frames of the current encoded video frame to obtain the backward video frame coding data corresponding to the backward video frame. The current reconstructed image is obtained based on the current video frame coding data corresponding to the current encoded video frame. The current video frame coding data is obtained by inter-frame coding of the current encoded video frame. The target keyframe encoded data and the backward video frame encoded data are sent to the target playback device, and the current video frame encoded data and the backward video frame encoded data are sent to the initial playback device that has joined the live broadcast.
2. The method according to claim 1, characterized in that, The step of performing inter-frame coding on the backward video frames of the current coded video frame based on the current reconstructed image to obtain the backward video frame coded data corresponding to the backward video frame includes: Obtain the reconstructed image corresponding to the forward video frame of the current backward video frame as the forward reconstructed image, and use the forward reconstructed image as the reference image of the current backward video frame; Based on the reference image, the current backward video frame is inter-frame encoded to obtain the backward video frame encoded data corresponding to the current backward video frame.
3. The method according to claim 1, characterized in that, The step of obtaining the live data acquisition request corresponding to the target playback device to be joined in the live stream includes: Obtain the live data acquisition request sent by the first server; the live data acquisition request carries the device identifier corresponding to the target playback device, and the live data acquisition request is sent by the target playback device to the first server; The step of sending the target keyframe encoded data and the backward video frame encoded data to the target playback device, and sending the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live stream, includes: The target keyframe encoded data, the current video frame encoded data, and the backward video frame encoded data are sent to the second server, so that the second server sends the target keyframe encoded data and the backward video frame encoded data to the target playback device, and sends the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast; the target keyframe encoded data carries the device identifier corresponding to the target playback device.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Acquire first target frame image quality information; the first target frame image quality information is obtained by performing image quality analysis on the first reconstructed image corresponding to the target video frame, and the first reconstructed image corresponds to the target playback device; Acquire the image quality information of the second target frame; the image quality information of the second target frame is obtained by performing image quality analysis on the second reconstructed image corresponding to the target video frame, and the second reconstructed image corresponds to the initial playback device; When the image quality difference between the first target frame image quality information and the second target frame image quality information is greater than a preset image quality difference, the updated keyframe encoding data is sent to the target playback device. The updated keyframe encoding data is obtained by intra-frame encoding of the updated image. The updated image is an updated encoded video frame or an updated reconstructed image corresponding to the updated encoded video frame.
5. The method according to claim 4, characterized in that, The current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. The process of obtaining the current target frame image quality information includes: The pixel statistics of the reconstructed image corresponding to the target video frame are statistically analyzed to obtain pixel statistics information. The current target frame image quality information is obtained based on the pixel statistics.
6. The method according to claim 4, characterized in that, The current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. The process of obtaining the current target frame image quality information includes: Obtain the common image between the live streaming device and the target playback device; The image quality information of the current target frame is obtained based on the image difference between the public image and the target reconstructed image corresponding to the target video frame.
7. The method according to claim 6, characterized in that, The public image is a reconstructed image obtained based on the target keyframe encoded data.
8. The method according to claim 6, characterized in that, The process of obtaining the current target frame image quality information based on the image difference between the public image and the target reconstructed image corresponding to the target video frame includes: The image pixels of the common image and the target reconstructed image are statistically analyzed to obtain the first pixel statistical information corresponding to the common image and the second pixel statistical information corresponding to the target reconstructed image. Based on the information difference between the first pixel statistics and the second pixel statistics, the current target frame image quality information is obtained.
9. A method for processing live streaming data, characterized in that, Applied to live streaming equipment, the method includes: Obtain the live data acquisition request corresponding to the target playback device to be added to the live stream. The live stream device refers to the device that initiates the live stream and is used to generate live stream data. In response to the live data acquisition request, intra-frame encoding is performed on the target image to obtain target keyframe encoding data. The target image is the current reconstructed image corresponding to the current encoded video frame. The current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame. The current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame. Based on the current reconstructed image, inter-frame coding is performed on the backward video frames of the current encoded video frame to obtain the backward video frame encoded data corresponding to the backward video frame; The target keyframe encoded data and the backward video frame encoded data are sent to the target playback device, and the current video frame encoded data and the backward video frame encoded data are sent to the initial playback device that has joined the live broadcast. Acquire first target frame image quality information; the first target frame image quality information is obtained by performing image quality analysis on the first reconstructed image corresponding to the target video frame, and the first reconstructed image corresponds to the target playback device; Acquire the image quality information of the second target frame; the image quality information of the second target frame is obtained by performing image quality analysis on the second reconstructed image corresponding to the target video frame, and the second reconstructed image corresponds to the initial playback device; When the image quality difference between the first target frame image quality information and the second target frame image quality information is greater than a preset image quality difference, the updated keyframe encoding data is sent to the target playback device. The updated keyframe encoding data is obtained by intra-frame encoding of the updated image. The updated image is an updated encoded video frame or an updated reconstructed image corresponding to the updated encoded video frame.
10. The method according to claim 9, characterized in that, The current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. The process of obtaining the current target frame image quality information includes: The pixel statistics of the reconstructed image corresponding to the target video frame are statistically analyzed to obtain pixel statistics information. The current target frame image quality information is obtained based on the pixel statistics.
11. The method according to claim 9, characterized in that, The current target frame image quality information is either the first target frame image quality information or the second target frame image quality information. The process of obtaining the current target frame image quality information includes: Obtain the common image between the live streaming device and the target playback device; The image quality information of the current target frame is obtained based on the image difference between the public image and the target reconstructed image corresponding to the target video frame.
12. The method according to claim 11, characterized in that, The public image is a reconstructed image obtained based on the target keyframe encoded data.
13. The method according to claim 11, characterized in that, The process of obtaining the current target frame image quality information based on the image difference between the public image and the target reconstructed image corresponding to the target video frame includes: The image pixels of the common image and the target reconstructed image are statistically analyzed to obtain the first pixel statistical information corresponding to the common image and the second pixel statistical information corresponding to the target reconstructed image. Based on the information difference between the first pixel statistics and the second pixel statistics, the current target frame image quality information is obtained.
14. A method for processing live streaming data, characterized in that, Applied to a live streaming server, the method includes: Obtain the live data acquisition request sent by the target playback device to be added to the live stream; The live data acquisition request is sent to the live streaming device, so that the live streaming device responds to the live data acquisition request by performing intra-frame encoding on the target image to obtain target keyframe encoding data, and performing inter-frame encoding on the backward video frames of the current encoded video frame based on the current reconstructed image corresponding to the current encoded video frame to obtain backward video frame encoding data corresponding to the backward video frame; the target image is the current encoded video frame, the current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame, and the current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame; the live streaming device refers to the device that initiates the live stream and is used to generate live streaming data. Obtain the target keyframe encoding data, the current video frame encoding data, and the backward video frame encoding data returned by the live streaming device; The target keyframe encoded data and the backward video frame encoded data are sent to the target playback device, and the current video frame encoded data and the backward video frame encoded data are sent to the initial playback device that has joined the live broadcast.
15. The method according to claim 14, characterized in that, The method further includes: The first target frame image quality information sent by the target playback device is obtained; the first target frame image quality information is obtained by the target playback device through image quality analysis of the first reconstructed image corresponding to the target video frame. Acquire the second target frame image quality information sent by the target device; the second target frame image quality information is obtained by the target device through image quality analysis of the second reconstructed image corresponding to the target video frame, the second reconstructed image corresponds to the initial playback device, and the target device is the live streaming device or the initial playback device; When the image quality difference between the first target frame image quality information and the second target frame image quality information is greater than a preset image quality difference, a live data update request is sent to the live streaming device, so that the live streaming device responds to the live data update request and sends updated keyframe encoded data to the target playback device; the updated keyframe encoded data is obtained by intra-frame encoding of the updated image, and the updated image is an updated encoded video frame or an updated reconstructed image corresponding to the updated encoded video frame.
16. A method for processing live streaming data, characterized in that, Applied to a live streaming server, the method includes: Obtain the live data acquisition request sent by the target playback device to be added to the live stream; The live data acquisition request is sent to the live streaming device, so that the live streaming device responds to the live data acquisition request by performing intra-frame encoding on the target image to obtain target keyframe encoding data, and performing inter-frame encoding on the backward video frames of the current encoded video frame based on the current reconstructed image corresponding to the current encoded video frame to obtain backward video frame encoding data corresponding to the backward video frame; the target image is the current reconstructed image, which is obtained based on the current video frame encoding data corresponding to the current encoded video frame, and the current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame; the live streaming device refers to the device that initiates the live stream and is used to generate live streaming data. Obtain the target keyframe encoding data, the current video frame encoding data, and the backward video frame encoding data returned by the live streaming device; The target keyframe encoded data and the backward video frame encoded data are sent to the target playback device, and the current video frame encoded data and the backward video frame encoded data are sent to the initial playback device that has joined the live broadcast. The first target frame image quality information sent by the target playback device is obtained; the first target frame image quality information is obtained by the target playback device through image quality analysis of the first reconstructed image corresponding to the target video frame. Acquire the second target frame image quality information sent by the target device; the second target frame image quality information is obtained by the target device through image quality analysis of the second reconstructed image corresponding to the target video frame, the second reconstructed image corresponds to the initial playback device, and the target device is the live streaming device or the initial playback device; When the image quality difference between the first target frame image quality information and the second target frame image quality information is greater than a preset image quality difference, a live data update request is sent to the live streaming device, so that the live streaming device responds to the live data update request and sends updated keyframe encoded data to the target playback device; the updated keyframe encoded data is obtained by intra-frame encoding of the updated image, and the updated image is an updated encoded video frame or an updated reconstructed image corresponding to the updated encoded video frame.
17. A method for processing live streaming data, characterized in that, Applied to a target playback device, the method includes: Send a live data acquisition request to the live streaming device, which refers to the device that initiates the live stream and is used to generate live streaming data; The target keyframe encoding data and backward video frame encoding data returned by the live streaming device are obtained and decoded for playback; The target keyframe encoding data is obtained by intra-frame encoding of the target image, where the target image is the current encoded video frame. The backward video frame encoding data is obtained by inter-frame encoding of the backward video frames of the current encoded video frame based on the current reconstructed image. The live streaming device is also used to send the current video frame encoding data and the backward video frame encoding data to the initial playback device that has joined the live stream. The current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame, where the current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame.
18. The method according to claim 17, characterized in that, The live streaming devices include at least two, and the step of acquiring the target keyframe encoded data and backward video frame encoded data returned by the live streaming devices, and decoding and playing them, includes: Obtain the target keyframe encoding data and backward video frame encoding data returned by each live streaming device; Decode the encoded data of each target keyframe and the encoded data of each backward video frame to obtain multiple video frames corresponding to each live streaming device. Each video frame carries a video frame timestamp. Synchronize and play video frames from different live streaming devices that have matching video frame timestamps.
19. A live streaming data processing device, characterized in that, Applied to live streaming equipment, the device includes: The first request acquisition module is used to acquire the live data acquisition request corresponding to the target playback device to be joined in the live broadcast. The live broadcast device refers to the device that initiates the live broadcast and is used to generate live broadcast data. An image intra-frame encoding module is used to perform intra-frame encoding on a target image in response to the live data acquisition request, to obtain target keyframe encoded data, wherein the target image is the current encoded video frame; An image inter-frame coding module is used to perform inter-frame coding on the backward video frames of the current coded video frame based on the current reconstructed image, to obtain the backward video frame coding data corresponding to the backward video frame. The current reconstructed image is obtained based on the current video frame coding data corresponding to the current coded video frame, and the current video frame coding data is obtained by inter-frame coding of the current coded video frame. The data transmission module is used to send the target keyframe encoded data and the backward video frame encoded data to the target playback device, and to send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast.
20. A live streaming data processing device, characterized in that, The device includes: The second request acquisition module is used to acquire live data acquisition requests sent by the target playback device to be added to the live stream; A request sending module is used to send the live data acquisition request to the live streaming device, so that the live streaming device responds to the live data acquisition request by performing intra-frame encoding on the target image to obtain target keyframe encoded data, and performing inter-frame encoding on the backward video frames of the current encoded video frame based on the current reconstructed image corresponding to the current encoded video frame to obtain backward video frame encoded data corresponding to the backward video frame; the target image is the current encoded video frame, the current reconstructed image is obtained based on the current video frame encoded data corresponding to the current encoded video frame, the current video frame encoded data is obtained by inter-frame encoding of the current encoded video frame, and the live streaming device refers to the device that initiates the live stream and is used to generate live streaming data; The encoding data acquisition module is used to acquire the target keyframe encoding data, the current video frame encoding data, and the backward video frame encoding data returned by the live streaming device; The encoded data sending module is used to send the target keyframe encoded data and the backward video frame encoded data to the target playback device, and to send the current video frame encoded data and the backward video frame encoded data to the initial playback device that has joined the live broadcast.
21. A live streaming data processing device, characterized in that, The device includes: The third request sending module is used to send a live data acquisition request to the live streaming device, which refers to the device that initiates the live stream and is used to generate live streaming data. The data decoding and playback module is used to acquire the target keyframe encoded data and backward video frame encoded data returned by the live streaming device, and to decode and play them. The target keyframe encoding data is obtained by intra-frame encoding of the target image, where the target image is the current encoded video frame. The backward video frame encoding data is obtained by inter-frame encoding of the backward video frames of the current encoded video frame based on the current reconstructed image. The live streaming device is also used to send the current video frame encoding data and the backward video frame encoding data to the initial playback device that has joined the live stream. The current reconstructed image is obtained based on the current video frame encoding data corresponding to the current encoded video frame, where the current video frame encoding data is obtained by inter-frame encoding of the current encoded video frame.
22. 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 8, 9 to 13, 14 to 15, 16, or 17 to 18.
23. 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 8, 9 to 13, 14 to 15, 16, or 17 to 18.
24. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program performs the steps of the method according to any one of claims 1 to 8, 9 to 13, 14 to 15, 16, or 17 to 18.
Citation Information
Patent Citations
Key frame sending method, processing server and live broadcast system
CN112866736A
