A method, device, equipment and medium for detecting interaction delay

By recording the time consumption and timestamps of the sender and receiver in the detection tag and calculating the two-way interaction delay, the problem of rough and complex interaction delay calculation in the existing technology is solved, and higher accuracy and convenience are achieved.

CN116887007BActive Publication Date: 2024-10-22GUANGZHOU KINDLINK SOFTWARE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310628175.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2024-10-22
Estimated Expiration
2043-05-30

AI Technical Summary

Technical Problem

The existing interactive delay calculation method is rough and complex in operation. It fails to fully consider the time-consuming processing of video data at the sending end or receiving end. Moreover, the one-way delay calculation is inaccurate and cannot effectively reflect the real network environment.

Method used

By writing the time spent at the sending end and receiving end in the detection tag, and recording the sending and receiving timestamps, the two-way interaction delay is calculated to improve calculation accuracy and convenience.

Benefits of technology

The calculation accuracy and convenience of two-way interaction delay are improved, which can more accurately reflect the delay in the real network environment and simplify the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116887007B_ABST
    Figure CN116887007B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for detecting interaction delay, and the present application belongs to the field of Internet technology. The method includes: obtaining the time consumption of the sending end of the interaction information; wherein the interaction information includes video information and / or audio information; generating a detection tag, and writing the sending end time consumption into the detection tag; sending the detection tag to the receiving end to instruct the receiving end to write the obtained receiving end time consumption into the detection tag, and record the sending timestamp; receiving the detection tag, and recording the receiving timestamp; determining the interaction delay between the sending end and the receiving end according to the sending timestamp, receiving timestamp, sending end time consumption and receiving end time consumption. The present technical solution can take into account not only the delay caused by the real network environment of the interaction, but also the time consumption of each end in processing the video stream, thereby improving the calculation accuracy and convenience of the two-way interaction delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet technology, and specifically relates to a method, device, equipment and medium for detecting interaction delay. Background Art

[0002] With the rapid development of Internet technology, people have ushered in a highly efficient way of interaction online, namely interactive video.

[0003] The application scenarios of interactive videos are relatively extensive. The following takes the educational recording and broadcasting scenario as an example for explanation. For example, in the educational recording and broadcasting scenario, classroom A is used to collect the teacher's teaching video. After the collection is completed, the video stream is sent to the cloud server through the recording and broadcasting host. The recording and broadcasting host of another classroom B pulls the stream from the cloud server, obtains the teacher's teaching video stream, and processes and displays it on the local side. In addition, classroom B can collect the video of the students in the classroom, and send the video stream to the cloud server through the recording and broadcasting host after the collection is completed. In this way, the recording and broadcasting host of classroom A pulls the stream from the cloud server, and after obtaining the student video stream, it can be processed and displayed on the local side. In this way, two-way interactive video in the educational recording and broadcasting scenario can be achieved.

[0004] In the process of two-way interaction, the collection of interaction delay is particularly important. Interaction delay can not only be used to evaluate the quality of interaction, but also to determine the user's experience of educational recording. Therefore, a large number of methods for calculating interaction delay have emerged, such as sending a labeled data packet and receiving the data packet returned by the other end, and determining the interaction delay based on the time difference between sending and receiving. Alternatively, the video stream of the standard clock is acquired and sent by the camera, and after the other end receives it, the time difference between the time of the standard clock and the local time point is obtained, and then multiplied by 2, and the two-way interaction delay is calculated by the one-way delay. The above two calculation methods, on the one hand, do not fully consider the processing time of video data at the sending or receiving end, and on the other hand, the calculation of the one-way delay will produce a phenomenon that is inconsistent with the actual network environment, and the calculation often requires more complicated operations, which is not easy to operate for the determination process of the two-way interaction delay. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method, device, equipment and medium for detecting interaction delay, which can solve the technical problems of rough calculation of two-way interaction delay and complex operation. By writing the video processing time into the detection tag, it can take into account both the delay caused by the real network environment of the interaction and the time spent on processing the video stream at each end, thereby improving the calculation accuracy and convenience of the two-way interaction delay.

[0006] In a first aspect, an embodiment of the present application provides a method for detecting interaction delay, the method being executed by a sending end, the sending end being connected to and interacting with a receiving end; the method comprising:

[0007] The time consumption of the sender for acquiring the interactive information; wherein the interactive information includes video information and / or audio information;

[0008] generating a detection tag, and writing the time consumed by the transmitting end into the detection tag;

[0009] Sending the detection tag to the receiving end to instruct the receiving end to write the acquired receiving end time consumption into the detection tag and record the sending timestamp;

[0010] receiving the detection tag and recording a receiving timestamp;

[0011] An interaction delay between the sending end and the receiving end is determined according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption.

[0012] In a second aspect, an embodiment of the present application provides a method for detecting interaction delay, the method being executed by a receiving end, the receiving end being connected to and interacting with a sending end; the method comprising:

