A network quality assessment method and device in video transmission in near-field scenarios

By using frame arrival time series and frame interval time series in the transmission layer of the receiving device, combined with Poisson and exponential distribution distances, the problem of inaccurate and untimely network quality assessment in video transmission in near-field scenarios is solved, improving Improves the stability and real-time performance of video playback.

CN115412776BActive Publication Date: 2024-10-18HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110594649.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-28
Publication Date
2024-10-18
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

In video transmission in near-field scenarios, existing technologies have problems with inaccurate and untimely network quality assessment. Especially in scenarios such as wireless screen projection, the packet loss rate is low and the frame transmission time is difficult to accurately calculate, resulting in video Playback freezes and end-to-end delay increases.

Method used

In the transmission layer of the receiving end device, the arrival time sequence of video frames is obtained, the frame interval time sequence is calculated, and the Poisson and exponential distribution distances are used to evaluate the network quality level, thereby sensing and reflecting network status changes in advance, and improving the accuracy of the evaluation. Accuracy and timeliness.

Benefits of technology

It achieves real-time and accurate assessment of network quality, reduces video transmission delays and freezes, and improves the stability and real-time performance of video playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115412776B_ABST
    Figure CN115412776B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a network quality assessment method and device in video transmission in a near-field scenario, which can be used to assess the network status during video transmission in scenarios such as wireless screen projection, vehicle-mounted screen projection, and multi-screen collaboration, including: the transmission layer of the receiving device obtains the arrival time of the video frame transmitted to the transmission layer, and periodically obtains the frame arrival time sequence composed of each arrival time within a preset time length, obtains the frame interval time sequence according to the frame arrival time sequence, and determines the network quality level according to the frame interval time sequence, and the network quality level is used to reflect the current network status. The present application uses the frame interval time series distribution at the transmission layer to assess the real-time network status. Since the transmission layer is between the network layer and the application layer, the transmission layer can perceive changes in the network status in advance of the application layer, and can accurately assess the network requirements of the application layer, thereby solving the problem of inaccurate and untimely real-time network quality assessment in the existing technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video transmission, and in particular to a network quality assessment method and device for video transmission in a near-field scenario. Background Art

[0002] Network quality assessment in the process of video transmission in near-field scenarios (such as wireless screen projection, car screen projection, multi-screen collaboration, etc.) has received more and more attention. Taking wireless screen projection as an example, the business requirements of wireless screen projection include two aspects: 1) Picture quality requirements: to ensure that the video playback of the receiving device is free of lag and no screen distortion; 2) Real-time requirements: the time difference between the video playback of the sending device and the receiving device is small. Therefore, the requirement for video transmission in near-field scenarios is to minimize the end-to-end delay while ensuring the picture quality requirements. Specifically, the upper-layer application (i.e., the application layer) of the receiving device needs to perceive the changes in the network state to adaptively adjust the parameters (e.g., the frame buffer memory of the receiving device adjusts its cache size according to the changes in the network state). However, the instability of the wireless network has a huge impact on the business performance of the above two aspects. For example, the average transmission completion time of a 200KB video is 120 milliseconds (millisecond, ms), of which the wireless transmission link delay is 20-50ms, accounting for 17%-42% of the total end-to-end delay. It can be seen that the instability of video frame transmission delay is the main reason for screen projection freezes and large end-to-end delay.

[0003] In order to meet the above requirements, there are generally two ways to evaluate network quality during video transmission: (1) The network layer of the receiving device evaluates the network bandwidth based on real-time network operating parameters (such as sending rate, receiving rate, packet loss rate, round-trip time (RTT)), etc., and feeds back the estimated bandwidth to the application layer, allowing the application layer to implement adaptive parameter adjustment. For example, the Google congestion control algorithm (GCC) of web real-time communication (WebRTC) is one of the typical network quality evaluation methods under this implementation method. The network quality evaluation method of GCC is divided into two parts. One part is the bandwidth estimation of the sending device based on the packet loss of the real-time transport protocol (RTP) data packet, and the other part is the bandwidth estimation of the receiving device based on the delay gradient of adjacent video frames. (2) The application layer of the receiving device uses the change of cache size to indirectly perceive the change of network status. When the frame production speed is higher than the consumption speed, the increase of frames in the frame buffer memory indicates that the network condition has improved. Otherwise, it indicates that the network condition has deteriorated.

[0004] For the first implementation method mentioned above, in the near-field scenario, GCC's bandwidth estimation is not accurate. The reasons are: a. For bandwidth prediction based on packet loss, near-field scenarios usually use wireless communication technology (WiFi), peer-to-peer technology (peer topeer, P2P) and other methods to project the screen, and the packet loss rate is very low, so bandwidth estimation based on packet loss is basically invalid; b. For bandwidth prediction based on adjacent frame delays, the underlying frame aggregation mechanism allows multiple frames to be aggregated in one data packet and sent simultaneously, making it difficult to accurately calculate the frame transmission time. For the second implementation method mentioned above, since the frame data packets received by the application layer have undergone multiple queue caching processes at the underlying layer, the time it takes for the frame data packets to arrive at the application layer is smoothed, which ultimately causes the application layer to perceive the network status slowly and in a timely manner. Summary of the invention

[0005] The embodiments of the present application provide a method and device for evaluating network quality in video transmission in a near-field scenario, which are used to evaluate the real-time network status by using the distribution of frame arrival time series at the transmission layer of the receiving device. Since the transmission layer is between the network layer and the application layer of the receiving device, the transmission layer can perceive the changes in the network status in advance of the application layer, thereby improving the timeliness of the network quality evaluation; and compared with single-point information, the time series can better reflect the distribution law, thereby improving the accuracy of the network quality evaluation, thereby solving the problem of inaccurate and untimely real-time network quality evaluation in the existing technology.

[0006] Based on this, the embodiments of the present application provide the following technical solutions:

[0007] On the first aspect, the embodiment of the present application first provides a network quality assessment method in video transmission in a near-field scenario, which can be used to evaluate the network status during video transmission in near-field scenarios such as wireless screen projection, vehicle-mounted screen projection, and multi-screen collaboration. The method includes: First, the transmission layer of the receiving device obtains the arrival time of the video frame transmitted to the transmission layer. The video frame is sent by the transmitting device to the receiving device, and one video frame corresponds to one arrival time. Afterwards, the transmission layer of the receiving device further obtains a frame arrival time sequence composed of each arrival time within a preset duration. In the embodiment of the present application, the frame arrival time sequence can be recorded as D. For example, the transmitting device has a 10s video A to be sent, and assuming the frame rate is 60fps, then the number of frames of this video A is 600. These 600 video frames will be transmitted from the transmitting device to the transmission layer of the receiving device, and there will be 600 corresponding arrival times. A preset duration is set in advance on the transport layer of the receiving device. For example, the preset duration is assumed to be 3 seconds. Since the frame rate of video A is 60fps, there will be a total of 60×3=180 video frames within the preset duration of 3 seconds, corresponding to 180 arrival times. Then the frame arrival time sequence composed of each arrival time within the preset duration of 3 seconds can be recorded as: frame arrival time sequence D=(d x d x+1 ,……,d x+179 ), x≥1. After the transport layer of the receiving device obtains the frame arrival time sequence at the current moment, it can determine the network quality level based on the frame arrival time sequence, where the quality network level is used to reflect the network status during the video transmission process in the current near-field scenario.

[0008] In the above-mentioned implementation mode of the present application, at the transmission layer of the receiving device, the real-time network status is evaluated by utilizing the distribution of the frame arrival time series. Since the transmission layer is between the network layer and the application layer of the receiving device, the transmission layer can perceive the changes in the network status in advance of the application layer, thereby improving the timeliness of the network quality evaluation. Moreover, compared with single-point information, the time series can better reflect the distribution law, thereby improving the accuracy of the network quality evaluation, thereby solving the problem of inaccurate and untimely real-time network quality evaluation in the existing technology.

[0009] In a possible implementation of the first aspect, a specific implementation of the receiving end device determining the network quality level according to the frame arrival time sequence may be: after the transmission layer of the receiving end device obtains the frame arrival time sequence at the current moment, it first obtains a frame interval time sequence (which can be recorded as L) based on the frame arrival time sequence, and the frame interval time sequence is specifically a time sequence composed of the time difference between the arrival times corresponding to each two adjacent video frames within a preset time length. For example, assuming that the frame arrival time sequence D=(d 1 d 2 ,……,dm ,……,d n×t ), then the frame interval time sequence L = (d 2 -d 1 ,d 3 -d 2 ,……,d m -d m-1 ,……,d n×t -d n×t-1 ). The transport layer of the receiving device obtains the frame interval time sequence based on the current frame arrival time sequence, and further determines the network quality level based on the frame interval time sequence.

[0010] In the above-mentioned implementation mode of the present application, it is specifically explained that the transmission layer of the receiving device specifically utilizes the distribution of the frame interval time series to evaluate the real-time network status. Through the distribution of the frame interval time series, it can be directly observed whether each video frame has severe jitter during the transmission process, which is intuitive.

[0011] In a possible implementation of the first aspect, the transmission layer of the receiving device obtains the arrival time of the video frame transmitted to the transmission layer. The specific implementation method can be: first, the transmitting device marks the frame boundary information for each video frame of the video to be transmitted, and the video frame marked with the frame boundary information is then sent to the receiving device, so that the transmission layer of the receiving device can obtain the frame boundary information of the video frame, and further identify the arrival time of the corresponding video frame transmitted to the transmission layer according to the frame boundary information. It should be noted here that generally speaking, the frame boundary information can only be identified by the application layer of the device, and other layers (such as the transport layer and the network layer) cannot identify the frame boundary information. The data processed by these layers are generally data packets. Therefore, in some embodiments of the present application, the application layer of the transmitting device can first mark the frame boundary information of each video frame. The role of the marking is to enable the corresponding video frame to be transmitted to the transmission layer of the receiving device. When the transmission layer recognizes the frame boundary information, it means that the last data packet of this video frame (this is because a video frame generally includes several data packets) has been transmitted. The time when the last data packet of the video frame is transmitted to the transmission layer is the arrival time of the video frame.

[0012] In the above-mentioned implementation mode of the present application, it is specifically explained that whether a video frame is transmitted is identified based on the marked frame boundary information, and the arrival time of a video frame transmitted to the transmission layer is recorded based on the marked frame boundary information, which is feasible.

[0013] In a possible implementation of the first aspect, since the transmission layer of the receiving device evaluates the network quality during the video transmission process in real time, the preset duration may be periodic, and the frame arrival time sequence composed of each arrival moment within the periodic preset duration is also periodically updated. Therefore, in some embodiments of the present application, the transmission layer of the receiving device obtains the frame arrival time sequence composed of each arrival moment within the preset duration by determining each arrival moment within the preset duration by means of a sliding window, and obtains the frame arrival time sequence composed of the arrival moments contained in the corresponding window size, and then the transmission layer updates the frame arrival time sequence based on the sliding frequency of the sliding window to obtain the frame arrival time sequence after each update.

