Video stream transmission information evaluation method, device, equipment and storage medium
By receiving the video stream sent by the video stream sending source, based on the data packet arrival time and collision duration of the key frame, the video stream transmission quality and mutual impact are comprehensively evaluated, which solves the limitations of single video stream evaluation in the existing technology and improves the Assess the accuracy and diversity of results.
Patent Information
- Application Number
- CN202211431577.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-11-15
AI Technical Summary
Existing receiving equipment can only evaluate the quality of a single video stream and fails to consider the interaction between multiple video streams, resulting in limitations in the evaluation results.
By receiving the video stream sent by the video stream sending source, based on the packet arrival time and collision duration of the key frame, the transmission quality of the video stream and the information affected by other video streams are determined, including arrival delay, phase jitter and collision severity. , to comprehensively evaluate the transmission quality of multiple video streams.
It improves the accuracy and diversity of video stream transmission assessment, enables a more comprehensive assessment of the transmission quality and mutual impact during video stream transmission, and improves the accuracy of the assessment results.
Smart Images

Figure CN115776601B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for evaluating video stream transmission information. Background Art
[0002] In the process of processing multiple video streams, a receiving device is usually required to receive video streams sent by multiple sending devices respectively. For example, a monitoring processing device as a receiving device receives video streams sent by multiple monitoring cameras as sending devices.
[0003] In the prior art, these video streams are usually received and processed by receiving devices. However, current receiving devices can only analyze and process the received video streams according to business requirements. Although existing receiving devices can perform certain quality assessments on video streams, current quality assessments can only assess the transmission quality of a single video stream during transmission, and do not take into account the possibility that multiple video streams may affect each other's transmission quality during transmission. Therefore, the assessment results are limited. Summary of the invention
[0004] The purpose of the present application is to provide a method, device, equipment and storage medium for evaluating video stream transmission information, which can improve the accuracy and diversity of evaluation results and more comprehensively evaluate and determine the transmission quality during video stream transmission.
[0005] The embodiment of the present application is implemented as follows:
[0006] In one aspect of an embodiment of the present application, a method for evaluating video stream transmission information is provided. The method is applied to a video stream processing device, where the video stream processing device is communicatively connected to a plurality of video stream transmission sources. The method includes:
[0007] Receiving video streams sent by each video stream sending source, the video streams comprising: a plurality of key frames arranged in time sequence, each key frame consisting of a plurality of data packets;
[0008] Determining first transmission information of the video stream based on the arrival time of the data packets in each key frame, the first transmission information being used to characterize the transmission quality of the key frames in each video stream;
[0009] The second transmission information of the video stream is determined based on the duration of the key frame generating the collision in the video stream, and the second transmission information is used to represent the information that each video stream is affected by other video streams.
[0010] Optionally, the first transmission information includes: arrival delay;
[0011] Determining first transmission information of the video stream based on the arrival time of the data packets in each key frame includes:
[0012] Get the start time of the video stream sending source corresponding to the video stream;
[0013] The arrival delay is determined based on the arrival time of the first data packet in the first key frame of the video stream and the start time of the video stream sending source.
[0014] Optionally, the first transmission information includes: phase jitter information;
[0015] Determining first transmission information of the video stream based on the arrival time of the data packets in each key frame includes:
[0016] It is determined whether the phase jitter of each key frame in the video stream exceeds a preset threshold based on the arrival time of the first data packet in each key frame of the video stream.
[0017] Optionally, determining whether a phase jitter of each key frame in the video stream exceeds a preset threshold based on the arrival time of the first data packet in each key frame of the video stream includes:
[0018] Determine a first time difference based on an arrival time of a first data packet in a first key frame of the video stream and an arrival time of a first data packet in a second key frame;
[0019] Determining a second time difference based on an arrival time of a first data packet in a second key frame of the video stream and an arrival time of a first data packet in a third key frame, wherein the first key frame, the second key frame, and the third key frame are sequentially adjacent key frames;
[0020] It is determined based on the first time difference and the second time difference whether the phase jitter of the first key frame exceeds a preset threshold.
[0021] Optionally, the second transmission information includes: collision severity;
[0022] The second transmission information of the video stream is determined based on the duration of the key frame in which the collision occurs in the video stream, including:
[0023] Determine a key frame of the video stream that generates a collision and at least one collision video stream that collides with the video stream during the collision process;
[0024] Determine the number of collisions corresponding to the video stream and the cumulative duration of a single collision based on the duration of the key frame generating the collision in the video stream;
[0025] The collision severity of the video stream is determined based on the number of collisions, the cumulative duration of a single collision, and the number of collision video streams.
[0026] Optionally, determining the collision severity of the video stream based on the number of collisions, the cumulative duration of a single collision, and the number of collision video streams includes:
[0027] The weight of each collision is determined based on the cumulative duration of a single collision and the number of collision video streams;
[0028] The video stream collision severity score is calculated based on the number of collisions and the weight of each collision.
[0029] Optionally, determining a key frame of a video stream that generates a collision and at least one collision video stream that collides with the video stream during the collision process includes:
[0030] For the target key frame currently received in the video stream, determine whether there is a key frame of an associated video stream that has the same reception time as the target key frame and belongs to a video stream other than the video stream. If so, determine that the target key frame is a key frame that generates a collision, and determine that the associated video stream is a collision video stream that collides with the video stream.
[0031] Another aspect of the embodiment of the present application provides a video stream transmission information evaluation device, which is applied to a video stream processing device, the video stream processing device is communicatively connected with a plurality of video stream transmission sources, the device comprising: a receiving module, a first information determination module and a second information determination module;
[0032] The receiving module is used to receive the video stream sent by each video stream sending source, the video stream includes: a plurality of key frames arranged in time sequence, each key frame is composed of a plurality of data packets;
[0033] A first information determination module, used to determine first transmission information of the video stream based on the arrival time of the data packet in each key frame, the first transmission information is used to characterize the transmission quality of the key frame in each video stream;
[0034] The second information determination module is used to determine the second transmission information of the video stream based on the duration of the key frame generating the collision in the video stream, and the second transmission information is used to represent the information that each video stream is affected by other video streams.
[0035] Optionally, the first transmission information includes: arrival delay; a first information determination module, specifically used to obtain the start time of the video stream sending source corresponding to the video stream; determine the arrival delay based on the arrival time of the first data packet in the first key frame of the video stream and the start time of the video stream sending source.
[0036] Optionally, the first transmission information includes: phase jitter information; a first information determination module, specifically used to determine whether the phase jitter of each key frame in the video stream exceeds a preset threshold based on the arrival time of the first data packet in each key frame of the video stream.
[0037] Optionally, the first information determination module is specifically used to determine a first time difference based on the arrival time of the first data packet in the first key frame of the video stream and the arrival time of the first data packet in the second key frame; determine the second time difference based on the arrival time of the first data packet in the second key frame of the video stream and the arrival time of the first data packet in the third key frame, wherein the first key frame, the second key frame and the third key frame are key frames adjacent in sequence; determine whether the phase jitter of the first key frame exceeds a preset threshold based on the first time difference and the second time difference.
[0038] Optionally, the second transmission information includes: the severity of the collision; a second information determination module, specifically used to determine the key frames of the video stream that generate collisions and at least one collision video stream that collides with the video stream during the collision process; determine the number of collisions corresponding to the video stream and the cumulative duration of a single collision based on the duration of the key frames of the video stream that generate collisions; determine the collision severity of the video stream based on the number of collisions, the cumulative duration of a single collision and the number of collision video streams.
[0039] Optionally, the second information determination module is specifically configured to determine the weight of each collision based on the cumulative duration of a single collision and the number of collision video streams; and calculate the collision severity score of the video stream based on the number of collisions and the weight of each collision.
[0040] Optionally, the second information determination module is also specifically used to determine, for the target key frame currently received in the video stream, whether there is a key frame of an associated video stream that has the same reception time as the target key frame and belongs to a video stream outside the video stream; if so, the target key frame is determined to be a key frame that generates a collision, and the associated video stream is determined to be a collision video stream that collides with the video stream.
[0041] Another aspect of an embodiment of the present application provides a computer device, including: a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the steps of the video stream transmission information evaluation method are implemented.
[0042] In another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the video stream transmission information evaluation method are implemented.
[0043] The beneficial effects of the embodiments of the present application include:
[0044] In a video stream transmission information evaluation method, device, equipment and storage medium provided in an embodiment of the present application, the video streams sent by each video stream transmission source can be received, and then the first transmission information of the video stream can be determined based on the arrival time of the data packet in each key frame, and the second transmission information of the video stream can be determined based on the duration of the key frame that collides in the video stream. Among them, the first transmission information is used to characterize the transmission quality of the key frames in each video stream, and the second transmission information is used to characterize the information on the influence of other video streams on each video stream. By determining the first transmission information and the second transmission information, the transmission quality of the key frames in each video stream and the related information on the influence of other video streams on each video stream can be more comprehensively determined, thereby improving the accuracy and diversity of the evaluation results, and more comprehensively evaluating and determining the transmission quality during the video stream transmission process. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 A schematic diagram of an application scenario of the video stream transmission information evaluation method provided in an embodiment of the present application;
[0047] Figure 2 A schematic diagram of a flow chart of a method for evaluating video stream transmission information provided in an embodiment of the present application;
[0048] Figure 3 Another schematic diagram of a flow chart of a method for evaluating video stream transmission information provided by an embodiment of the present application;
[0049] Figure 4 Another schematic diagram of a flow chart of a method for evaluating video stream transmission information provided by an embodiment of the present application;
[0050] Figure 5 Another schematic diagram of a flow chart of a method for evaluating video stream transmission information provided by an embodiment of the present application;
[0051] Figure 6 Another schematic diagram of a flow chart of a method for evaluating video stream transmission information provided by an embodiment of the present application;
[0052] Figure 7 A schematic diagram of the structure of a video stream transmission information evaluation device provided in an embodiment of the present application;
[0053] Figure 8 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0055] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0056] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0057] In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0058] The following is a detailed explanation of the actual scenarios in which the embodiments of the present application are applied.
[0059] Figure 1 For a schematic diagram of an application scenario of the video stream transmission information evaluation method provided in the embodiment of the present application, please refer to Figure 1 The scenario may include a video stream processing device 110 and multiple video stream sending sources 120 , wherein the video stream processing device 110 is communicatively connected with the multiple video stream sending sources 120 .
[0060] Optionally, the video stream processing device 110 can specifically be a device for processing video streams, such as: computers, servers, mobile phones, edge computing nodes, 5G base stations and other related computer equipment. No specific restrictions are made here, and any device that can process video streams can be used.
[0061] The video stream sending source 120 can be a device with a video recording function such as a camera or a mobile phone, or it can be any type of device that can forward a video stream. No specific limitation is made here. The video stream sending source 120 can include multiple video stream sending sources 120, and multiple video stream sending sources 120 can be communicatively connected to the video stream processing device 110.
[0062] It should be noted that the video stream may specifically be a file in a video format, and may specifically be a video file that is played and transmitted in a frame form, and the specific format of the video is not limited here.
[0063] The specific implementation process of the video stream transmission information evaluation method provided in the embodiment of the present application is explained in detail below based on the above application scenario.
[0064] Figure 2 For a flow chart of the video stream transmission information evaluation method provided in the embodiment of the present application, please refer to Figure 2 , the method comprising:
[0065] S210: Receive video streams sent by various video stream sending sources.
[0066] The video stream includes: a plurality of key frames arranged in time sequence, and each key frame is composed of a plurality of data packets.
[0067] Optionally, the application subject of the method can be the video stream processing device in the above application scenario, wherein the video stream processing device is communicatively connected with a plurality of video stream sending sources, and each video stream sending source can send a video stream to the video stream processing device.
[0068] The video stream may be generated and transmitted by a video stream sending source, or may be forwarded, which is not limited here.
[0069] It should be noted that the video stream can specifically be a video file that is played and transferred in the form of frames. The so-called frame form means that there can be multiple key frames arranged in time sequence in the video stream, and these key frames can include multiple data packets. During the transmission process, they can be transmitted one key frame at a time, and for each key frame, they can be transmitted one data packet at a time. The data packets can be arranged in the key frames according to a preset order. Correspondingly, the key frames can also be arranged in the video stream according to a preset order.
[0070] S220: Determine first transmission information of the video stream based on the arrival time of the data packets in each key frame.
[0071] The first transmission information is used to characterize the transmission quality of the key frames in each video stream, and may be the transmission quality of each key frame in each video stream. For example, any key frame in video stream A may have the first transmission information, and the first transmission information of different key frames may be different.
[0072] Optionally, the first transmission information may specifically include multiple types, including any relevant parameters or attributes that can characterize the key frame transmission quality, which is not limited here.
[0073] It should be noted that for key frames, the size of each key frame is the sum of all the data packets that make up the key frame. During the key frame transmission process, the arrival time of the first data packet in the key frame is the start time of the key frame, and the arrival time of the last data packet is the end time of the key frame.
[0074] The arrival time refers to the time it takes for a data packet to arrive at a video stream processing device.
[0075] When determining the first transmission information, the first transmission information of the video stream can be determined based on the arrival time of the data packets in each key frame. Different types of first transmission information can be determined based on the arrival time of different data packets, and no specific limitation is made here.
[0076] S230: Determine second transmission information of the video stream based on the duration of the key frame generating the collision in the video stream.
[0077] The second transmission information is used to represent information about how each video stream is affected by other video streams.
[0078] Optionally, both the second transmission information and the first transmission information can be used as data for quality assessment of the video stream, that is, the video stream transmission information involved in the embodiments of the present application refers to the above-mentioned first transmission information and the second transmission information.
[0079] It should be noted that the information about the impact of other video streams on each video stream represented by the second transmission information may be, for example, that when a certain video stream is being transmitted, another video stream is also being transmitted at the same time. When the transmission bandwidth is fixed, if too many video streams are transmitted at the same time, it may cause packet loss during the transmission process. The second transmission information may, for example, be related information about collisions between multiple transmitted videos during the transmission process.
[0080] The duration of the key frame may specifically refer to the average value of the difference between the arrival time of the first data packet and the arrival time of the last data packet in the key frame when the phase jitter of the key frame is lower than a preset threshold.
[0081] Optionally, when determining the second transmission information, the second transmission information of the video stream may be determined based on the duration of each key frame generating a collision in the video stream.
[0082] It should be noted that the above steps S220 and S230 can be performed simultaneously or sequentially, and no specific limitation is made here. Figure 2 In the example above, synchronous execution is taken as an example. In the actual implementation, any order can be adjusted.
[0083] The first transmission information and the second transmission information respectively obtained based on the above steps can be used as evaluation results to evaluate the transmission quality of the video stream.
[0084] In a video stream transmission information evaluation method provided in an embodiment of the present application, the video streams sent by each video stream transmission source can be received, and then the first transmission information of the video stream can be determined based on the arrival time of the data packet in each key frame, and the second transmission information of the video stream can be determined based on the duration of the key frame that collides in the video stream. Among them, the first transmission information is used to characterize the transmission quality of the key frames in each video stream, and the second transmission information is used to characterize the information on the influence of other video streams on each video stream. By determining the first transmission information and the second transmission information, the transmission quality of the key frames in each video stream and the related information on the influence of other video streams on each video stream can be more comprehensively determined, thereby improving the accuracy and diversity of the evaluation results, and more comprehensively evaluating and determining the transmission quality during the video stream transmission process.
[0085] Another specific implementation process of the video stream transmission information evaluation method provided in the embodiment of the present application is explained in detail below.
[0086] Figure 3 For another flow chart of the video stream transmission information evaluation method provided in the embodiment of the present application, please refer to Figure 3 , the first transmission information includes: arrival delay; the first transmission information of the video stream is determined based on the arrival time of the data packet in each key frame, including:
[0087] S310: Obtain the start time of the video stream sending source corresponding to the video stream.
[0088] Optionally, the video stream transmission source is in communication connection with the video stream processing device, and during the process of the video stream transmission source transmitting the video stream, the time of starting transmission can also be sent to the video stream processing device as relevant transmission data. The video processing device can receive the start time sent by the video stream transmission source during the process of receiving the video stream.
[0089] It should be noted that the start time may specifically refer to the time when the video stream starts to be sent from the video stream sending source.
[0090] S320: Determine the arrival delay based on the arrival time of the first data packet in the first key frame of the video stream and the start time of the video stream sending source.
[0091] It should be noted that when determining each arrival time, an observation window can be set in the video stream processing device, and the start time of the observation window is synchronized with the start time of the video stream sending source. The length of the observation window is not less than N times the maximum value of the frame period of the key frames in all video streams (N is the number of video streams) to ensure that multiple complete key frame periods can be observed in the window. In order to calculate the mean and variance of the key frame arrival delay, sampling can be repeated multiple times, that is, the camera can be restarted multiple times and the arrival time of the first data packet of the first key frame of the current video stream can be re-recorded.
[0092] Optionally, after receiving the video stream, the video stream processing device may determine the arrival time of the first data packet in the first key frame in the video stream.
[0093] The specific calculation formula is as follows:
[0094] T0 = T1 - T2;
[0095] Wherein, T0 is the arrival delay of the video stream, T1 is the arrival time of the first data packet in the first key frame of the video stream, and T2 is the start time of the video stream.
[0096] When determining the arrival time, the specific method may be to record the number of all video streams detected in the current time window. Each video stream is numbered and recorded as flow_ID to distinguish data of different video streams. For example, if N video streams are detected in the current window, the i-th video stream is: flow_ID i (1≤i≤N).
[0097] For example, if N video streams are detected in the current window, then:
[0098] flow_ID = [1,2,3,…,N];
[0099] According to the video stream number, one or more key frame information contained in each video stream in the observation window can be recorded separately, including but not limited to the start time and end time of the key frame, the number and size of all data packets contained in the current key frame, etc.
[0100] For example, the i-th video stream flow_ID is recorded in the current observation window i There are M key frames, and the starting time of the jth key frame is recorded as: The end time of the jth key frame is recorded as: Assuming that the current key frame contains S packets, the size of the kth packet in the current key frame is recorded as: PktSize k (1≤k≤S).
[0101] After the arrival delay is calculated in the above manner, the size of the arrival delay can be used as the first transmission information and as an evaluation result of the transmission quality of the video stream.
[0102] In the video stream transmission information evaluation method provided in the embodiment of the present application, the start time of the video stream sending source corresponding to the video stream can be obtained, and then the arrival delay is determined based on the arrival time of the first data packet in the first key frame of the video stream and the start time of the video stream sending source; wherein, after the arrival delay is calculated in the above manner, the arrival delay can be used to evaluate the quality of the video stream transmission, thereby more comprehensively determining the quality of the video stream transmission.
[0103] It should be noted that, in addition to the above-mentioned arrival delay, the first transmission information may also include phase jitter information.
[0104] Optionally, determining the first transmission information of the video stream based on the arrival time of the data packets in each key frame includes: determining whether the phase jitter of each key frame in the video stream exceeds a preset threshold based on the arrival time of the first data packet in each key frame of the video stream.
[0105] The phase jitter information specifically refers to the inconsistency of the difference in arrival time of the first data packet in two adjacent key frames in the video stream.
[0106] Optionally, whether the phase jitter of each key frame in the video stream exceeds a preset threshold may be determined based on the arrival time of the first data packet in each key frame of the video stream, wherein the preset threshold may be a fixed value preset according to actual needs.
[0107] The specific implementation process of determining the phase jitter information in the video stream transmission information evaluation method provided in the embodiment of the present application is explained in detail below.
[0108] Figure 4 For another flow chart of the video stream transmission information evaluation method provided in the embodiment of the present application, please refer to Figure 4 , determining whether the phase jitter of each key frame in the video stream exceeds a preset threshold based on the arrival time of the first data packet in each key frame of the video stream, including:
[0109] S410: Determine a first time difference based on an arrival time of a first data packet in a first key frame of a video stream and an arrival time of a first data packet in a second key frame.
[0110] It should be noted that after the video stream transmission source starts transmission, the phase jitter between the first few key frames received by the video stream processing device is relatively obvious. As the number of received key frames increases, the key frame phase jitter gradually weakens and remains relatively stable. When the key frame phase jitter exceeds the threshold, the relevant key frame cannot participate in the calculation of key frame size, key frame period, key frame frame duration and other related parameters.
[0111] For example: The arrival time of the first data packet in the first key frame is T i , the arrival time of the first data packet in the second key frame is T i+1 .
[0112] Then the first time difference b is: b = T i+1 -T i .
[0113] S420: Determine a second time difference based on the arrival time of the first data packet in the second key frame of the video stream and the arrival time of the first data packet in the third key frame.
[0114] For example: The arrival time of the first data packet in the third key frame is T i+3 .
[0115] Then the second time difference a is: b = T i+2 -T i+1 .
[0116] The first key frame, the second key frame and the third key frame are key frames that are adjacent in sequence. That is to say, the order of the first key frame, the second key frame and the third key frame is fixed and adjacent.
[0117] S430: Determine whether the phase jitter of the first key frame exceeds a preset threshold based on the first time difference and the second time difference.
[0118] Optionally, the specific calculation formula is as follows:
[0119] c = (ba) / a;
[0120] Wherein, c is the phase jitter. After the phase jitter is obtained, it can be determined whether the phase jitter exceeds a preset threshold. For example, the preset threshold may be 0.05.
[0121] When c>0.05, it can be determined that the key frame phase jitter exceeds the threshold, that is, the phase jitter information is too jittery; correspondingly, when c≤0.05, it can be determined that the key frame phase jitter does not exceed the threshold, that is, the phase jitter information is normal.
[0122] In order to calculate the average value and variance of the key frame phase jitter, sampling can be repeated multiple times, that is, the video stream sending source is restarted multiple times and the specific values of the key frame phase jitter exceeding the threshold of the video stream are re-recorded, and the average value and variance of the multiple recorded results are calculated.
[0123] After the phase jitter information is determined in the above manner, the phase jitter information can be used as the first transmission information and as an evaluation result of the transmission quality of the video stream.
[0124] In the video stream transmission information evaluation method provided in the embodiment of the present application, the first time difference can be determined based on the arrival time of the first data packet in the first key frame of the video stream and the arrival time of the first data packet in the second key frame; the second time difference can be determined based on the arrival time of the first data packet in the second key frame of the video stream and the arrival time of the first data packet in the third key frame; and then based on the first time difference and the second time difference, it is determined whether the phase jitter of the first key frame exceeds a preset threshold. Among them, the corresponding phase jitter information can be determined by calculating the phase jitter and comparing the phase jitter threshold in the above manner, and the phase jitter information can be used to evaluate the quality of video stream transmission, thereby more comprehensively determining the quality of video stream transmission.
[0125] Another specific implementation process of the video stream transmission information evaluation method provided in the embodiment of the present application is explained in detail below.
[0126] Figure 5 For another flow chart of the video stream transmission information evaluation method provided in the embodiment of the present application, please refer to Figure 5 The second transmission information includes: the severity of the collision; the second transmission information of the video stream is determined based on the duration of the key frame in the video stream where the collision occurs, including:
[0127] S510: Determine a key frame of a video stream that generates a collision and at least one collision video stream that collides with the video stream during the collision process.
[0128] It should be noted that the collision severity specifically refers to the severity of the video stream collision.
[0129] Optionally, the key frame where the video stream specifically collides may be determined first, which may be a plurality of consecutive key frames or a portion of a key frame, and a transmission collision may occur during the transmission process. After determining the key frame where the collision occurs, at least one collision video stream that collides with the video stream during the collision process may be determined. If only one other video stream collides with the video stream at a certain time, then the collision video stream is one. Correspondingly, if there are multiple other video streams that collide with the video stream, then the collision video streams are multiple.
[0130] S520: Determine the number of collisions corresponding to the video stream and the cumulative duration of a single collision based on the duration of the key frame of the video stream that generates the collision.
[0131] Optionally, the number of collisions of the video stream may be determined based on the scattered intervals of the duration of the key frames of the video stream that generate the collision, and then the duration of each scattered interval may be determined as the accumulated duration of a single collision.
[0132] S530: Determine the collision severity of the video stream based on the number of collisions, the cumulative duration of a single collision, and the number of collision video streams.
[0133] Optionally, based on the above methods, the number of collisions, the cumulative duration of a single collision and the number of collision video streams are determined respectively, and the collision severity of the video stream can be calculated. Specifically, a collision severity score can be calculated to characterize the collision severity of the video stream.
[0134] The specific implementation process of determining the collision severity of a video stream in the video stream transmission information evaluation method provided in the embodiment of the present application is explained in detail below.
[0135] Figure 6 For another flow chart of the video stream transmission information evaluation method provided in the embodiment of the present application, please refer to Figure 6 , based on the number of collisions, the cumulative duration of a single collision, and the number of collision video streams, the collision severity of the video stream is determined, including:
[0136] S610: Determine the weight of each collision based on the cumulative duration of a single collision and the number of collision video streams.
[0137] Optionally, assuming that at most M collisions occur in the current observation window, set cumulative timers for a total of M collision states [1, 2, 3, ..., M] and assign corresponding M weights. That is, the higher the number of collision frames, the higher the weight, which means the overall collision is more serious. Conversely, the lower the number of collision frames, the lower the weight, which means the overall collision is less serious.
[0138] Specifically, the weight can be determined based on the cumulative duration of each collision and the number of collision video streams. When the number of collision video streams is the same, the longer the cumulative duration of the collision, the greater the weight; when the cumulative duration of the collision is the same, the more the number of collision video streams, the greater the weight, and vice versa, which is not repeated here.
[0139] S620: Calculate a video stream collision severity score based on the number of collisions and the weight of each collision.
[0140] Optionally, the video stream collision severity score may be determined based on the number of collisions and the weight of each collision, and the calculated score may be used as an evaluation result of the video stream collision severity.
[0141] It should be noted that when calculating the video stream collision severity score, it can be calculated based on a preset calculation formula. For example, the number of collisions and the weight of each collision can be used, or the cumulative duration of a single collision and the number of collision video streams can be used for calculation. There is no specific limitation here, as long as a formula for characterizing the severity can be determined.
[0142] Optionally, determining a key frame of a video stream that generates a collision and at least one collision video stream that collides with the video stream during the collision process includes: for a target key frame currently received in the video stream, determining whether there is a key frame of an associated video stream that has the same reception time as the target key frame and belongs to a key frame outside the video stream, and if so, determining the target key frame as a key frame that generates a collision, and determining the associated video stream as a collision video stream that collides with the video stream.
[0143] Optionally, in the specific process of determining the collision video stream, for the target key frame currently received in the video stream, it is determined whether there is a key frame of an associated video stream that has the same reception time as the target key frame and belongs to a non-video stream.
[0144] The specific method can be determined as follows:
[0145] When a key frame collision occurs, record the start time and end time of the key frame collision, and the collision duration is equal to the collision end time minus the collision start time. At the same time, record the video stream combination of the frame collision involved in the key frame. Set timers for different collision scenarios and calculate the cumulative collision time under different collision scenarios. The cumulative time timer for a key frame collision scenario in the current observation window is represented by ti; the duration of the jth collision occurring in the i-th frame collision scenario is represented by Timer i j (j≥1) indicates that. Then there is the following expression:
[0146] t i =∑ j Timer i j ;
[0147] For example, suppose the following collision information is recorded in the current observation window:
[0148] 1 collision of five frames, the collision time is: The collision stream combination is:
[0149] flow_ID = [3,4,5,6,8]
[0150] 3 three-frame collisions, the collision times are: The collision stream combination is:
[0151] flow_ID=[2,5,6],[5,8,9],[2,5,6]
[0152] 4 two-frame collisions, the collision times are: The collision stream combination is:
[0153] flow ID =[1,2],[4,7],[8,9],[1,2],[4,7]
[0154] Then the cumulative collision time under each collision scenario can be obtained as follows:
[0155]
[0156]
[0157]
[0158] Accordingly, a collision video stream for each collision may be determined, and there may be multiple collision video streams.
[0159] The following describes the apparatus, device, storage medium, etc. corresponding to the video stream transmission information evaluation method provided in the present application. The specific implementation process and technical effects are as mentioned above and will not be described in detail below.
[0160] Figure 7 For a schematic diagram of the structure of the video stream transmission information evaluation device provided in the embodiment of the present application, please refer to Figure 7 , the device is applied to a video stream processing device, the video stream processing device is communicatively connected with a plurality of video stream sending sources, the device comprises: a receiving module 710, a first information determining module 720 and a second information determining module 730;
[0161] The receiving module 710 is used to receive the video stream sent by each video stream sending source, the video stream includes: a plurality of key frames arranged in time sequence, each key frame is composed of a plurality of data packets;
[0162] A first information determination module 720, configured to determine first transmission information of the video stream based on the arrival time of the data packets in each key frame, wherein the first transmission information is used to characterize the transmission quality of the key frames in each video stream;
[0163] The second information determination module 730 is used to determine the second transmission information of the video stream based on the duration of the key frame generating the collision in the video stream, and the second transmission information is used to represent the information that each video stream is affected by other video streams.
[0164] Optionally, the first transmission information includes: arrival delay; a first information determination module 720, specifically used to obtain the start time of the video stream sending source corresponding to the video stream; determine the arrival delay based on the arrival time of the first data packet in the first key frame of the video stream and the start time of the video stream sending source.
[0165] Optionally, the first transmission information includes: phase jitter information; a first information determination module 720, specifically used to determine whether the phase jitter of each key frame in the video stream exceeds a preset threshold based on the arrival time of the first data packet in each key frame of the video stream.
[0166] Optionally, the first information determination module 720 is specifically used to determine a first time difference based on the arrival time of the first data packet in the first key frame of the video stream and the arrival time of the first data packet in the second key frame; determine a second time difference based on the arrival time of the first data packet in the second key frame of the video stream and the arrival time of the first data packet in the third key frame, wherein the first key frame, the second key frame and the third key frame are key frames adjacent in sequence; determine whether the phase jitter of the first key frame exceeds a preset threshold based on the first time difference and the second time difference.
[0167] Optionally, the second transmission information includes: the severity of the collision; a second information determination module 730, which is specifically used to determine the key frames of the video stream that generate collisions and at least one collision video stream that collides with the video stream during the collision process; determine the number of collisions corresponding to the video stream and the cumulative duration of a single collision based on the duration of the key frames of the video stream that generate collisions; determine the collision severity of the video stream based on the number of collisions, the cumulative duration of a single collision and the number of collision video streams.
[0168] Optionally, the second information determination module 730 is specifically configured to determine the weight of each collision based on the cumulative duration of a single collision and the number of collision video streams; and calculate the collision severity score of the video stream based on the number of collisions and the weight of each collision.
[0169] Optionally, the second information determination module 730 is further specifically used to determine, with respect to a target key frame currently received in the video stream, whether there is a key frame of an associated video stream that has the same reception time as the target key frame and belongs to a video stream other than the video stream; if so, the target key frame is determined to be a key frame that generates a collision, and the associated video stream is determined to be a collision video stream that collides with the video stream.
[0170] In a video stream transmission information evaluation device provided in an embodiment of the present application, the video streams sent by each video stream transmission source can be received, and then the first transmission information of the video stream can be determined based on the arrival time of the data packet in each key frame, and the second transmission information of the video stream can be determined based on the duration of the key frame that generates the collision in the video stream. Among them, the first transmission information is used to characterize the transmission quality of the key frames in each video stream, and the second transmission information is used to characterize the information on the influence of other video streams on each video stream. By determining the first transmission information and the second transmission information, the transmission quality of the key frames in each video stream and the related information on the influence of other video streams on each video stream can be more comprehensively determined, thereby improving the accuracy and diversity of the evaluation results, and more comprehensively evaluating and determining the transmission quality during the video stream transmission process.
[0171] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0172] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0173] Figure 8 For a schematic diagram of the structure of the computer device provided in the embodiment of the present application, please refer to Figure 8 The computer device includes: a memory 810 and a processor 820. The memory 810 stores a computer program that can be run on the processor 820. When the processor 820 executes the computer program, the steps of the video stream transmission information evaluation method are implemented.
[0174] Optionally, the above-mentioned computer device may specifically be a video stream processing device.
[0175] In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the video stream transmission information evaluation method are implemented.
[0176] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0179] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0180] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0181] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for evaluating video stream transmission information, characterized in that: The method is applied to a video stream processing device, the video stream processing device is communicatively connected with a plurality of video stream sending sources, and the method comprises: Receiving a video stream sent by each of the video stream sending sources, the video stream comprising: a plurality of key frames arranged in time sequence, each of the key frames consisting of a plurality of data packets; Determining first transmission information of the video stream based on arrival time of data packets in each of the key frames, wherein the first transmission information is used to characterize transmission quality of the key frames in each of the video streams; Determine second transmission information of the video stream based on the duration of the key frame generating the collision in the video stream, wherein the second transmission information is used to represent the information that each video stream is affected by other video streams; The second transmission information includes: collision severity; The determining the second transmission information of the video stream based on the duration of the key frame generating the collision in the video stream comprises: Determine a key frame of the video stream that generates a collision and at least one collision video stream that collides with the video stream during a collision process; Determine the number of collisions corresponding to the video stream and the cumulative duration of a single collision based on the duration of the key frame generating the collision in the video stream; The collision severity of the video stream is determined based on the number of collisions, the cumulative duration of the single collisions, and the number of the collision video streams.
2. The video stream transmission information evaluation method according to claim 1, characterized in that: The first transmission information includes: arrival delay; The determining the first transmission information of the video stream based on the arrival time of the data packets in each of the key frames includes: Obtaining the start time of the video stream sending source corresponding to the video stream; The arrival delay is determined based on the arrival time of the first data packet in the first key frame of the video stream and the start time of the video stream sending source.
3. The video stream transmission information evaluation method according to claim 1, characterized in that: The first transmission information includes: phase jitter information; The determining the first transmission information of the video stream based on the arrival time of the data packets in each of the key frames includes: It is determined whether the phase jitter of each key frame in the video stream exceeds a preset threshold based on the arrival time of the first data packet in each key frame of the video stream.
4. The video stream transmission information evaluation method according to claim 3, characterized in that: The determining, based on the arrival time of the first data packet in each key frame of the video stream, whether the phase jitter of each key frame in the video stream exceeds a preset threshold value comprises: Determine a first time difference based on an arrival time of a first data packet in a first key frame of the video stream and an arrival time of a first data packet in a second key frame; Determine a second time difference based on an arrival time of a first data packet in a second key frame of the video stream and an arrival time of a first data packet in a third key frame, wherein the first key frame, the second key frame and the third key frame are sequentially adjacent key frames; It is determined whether the phase jitter of the first key frame exceeds a preset threshold based on the first time difference and the second time difference.
5. The video stream transmission information evaluation method according to claim 4, characterized in that: The determining the collision severity of the video stream based on the number of collisions, the accumulated duration of the single collisions, and the number of collision video streams includes: Determine the weight of each collision based on the cumulative duration of the single collision and the number of collision video streams; The video stream collision severity score is calculated based on the number of collisions and the weight of each collision.
6. The video stream transmission information evaluation method according to claim 1, characterized in that: The step of determining the key frame of the video stream that generates a collision and at least one collision video stream that collides with the video stream during the collision process includes: For the target key frame currently received in the video stream, determine whether there is a key frame of an associated video stream that has the same reception time as the target key frame and belongs to a key frame outside the video stream. If so, determine that the target key frame is a key frame that generates a collision, and determine that the associated video stream is a collision video stream that collides with the video stream.
7. A video stream transmission information evaluation device, characterized in that: The device is applied to a video stream processing device, the video stream processing device is communicatively connected with a plurality of video stream sending sources, and the device comprises: a receiving module, a first information determining module and a second information determining module; The receiving module is used to receive the video stream sent by each of the video stream sending sources, wherein the video stream includes: a plurality of key frames arranged in time sequence, each of the key frames is composed of a plurality of data packets; The first information determination module is used to determine the first transmission information of the video stream based on the arrival time of the data packet in each of the key frames, and the first transmission information is used to characterize the transmission quality of the key frame in each video stream; The second information determination module is used to determine the second transmission information of the video stream based on the duration of the key frame generating the collision in the video stream, wherein the second transmission information is used to represent the influence information of each video stream on other video streams; The second transmission information includes: the severity of the collision; the second information determination module, which is specifically used to determine the key frames of the video stream that generate collisions and at least one collision video stream that collides with the video stream during the collision process; based on the duration of the key frames of the video stream that generate collisions, determine the number of collisions corresponding to the video stream and the cumulative duration of a single collision; based on the number of collisions, the cumulative duration of a single collision and the number of collision video streams, determine the collision severity of the video stream.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method described in any one of claims 1 to 6.