[0013] The receiving end consumes time to obtain the interactive information; wherein the interactive information includes video information and / or audio information;

[0014] Receiving the detection tag sent by the sending end, wherein the detection tag includes the sending end time consumption and the sending timestamp acquired by the sending end;

[0015] The acquired receiving end time is written into the detection tag and fed back to the sending end so that the sending end can record the receiving timestamp, and determine the interaction delay between the sending end and the receiving end based on the sending timestamp, the receiving timestamp, the sending end time and the receiving end time.

[0016] In a third aspect, an embodiment of the present application provides a detection device for interaction delay, wherein the device is configured at a sending end, and the sending end is connected to and interacts with a receiving end; the device comprises:

[0017] A sending end time consumption acquisition module, used to acquire the sending end time consumption of interaction information; wherein the interaction information includes video information and / or audio information;

[0018] A detection tag generation module, used to generate a detection tag and write the time consumption of the sending end into the detection tag;

[0019] A detection tag sending module, used to send the detection tag to the receiving end to instruct the receiving end to write the acquired receiving end time consumption into the detection tag and record the sending timestamp;

[0020] A detection tag receiving module, used for receiving the detection tag and recording a receiving timestamp;

[0021] The interaction delay determination module is used to determine the interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption.

[0022] In a fourth aspect, an embodiment of the present application provides a detection device for interaction delay, wherein the device is configured at a receiving end, and the receiving end is connected to and interacts with a sending end; the device comprises:

[0023] A receiving end time consumption acquisition module, used to acquire the receiving end time consumption of interaction information; wherein the interaction information includes video information and / or audio information;

[0024] A detection tag receiving module, used for receiving the detection tag sent by the sending end, wherein the detection tag includes the sending end time consumption and the sending timestamp acquired by the sending end;

[0025] The receiving end time-consuming writing module is used to write the acquired receiving end time-consuming into the detection tag and feed it back to the sending end so that the sending end can record the receiving timestamp, and determine the interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time-consuming and the receiving end time-consuming.

[0026] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0027] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0028] In a seventh aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0029] In the embodiment of the present application, by counting the time consumed by the sender and the receiver of the interactive information, and using the detection tag, the sending timestamp of the detection tag and the receiving timestamp of the detection tag can be collected, and the interaction delay between the sender and the receiver can be determined based on these data. By writing the video processing time into the detection tag, this solution can take into account the delay caused by the real network environment of the interaction and the time consumed by each end to process the video stream, thereby improving the calculation accuracy and convenience of the two-way interaction delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flowchart of the method for detecting interaction delay provided in the first embodiment of the present application;

[0031] Figure 2 is a flow chart of a method for detecting interaction delay provided in Embodiment 2 of the present application;

[0032] Figure 3 is a flow chart of a method for detecting interaction delay provided in Embodiment 3 of the present application;

[0033] Figure 4 is a flow chart of a method for detecting interaction delay provided in Embodiment 4 of the present application;

[0034] Figure 5 This is a signaling diagram of the detection process of interactive delay provided in Embodiment 4 of the present application;

[0035] Figure 6 It is a structural schematic diagram of an interactive delay detection device provided in Embodiment 5 of the present application;

[0036] Figure 7 is a schematic diagram of the structure of an interactive delay detection device provided in Example 6 of the present application;

[0037] Figure 8 It is a structural diagram of an electronic device provided in Example 7 of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions 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. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0040] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0041] The following, in conjunction with the accompanying drawings, describes in detail the interactive delay detection method, device, equipment and medium provided by the embodiments of the present application through specific embodiments and their application scenarios.

[0042] Embodiment 1

[0043] Figure 1 1 is a flow chart of a method for detecting interaction delay provided in the first embodiment of the present application. The method is executed by a sending end, and the sending end is connected to and interacts with a receiving end. Figure 1 As shown, the specific steps include:

[0044] S101, obtaining the time consumption of the sending end of the interactive information; wherein the interactive information includes video information and / or audio information.

[0045] The application scenario of this solution can be an interactive scenario of two-way video or two-way audio based on terminal devices and the Internet. Among them, the terminal devices can be mobile phones, tablet computers, desktop computers, and data acquisition devices such as microphones and cameras used in conjunction with the above terminal devices.

[0046] It can be understood that the executor of this solution can be the above-mentioned terminal device, or other terminal products equipped with a collection device, which is not specifically limited here.

[0047] The hardware equipment required for the implementation of this solution is to have a transmitter and a receiver, and the two are connected through a network and interact with each other. The process of establishing a network connection between the transmitter and the receiver can refer to any method of establishing a network connection in the field, and this solution does not make specific restrictions. It should be noted that after the network connection is established, the transmitter and the receiver can send the audio and video content they have collected to the other end, so the identity definition of the transmitter and the receiver is not strictly fixed, and can be interchanged with the process of sending and receiving data packets.