[0014] In the above-mentioned implementation mode of the present application, it is specifically explained that the transmission layer of the receiving device updates the frame arrival time sequence by means of a sliding window, and the update frequency is determined by the sliding frequency of the sliding window, and the specific feasibility.

[0015] In a possible implementation of the first aspect, the frame arrival time sequence is updated periodically, so when the frame arrival time sequence is updated, the process of determining the network quality level according to the frame arrival time sequence is also periodically executed, and the obtained network quality level is also periodically updated. That is, whenever the frame arrival time sequence is updated, the transmission layer of the receiving device uses the frame arrival time sequence after each update as the current frame arrival time sequence, and repeatedly executes the step of determining the network quality level according to the frame arrival time sequence, thereby realizing real-time evaluation of the network quality level. It should be noted that the way in which the transmission layer of the receiving device determines the network quality level can also be: first obtain the frame interval time sequence based on the frame arrival time sequence, and then determine the network quality level based on the frame interval time sequence. In this case, when the frame arrival time sequence is updated, the corresponding frame interval time sequence also needs to be synchronously updated according to the updated frame arrival time sequence. Similarly, when the transmission layer of the receiving device determines the network quality level according to the frame interval time sequence, since the frame interval time sequence is periodically updated, the process of determining the network quality level according to the frame interval time sequence is also periodically executed, and the obtained network quality level is also periodically updated. In summary, whenever the frame arrival time sequence is updated, the transmission layer of the receiving device will use the updated frame arrival time sequence as the current frame arrival time sequence, and repeatedly execute the steps of obtaining the frame interval time sequence based on the frame arrival time sequence, and determining the network quality level based on the frame interval time sequence, thereby realizing real-time evaluation of the network quality level.

[0016] In the above implementation of the present application, since the update of the frame arrival time series is achieved by means of a sliding window, the update of the network quality level assessment result is also indirectly achieved, thereby achieving the purpose of real-time assessment of the network quality level and effectively improving the real-time performance.

[0017] In a possible implementation of the first aspect, if the distribution of the frame interval time series is close to the Poisson distribution, the network condition is considered to be good, and if it is close to the exponential distribution, the network condition is considered to be poor. Therefore, in an embodiment of the present application, the real-time network status information can be indirectly obtained by calculating the distance between the frame interval time series and the Poisson distribution, that is, the distance between the frame interval time series and the Poisson distribution can be calculated, and the corresponding network quality level can be determined based on the distance. The specific implementation process includes: first, after the transmission layer of the receiving device obtains the current frame interval time series, it will first calculate the distance between the frame interval time series and the Poisson distribution, which can be called the first distance. At this time, the Poisson distribution is the distribution of the frame interval time series (which can be called the target frame interval time series) in the interference-free network state. After calculating the first distance, the transmission layer of the receiving device can further determine which preset distance interval the first distance belongs to. Each preset distance interval corresponds to a network quality level, that is, there is a mapping relationship (which can be called a first mapping relationship) between each preset distance interval (which can be called a first distance interval) and the network quality level. Based on the mapping relationship, the transmission layer can obtain the network quality level (which can be called a target network quality level) corresponding to the distance interval (which can be called a first target distance interval) to which the first distance belongs.

[0018] In the above-mentioned implementation mode of the present application, it is specifically explained that the transmission layer of the receiving device calculates the distance between the frame interval time series and the Poisson distribution, and determines the corresponding network quality level based on the distance, thereby converting the evaluation of the network quality level into a determination of the distance size, which is feasible.

[0019] In a possible implementation of the first aspect, there are multiple implementations of how the transmission layer calculates the first distance between the frame interval time series and the Poisson distribution. One of the implementations is introduced below: first, the transmission layer obtains the first cumulative distribution function of the Poisson distribution, and then calculates the first distance between the frame interval time series and the first cumulative distribution function at at least one preset quantile point through the transmission layer.

[0020] In the above implementation of the present application, it is specifically described that the distance between the frame interval time series and the cumulative distribution function of the Poisson distribution is calculated at one or more quantile points as the first distance. This method of calculating the distance is simple and easy to operate.

[0021] In a possible implementation of the first aspect, the distance between the frame interval time sequence and the exponential distribution can also be calculated, and the corresponding network quality level can be determined based on the distance. The specific implementation process includes: first, after the transmission layer of the receiving device obtains the current frame interval time sequence, it will first calculate the distance between the frame interval time sequence and the exponential distribution. The distance can be called the second distance. The exponential distribution at this time is the distribution of the frame interval time sequence (can be called the target frame interval time sequence) under the strong interference network state. After calculating the second distance, the transmission layer of the receiving device can further determine which preset distance interval the second distance belongs to. Similarly, each preset distance interval corresponds to a network quality level, that is, there is a mapping relationship (can be called the second mapping relationship) between each preset distance interval (can be called the second distance interval) and the network quality level. Based on the mapping relationship, the transmission layer can obtain the network quality level (can be called the target network quality level) corresponding to the distance interval (can be called the second target distance interval) to which the second distance belongs.

[0022] In the above-mentioned implementation mode of the present application, it is specifically explained that the transmission layer of the receiving device can also calculate the distance between the frame interval time series and the exponential distribution, and determine the corresponding network quality level based on the distance, which has selectivity and flexibility.

[0023] In a possible implementation of the first aspect, there are multiple implementation methods for how the transmission layer calculates the second distance between the frame interval time series and the exponential distribution. One of the implementation methods is introduced below: obtaining the second cumulative distribution function of the exponential distribution through the transmission layer; then, calculating the second distance between the frame interval time series and the second cumulative distribution function at at least one preset quantile point through the transmission layer.

[0024] In the above-mentioned implementation manner of the present application, it is specifically described that the distance between the frame interval time series and the cumulative distribution function of the exponential distribution can also be calculated at one or more quantile points as the second distance, which has selectivity and flexibility.

[0025] In a possible implementation of the first aspect, the maximum value (i.e., the value at the cumulative probability distribution Probability=1) and the minimum value (i.e., the value at the cumulative probability distribution Probability=0) of the Poisson distribution and the exponential distribution are relatively small and are not suitable for calculating the distribution distance. However, at the 95% quantile and the 5% quantile, the two distributions are very different. Therefore, the quantiles with large distribution differences can be used as valid distribution distance calculation points, for example, the 95% quantile, the 5% quantile, etc.

[0026] In the above-mentioned embodiment of the present application, the basic principle followed by the value of at least one quantile for calculating the distance (first distance or second distance) is specifically explained, that is, the value of the vertical coordinate with a large difference between the Poisson distribution and the exponential distribution can be used as the quantile, thereby improving the accuracy of the distance calculation result.

[0027] In a possible implementation of the first aspect, when the transport layer of the receiving device obtains the current network quality level based on the frame interval time sequence, the network quality level can be fed back to the application layer of the receiving device, or, when the network quality level changes, the transport layer feeds back the network quality level to the application layer of the receiving device, so that the application layer adjusts parameters based on the network quality level. For example, if the network quality level currently evaluated by the transport layer is 3, and the network quality level last evaluated is 2, then the transport layer can feed back the network quality level 3 to the application layer. Assuming that the higher the network quality level, the better the network quality, then the application layer can know that the network quality has improved, and can adjust parameters according to the current network quality level 3.

[0028] In the above-mentioned implementation mode of the present application, it is specifically explained that the transmission layer of the receiving device can also send the evaluated network quality level to the application layer when the network quality level changes, so that the application layer can make adaptive adjustments to improve the quality of the projected image.

[0029] In a possible implementation of the first aspect, after the application layer of the receiving device receives the network quality level fed back by the transport layer of the receiving device, the application layer may adjust parameters according to the network quality level by adjusting the cache size of the frame buffer memory on the receiving device according to the network quality level.

[0030] In the above-mentioned implementation mode of the present application, a method for adjusting parameters at the application layer of a receiving device is specifically described, which is easy to operate.

[0031] In a possible implementation of the first aspect, the specific way in which the application layer of the receiving device adjusts the cache size may be: when the current network status reflected by the network quality level improves, the application layer reduces the cache of the frame buffer memory; when the current network status reflected by the network quality level deteriorates, the application layer increases the cache of the frame buffer memory.

[0032] In the above-mentioned implementation mode of the present application, it is specifically explained how the application layer of the receiving device adjusts the cache size, which is feasible.

[0033] In a possible implementation of the first aspect, after the application layer of the receiving device receives the network quality level fed back by the transport layer of the receiving device, the application layer may adjust parameters according to the network quality level in the following manner: the application layer sends an instruction to the sending device according to the network quality level, and the instruction is used to instruct the sending device to adjust the bit rate of video encoding based on the network quality level. For example, assuming that the current network state reflected by the current network quality level has improved, the instruction sent by the application layer may be to instruct the sending device to increase the bit rate of video encoding. Conversely, assuming that the current network state reflected by the current network quality level has improved, the instruction sent by the application layer may be to instruct the sending device to reduce the bit rate of video encoding.

[0034] In the above implementation mode of the present application, it is specifically explained that the application layer of the receiving device can also send an instruction of network quality level change to the sending device according to the network quality level, and the sending device then adjusts the video encoding bit rate based on the instruction, which is flexible.

[0035] A second aspect of the embodiment of the present application provides a computer device, which has the function of implementing the method of the first aspect or any possible implementation of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0036] A third aspect of an embodiment of the present application provides a computer device, which may include a memory, a processor, and a bus system, wherein the memory is used to store programs, and the processor is used to call the programs stored in the memory to execute the method of the first aspect of the embodiment of the present application or any possible implementation method of the first aspect.

[0037] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, the computer can execute the method of the first aspect or any possible implementation of the first aspect.

[0038] A fifth aspect of an embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the method of the first aspect or any possible implementation of the first aspect.

[0039] The sixth aspect of the embodiment of the present application provides a chip, which includes at least one processor and at least one interface circuit, the interface circuit is coupled to the processor, the at least one interface circuit is used to perform a transceiver function, and send instructions to at least one processor, the at least one processor is used to run a computer program or instruction, which has the function of implementing the method of the first aspect or any possible implementation of the first aspect, the function can be implemented by hardware, can also be implemented by software, can also be implemented by a combination of hardware and software, the hardware or software includes one or more modules corresponding to the above functions. In addition, the interface circuit is used to communicate with other modules outside the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A diagram showing a change process of a frame interval in which 150 Mbps interference is applied in the middle stage of a video transmission process provided by an embodiment of the present application;

[0041] Figure 2 A diagram showing a change process of a frame interval in which 300 Mbps interference is applied during the middle stage of a video transmission process provided by an embodiment of the present application;

[0042] Figure 3 A schematic flow chart of a method for evaluating network quality in video transmission in a near-field scenario provided by an embodiment of the present application;