[0048] In this solution, the interactive information may include video information and / or audio information, wherein the video information and audio information may be obtained based on the camera and microphone of the sender itself, or based on the camera and microphone connected to the sender. In addition, the video information and audio information may also be obtained by other means, such as being transmitted from network resources, or being obtained from a mobile storage device through a USB interface, wherein the mobile storage device may include a mobile hard disk, a USB flash drive, etc.

[0049] The time consumed by the sender to obtain the interactive information may be based on the acquisition time and encoding time of the video information and / or audio information sent by the hardware device of the sender, as well as the decoding time and display time of decoding the data packet returned by the receiver.

[0050] In this solution, since the acquisition, encoding, decoding and display of video information and / or audio information can be realized through different nodes, the time consumption data of each node in the current interaction process can be determined. Specifically, after establishing a connection with the receiving end, in the process of interacting with the receiving end, the time consumption information of each node within a certain length of time or a certain time is counted, and the average value is calculated as the acquisition time, encoding time, decoding time and display time.

[0051] S102, generating a detection tag, and writing the time consumption of the sending end into the detection tag.

[0052] In this solution, the detection tag can be a tag value that can be written with information, such as tag value A. The tag value can be written into a normal data packet and sent to the receiving end as a separate data packet.

[0053] The detection tag may include multiple fields for writing information, and the format or name of each field may be predetermined, for example, the field names include the time consumed by the transmitter to collect, the time consumed by the transmitter to process, the time consumed by the transmitter to play, etc. In this way, in the subsequent processing process, it is sufficient to fill in the corresponding positions with the collected various time consumptions.

[0054] It can be understood that in this solution, the detection tag needs to be sent to the receiving end, and an instruction is given to the receiving end to fill the time consumed by the receiving end into the detection tag and return it to the sending end.

[0055] S103, sending the detection tag to the receiving end to instruct the receiving end to write the acquired receiving end consumption time into the detection tag and record the sending timestamp.

[0056] In this solution, the detection tag can be sent as a separate data packet, or it can be attached or hidden in other data packets. In this solution, it can be hidden in the SEINALU packet through H264 video encoding technology;

[0057] The H.264 code stream structure can be composed of multiple NALUs;

[0058] The NALU package includes:

[0059] NAL: Network Abstraction Layer, network abstraction layer;

[0060] NAL unit is the basic syntax structure of NAL, which contains a byte of header information (NAL header) and a series of raw data byte streams (RBSP) from VCL.

[0061] A raw H.264NALU must start with "00 00 00 01" or "00 00 01";

[0062] The NALU header is one byte and consists of three parts: forbidden_bit (1 bit) H264 defines that this bit must be zero, nal_reference_bit (2 bits) (priority, 3 is the highest), nal_unit_type (5 bits) (type).

[0063] forbidden_bit: forbidden bit;

[0064] nal_reference_bit: the priority of the current NAL. The larger the value, the more important the NAL is.

[0065] nal_unit_type: NAL type;

[0066] The Start Code Prefix is ​​3 bytes. However, for the convenience of addressing, the data stream is required to be aligned in length, so H.264 recommends adding several zeros in front of the Start Code Prefix.

[0067] RBSP

[0068] RBSP: Raw Byte Sequence Payload

[0069] Composed of SODB and RBSP trailing bits

[0070] SODB

[0071] SODB: String Of Data Bits (raw data bit stream, the length is not necessarily a multiple of 8, so it needs to be padded)

[0072] RBSP trailing bits syntax

[0073] The RBSP level of the H.264 code stream is composed of SODB and RBSP trailing bits.

[0074] Since the encoded data needs to be assembled accurately to bits, and the code stream is in bytes, it needs to be padded to bytes.

[0075] Logical relationship:

[0076] SODB+RBSP trailing bits=RBSP;

[0077] NAL header(1byte)+RBSP=NALU;

[0078] Start Code Prefix(3bytes)+NALU+Start Code Prefix(3bytes)+NALU+...=H.264BitsStream.

[0079] NALU type:

[0080] SEI

[0081] NALU type = 6;

[0082] SEI: Supplemental Enhancement Information, supplemental enhancement information;

[0083] It belongs to the category of bitstream, which provides a method to add additional information to the video bitstream and is one of the features of the video compression standards such as H.264 / H.265;

[0084] SPS

[0085] SPS: Sequence Parameter Set, sequence parameter set;

[0086] NAL uint_type = 7;

[0087] Includes all the information of an image sequence (including parameters for a continuously coded video sequence, such as the identifier seq_parameter_set_id, the number of frames and POC constraints, the number of reference frames, the decoded image size, and the frame field coding mode selection flag, etc.);

[0088] PPS

[0089] PPS: Picture Parameter Set, image parameter set;

[0090] NAL uint_type = 8;

[0091] Includes information about all slices of an image (corresponding to a certain image or several images in a sequence, parameters such as identifier pic_parameter_set_id, optional seq_parameter_set_id, entropy coding mode selection flag, number of slice groups, initial quantization parameter and deblocking filter coefficient adjustment flag, etc.).

[0092] In this solution, it can be understood that the detection tag can also have the function of transmitting instructions, which can instruct the receiving end to write the acquired receiving end time consumption into the detection tag.

[0093] The method for obtaining the time consumption of the receiving end is similar to the method for obtaining the time consumption of the sending end, and will not be repeated here.

[0094] This solution also needs to record the sending timestamp, because the recorded sending timestamp can be used together with the subsequent receiving timestamp to determine the network delay.

[0095] S104, receiving the detection tag and recording a receiving timestamp.

[0096] After the receiving end receives the detection tag, fills in the corresponding data and returns it to the sending end, the sending end can receive the detection tag and record the receiving timestamp.

[0097] It is understandable that the formats of the receiving timestamp and the sending timestamp are the same, which can facilitate subsequent calculation and processing. In addition, both the receiving timestamp and the sending timestamp can use the system time of the sender, because the timestamp is recorded at the sender, so using the system time of the sender can ensure the accuracy of the time difference reflected by the timestamp.

[0098] S105, determining an interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption.

[0099] In this solution, the interaction delay can be determined based on the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption.

[0100] The specific calculation method can be to subtract the sending timestamp from the receiving timestamp to obtain the network delay, and then add the sending end time to the receiving end time to obtain the processing delay;

[0101] Then add the network delay to the processing delay to get the two-way interaction delay.

[0102] The technical solution provided in this embodiment is to obtain the time consumption of the sending end of the interactive information; wherein the interactive information includes video information and / or audio information; generate a detection tag, and write the sending end time consumption into the detection tag; send the detection tag to the receiving end to instruct the receiving end to write the obtained receiving end time consumption into the detection tag, and record the sending timestamp; receive the detection tag and record the receiving timestamp; determine the interactive delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption. By implementing this solution, it is possible to take into account not only the delay caused by the real network environment of the interaction, but also the time consumption of each end in processing the video stream, thereby improving the calculation accuracy and convenience of the two-way interactive delay.

[0103] Based on the above technical solution, optionally, after the sending end is connected with the receiving end and interacts with each other, the method further includes:

[0104] Generate the time-consuming statistics instruction of the sending end;

[0105] During the interaction, the time consumption of the sending end is determined by counting the interactive information processing process for a preset number of times.

[0106] After the sender and the receiver are connected and interactive information is transmitted, the time-consuming statistics instruction of the sender can be triggered automatically or according to a specific event. For example, when the connection is established and interactive information is transmitted for the first time, a statistics instruction is generated, or after 20 seconds or 1 minute after the interactive information is transmitted, the time-consuming statistics of the sender are started.

[0107] In addition, the sending end may also start counting the time consumed by the sending end after receiving the operation instruction sent by the user.

[0108] During the interaction process, the time consumption of the sender can be determined by counting the preset number of interactive information processing processes. For example, the time consumption of the sender is counted through 100 interactive information processing processes. For example, for 100 times, the average acquisition time consumption of the sender is 0.03 seconds, the average encoding time consumption is 0.01 seconds, and the average processing time consumption of the information returned by the receiving end is 0.04 seconds, and so on.

[0109] In this solution, in addition to the preset number of times, the time consumption information of each processing node can also be counted based on the processing process of the interactive information within a preset time. For example, the time consumption information of each processing node is counted within 10 minutes.

[0110] It is understandable that after monitoring a preset number of times or a preset duration, the data may be filtered during the statistical process to avoid the impact of individual erroneous values ​​on the entire statistical result.

[0111] This embodiment provides a specific method for counting the time consumed by the sending end. Through such statistics, the time consumption information of each processing node in the actual scenario in which the sending end currently interacts with the receiving end can be obtained. Not only is the calculation result accurate, but it can also be implemented without relying on too many external devices, thereby improving the convenience of the statistical results obtained by this solution.

[0112] On the basis of the above technical solutions, optionally, the sending end time consumption includes the sending end collection time consumption and the sending end processing time consumption;

[0113] The receiving end time consumption includes the receiving end acquisition time consumption and the receiving end processing time consumption.

[0114] The acquisition time consumption at the transmitting end can be understood as the time consumption at the transmitting end for acquiring video information and the time consumption at the transmitting end for acquiring audio information.

[0115] The processing time at the sending end can be understood as the time required for the sending end to receive the returned detection tag and process it.

[0116] The acquisition time at the receiving end can be understood as the time consumed by the receiving end to acquire video information and the time consumed by the receiving end to acquire audio information.