[0043] Figure 4 A statistical schematic diagram of updating a frame interval time series according to a sliding window method provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of an implementation method for updating a frame arrival time sequence provided in an embodiment of the present application;

[0045] Figure 6 A schematic diagram of another implementation method for updating the frame arrival time sequence provided in an embodiment of the present application;

[0046] Figure 7 A schematic diagram of the distribution of a frame interval time sequence in an interference-free network provided by an embodiment of the present application;

[0047] Figure 8 A schematic diagram of the distribution of a frame interval time sequence in a network with strong interference provided in an embodiment of the present application;

[0048] Fig. 9 A schematic diagram of the distribution of the frame interval time sequence in a network with a certain degree of interference provided by an embodiment of the present application;

[0049] Fig.10Probability distribution diagram of CDF of Poisson distribution and exponential distribution provided in the embodiment of the present application;

[0050] Fig.11 A CDF comparison diagram of frame interval time series under different network conditions provided in an embodiment of the present application;

[0051] Fig.12 A schematic diagram of a video frame transmission process for a wireless screen projection scenario provided in an embodiment of the present application;

[0052] Fig.13 A schematic diagram of the end-to-end delay change after applying the method of the embodiment of the present application provided in the embodiment of the present application;

[0053] Fig.14 A schematic diagram of the change of frame interval of the method of the embodiment of the present application provided in the embodiment of the present application applied to the dynamic caching technology;

[0054] Fig.15 A schematic diagram of a computer device provided in an embodiment of the present application;

[0055] Fig.16 Another schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The embodiments of the present application provide a method and device for evaluating network quality in video transmission in a near-field scenario, which are used to evaluate the real-time network status by using the distribution of frame arrival time series at the transmission layer of the receiving device. Since the transmission layer is between the network layer and the application layer of the receiving device, the transmission layer can perceive the changes in the network status in advance of the application layer, thereby improving the timeliness of the network quality evaluation; and compared with single-point information, the time series can better reflect the distribution law, thereby improving the accuracy of the network quality evaluation, thereby solving the problem of inaccurate and untimely real-time network quality evaluation in the existing technology.

[0057] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0058] In order to better understand the scheme of the embodiment of the present application, the following first introduces the relevant terms and concepts that may be involved in the embodiment of the present application. It should be understood that the interpretation of the relevant concepts may be limited due to the specific circumstances of the embodiment of the present application, but it does not mean that the present application is limited to the specific circumstances. There may be differences in the specific circumstances of different embodiments, which are not specifically limited here.

[0059] (1) Time series

[0060] A time series can also be called a dynamic series, which refers to a series in which the values ​​of the same statistical indicator are arranged in the order of their occurrence. Specifically, a time series is a set of random variables sorted by time. The time series data essentially reflects the trend of one or more random variables changing over time. Depending on the observation time, the time in the time series can be years, quarters, months, or any other time form. In the embodiment of the present application, the time in the time series is ms.

[0061] (2) Frame arrival time sequence

[0062] In the embodiment of the present application, the frame arrival time sequence represents: the time sequence composed of each arrival time of each video frame sent by the transmitting device to the transmission layer of the receiving device within the preset time length. For example, assuming that the preset time length is 3 seconds (second, s), the number of frames per second (fps) of the video to be transmitted by the transmitting device is 60, which can also be called the frame rate of 60fps, then a total of 180 video frames will be transmitted to the secondary transmission layer of the receiving device within the preset time length, and there will be 180 corresponding arrival times. The time sequence composed of the 180 arrival times is called the frame arrival time sequence.

[0063] It should be noted that in the embodiment of the present application, the frame arrival time sequence can be recorded as D, and its length can be expressed as "n*t", where n represents the frame rate of the video to be transmitted by the transmitting device, and t represents the preset duration. For example, assuming n=60fps and t=3s, the corresponding frame arrival time sequence D=(d 1 d 2 ,……,d m ,……,d n×t ), where d m It is the video frame of the target video transmitted to the transport layer of the receiving device at the mth frame within the current preset duration.

[0064] (3) Frame interval time sequence

[0065] In the embodiment of the present application, the frame interval time sequence represents: a time sequence composed of the time difference between the arrival times corresponding to each two adjacent video frames within a preset duration.

[0066] Still taking the above example, assuming that the frame arrival time sequence D = (d 1 ,d 2 ,……,d m ,……,d n×t ), then the frame interval time sequence L = (d 2 -d 1 ,d 3 -d 2 ,……,d m -d m-1 ,……,d n×t -d n×t-1 ).

[0067] It should be noted that, in the embodiment of the present application, the frame interval refers to the time difference between the arrival times of two adjacent video frames transmitted to the transmission layer of the receiving device, and multiple time differences constitute the frame interval time sequence.

[0068] (4) Cumulative distribution function (CDF)

[0069] The cumulative distribution function, also known as the distribution function, is the integral of the probability density function and can fully describe the probability distribution of a real random variable X. It is usually marked with uppercase CDF, as opposed to the probability density function (pdf).

[0070] Specifically, for all real numbers x, the cumulative distribution function is defined as: X (x) = P(X≤x). That is, the cumulative distribution function represents: for a discrete variable, the sum of the probabilities of all values ​​less than or equal to a.

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

[0072] First of all, before introducing the embodiments of the present application, the basic principles on which the network quality assessment method in video transmission in a near-field scenario proposed by the present application is based are briefly introduced to facilitate subsequent understanding of the embodiments of the present application.

[0073] Since video transmission in near-field scenarios usually uses WiFi, P2P and other methods to achieve screen synchronization between the sending device and the receiving device, in near-field scenarios, the characteristics of video transmission are: regardless of the network status, different videos with the same total number of frames are transmitted from the receiving device to the receiving device in basically the same time. To facilitate understanding of this feature, an example is given here: Assume that there are 3 videos of 10 seconds each, recorded as video 1, video 2, and video 3, and assume that the frame rates of these 3 videos are also the same (such as 60fps), then regardless of the network quality during the video transmission process, the time it takes to complete the transmission of video 1, video 2, and video 3 from the sending device to the receiving device is basically the same. It should be noted that although the network quality during video transmission will not affect the total time it takes to complete a video transmission, network interference will cause the arrival time of the video frame transmission to the receiving device to be unstable, that is, the frame interval is uniform. The embodiment of the present application measured the frame interval under two different network conditions, and the results are as follows: Figure 1 and Figure 2 As shown, Figure 1 A diagram showing a change process of the frame interval of applying 150Mbps interference in the middle stage of the video transmission process provided by an embodiment of the present application, Figure 2 A diagram of a change process of the frame interval of applying 300Mbps interference in the middle stage of the video transmission process provided by the embodiment of the present application, wherein: Figure 1 and Figure 2 The horizontal axis is the frame number, which is used to represent the frame number of the current video transmission, and the vertical axis is the time, which is used to represent the time difference between the arrival time of the current video frame (e.g., the xth frame) and the previous video frame (e.g., the x-1th frame) respectively transmitted to the transmission layer of the receiving end device. It should be noted here that how to impose interference during video transmission is a conventional operation, which does not involve the invention of this application and will not be repeated here.

[0074] Depend on Figure 1 and Figure 2 It can be seen that in the middle stage of applying interference, the greater the interference, the worse the network quality, and the stronger the uneven frame interval (also known as frame interval jitter). That is to say, in the process of video transmission in the near-field scenario, the greater the interference imposed in the network channel, the greater the frame interval jitter. Therefore, according to the distribution of the frame interval time series, the current network quality state can be indirectly evaluated. The embodiment of the present application uses the frame interval as an evaluation parameter to calculate the real-time network quality according to its jitter state and distribution.

[0075] Based on the above, the embodiment of the present application uses the arrival time of each video frame as an evaluation parameter and calculates the real-time network quality according to its jitter state and distribution. Figure 3 , Figure 3A flow chart of a method for evaluating network quality in video transmission in a near-field scenario provided in an embodiment of the present application is provided. The method is applied at the transmission layer of a receiving device and may specifically include the following steps:

[0076] 301. A transport layer of a receiving device obtains an arrival time of a video frame transmitted to the transport layer. The video frame is sent from a transmitting device to a receiving device, and one video frame corresponds to one arrival time.

[0077] First, the transport layer of the receiving device obtains the arrival time of the video frame transmitted to the transport layer. The video frame is sent by the sending device to the receiving device, and one video frame corresponds to one arrival time.

[0078] For ease of understanding, the following example is used for illustration: Assume that the transmitting device has a 10s video A to be sent, and assume that the frame rate is 60fps, then the number of frames of this video A is 600, and these 600 video frames will be transmitted from the transmitting device to the transmission layer of the receiving device, and there will be 600 corresponding arrival times, and each video frame corresponds to an arrival time. When all 600 video frames are transmitted to the transmission layer of the receiving device and further obtained by the application layer of the receiving device, it means that the video A is successfully transmitted from the transmitting device to the receiving device. It should be noted that in the embodiment of the present application, the arrival time of the video frame transmitted to the transmission layer by the transmission layer of the receiving device in step 301 can refer to the arrival time of all the 600 video frames, or one or more of them, for example, only 50 consecutive video frames are obtained, which is not limited here.

[0079] It should be noted that, in some embodiments of the present application, the specific implementation method for the transport layer of the receiving device to obtain the arrival time of the video frame transmitted to the transport layer may be: first, the sending device marks the frame boundary information for each video frame of the video to be transmitted, and the video frame marked with the frame boundary information is then sent to the receiving device, so that the transport layer of the receiving device can obtain the frame boundary information of the video frame, and further identify the arrival time of the corresponding video frame transmitted to the transport layer according to the frame boundary information. It should be noted here that, generally speaking, frame boundary information can only be identified by the application layer of the device, and other layers (such as the transport layer and the network layer) cannot identify frame boundary information. The data processed by these layers are generally data packets. Therefore, in some embodiments of the present application, the application layer of the sending device can first mark the frame boundary information for each video frame. The purpose of the marking is to enable the transport layer of the receiving device to recognize that the video frame has been transmitted when the corresponding video frame is transmitted to the transport layer of the receiving device. When the transport layer recognizes the frame boundary information, it means that the last data packet of this video frame (this is because a video frame generally includes several data packets) has been transmitted. The moment when the last data packet of the video frame is transmitted to the transport layer is the arrival moment of the video frame.

[0080] 302. The transport layer obtains a frame arrival time sequence consisting of each arrival time within a preset duration.

[0081] Afterwards, the transmission layer of the receiving device further obtains a frame arrival time sequence composed of each arrival time within a preset duration. In the embodiment of the present application, the frame arrival time sequence can be recorded as D.

[0082] Here we still take the example in the above step 301 as an example: Assume that the sending end device has a 10s video A to be sent, and assume that the frame rate is 60fps, then the number of frames of this video A is 600. These 600 video frames will be transmitted from the sending end device to the transmission layer of the receiving end device, and there will be 600 corresponding arrival times. In step 302, a preset duration will be set in advance on the transmission layer of the receiving end device. For example, the preset duration is 3s. Since the frame rate of video A is 60fps, there will be a total of 60×3=180 video frames within the preset duration of 3s, corresponding to 180 arrival times. Then the frame arrival time sequence composed of each arrival time within the preset duration of 3s can be recorded as: frame arrival time sequence D=(d x ,d x+1 ,……,d x+179 ), x≥1.

[0083] It should be noted that in the embodiments of the present application, since the transmission layer of the receiving device evaluates the network quality during the video transmission process in real time, the preset duration can be periodic, and the frame arrival time sequence composed of each arrival moment within the periodic preset duration is also periodically updated. Therefore, in some embodiments of the present application, the way in which the transmission layer of the receiving device obtains the frame arrival time sequence composed of each arrival moment within the preset duration can specifically be to determine each arrival moment within the preset duration by means of a sliding window, and obtain the frame arrival time sequence composed of the arrival moments contained in the corresponding window size, and then the transmission layer updates the frame arrival time sequence based on the sliding frequency of the sliding window to obtain the frame arrival time sequence after each update.

[0084] To understand how to update the frame arrival time series based on the sliding window method, the following example is used for illustration: Figure 4 , Figure 4 A statistical diagram of updating the frame interval time series according to the sliding window method provided in the embodiment of the present application. Assuming that the transmitting end device has a 10s video A to be sent, and assuming that the frame rate is 60fps, then the total number of frames of this video A is 600. These 600 video frames will be transmitted from the transmitting end device to the transmission layer of the receiving end device, and there will be 600 corresponding arrival times. Figure 4 In the example, since the preset duration is 3s, the window size of the sliding window is 180 video frames. Assuming that the current time t y The sliding window counts frames 1001 to 1180, so at the current time t y The obtained frame arrival time sequence D y =(d 1001 ,d 1002 ,……,d 1180 ).

[0085] It should be noted here that Figure 4 In the example, the preset duration is 3s, and the window size of the sliding window is 180 video frames. However, in the earliest 180 video frames obtained by the receiving device (that is, in the initial duration of less than 3s), the receiving device can only record the arrival time of the video frame transmitted to the transport layer, because the total number of video frames transmitted to the transport layer at this time is less than the frame number requirement of the frame arrival time sequence. When the arrival time of the video frame transmitted to the transport layer reaches 180, the frame arrival time sequence is recorded again. For example, when the 180th video frame is transmitted to the transport layer of the receiving device, the first frame arrival time sequence D = (d 1 ,d 2 ,……,d 180 ). Then, the frame arrival time sequence D = (d1 d 2 ,……,d 180 ) to update.

[0086] Because the update method of the frame arrival time series is based on the sliding frequency of the sliding window, the method of updating the frame arrival time series will be different depending on the method of adopting the sliding frequency of the sliding window. In the embodiment of the present application, the method of adopting the sliding frequency includes but is not limited to:

[0087] (1) Whenever a new video frame arrives at the transport layer of the receiving device, the frame arrival time sequence is updated.

[0088] In this implementation, each time the transport layer of the receiving device obtains the arrival time of a new video frame, it adds the arrival time of the video frame to the sliding window and correspondingly removes the arrival time of the earliest video frame in the window.

[0089] For ease of understanding, the following Figure 4 For details, please refer to Figure 5 , Figure 5 A schematic diagram of an implementation method for updating the frame arrival time sequence provided in an embodiment of the present application, assuming that the selected preset duration is 3s, and assuming that the current time is t 1 time, and t 1 The frame arrival time sequence obtained at the moment is D 1 =(d 1001 d 1002 ,……,d 1179 d 1180 ), and assume that at t 2 At time d, the 1181st video frame 1181 Transmitted to the transport layer of the receiving device, the current time is updated to t 2 time, and t 2 The frame arrival time sequence obtained at the moment is D 2 =(d 1002 d 1003 ,……,d 1180 d 1181 ), similarly, assuming that at t 3 At time d, the 1182th video frame 1182 Transmitted to the transport layer of the receiving device, the current time is updated to t 3 time, and t 3 The frame arrival time sequence obtained at the moment is D 3 =(d 1003 d 1004 ,……,d 1181 d 1182), and so on, until the 10s of video A to be sent by the sending device is completely transmitted.

[0090] In the embodiment of the present application, since the transmission layer of the receiving device updates the frame arrival time sequence D within the preset time length each time it obtains the arrival time of a video frame, the advantages of this implementation method are: high update frequency and more timely updates, so that the subsequent evaluation of network quality based on the frame arrival time sequence is more timely and real-time.

[0091] (2) Whenever n new video frames arrive at the transport layer of the receiving device, the frame arrival time sequence is updated, where n ≥ 2.

[0092] In this implementation, every time the transport layer of the receiving device obtains the arrival time of n (n≥2) new video frames, it adds the n arrival times corresponding to the n video frames to the sliding window, and correspondingly removes the n arrival times corresponding to the first n video frames that arrived earliest in the window. In simple terms, the difference between this method and the first implementation is that the first implementation is that the receiving device updates the frame arrival time sequence every time it obtains the arrival time of a new video frame, and the second implementation is that the receiving device updates the frame arrival time sequence every time it obtains the n arrival times of n new video frames.

[0093] Also for ease of understanding, the following is still Figure 4 For details, please refer to Figure 6 , Figure 6 A schematic diagram of another implementation method of updating the frame arrival time sequence provided in the embodiment of the present application, assuming that the selected preset duration is 3s, and assuming that n=3, that is, the transmission layer of the receiving device updates the frame arrival time sequence once every 3 arrival times are obtained. Figure 6 As shown, assuming that the current time is t 1 time, and t 1 The frame arrival time sequence obtained at the moment is D 1 =(d 1001 d 1002 ,……,d 1179 d 1180 ), and assume that at t 2 At time d, the 1181st, 1182nd, and 1183rd video frames 1181 d 1182 d 1183 All are transmitted to the transport layer of the receiving device, then the current time is updated to t 2 time, and t 2 The frame arrival time sequence obtained at the moment is D 2 =(d 1004d 1005 ,……,d 1182 d 1183 ), similarly, assuming that at t 3 At time d, the 1184th, 1185th, and 1186th video frames 1184 d 1185 d 1186 All are transmitted to the transport layer of the receiving device, then the current time is updated to t 3 time, and t 3 The frame arrival time sequence obtained at the moment is D 3 =(d 1007 d 1008 ,……,d 1185 d 1186 ), and so on, until the 10s of video A to be sent by the sending device is completely transmitted.

[0094] In the embodiment of the present application, since the transmission layer of the receiving device updates the frame arrival time sequence D within a preset time length every time it obtains the arrival time of n video frames, the update frequency of this implementation method is not as high as the first method, but the advantage is that it reduces the amount of calculation and ensures the real-time nature of network evaluation while taking into account computing resources.

[0095] (3) Every preset time t', the sliding window slides with a preset step size r to update the frame arrival time series.

[0096] In this implementation, the frame arrival time sequence is no longer updated based on the arrival time of one or more video frames obtained by the transport layer of the receiving device, but is updated based on the preset duration. Specifically, every preset duration t' (assuming 1s), the sliding window slides with a preset step length r (assuming r is 2 video frames) to update the frame arrival time sequence, that is, every 1s, the sliding window slides forward 2 video frames, regardless of how many new video frames are received by the transport layer of the receiving device within this 1s. The specific sliding method of the sliding window is similar to the above, and is not illustrated here.

[0097] 303. The transport layer determines a network quality level according to a frame arrival time sequence, and the network quality level is used to reflect a current network status.

[0098] After the transport layer of the receiving device obtains the frame arrival time sequence at the current moment, it can determine the network quality level based on the frame arrival time sequence, wherein the quality network level is used to reflect the network status during the video transmission in the current near-field scenario. Specifically, in one implementation of the present application, after the transport layer of the receiving device obtains the frame arrival time sequence D at the current moment, it can obtain a frame interval time sequence (which can be recorded as L) based on the frame arrival time sequence. The frame interval time sequence is specifically a time sequence composed of the time difference between the arrival times corresponding to each two adjacent video frames within a preset duration. For example, assuming that the frame arrival time sequence D = (d 1 d 2 ,……,d m ,……,d n×t ), then the frame interval time sequence L = (d 2 -d 1 d 3 -d 2 ,……,d m -d m-1 ,……,d n×t -d n×t-1 ). The transport layer of the receiving device obtains the frame interval time sequence based on the current frame arrival time sequence, and further determines the network quality level based on the frame interval time sequence.

[0099] When the receiving device obtains the frame interval time sequence L according to the current frame arrival time sequence D, it will further determine the network quality level according to the frame interval time sequence L, wherein the quality network level is used to reflect the network status during the video transmission process in the current near-field scenario.

[0100] Next, we will introduce in detail how the transmission layer of the receiving device determines the network quality level based on the frame interval time sequence. Before the above introduction to the embodiments of the present application, the present application has introduced the basic principles on which the network quality assessment method in video transmission in a near-field scenario proposed by the present application is based, that is, in a near-field scenario, the characteristic of video transmission is that regardless of the network status, different videos with the same total number of frames are transmitted from the receiving device to the receiving device in basically the same time. Due to the above characteristics of video transmission, the frame interval mean can be calculated according to the following formula (1):

[0101]

[0102] Among them, mean (Frame Interval) is the mean frame interval of a video, which can be abbreviated as M, and the unit is ms.

[0103] In the near-field scenario, the characteristic of video transmission is that regardless of the network status, the time (remembered as T) required to complete the transmission of different videos with the same total number of frames from the receiving device to the receiving device is basically the same, so we can get:

[0104] d(n+1)-d1=T (2)

[0105] And because:

[0106] n=fps*(T / 1000) (3)

[0107] Therefore, according to the above formulas (1) to (3), it can be deduced that:

[0108]

[0109] Among them, fps is the specific value of the frame rate of the video.

[0110] It can be seen from formula (4) that in any network state, the mean frame interval of a video with a certain frame rate is fixed. For example, in a statistical time period, when the frame rate is the same, regardless of whether the video duration is 10s or 50s, the value of the mean frame interval is the same. For example, assuming the frame rate is k, the mean frame interval M = 1000 ÷ k, in ms. Take video B with a frame rate of 60fps as an example (i.e. k = 60). During the transmission of video B, no matter what degree of network interference is applied during its transmission, its mean frame interval is always 1000 ÷ 60 ≈ 16.66ms.