[0117] The processing time at the receiving end can be understood as the time required for the receiving end to receive the detection tag and process it.

[0118] In this embodiment, by summarizing the processing process, a simple time consumption model of the sending end and the receiving end can be obtained, and the time consumption data of each node can be calculated, thereby reducing the subsequent calculation amount.

[0119] Embodiment 2

[0120] Figure 2 It is a flow chart of the interactive delay detection method provided in the second embodiment of the present application. This scheme makes a better improvement on the above embodiment, and the specific improvement is: before obtaining the time consumption of the sending end of the interactive information, the method also includes: recording the input type of the interactive information; wherein the input type includes at least one of the external device transmission type, the high-definition multimedia interface transmission type and the audio and video collector collection type; accordingly, according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption, the interactive delay between the sending end and the receiving end is determined, including: according to the sending timestamp, the receiving timestamp, the sending end time consumption, the receiving end time consumption and the recorded input type, the interactive delay between the sending end and the receiving end for the current input type is determined.

[0121] like Figure 2 As shown, the specific steps include:

[0122] S201, recording the input type of the interactive information; wherein the input type includes at least one of an external device transmission type, a high-definition multimedia interface transmission type, and an audio and video collector collection type.

[0123] Among them, the interactive information can be audio information or video information. If it is audio information, the input type can include external device transmission type, high-definition multimedia interface transmission type, and audio and video collector collection type. Among them, the external device transmission type (LINE_IN) can be the audio data collected by the terminal device through a wired microphone, a wireless microphone, a wired headset, and a wireless headset; the high-definition multimedia interface transmission type (HDMI_IN) can be the audio data collected by the terminal device through an HDMI (High Definition Multimedia Interface) line; the audio and video collector collection type (MIC_IN) can enable the terminal device to collect audio data through its own microphone. The above types can also support such type classification for video information, which will not be repeated here.

[0124] In this solution, after recording the corresponding input type, the input type can be used as a specific mark to divide the detection tags, so that the sending end time consumption corresponding to each input type can be distinguished.

[0125] In addition, an input type field may be provided in the detection tag. After different input types obtain audio information or video information, the corresponding number may be written into the detection tag to mark the input type.

[0126] S202, obtaining the time consumption of the sending end of the interactive information; wherein the interactive information includes video information and / or audio information.

[0127] S203, generating a detection tag, and writing the time consumption of the sending end into the detection tag.

[0128] S204: Send the detection tag to the receiving end to instruct the receiving end to write the acquired receiving end time consumption into the detection tag and record the sending timestamp.

[0129] S205, receiving the detection tag and recording a receiving timestamp.

[0130] S206, determining an interaction delay between the sending end and the receiving end for the current input type according to the sending timestamp, the receiving timestamp, the sending end time consumption, the receiving end time consumption and the recorded input type.

[0131] In this solution, the interaction delay can be calculated for different input types, so that the collection time or processing time corresponding to different input types can be distinguished and reflected, thereby improving the detection accuracy of the interaction delay.

[0132] Embodiment 3

[0133] Figure 3 It is a flow chart of the interactive delay detection method provided in Example 3 of the present application. This scheme makes a better improvement on the above-mentioned embodiment, and the specific improvement is: when the interactive information includes video information and audio information, the interactive delay between the sender and the receiver is determined according to the sending timestamp, the receiving timestamp, the sending end time and the receiving end time, including: determining the video interactive delay between the sender and the receiver according to the sending timestamp, the receiving timestamp, the sending end time and the receiving end time of the video information; determining the audio interactive delay between the sender and the receiver according to the sending timestamp, the receiving timestamp, the sending end time and the receiving end time of the audio information; accordingly, after determining the video interactive delay and the audio interactive delay between the sender and the receiver, the method also includes: determining the audio and video synchronization data between the sender and the receiver according to the difference between the video interactive delay and the audio interactive delay.

[0134] like Figure 3 As shown, the specific steps include:

[0135] S301, obtaining the time consumption of the sending end of the interactive information; wherein the interactive information includes video information and / or audio information.

[0136] S302, generating a detection tag, and writing the time consumption of the sending end into the detection tag.

[0137] S303: Send the detection tag to the receiving end to instruct the receiving end to write the acquired receiving end time consumption into the detection tag and record the sending timestamp.

[0138] S304, receiving the detection tag and recording a receiving timestamp.

[0139] S305: Determine the video interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time and the receiving end time of the video information.

[0140] In each interaction process, the audio information and the video information are processed separately, or part of the processing process is separated. Therefore, the video interaction delay between the sending end and the receiving end can be determined separately for the video information.

[0141] The calculation method may be similar to the above method, and the video interaction delay of the video information may be determined according to the network delay and processing time of the video information.

[0142] S306: Determine the audio interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time and the receiving end time of the audio information.