[0111] Although the mean frame interval is always a fixed value for videos with the same frame rate, network interference will cause the arrival time of video frames transmitted to the receiving device to be unstable, that is, uneven frame intervals (also called frame interval jitter). The greater the applied network interference and the worse the network quality, the more intense the frame interval jitter. The following describes the distribution of frame interval time series based on the different applied network interferences. This application has statistically analyzed the distribution of frame interval time series under three types of network interference: no interference (i.e., high network quality), normal intensity interference (i.e., normal network quality), and strong interference (i.e., low network quality). For details, please refer to Figure 7 , Figure 8 as well as Fig. 9 ,in, Figure 7 A schematic diagram of the distribution of the frame interval time sequence in an interference-free (channel load 0) network provided in an embodiment of the present application, Figure 8 A schematic diagram of the distribution of frame interval time series in a network with strong interference (eg, channel load 800) provided in an embodiment of the present application, Fig. 9A schematic diagram of the distribution of the frame interval time sequence in a network with a certain degree of interference (eg, channel load 600) provided in an embodiment of the present application. Figures 7 to 9 It can be seen that the distribution of the frame interval time series during video transmission is different under networks with different network interference. Further, the present application conducts a specific analysis of the frame interval time series under these three interference levels and obtains the following analysis results: 1) Figure 7 The frame interval distribution under the interference-free strong network state is close to the Poisson distribution, and the maximum probability density is achieved at 16.66ms; 2) Figure 8 The frame interval distribution under the weak network state with strong interference is close to exponential distribution, and the probability density is maximum at the minimum frame interval; 3) Fig. 9 The frame interval distribution under the slightly weaker network state under the slightly weaker interference (ie, the interference imposed is between no interference and strong interference) is between the Poisson distribution and the exponential distribution.

[0112] In summary, a conclusion can be drawn: if the frame interval time series distribution is close to Poisson distribution, the network condition is considered to be good, and if it is close to exponential distribution, the network condition is considered to be poor. Therefore, in the embodiment of the present application, the real-time network condition information can be indirectly obtained by calculating the distance between the frame interval time series and the Poisson distribution and / or exponential distribution, including but not limited to the following calculation methods:

[0113] (1) Calculate the distance between the frame interval time series and the Poisson distribution, and determine the corresponding network quality level based on the distance.

[0114] In this implementation, first, after the transmission layer of the receiving device obtains the current frame interval time sequence L, it will first calculate the distance between the frame interval time sequence L and the Poisson distribution. This distance can be called the first distance. The Poisson distribution at this time is the distribution of the frame interval time sequence (can be called the target frame interval time sequence) in the interference-free network state. After calculating the first distance, the transmission layer of the receiving device can further determine which preset distance interval the first distance belongs to. Each preset distance interval corresponds to a network quality level, that is, there is a mapping relationship (can be called the first mapping relationship) between each preset distance interval (can be called the first distance interval) and the network quality level. Based on this mapping relationship, the transmission layer can obtain the network quality level (can be called the target network quality level) corresponding to the distance interval (can be called the first target distance interval) to which the first distance belongs.

[0115] To facilitate understanding of the above process, an example is given below: Assuming that the network quality level is divided into 4 levels (assuming that the higher the network quality level, the better the network quality), namely network quality level 1, network quality level 2, network quality level 3, and network quality level 4, which are used to reflect different network states, then 4 distance intervals need to be preset accordingly. Since the closer the frame interval time series distribution is to the Poisson distribution, the better the network state is, then the smaller the distance included in the distance interval is, the higher the network quality level is. Assuming that these 4 distance intervals are distance interval A, distance interval B, distance interval C, and distance interval D, these distance intervals have no intersection with each other, and assuming that a∈A, b∈B, c∈C, and d belong to D, and a>b>c>d, the first mapping relationship is: distance interval A corresponds to network quality level 1, distance interval B corresponds to network quality level 2, distance interval C corresponds to network quality level 3, and distance interval D corresponds to network quality level 4. Therefore, when the distance between the frame interval time series L calculated by the transmission layer of the receiving device and the Poisson distribution is l 1 , and l 1 ∈C, from the above first mapping relationship, it can be known that the distance interval C corresponds to the network quality level 3, so it can be known that the network status at the current moment is the network quality level 3.

[0116] It should be noted that the number of network quality levels shown above can also be divided into fewer levels (e.g., 2 network quality levels) or more levels (e.g., 10 network quality levels), which can be set according to user needs and are not limited here. However, two principles must be met: 1) The number of network quality levels set corresponds to the number of distance intervals defined, so that the network quality level and the distance interval are in a one-to-one correspondence; 2) The smaller the first distance, the better the network status reflected by the corresponding network quality level.

[0117] It should also be noted that the network quality levels shown above are distinguished by numbers, and it is assumed that the higher the network quality level, the better the network quality. Of course, the network quality level can also be set to be the lower the network quality level, the better the network quality. This is not limited here. In practical applications, network quality levels can be distinguished in other ways, such as letters, specific characters, etc., as long as the identifier can realize the function of distinguishing different network quality levels, and this is not limited here. The distinction between different distance intervals is similar and will not be repeated here.

[0118] It should also be noted that, in the embodiment of the present application, there are multiple implementations of how the transport layer calculates the first distance between the frame interval time series L and the Poisson distribution. One of the implementations is described below:

[0119] First, see Fig.10 , Fig.10 The probability distribution diagram of the CDF of the Poisson distribution and the exponential distribution provided in the embodiment of the present application, wherein the CDF of the Poisson distribution can be called the first CDF, and the transport layer calculates the first distance between the frame interval time series and the first CDF at at least one preset quantile. Specifically, Fig.10 It can be seen that the maximum value (i.e., the value at the cumulative probability distribution Probability = 1) and the minimum value (i.e., the value at the cumulative probability distribution Probability = 0) of the Poisson distribution and the exponential distribution are relatively small, and are not suitable for calculating the distribution distance. However, at the 95% quantile and the 5% quantile, the two distributions are very different, so the quantiles with large distribution differences can be used as valid distribution distance calculation points, for example, the 95% quantile, the 5% quantile, etc. In some embodiments of the present application, the first distance can be customized as a parameter, which can be called a frame jitter parameter, referred to as the FJ parameter, and the value of the frame jitter parameter is the value of the calculated first distance.

[0120] It should be noted that in the embodiments of the present application, the FJ parameter can be calculated in various ways and can be calculated based on only one quantile, for example, FJ = P_g(L), or FJ = y*P_g(L), y>0. Wherein, g is a preset quantile (such as 95%, 5%, etc.), L is the CDF of the frame interval time series L, and P is the horizontal axis value corresponding to the Probability value of the cumulative probability distribution of the frame interval time series L at the quantile g. The FJ parameter can also be calculated based on multiple quantiles. The following takes two quantiles as an example for illustration. For example, the specific calculation method of the FJ parameter can be: FJ = P_g 1 (L)-P_g 2 (L), or, FJ = x 1 *P_g 1 (L)–x 2 *P_g 2 (L), or, FJ = P_g 1 (L)÷P_g 2 (L), or, FJ = x 1 *P_g 1 (L)÷x 2 *P_g 2 (L) etc., where 0<x 1 <1,0<x 2 <1, x 1 +x 2 =1,g 1 is a preset quantile (e.g., 95%), g 2is another preset quantile (e.g., 5%), L is the CDF of the frame interval time series L, P_g 1 (L) and P_g 2 (L) are the frame interval time series L at the quantile g 1 and g 2 The horizontal axis value corresponding to the cumulative probability distribution Probability value at . The specific calculation method of the FJ parameter is not limited here, and the above is only an example.

[0121] It should be noted that the above is illustrated by taking two quantiles as an example. For the case of more than two quantiles (e.g., four quantiles), the calculation method of the FJ parameter can be similar, for example, it can be FJ = P_g 1 (L)-P_g 2 (L)-P_g 3 (L)-P_g 4 (L)-..., or, FJ = x 1 *P_g 1 (L)–x 2 *P_g 2 (L)-x 3 *P_g 3 (L)-x 4 *P_g 4 (L)-……, or, FJ=P_g 1 (L)÷P_g 2 (L)÷P_g 3 (L)÷P_g 4 (L)-..., or, FJ = x 1 *P_g 1 (L)÷x 2 *P_g 2 (L)÷x 3 *P_g 3 (L)÷x 4 *P_g 4 (L)-...etc., where 0<x 1 <1,0<x 2 <1,0<x 3 <1,0<x 4 <1, ..., x 1 +x 2 +x 3 +x 4 +……=1, other instructions are similar to the above and will not be repeated here.

[0122] However, no matter how many quantiles the FJ parameter is based on to calculate the first distance, the result is that the smaller the value of the FJ parameter is, the closer the distribution of the frame interval time series is to the Poisson distribution, and the better the network quality is.

[0123] (2) Calculate the distance between the frame interval time series and the exponential distribution, and determine the corresponding network quality level based on the distance.

[0124] In this implementation, first, after the transmission layer of the receiving device obtains the current frame interval time sequence L, it will first calculate the distance between the frame interval time sequence L and the exponential distribution. This distance can be called the second distance. The exponential distribution at this time is the distribution of the frame interval time sequence (can be called the target frame interval time sequence) under the strong interference network state. After calculating the second distance, the transmission layer of the receiving device can further determine which preset distance interval the second distance belongs to. Similarly, each preset distance interval corresponds to a network quality level, that is, there is a mapping relationship (can be called the second mapping relationship) between each preset distance interval (can be called the second distance interval) and the network quality level. Based on this mapping relationship, the transmission layer can obtain the network quality level (can be called the target network quality level) corresponding to the distance interval (can be called the second target distance interval) to which the second distance belongs.

[0125] To facilitate understanding of the above process, the following example is used for illustration: Assuming that the network quality level is divided into 4 levels (assuming that the higher the network quality level, the better the network quality), namely network quality level 1, network quality level 2, network quality level 3, and network quality level 4, which are used to reflect different network states, then 4 distance intervals need to be preset accordingly. Since the closer the frame interval time series distribution is to the exponential distribution, the worse the network state is, the smaller the distance included in the distance interval is, the lower the network quality level is. Assuming that these 4 distance intervals are distance interval A, distance interval B, distance interval C, and distance interval D, these distance intervals have no intersection with each other, and assuming that a∈A, b∈B, c∈C, and d belong to D, and a>b>c>d, the second mapping relationship is: distance interval A corresponds to network quality level 4, distance interval B corresponds to network quality level 3, distance interval C corresponds to network quality level 2, and distance interval D corresponds to network quality level 1. Therefore, when the distance between the frame interval time series L calculated by the transmission layer of the receiving device and the exponential distribution is l 2 , and l 2 ∈B, it can be seen from the above second mapping relationship that distance interval B corresponds to network quality level 3, so it can be seen that the network status at the current moment is network quality level 3.

[0126] It should also be noted that the number of network quality levels shown above can also be divided into fewer levels (e.g., 2 network quality levels) or more levels (e.g., 10 network quality levels), which can be set according to user needs and are not limited here. However, two principles must be met: 1) the number of network quality levels set corresponds to the number of distance intervals defined, so that the network quality level and the distance interval are in a one-to-one correspondence; 2) the smaller the second distance, the worse the network status reflected by the corresponding network quality level.