[0143] Similarly, the audio interaction delay of the audio information can be determined based on the network delay and processing time of the audio information.

[0144] In this solution, it can be understood that the execution order of steps S305 and S306 is not limited. For example, S306 can be executed first and then S305, or the two steps can be executed simultaneously.

[0145] S307: Determine the audio and video synchronization data between the sending end and the receiving end according to the difference between the video interaction delay and the audio interaction delay.

[0146] After obtaining the video interaction delay and the audio interaction delay, the difference between the two can be used to obtain the time difference between the audio and video based on the current interaction delay. This time difference can be the time difference between the audio and video display at the sending end or the receiving end, which is the audio and video synchronization result. It can be understood that if the time difference between the two is greater than 0.1 seconds, the user can find that there is an audio and video synchronization problem during the viewing process.

[0147] Based on the above technical solution, this embodiment proposes a method for determining the audio and video synchronization result during the interactive information playback process according to the video interaction delay and the audio interaction delay. Through such a setting, it can further provide a data basis for whether there is a problem with the audio and video synchronization. Based on this, the corresponding control strategy can be adopted to effectively improve the user experience during the two-way interaction process.

[0148] Embodiment 4

[0149] Figure 4 1 is a flow chart of a method for detecting interaction delay provided in Embodiment 4 of the present application. The method is executed by a receiving end, and the receiving end is connected to and interacts with a sending end. Figure 4 As shown, the specific steps include:

[0150] S401, obtaining the time consumption of the receiving end of the interaction information; wherein the interaction information includes video information and / or audio information.

[0151] S402, receiving the detection tag sent by the sender, wherein the detection tag includes the sender time consumption and the sending timestamp obtained by the sender.

[0152] S403, writing the acquired receiving end time consumption into the detection tag and feeding back to the sending end, so that the sending end can record the receiving timestamp, and determining the interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption.

[0153] Furthermore, after the receiving end is connected with the sending end and interacts with each other, the method further includes:

[0154] Generate receiving end time consumption statistics instruction;

[0155] During the interaction, the time consumption at the receiving end is determined by counting the preset number of interactive information processing processes.

[0156] The technical solution provided in this embodiment obtains the time consumed by the receiving end of the interactive information; wherein the interactive information includes video information and / or audio information; receives the detection tag sent by the sending end, wherein the detection tag includes the sending end time consumed and the sending timestamp obtained by the sending end; writes the obtained receiving end time consumed into the detection tag, and feeds it back to the sending end, so that the sending end can record the receiving timestamp, and determine the interactive delay between the sending end and the receiving end based on the sending timestamp, the receiving timestamp, the sending end time consumed and the receiving end time consumed. By writing the video processing time consumed into the detection tag, this solution can take into account both the delay caused by the real network environment of the interaction and the time consumed by each end to process the video stream, thereby improving the calculation accuracy and convenience of the two-way interactive delay.

[0157] The technical solution provided in this embodiment corresponds to the execution subject of the technical solution provided in the above embodiments, and has the execution process and beneficial effects corresponding to the technical solution provided in the above embodiments, which will not be repeated here.

[0158] Figure 5 This is a signaling diagram of the detection process of interactive delay provided in the fourth embodiment of the present application. Figure 5 As shown, an interactive delay test is initiated at the sending end to generate a tag, wherein the tag value of the tag includes AS (audio send, audio sending end) and VS (video send, video sending end) fields.

[0159] Next, the AS and VS fields can be filled with the corresponding data costa1 (audio acquisition / processing time at the sender) and costv1 (video acquisition / processing time at the sender).

[0160] The tag value is then sent out, and the recorded stamp1 (the timestamp when the sender sends the tag value to the network) is written to the tag value.

[0161] After the receiving end receives the tag value, it can write the pre-collected costa2 (audio processing / playback time of the receiving end) and costv2 (video processing / display time of the receiving end) into the AR (audio recv, audio receiving end) and VR (video recv, video receiving end) fields.

[0162] In addition, the receiving end needs to write the costa3 (audio collection / processing time of the receiving end) and costv3 (video collection / processing time of the receiving end) collected by the local end into the AR and VR fields of the tag value, and return the tag value.

[0163] The sender receives the tag value and records stamp2 (the timestamp when the sender receives the returned tag value), writes it into the tag value, and writes costa4 (audio processing / processing time of the sender) and costv4 (video processing / processing time of the sender) into the AS and VS fields.

[0164] At this point, the content of the field is written.

[0165] On this basis, the following formula can be used for calculation:

[0166] Two-way audio delay = stamp2-stamp1+costa1+costa2+costa3+costa4;

[0167] Bidirectional video delay = stamp2-stamp1+costv1+costv2+costv3+costv4;

[0168] In this scheme, the tag value goes from the tag sending end to the tag receiving end, and then returns to the tag sending end. The whole process is a roundabout tag. By implementing this scheme, the two-way delay of audio and video can be statistically analyzed in real time, especially the two-way interactive delay can be obtained at any end of the interactive course;