[0127] It should also be noted that the network quality levels shown above are distinguished by numbers, and it is assumed that the higher the network quality level, the better the network quality. In actual applications, the network quality level can be distinguished in other ways, such as letters, specific characters, etc., as long as the identifier can achieve the function of distinguishing different network quality levels, and the specifics are not limited here. The distinction between different distance intervals is similar and will not be repeated here.

[0128] It should also be noted that, in the embodiment of the present application, there are multiple implementations of how the transport layer calculates the second distance between the frame interval time series L and the exponential distribution. One of the implementations is described below:

[0129] Still refer to Fig.10 , wherein the CDF of the exponential distribution can be called the second CDF, and the transport layer calculates the second distance between the frame interval time series and the second CDF at at least one preset quantile. Similarly, in some embodiments of the present application, the second distance can be customized as an FJ parameter, and the value of the FJ parameter is the value of the calculated second distance.

[0130] It should be noted that in the embodiment of the present application, there are various ways to calculate the FJ parameter. It can be calculated based on only one quantile or based on multiple quantiles. The calculation method is similar to that described in the first implementation method above. For details, please refer to the above method for calculating the FJ parameter, which will not be repeated here.

[0131] It should also be noted that no matter how many quantiles the FJ parameter is based on to calculate the value of the second distance, the result is that the smaller the value of the FJ parameter is, the closer the distribution of the frame interval time series L is to the exponential distribution, and the worse the network quality is.

[0132] It should also be noted that in some other embodiments of the present application, the distribution distance can also be calculated based on Poisson distribution and exponential distribution, and the implementation method is a combination of the above two methods. For the specific process, please refer to the above two implementation methods, which will not be repeated here.

[0133] In summary, the closer the distribution of the frame interval time series is to the Poisson distribution (which means the further it is from the exponential distribution), the better the network condition is; the closer the distribution of the frame interval time series is to the exponential distribution (which means the further it is from the Poisson distribution), the worse the network condition is. Fig.11 , Fig.11 The CDF comparison diagram of the frame interval time series under different network conditions provided in the embodiment of the present application is shown in FIG. Fig.11 It can be seen that in a strong network state, the CDF of the frame interval time series is closer to the Poisson distribution, and in a weak network state, the CDF of the frame interval time series is closer to the exponential distribution.

[0134] It should be noted here that, as can be seen from the above step 302, the frame arrival time sequence D is updated periodically. Therefore, in step 303, when the frame arrival time sequence D is updated, the process of determining the network quality level based on the frame arrival time sequence D is also performed periodically, and the obtained network quality level is also updated periodically. That is, whenever the frame arrival time sequence D is updated, the transmission layer of the receiving end device uses the frame arrival time sequence D after each update as the current frame arrival time sequence, and repeatedly performs the step of determining the network quality level based on the frame arrival time sequence D, thereby realizing real-time evaluation of the network quality level. It should be noted that the way in which the transmission layer of the receiving end device determines the network quality level can also be: first obtain the frame interval time sequence L based on the frame arrival time sequence D, and then determine the network quality level based on the frame interval time sequence L. In this case, when the frame arrival time sequence D is updated, the corresponding frame interval time sequence L also needs to be updated synchronously according to the updated frame arrival time sequence D. Similarly, when the transmission layer of the receiving device determines the network quality level according to the frame interval time sequence, since the frame interval time sequence L is periodically updated, the process of determining the network quality level according to the frame interval time sequence L is also periodically executed, and the obtained network quality level is also periodically updated. In short, whenever the frame arrival time sequence is updated, step 303 needs to be re-executed, that is: the transmission layer of the receiving device uses the frame arrival time sequence after each update as the current frame arrival time sequence, and repeatedly executes the step of determining the network quality level according to the frame arrival time sequence, thereby realizing real-time evaluation of the network quality level.

[0135] It should be noted that, since the ability to perceive network quality directly affects the adjustment ability of the upper layer application, it has a significant impact on the picture quality and real-time adjustment of video playback. Therefore, in some embodiments of the present application, when the transmission layer of the receiving device obtains the current network quality level based on the frame interval time sequence, the network quality level can be fed back to the application layer of the receiving device, or, when the network quality level changes, the transmission layer feeds back the network quality level to the application layer of the receiving device, so that the application layer adjusts the parameters based on the network quality level. For example, if the network quality level currently evaluated by the transmission layer is 3, and the network quality level evaluated last time is 2, then the transmission layer can feed back the network quality level 3 to the application layer. Assuming that the higher the network quality level, the better the network quality, then the application layer can know that the network quality has improved, and can adjust the parameters according to the current network quality level 3, such as adjusting the cache size according to the network quality level (when the network quality improves, the cache is generally adjusted to a smaller size). For example, according to the network quality level, an instruction to change the network quality level is sent to the sending device, and then the sending device adjusts the bit rate of the video encoding based on the instruction. In the embodiment of the present application, the application layer of the receiving device mainly adjusts the cache size based on the network quality level evaluated by the transport layer. Of course, other parameters can also be adjusted. How the application layer adjusts its own parameters based on the evaluated network quality level is an existing technology, and the present application does not involve the operation of the application layer. Generally speaking, the cache size of the application layer has three levels by default, so the network quality level of the present application can also be divided into three levels, corresponding to three cache sizes; but in some embodiments, the cache size of the application layer can also be customized to n levels, and the corresponding network status can also be divided into n levels, one level corresponds to a cache size, one level corresponds to a distance interval to which the FJ parameter calculated above belongs, and one distance interval corresponds to a network quality level.

[0136] In the above-mentioned implementation mode of the present application, at the transmission layer of the receiving device, the real-time network status is evaluated using the distribution of the frame interval time series. Since the transmission layer is between the network layer and the application layer of the receiving device, the transmission layer can perceive the changes in the network status in advance of the application layer, thereby improving the timeliness of the network quality evaluation; and compared with single-point information, the time series can better reflect the distribution law, thereby improving the accuracy of the network quality evaluation, thereby solving the problem of inaccurate and untimely real-time network quality evaluation in the existing technology.

[0137] In practical applications, since the network quality assessment method in video transmission under near-field scenarios in the embodiments of the present application can be used in the fields of smart security, smart cities, smart terminals, etc., a typical application scenario of the product, the wireless projection application scenario, is introduced below.

[0138] The embodiments of this application are applicable to all scenarios in which upper layer services need to be dynamically adjusted according to real-time network quality in wireless screen projection technologies. The dynamic caching mechanism in wireless screen projection scenarios is a typical application requirement of this application. For details, please refer to Fig.12 , Fig.12 A schematic diagram of the video frame transmission process of the wireless screen projection scenario provided in the embodiment of the present application. In order to effectively combat the instability of the video frame completion time, the receiving device sets a frame cache mechanism as an intermediary to cache part of the video frames, improve the frame rate and avoid video playback jams. A larger cache setting can combat larger network jitters, but it results in a loss of real-time screen projection; while a smaller cache setting improves real-time performance, but it comes with the risk of screen projection jams. Therefore, how to accurately evaluate the real-time network quality has become a key issue in dynamically adjusting the cache at the application layer.

[0139] The device involved in the embodiment of the present application is a terminal device with a wireless screen projection function, such as Huawei large screen, laptop computer, mobile phone, smart watch, etc. The entire implementation process includes: 1) The sending end device obtains the frame boundary information of each video frame from the application layer, and marks the data packet of the same video frame. The frame boundary indicates the end of a frame and is used to divide different video frames; 2) The transmission layer of the receiving end device records the arrival time of each frame transmitted to the transmission layer through the frame boundary information in the video frame data packet, and multiple continuous arrival times constitute the frame arrival time sequence; 3) The transmission layer of the receiving end device periodically counts the frame arrival time sequence within the preset time length, and obtains the frame interval time sequence based on the frame arrival time sequence. For the arrival of each frame, the frame arrival time sequence and the frame interval time sequence are updated in a sliding window manner; 4) The transmission layer of the receiving end device uses the frame interval time sequence to evaluate the real-time network quality; 5) When the network quality level evaluated by the transmission layer of the receiving end device changes, the network status change is notified to the application layer of the receiving end device through the interface to guide the application layer to adjust adaptively.

[0140] It should be noted that the method provided in the embodiment of the present application can not only be applied to the application scenarios described above, but can also be applied to video transmission processes in near-field scenarios such as in-vehicle screen projection and multi-screen collaboration, and no examples will be given here.

[0141] In order to have a more intuitive understanding of the beneficial effects brought about by the embodiments of the present application, the following further compares the technical effects brought about by the embodiments of the present application. In the wireless screen projection scenario, the present application constructs network interference in a mainstream manner, thereby forming a strong and weak network state switch, and compares the method for evaluating network quality provided by the embodiments of the present application with the traditional dynamic caching mechanism. The traditional dynamic caching mechanism adopts a cache-based network status evaluation method. The specific method is as follows:

[0142] (1) Degraded network detection: When the cache consumption reaches 0, the application layer of the receiving device identifies it as a weak network. Once a weak network is detected, the cache is increased to the next higher level (for example, from a 150ms cache to a 550ms cache level);

[0143] (2) Good network detection: The application layer of the receiving device periodically detects and reduces the cache to identify a strong network, for example, a 5-minute periodic detection. Once the cache is reduced and the network jitter requirement can still be met, the strong network state is entered.

[0144] In the embodiment of the present application, it is assumed that the value of the FJ parameter is calculated by the implementation method of "calculating the distance between the frame interval time series and the Poisson distribution, and determining the corresponding network quality level based on the distance". Once the network condition deteriorates, the value of the FJ parameter calculated by the transmission layer of the receiving device becomes significantly larger. In order to improve the timeliness of detection, once the preset distance threshold is exceeded, the network quality level is notified to the upper layer (i.e., the application layer of the receiving device) through the interface, so that the application layer can adjust the cache size and playback speed in time, help the upper layer application avoid jamming and improve the picture playback quality. After the network changes from poor to good, the transmission layer of the receiving device can perceive that the network state has improved through the decrease in the value of the FJ parameter, so that the network state can be judged to be better, and the network quality level is also notified to the upper layer application through the interface, so that the application layer can adjust the cache size and playback speed in time. It should be noted that in some embodiments of the present application, in order to improve the accuracy of detection, when the value of the FJ parameter is continuously lower than the preset distance threshold for a period of time (such as 3s), it is judged that the network quality level has changed, so as to effectively avoid the ping-pong effect of switching between strong and weak networks.

[0145] Through actual verification and measurement, Table 1 shows that the method of the embodiment of the present application improves the wireless screen projection performance in terms of end-to-end delay, freeze, and frame rate.

[0146] Table 1. Comparison of the effects of the method of the present application embodiment and the traditional dynamic caching mechanism in the wireless screen projection scenario

[0147] End-to-end delay Stuck and stopped Maximum stall time Frame rate Traditional dynamic caching mechanism 968.64ms 3 2764ms 57.12fps Embodiments of the present application 375ms 0 79.4ms 59.19fps

[0148] The following application will introduce the above indicators separately:

[0149] (1) End-to-end delay

[0150] The average end-to-end delay was reduced from 968.64ms to 375ms, a decrease of 61.28%. Fig.13 As shown, Fig.13A schematic diagram of the end-to-end delay change after applying the method of the embodiment of the present application is provided for the embodiment of the present application. It can be found that: during the network interference period, the method of the embodiment of the present application can timely capture the network quality degradation and counteract the network degradation by increasing the cache; conversely, during the non-interference period, the cache can be accurately reduced to bring about a decrease in end-to-end delay, thereby improving the real-time performance of wireless screen projection while ensuring the quality of video playback.

[0151] (2) Video freeze effect

[0152] The traditional mechanism relies on the exhaustion of the frame buffer at the receiving end to confirm the change in network status. Once the frame buffer is exhausted, the receiving end will stop the video playback and fill the buffer pool to the next level before continuing to play. The untimely nature of the traditional mechanism caused the longest video freeze time to reach 2752ms, which greatly affected the user experience.

[0153] The method of the embodiment of the present application can detect the arrival of a weak network in time and notify the upper layer. The upper layer application learns the network status degradation from the transport layer, adjusts the frame buffer and playback speed of the receiving end, and enhances the ability to combat unstable video frame arrival time. Fig.14 As shown, Fig.14 A schematic diagram of the change in frame interval of the method of the embodiment of the present application applied to the dynamic caching technology provided in the embodiment of the present application. In terms of the number of freezes, taking the frame interval of 100ms as the standard, the method of the embodiment of the present application reduces 3 freezes to 0 freezes; in terms of the maximum freeze time, it is reduced from 2764ms to 79.4ms, a reduction of 97.12%.

[0154] (3) Frame rate

[0155] In terms of frame rate, the method of the embodiment of the present application increases the frame rate from 57.12fps to 59.19fps, an increase of 3.49%, almost close to the ideal 60fps. By accurately detecting the degraded network status, the method of the embodiment of the present application can timely increase the cache, avoid frame drops caused by unstable video frame reception, and effectively increase the frame rate.

[0156] On the basis of the above embodiments, in order to better implement the above solutions of the embodiments of the present application, the following also provides related devices for implementing the above solutions. Fig.15 , Fig.15A schematic diagram of a computer device provided for an embodiment of the present application, the computer device 1500 may specifically include: a first acquisition module 1501, a second acquisition module 1502, and a calculation module 1503, wherein the first acquisition module 1501 is used to obtain the arrival time of a video frame transmitted to the transmission layer through the transmission layer of the computer device, the video frame is sent by the sending end device to the computer device, and one video frame corresponds to one arrival time; the second acquisition module 1502 is used to obtain a frame arrival time sequence composed of each arrival time within a preset duration through the transmission layer; the calculation module 1503 is used to determine the network quality level according to the frame arrival time sequence through the transmission layer, and the network quality level is used to reflect the current network status.

[0157] In the above-mentioned implementation mode of the present application, the distribution of the frame arrival time series is used to evaluate the real-time network status at the transport layer of the computer device 1500. Since the transport layer is between the network layer and the application layer of the computer device 1500, the transport layer can perceive the changes in the network status in advance of the application layer, thereby improving the timeliness of the network quality evaluation; and compared with single-point information, the time series can better reflect the distribution law, thereby improving the accuracy of the network quality evaluation, thereby solving the problem of inaccurate and untimely real-time network quality evaluation in the existing technology.

[0158] In one possible design, the calculation module 1503 is specifically used to: obtain a frame interval time sequence according to a frame arrival time sequence through a transmission layer, where the frame interval time sequence is a time sequence composed of the time difference between the arrival times corresponding to each two adjacent video frames within the preset time length; and then determine the network quality level according to the frame interval time sequence through the transmission layer.

[0159] In the above-mentioned implementation mode of the present application, it is described that the calculation module 1503 specifically utilizes the distribution of the frame interval time series to evaluate the real-time network status. Through the distribution of the frame interval time series, it can be directly observed whether each video frame has severe jitter during the transmission process, which is intuitive.

[0160] In a possible design, the first acquisition module 1501 is specifically used to: obtain frame boundary information of the video frame through the transport layer, and the frame boundary information is marked by the application layer of the sending device; obtain the arrival time of the video frame transmitted to the transport layer through the transport layer according to the frame boundary information.

[0161] In the above-mentioned implementation mode of the present application, it is specifically explained that the first acquisition module 1501 identifies whether a video frame is transmitted based on the marked frame boundary information, and records the arrival time of a video frame to the transmission layer based on the marked frame boundary information, which is feasible.

[0162] In a possible design, since the transmission layer of the computer device 1500 evaluates the network quality in the video transmission process in real time, the preset duration can be periodic, and the frame arrival time sequence composed of each arrival moment within the periodic preset duration is also periodically updated. Therefore, the second acquisition module 1502 can be specifically used to: determine each arrival moment within the preset duration in a sliding window manner through the transmission layer, and obtain the frame arrival time sequence composed of each arrival moment within the preset duration; update the frame arrival time sequence based on the sliding frequency of the sliding window through the transmission layer to obtain an updated frame arrival time sequence.

[0163] In the above-mentioned implementation mode of the present application, it is specifically described that the second acquisition module 1502 updates the frame arrival time series by means of a sliding window, and the update frequency is determined by the sliding frequency of the sliding window, which is specifically feasible.

[0164] In one possible design, after the second acquisition module 1502 uses each updated frame arrival time sequence as the current frame arrival time sequence, the calculation module 1503 is used to repeatedly execute the step of determining the network quality level according to the frame arrival time sequence.

[0165] In the above-mentioned implementation mode of the present application, since the second acquisition module 1502 updates the frame arrival time series by means of a sliding window, the calculation module 1503 indirectly updates the network quality level assessment result, thereby achieving the purpose of real-time assessment of the network quality level and effectively improving the real-time performance.

[0166] In one possible design, the calculation module 1503 is further specifically used to: determine, through the transmission layer, a first distance between the frame interval time series and a Poisson distribution, wherein the Poisson distribution is a distribution of a target frame interval time series in an interference-free network state; when the first distance belongs to a first target distance interval, determine, through the transmission layer, a target network quality level corresponding to the first target distance interval according to a first mapping relationship between the first distance interval and the network quality level, wherein the first target distance interval belongs to one of the first distance intervals.

[0167] In the above-mentioned implementation mode of the present application, it is specifically described that the calculation module 1503 calculates the distance between the frame interval time series and the Poisson distribution, and determines the corresponding network quality level based on the distance, thereby converting the evaluation of the network quality level into the determination of the distance size, which is feasible.

[0168] In a possible design, the calculation module 1503 is specifically used to: obtain the first cumulative distribution function of the Poisson distribution through the transmission layer; and then calculate the first distance between the frame interval time series and the first cumulative distribution function at at least one preset quantile point through the transmission layer.

[0169] In the above implementation of the present application, it is specifically described that the calculation module 1503 calculates the distance between the frame interval time series and the cumulative distribution function of the Poisson distribution at one or more quantiles as the first distance. This method of calculating the distance is simple and easy to operate.

[0170] In one possible design, the calculation module 1503 is further specifically used to: determine, through the transmission layer, a second distance between the frame interval time series and an exponential distribution, wherein the exponential distribution is a distribution of a target frame interval time series under a strong interference network state; when the second distance belongs to a second target distance interval, determine, through the transmission layer, a target network quality level corresponding to the second target distance interval according to a second mapping relationship between the second distance interval and the network quality level, wherein the second target distance interval belongs to one of the second distance intervals.

[0171] In the above-mentioned implementation mode of the present application, it is specifically described that the calculation module 1503 can also calculate the distance between the frame interval time series and the exponential distribution, and determine the corresponding network quality level based on the distance, which has selectivity and flexibility.

[0172] In one possible design, the calculation module 1503 is specifically used to: obtain a second cumulative distribution function of the exponential distribution through the transmission layer; and then calculate a second distance between the frame interval time series and the second cumulative distribution function at at least one preset quantile point through the transmission layer.

[0173] In the above implementation of the present application, it is specifically described that the calculation module 1503 can also calculate the distance between the frame interval time series and the cumulative distribution function of the exponential distribution at one or more quantile points as the second distance, which has selectivity and flexibility.

[0174] In a possible design, the maximum value (i.e., the value at the cumulative probability distribution Probability=1) and the minimum value (i.e., the value at the cumulative probability distribution Probability=0) of the Poisson distribution and the exponential distribution are relatively small and are not suitable for calculating the distribution distance. However, at the 95% quantile and the 5% quantile, the two distributions are very different. Therefore, quantiles with large distribution differences can be used as valid distribution distance calculation points, such as the 95% quantile, 5% quantile, etc.

[0175] In the above-mentioned embodiment of the present application, the basic principle followed by the value of at least one quantile for calculating the distance (first distance or second distance) is specifically explained, that is, the value of the vertical coordinate with a large difference between the Poisson distribution and the exponential distribution can be used as the quantile, thereby improving the accuracy of the distance calculation result.

[0176] In one possible design, the computer device 1500 may also include a first sending module 1504, which is used to: when the obtained network quality level changes, feed back the network quality level to the application layer of the receiving device through the transmission layer, so that the application layer adjusts parameters based on the network quality level.

[0177] In the above-mentioned implementation mode of the present application, it is specifically explained that the transmission layer of the computer device 1500 is also required to send the evaluated network quality level to the application layer through the first sending module 1504 when the network quality level changes, so that the application layer can make adaptive adjustments to improve the quality of the projected image.

[0178] In a possible design, the computer device 1500 may further include an adjustment module 1505, which is used to: adjust the cache size of the frame buffer memory according to the network quality level through the application layer.

[0179] In the above-mentioned implementation mode of the present application, a method in which the adjustment module 1505 performs parameter adjustment at the application layer is specifically described, which is easy to operate.

[0180] In one possible design, the adjustment module 1505 is specifically used to: when the current network state reflected by the network quality level improves, reduce the cache of the frame buffer memory through the application layer; and when the current network state reflected by the network quality level deteriorates, increase the cache of the frame buffer memory through the application layer.

[0181] In the above implementation of the present application, it is specifically described how the adjustment module 1505 adjusts the cache size through the application layer, which is feasible.

[0182] In a possible design, the computer device 1500 may also include a second sending module 1506, which is used to: send an instruction to the sending end device according to the network quality level through the application layer, and the instruction is used to instruct the sending end device to adjust the bit rate of video encoding based on the network quality level. For example, assuming that the current network state reflected by the current network quality level has improved, the instruction sent by the application layer may be to instruct the sending end device to increase the bit rate of video encoding. Conversely, assuming that the current network state reflected by the current network quality level has improved, the instruction sent by the application layer may be to instruct the sending end device to reduce the bit rate of video encoding.