[0169] Moreover, through the self-calculation method of the program, all links of audio and video data from collection, processing and consumption are comprehensively considered, and finally summarized and calculated on one end to obtain two-way delayed real-time data. This data can be aggregated into a line chart and other complex uses;

[0170] In the process of implementing the solution, the approach of being able to obtain delay data at either end is to allow users to obtain delay values ​​from the teaching end or the sending end respectively. In this case, the interactive classroom is not split into the push end and the pull end, but the marking sending end and the marking receiving end. Any end in the classroom (teaching end / listening section) can become the marked sending end or the marked receiving end. In this way, the relationship between the ends in the interactive process can be weakened, and it becomes a mark-centered sending and receiving. If a mark is sent, the interaction delay will be finally counted on this end.

[0171] In addition, this solution can take into account the processing time on the end device. For educational recording and broadcasting scenarios, a multi-input / multi-output heterogeneous audio architecture is used. The delay of each input / output mapping is different, and a single audio source cannot be used as the only reference value. In the second core step, when the mark value is mixed and superimposed with the local processing time, different input sources will be registered separately, so that different input sources can be taken into account. For example, if the audio input sources include LINE_IN / MIC_IN / HDMI_IN and other audio sources, they will be distinguished and the numerical statistics of LINE_IN_cost / MIC_IN_cost / HDMI_IN_cost will be marked separately;

[0172] In addition, this solution can analyze the synchronization of audio and video in interactive classrooms in real time, taking into account the two-way delay of audio and video, avoiding the previous statistical method that only uses a single system of video delay. After obtaining the delay data of audio and video respectively, the difference operation of the two data can be performed to know the synchronization of audio and video.

[0173] Embodiment 5

[0174] Figure 6 Schematic diagram of the structure of the interactive delay detection device provided in the fifth embodiment of the present application. Figure 6 As shown, the device is configured at the sending end, and the sending end is connected and interacts with the receiving end; specifically, it includes the following:

[0175] The sending end time consumption acquisition module 601 is used to obtain the sending end time consumption of the interaction information; wherein the interaction information includes video information and / or audio information;

[0176] A detection tag generation module 602, used to generate a detection tag and write the time consumed by the sending end into the detection tag;

[0177] The detection tag sending module 603 is used to send the detection tag to the receiving end to instruct the receiving end to write the acquired receiving end time into the detection tag and record the sending timestamp;

[0178] The detection tag receiving module 604 is used to receive the detection tag and record the receiving timestamp;

[0179] The interaction delay determination module 605 is used to determine the interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption.

[0180] The technical solution provided in this embodiment can collect the sending timestamp of the detection tag and the receiving timestamp of the detection tag by counting the time consumed by the sender and the receiver of the interactive information, and determine the interaction delay between the sender and the receiver based on these data. By writing the video processing time into the detection tag, this solution can take into account the delay caused by the real network environment of the interaction and the time consumed by each end to process the video stream, thereby improving the calculation accuracy and convenience of the two-way interaction delay.

[0181] The interactive delay detection device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0182] The interactive delay detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0183] The interactive delay detection device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0184] Embodiment 6

[0185] Figure 7 Schematic diagram of the structure of the interactive delay detection device provided in Example 6 of the present application. Figure 7 As shown, the device is configured at the receiving end, and the receiving end is connected to and interacts with the sending end; specifically, it includes the following:

[0186] The receiving end time consumption acquisition module 701 is used to obtain the receiving end time consumption of the interaction information; wherein the interaction information includes video information and / or audio information;

[0187] A detection tag receiving module 702 is used to receive the detection tag sent by the sending end, wherein the detection tag includes the sending end time consumption and the sending timestamp obtained by the sending end;

[0188] The receiving end time-consuming writing module 703 is used to write the acquired receiving end time-consuming into the detection tag and feed it back to the sending end so that the sending end can record the receiving timestamp, and determine the interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time-consuming and the receiving end time-consuming.

[0189] The technical solution provided in this embodiment can collect the sending timestamp of the detection tag and the receiving timestamp of the detection tag by counting the time consumed by the sender and the receiver of the interactive information, and determine the interaction delay between the sender and the receiver based on these data. By writing the video processing time into the detection tag, this solution can take into account the delay caused by the real network environment of the interaction and the time consumed by each end to process the video stream, thereby improving the calculation accuracy and convenience of the two-way interaction delay.

[0190] The interactive delay detection device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0191] The interactive delay detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0192] The interactive delay detection device provided in the embodiment of the present application can achieve Figure 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0193] Embodiment 7

[0194] Figure 8 Schematic diagram of the structure of the electronic device provided in Embodiment 7 of the present application. Figure 8 As shown, an embodiment of the present application further provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned interaction delay detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0195] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0196] Embodiment 8