[0183] In the above implementation of the present application, it is specifically explained that the second sending module 1506 can also send an instruction on the change of the network quality level to the sending end device according to the network quality level, and then the sending end device adjusts the bit rate of the video encoding based on the instruction, which is flexible.

[0184] It should be noted that the information interaction, execution process, etc. between the modules / units in the computer device 1500 are the same as those in the present application. Figure 3 The corresponding method embodiments are based on the same concept. For specific contents, please refer to the description in the method embodiments shown above in this application, which will not be repeated here.

[0185] Next, another computer device provided by the embodiment of the present application is introduced. Fig.16 , Fig.16 A schematic diagram of a computer device provided in an embodiment of the present application, wherein the computer device 1600 may be deployed with Fig.15 The computer device 1500 described in the corresponding embodiment is used to implement Fig.15 The functions of the computer device 1500 in the corresponding embodiment, specifically, the computer device 1600 is implemented by one or more servers, and the computer device 1600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1622 and memory 1632, and one or more storage media 1630 (such as one or more mass storage devices) storing application programs 1642 or data 1644. Among them, the memory 1632 and the storage medium 1630 can be short-term storage or permanent storage. The program stored in the storage medium 1630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the computer device 1600. Furthermore, the central processing unit 1622 can be configured to communicate with the storage medium 1630 to execute a series of instruction operations in the storage medium 1630 on the computer device 1600.

[0186] The computer device 1600 may also include one or more power supplies 1626, one or more wired or wireless network interfaces 1650, one or more input and output interfaces 1658, and / or one or more operating systems 1641, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0187] In the embodiment of the present application, the central processor 1622 is used to execute Figure 3The steps performed by the transport layer of the receiving device in the corresponding embodiment. For example, the central processor 1622 can be used for: first, the transport layer obtains the arrival time of the video frame transmitted to the transport layer, and the video frame is sent by the transmitting device to the computer device, and one video frame corresponds to one arrival time. After that, the transport layer further obtains the frame arrival time sequence composed of each arrival time within the preset duration. In the embodiment of the present application, the frame arrival time sequence can be recorded as D. After obtaining the frame arrival time sequence D at the current moment, the network quality level can be determined based on the frame arrival time sequence D, wherein the quality network level is used to reflect the network status during the video transmission process in the current near-field scenario.

[0188] It should be noted that the specific manner in which the CPU 1622 performs the above steps is different from that in the present application. Figure 3 The corresponding method embodiments are based on the same concept, and the technical effects they bring are also the same as those of the above-mentioned embodiments of the present application. For specific contents, please refer to the description in the method embodiments shown above in the present application, and will not be repeated here.

[0189] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0190] Through the description of the above implementation mode, the technicians in the relevant field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0191] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0192] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

Claims

1. A method for evaluating network quality in video transmission in a near-field scenario, characterized in that: Applied to receiving devices, including: The transport layer obtains the arrival time of the video frame transmitted to the transport layer, the video frame is sent by the sending end device to the receiving end device, one video frame corresponds to one arrival time, and the transport layer is the transport layer of the receiving end device; The transport layer obtains a frame arrival time sequence composed of each arrival time within a preset time length; The transport layer determines a network quality level according to the frame arrival time sequence, and the network quality level is used to reflect the current network status.

2. The method according to claim 1, characterized in that The transport layer determines the network quality level according to the frame arrival time sequence, including: The transport layer obtains a frame interval time sequence according to the frame arrival time sequence, wherein the frame interval time sequence is a time sequence composed of time differences between arrival times corresponding to each two adjacent video frames within the preset duration; The transport layer determines a network quality level based on the frame interval time sequence.

3. The method according to any one of claims 1 to 2, characterized in that: The transmission layer obtains the arrival time of the video frame transmitted to the transmission layer, including: The transport layer obtains frame boundary information of the video frame, where the frame boundary information is marked by the application layer of the transmitting end device; The transport layer obtains the arrival time of the video frame transmitted to the transport layer according to the frame boundary information.

4. The method according to any one of claims 1 to 2, characterized in that The transport layer obtains a frame arrival time sequence composed of each arrival time within a preset duration, including: The transport layer determines each arrival time within a preset duration by means of a sliding window, and obtains a frame arrival time sequence composed of each arrival time within the preset duration; The transport layer updates the frame arrival time sequence based on the sliding frequency of the sliding window to obtain an updated frame arrival time sequence.

5. The method according to claim 4, characterized in that The method further comprises: The transport layer uses each updated frame arrival time sequence as the current frame arrival time sequence, and repeatedly executes the step of determining the network quality level according to the frame arrival time sequence.

6. The method according to claim 2, characterized in that The transport layer determines the network quality level according to the frame interval time sequence, including: The transport layer determines a first distance between the frame interval time sequence and a Poisson distribution, where the Poisson distribution is a distribution of a target frame interval time sequence in an interference-free network state; When the first distance belongs to a first target distance interval, the transmission layer determines a target network quality level corresponding to the first target distance interval according to a first mapping relationship between the first distance interval and the network quality level, and the first target distance interval belongs to one of the first distance intervals.

7. The method according to claim 2, characterized in that The transport layer determines the network quality level according to the frame interval time sequence, including: The transport layer determines a second distance between the frame interval time sequence and an exponential distribution, where the exponential distribution is a distribution of a target frame interval time sequence in a strong interference network state; When the second distance belongs to a second target distance interval, the transmission layer determines a target network quality level corresponding to the second target distance interval according to a second mapping relationship between the second distance interval and the network quality level, and the second target distance interval belongs to one of the second distance intervals.

8. The method according to any one of claims 1 to 2, characterized in that: After the transport layer determines the network quality level according to the frame arrival time sequence, the method further includes: In the case where the obtained network quality level changes, the transport layer feeds back the network quality level to the application layer of the receiving end device, so that the application layer adjusts parameters based on the network quality level.

9. The method according to claim 8, characterized in that After the transport layer feeds back the network quality level to the application layer of the receiving end device, the method further includes: The application layer adjusts the cache size of the frame buffer memory according to the network quality level.

10. The method according to claim 9, characterized in that The application layer adjusting the cache size of the frame buffer memory according to the network quality level includes: When the current network state reflected by the network quality level becomes better, the application layer reduces the buffer size of the frame buffer memory; When the current network state reflected by the network quality level deteriorates, the application layer increases the buffer size of the frame buffer memory.

11. The method according to claim 8, characterized in that After the transport layer feeds back the network quality level to the application layer of the receiving end device, the method further includes: The application layer sends an instruction to the transmitting end device according to the network quality level, where the instruction is used to instruct the transmitting end device to adjust the bit rate of video encoding based on the network quality level.

12. A computer device, characterized in that: include: A first acquisition module is used to acquire, through the transmission layer of the computer device, an arrival time of a video frame transmitted to the transmission layer, wherein the video frame is sent by a transmitting end device to the computer device, and one video frame corresponds to one arrival time; A second acquisition module is used to acquire, through the transmission layer, a frame arrival time sequence composed of each arrival moment within a preset time length; A calculation module is used to determine a network quality level according to the frame arrival time sequence through the transmission layer, and the network quality level is used to reflect the current network status.

13. The device according to claim 12, characterized in that The computing module is specifically used for: Obtaining a frame interval time sequence according to the frame arrival time sequence through the transmission layer, wherein the frame interval time sequence is a time sequence composed of time differences between arrival times corresponding to each two adjacent video frames within the preset duration; The network quality level is determined by the transport layer according to the frame interval time sequence.

14. The device according to any one of claims 12-13, characterized in that The first acquisition module is specifically used to: Acquire frame boundary information of the video frame through the transport layer, where the frame boundary information is marked by the application layer of the transmitting end device; The arrival time of the video frame transmitted to the transport layer is obtained through the transport layer according to the frame boundary information.

15. The device according to any one of claims 12-13, characterized in that The second acquisition module is specifically used for: Determine each arrival time within a preset duration in a sliding window manner through the transport layer, and obtain a frame arrival time sequence composed of each arrival time within the preset duration; The frame arrival time sequence is updated through the transport layer based on the sliding frequency of the sliding window to obtain an updated frame arrival time sequence.

16. The device according to claim 15, characterized in that After the second acquisition module uses each updated frame arrival time sequence as the current frame arrival time sequence, the calculation module repeatedly executes the step of determining the network quality level according to the frame arrival time sequence.

17. The device according to claim 13, characterized in that The computing module is further specifically used for: Determine, by the transport layer, a first distance between the frame interval time sequence and a Poisson distribution, wherein the Poisson distribution is a distribution of a target frame interval time sequence in an interference-free network state; When the first distance belongs to a first target distance interval, the target network quality level corresponding to the first target distance interval is determined by the transmission layer according to a first mapping relationship between the first distance interval and the network quality level, and the first target distance interval belongs to one of the first distance intervals.

18. The device according to claim 13, characterized in that The computing module is further specifically used for: Determine, by the transport layer, a second distance between the frame interval time sequence and an exponential distribution, wherein the exponential distribution is a distribution of a target frame interval time sequence in a strong interference network state; When the second distance belongs to a second target distance interval, the target network quality level corresponding to the second target distance interval is determined by the transmission layer according to a second mapping relationship between the second distance interval and the network quality level, and the second target distance interval belongs to one of the second distance intervals.

19. The device according to any one of claims 12-13, characterized in that The device also includes a first sending module, configured to: In the case where the obtained network quality level changes, the network quality level is fed back to the application layer of the computer device through the transport layer, so that the application layer adjusts parameters based on the network quality level.

20. The device according to claim 19, characterized in that The device also includes an adjustment module, which is used to: The cache size of the frame buffer memory is adjusted according to the network quality level through the application layer.

21. The device according to claim 20, characterized in that The adjustment module is specifically used for: When the current network state reflected by the network quality level becomes better, reducing the buffer of the frame buffer memory through the application layer; When the current network state reflected by the network quality level deteriorates, the buffer size of the frame buffer memory is increased through the application layer.

22. The device according to claim 19, characterized in that The device also includes a second sending module, configured to: An instruction is sent to the transmitting end device through the application layer according to the network quality level, where the instruction is used to instruct the transmitting end device to adjust the bit rate of video encoding based on the network quality level.

23. A computer device comprising a processor and a memory, wherein the processor is coupled to the memory, wherein: The memory is used to store programs; The processor is used to execute the program in the memory so that the computer device executes the method according to any one of claims 1 to 11.

24. A computer-readable storage medium comprising a program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 11.

25. A computer program product comprising instructions, which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 11.

26. A chip, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Video stream quality monitoring method and device

    CN103945213A

  • Buffer control method in real-time video image transfer, transmitting terminal, receiving terminal, video image distributing system and program

    JP2005322995A