[0197] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned interactive delay detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0198] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0199] Embodiment 9

[0200] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned interaction delay detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0201] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0202] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0203] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0204] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0205] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A method for detecting interaction delay, characterized in that: The method is performed by a sending end, and the sending end is connected and interacts with a receiving end; the method includes: The time consumption of the sender for acquiring the interactive information; wherein the interactive information includes video information and / or audio information; generating a detection tag, and writing the time consumed by the transmitting end into the detection tag; Sending the detection tag to the receiving end to instruct the receiving end to write the acquired receiving end time into the detection tag and record the sending timestamp; wherein the receiving end time is obtained by counting the interactive information processing process of a preset number of times during the interaction process; receiving the detection tag and recording a receiving timestamp; An interaction delay between the sending end and the receiving end is determined according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption.

2. The method according to claim 1, characterized in that After the sending end is connected with the receiving end and interacts with each other, the method further includes: Generate the time-consuming statistics instruction of the sending end; During the interaction, the time consumption of the sending end is determined by counting the interactive information processing process for a preset number of times.

3. The method according to claim 1 or 2, characterized in that: The sending end time consumption includes the sending end collection time consumption and the sending end processing time consumption; The receiving end time consumption includes the receiving end acquisition time consumption and the receiving end processing time consumption.

4. The method according to claim 1, characterized in that: Before acquiring the sending end time consumption of the interaction information, the method further includes: Recording the input type of the interactive information; wherein the input type includes at least one of an external device transmission type, a high-definition multimedia interface transmission type, and an audio and video collector collection type; Accordingly, determining the interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time and the receiving end time includes: An interaction delay between the sending end and the receiving end for the current input type is determined according to the sending timestamp, the receiving timestamp, the sending end time consumption, the receiving end time consumption and the recorded input type.

5. The method according to claim 1, characterized in that In the case where the interactive information includes video information and audio information, determining the interactive delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time consumption, and the receiving end time consumption includes: Determine a video interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time and the receiving end time of the video information; Determine the audio interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time and the receiving end time of the audio information; Accordingly, after determining the video interaction delay and the audio interaction delay between the transmitting end and the receiving end, the method further includes: The audio and video synchronization data between the sending end and the receiving end is determined according to the difference between the video interaction delay and the audio interaction delay.

6. A method for detecting interaction delay, characterized in that: The method is performed by a receiving end, which is connected to and interacts with a sending end; the method includes: The receiving end consumes time to obtain the interactive information; wherein the interactive information includes video information and / or audio information; Receiving a detection tag sent by the sending end, wherein the detection tag includes a sending end time consumption and a sending timestamp acquired by the sending end; The acquired receiving end time consumption is written into the detection tag and fed back to the sending end so that the sending end can record the receiving timestamp, and determine the interaction delay between the sending end and the receiving end based on the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption; wherein the receiving end time consumption is obtained by counting the interactive information processing process of a preset number of times during the interaction process.

7. A detection device for interactive delay, characterized in that: The device is configured at a transmitting end, and the transmitting end is connected to and interacts with a receiving end; the device includes: A sending end time consumption acquisition module, used to acquire the sending end time consumption of interaction information; wherein the interaction information includes video information and / or audio information; A detection tag generation module, used to generate a detection tag and write the time consumption of the sending end into the detection tag; A detection tag sending module is used to send the detection tag to the receiving end to instruct the receiving end to write the acquired receiving end time into the detection tag and record the sending timestamp; wherein the receiving end time is obtained by counting the interactive information processing process of a preset number of times during the interaction process; A detection tag receiving module, used for receiving the detection tag and recording a receiving timestamp; The interaction delay determination module is used to determine the interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time consumption and the receiving end time consumption.

8. An interactive delay detection device, characterized in that: The device is configured at a receiving end, and the receiving end is connected to and interacts with a sending end; the device includes: A receiving end time consumption acquisition module, used to acquire the receiving end time consumption of interaction information; wherein the interaction information includes video information and / or audio information; A detection tag receiving module, used for receiving the detection tag sent by the sending end, wherein the detection tag includes the sending end time consumption and the sending timestamp acquired by the sending end; The receiving end time-consuming writing module is used to write the acquired receiving end time-consuming into the detection tag and feed it back to the sending end so that the sending end can record the receiving timestamp, and determine the interaction delay between the sending end and the receiving end according to the sending timestamp, the receiving timestamp, the sending end time-consuming and the receiving end time-consuming; wherein the receiving end time-consuming is obtained by counting the interactive information processing process of a preset number of times during the interaction process.

9. An electronic device, characterized in that: It comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the interactive delay detection method as described in any one of claims 1 to 5 or claim 6.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the interactive delay detection method according to any one of claims 1 to 5 or claim 6 are implemented.