Audio and video data transmission method, device, electronic device and storage medium

Through the bandwidth evaluation and forwarding control module between the receiving end and the server, the audio and video data transmission is optimized, which solves the audio and video lagging problem caused by bandwidth resource limitations in online education and improves students' learning experience.

CN115052172BActive Publication Date: 2024-09-27BEIJING CENTURY TAL EDUCATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210626312.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-09-27
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

In online education scenarios, students need to pull multiple audio and video data streams, which leads to limited network bandwidth resources and audio and video lagging, which affects students' class experience.

Method used

Introduce the bandwidth evaluation module and forwarding control module between the receiving end and the server, adjust the transmission strategy of multi-channel audio and video data through the pre-built evaluation and control mechanism, generate control parameters based on the bandwidth evaluation results, and optimize the transmission of audio and video data , ensuring efficient bandwidth allocation and prioritization.

Benefits of technology

It effectively solves the audio and video lagging problem caused by bandwidth resource limitations, improves user experience, ensures stable transmission of multi-channel audio and video data in weak network environments, and maximizes the live broadcast experience of online education.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115052172B
    Figure CN115052172B
Patent Text Reader

Abstract

The present disclosure relates to an audio and video data transmission method, device, electronic device and storage medium. The audio and video data transmission method is applied to a receiving end, and the method includes: evaluating the bandwidth of the receiving end based on a pre-built bandwidth evaluation module to generate a bandwidth evaluation result; sending the bandwidth evaluation result to a server connected to the receiving end, the server is used to generate control parameters according to the bandwidth evaluation result through a pre-built forwarding control module; receiving multi-channel audio and video data adjusted based on the control parameters, wherein the multi-channel audio and video data is generated by a multi-channel sending end connected to the server. The method provided by the present disclosure can solve the audio and video freeze problem caused by bandwidth resource limitations when the client pulls multiple audio and video data streams at the same time, thereby maximizing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for transmitting audio and video data. Background Art

[0002] In online education scenarios, whether it is a pure small class education scenario or a large class with small groups education scenario, in order to restore the real atmosphere of the offline classroom to the greatest extent possible, students will interact with each other in real time through audio and video. In addition to pulling the teacher's audio and video data stream, students will also pull the audio and video data streams of other students. Since each student end needs to pull a large number of streams, the requirements for the network environment are relatively high.

[0003] At present, students usually need to pull multiple audio and video data streams at the same time. However, this streaming method will cause a small number of students in extremely weak network environments to experience audio and video freezes when watching live classes, which in turn affects the students' class experience. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides an audio and video data transmission method, device, electronic device and storage medium, which can solve the audio and video freeze problem caused by bandwidth resource limitations when the client pulls multiple audio and video data streams at the same time, and maximize the user experience.

[0005] According to one aspect of the present disclosure, there is provided a method for transmitting audio and video data, which is applied to a receiving end, and the method includes:

[0006] Evaluate the bandwidth of the receiving end based on a pre-built bandwidth evaluation module to generate a bandwidth evaluation result;

[0007] Sending the bandwidth evaluation result to a server connected to the receiving end, the server being used to generate a control parameter according to the bandwidth evaluation result through a pre-built forwarding control module;

[0008] Receive multiple channels of audio and video data adjusted based on the control parameters, wherein the multiple channels of audio and video data are generated by multiple channels of sending ends connected to the server end.

[0009] According to another aspect of the present disclosure, there is provided a method for transmitting audio and video data, which is applied to a server, and the method includes:

[0010] Receiving a bandwidth evaluation result, wherein the bandwidth evaluation result is generated by a receiving end connected to the server end according to the above-mentioned audio and video data transmission method;

[0011] A pre-built forwarding control module is used to generate control parameters according to the bandwidth evaluation result, and multiple channels of audio and video data adjusted based on the control parameters are sent to the receiving end, wherein the multiple channels of audio and video data are generated by a multiple channel sending end connected to the service end.

[0012] According to another aspect of the present disclosure, there is provided an audio and video data transmission device, which is applied to a receiving end and includes:

[0013] An evaluation unit, configured to evaluate the bandwidth of the receiving end based on a pre-built bandwidth evaluation module and generate a bandwidth evaluation result;

[0014] A sending unit, used for sending the bandwidth evaluation result to a server connected to the receiving end, the server being used for generating a control parameter according to the bandwidth evaluation result through a pre-built forwarding control module;

[0015] A receiving unit is used to receive multi-channel audio and video data adjusted based on the control parameters, wherein the multi-channel audio and video data is generated by a multi-channel sending end controlled by the server end.

[0016] According to another aspect of the present disclosure, there is provided an audio and video data transmission device, which is applied to a server, and includes:

[0017] A receiving unit, configured to receive a bandwidth evaluation result, wherein the bandwidth evaluation result is generated by a receiving end connected to the server end according to the above-mentioned audio and video data transmission method;

[0018] A generating unit is used to generate control parameters according to the bandwidth evaluation result by using a pre-built forwarding control module, and send the multi-channel audio and video data adjusted based on the control parameters to the receiving end, wherein the multi-channel audio and video data is generated by the multi-channel sending end connected to the service end.

[0019] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, enable the processor to execute the above-mentioned audio and video data transmission method.

[0020] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the audio and video data transmission method.

[0021] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the above-mentioned audio and video data transmission method when executed by a processor.

[0022] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0023] The present disclosure provides an audio and video data transmission method, which is applied to a receiving end, which can be understood as a client, and includes: evaluating the bandwidth of the receiving end based on a pre-built bandwidth evaluation module to generate a bandwidth evaluation result; sending the bandwidth evaluation result to a server connected to the receiving end, the server is used to generate a control parameter according to the bandwidth evaluation result through a pre-built forwarding control module; receiving multi-channel audio and video data adjusted based on the control parameter, wherein the multi-channel audio and video data is generated by a multi-channel sending end connected to the server. The present disclosure can solve the audio and video freeze problem caused by bandwidth resource limitations when the client pulls multiple audio and video data streams at the same time, and maximize the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0026] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0027] Figure 2 A schematic diagram of interaction between a client and a server provided in an embodiment of the present disclosure;

[0028] Figure 3 A structural diagram of an audio and video data transmission provided by an embodiment of the present disclosure;

[0029] Figure 4 A flow chart of an audio and video data transmission method provided by an embodiment of the present disclosure;

[0030] Figure 5 A structural diagram of another audio and video data transmission provided in an embodiment of the present disclosure;

[0031] Figure 6 A flow chart of another audio and video data transmission method provided by an embodiment of the present disclosure;

[0032] Figure 7 A structural diagram of an audio and video data transmission device provided in an embodiment of the present disclosure;

[0033] Figure 8 A structural diagram of an audio and video data transmission device provided in an embodiment of the present disclosure;

[0034] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0035] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0036] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0037] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0038] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0039] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0040] First, some nouns or terms involved in the claims and description of the present disclosure are explained below.

[0041] RTC: Real-time Communication is a real-time communication technology characterized by low latency and is mainly used for remote real-time calls.

[0042] RTP: Real-time Transport Protocol, used to transmit real-time data, is a commonly used transmission protocol in real-time communication technology.

[0043] RTCP: Real-time Control Protocol, a real-time control protocol used for QoS feedback and synchronization of media streams to control data transmission quality.

[0044] RTMP: Real Time Messaging Protocol, is a universal protocol for standard live broadcast, mainly used for real-time streaming.

[0045] CNN: Convolutional Neural Networks, a type of feedforward neural network that includes convolution calculations and has a deep structure.

[0046] H5: HTML5 (HyperText Markup Language 5) HTML5 is a language description method for building Web content. HTML5 is the next generation standard of the Internet and a language method for building and presenting Internet content.

[0047] PCM: Pulse Code Modulation is one of the encoding methods of digital communication and a common raw audio data format.

[0048] AAC: Advanced Audio Coding. AAC is a high-compression audio coding algorithm with a compression ratio of usually 18:1. In terms of sound quality, it has a relatively high performance due to the use of multi-channels and a low-complexity description method.

[0049] Opus: Opus is a lossy audio compression digital audio coding format suitable for low-latency real-time sound transmission on the network. It can be used in various audio application scenarios, including IP voice, video conferencing, in-game chat, streaming music, and even remote live music performances.

[0050] IM: Instant Messaging refers to a tool that allows real-time online communication, which is commonly known as an online chat tool.

[0051] The audio and video data transmission method provided by the present disclosure can be applied to scenarios such as real-time audio and video communication (RTC), interactive live broadcast, online education, audio and video conferencing, etc. In these scenarios, each client may watch and / or listen to multiple remote audio and video data streams, such as: multi-person video conferencing scenarios, online education small class scenarios, online education large class group class scenarios, etc. The following one or more embodiments take the online education scenario as an example to describe in detail the audio and video data transmission method provided by the present disclosure.

[0052] Specifically, Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure, Figure 1 It includes the teacher's audio and video data stream 110, the student's own audio and video data stream 120, other classmates' audio and video data streams 130 and a chat area 140. Figure 1 In the online education scenario, whether it is a pure small class education scenario or a large class with small groups education scenario, in order to restore the real atmosphere of the offline classroom to the greatest extent, students will interact with each other in real time through audio and video. In addition to pulling the teacher's audio and video live stream, students will also pull the audio and video data streams of other students. For example, Figure 1 As shown, N+1 students take online live classes together. Figure 1 Only one audio and video data stream of other students 130 is shown, and the audio and video data streams of the remaining N-1 students are not shown. The student 120 needs to pull the teacher's audio and video data stream 110, plus the audio and video data streams 130 of other N (N is a positive integer) classmates, and can also answer the teacher's questions or recorded questions in the chat area 140. The chat area 140 can specifically be an IM chat area. Each student pulls the teacher's audio and video live stream mainly to listen to the teacher's lectures. Each student (the student himself) will also pull the audio and video data streams of other N classmates to create a classroom atmosphere and restore the offline teaching scene. Each student will pull N+1 audio and video data streams (1 live stream of the teacher and N live streams of other students). Since each student end (client) pulls a large number of streams, the requirements for the network environment are relatively high. Due to the shortcomings of existing technologies or solutions, a small number of students in extremely weak network environments experience audio and video freezes when watching live classes, affecting the class experience. This is mainly because the network quality in weak network environments is poor (small network bandwidth, high packet loss rate, large delay, and large network jitter). Poor network quality is not enough to support watching multiple live streams at the same time, which leads to a poor experience for users watching online teaching live broadcasts, and they may even be unable to watch the teacher's audio and video data stream normally.

[0053] In response to the above technical problems, the disclosed embodiments provide an audio and video data transmission method, in which the receiving end performs a comprehensive bandwidth evaluation result on multiple audio and video data streams, that is, it can automatically evaluate the number of streams pulled by the receiving end according to network conditions of different qualities, and the server makes a decision based on the bandwidth evaluation result to control and generate control parameters for each audio and video data stream, and then the receiving end receives the multiple audio and video data streams adjusted based on the control parameters, so as to solve the audio and video freeze problem caused by bandwidth resource limitation when the receiving end pulls multiple audio and video data streams at the same time, thereby maximizing the user experience. This is described in detail through one or more of the following embodiments.

[0054] Before describing the method provided by the present disclosure, it is preferred to describe the relevant technical issues in the field of audio and video live broadcasting. Specifically, Figure 2 A schematic diagram of interaction between a client and a server provided in an embodiment of the present disclosure, Figure 2It includes an RTC client 210 (sender) as a push end, an RTC streaming media server 220, and an RTC client 230 (receiver) as a pull end. The RTC client 210 includes processes such as collecting audio / video with a camera and a microphone, pre-processing audio / video, encoding audio / video, and sending audio / video. The sent video / audio reaches the RTC server 220 through the network. The RTC streaming media server 220 (RTC server for short) is a highly complex system. The RTC server 220 is a collection of a series of services, including a variety of services, such as a scheduling system, room service, forwarding service, transcoding service, recording service, screenshot service, and mixing service. The function of the RTC streaming media server 220 is mainly responsible for transcoding audio and video data streaming data and processing audio and video content. Another part of the function of the RTC streaming media server 220 is to collect the receiving end 230 (RTC client (pull end)) bandwidth evaluation module REMB (Receiver Estimated Maximum Bitrate) bandwidth evaluation result, and smoothly transfer the audio and video resources to the receiving end 230 according to the bandwidth evaluation result of the receiving end 230. However, in the field of RTC (real-time communication), the bandwidth required for each audio and video data stream is usually evaluated independently. The RTC server 220 does not distinguish the priority of each audio and video data stream, but dynamically adjusts the sending strategy and processes the weak network confrontation related logic according to the network quality of each audio and video data stream. However, when the network conditions are extremely poor, the existing weak network confrontation logic cannot guarantee that the receiving end 230 can watch each audio and video data stream normally, and any live stream may be disconnected and cannot be watched normally. The RTC client (stream pulling end) 230 executes processes such as receiving audio / video from the RTC server 220, decoding the audio / video, post-processing the audio / video, and playing the audio / video. In addition, the receiving end 230 (also called the stream pulling end) will also evaluate the network environment in which the client is located, that is, each bandwidth evaluation module in multiple bandwidth evaluation modules REMB (Receiver Estimated Maximum Bitrate) evaluates one audio and video data stream and reports the evaluation information to the RTC server 220.

[0055] For example, see Figure 3 , Figure 3 A structural diagram of audio and video data transmission provided in an embodiment of the present disclosure, that is, a structural diagram of audio and video data transmission in an existing method, Figure 3 The system includes multiple transmitting ends 310, a server and a receiving end 350, wherein each transmitting end in the multiple transmitting ends 310 generates an audio and video data stream (live stream), such as Figure 3The first sending end shown generates a first audio and video data stream, the second sending end generates a second audio and video data stream, the service end includes a forwarding control module 320 corresponding to each audio and video data stream, a bandwidth allocation module 330 corresponding to each audio and video data stream, and a smoothing module 340 corresponding to each audio and video data stream, and the receiving end 350 includes multiple bandwidth evaluation modules for evaluating the bandwidth of each audio and video data stream. The following example is explained by taking the transmission of audio and video data of a live stream as an example. The bandwidth evaluation module 351 in the receiving end 350 receives an audio and video data stream transmitted by the corresponding smoothing module 341, and performs bandwidth evaluation on the audio and video data stream according to the audio and video data stream, generates a bandwidth evaluation result for the stream and sends it to the forwarding control module 321 in the server. The forwarding control module 321 generates a forwarding control logic according to the bandwidth evaluation result of the stream. Specifically, the bandwidth evaluation result will return the following three signals: network idle (underuse), network overload (overuse) and network normal (normal). For a certain audio and video data stream, network idle can be understood as idle network bandwidth resources of the current receiving end 350, that is, the current bandwidth resources can meet the needs of the certain audio and video data stream. The state machine enters the "hold" state, at which point the server needs to be notified to maintain the sending rate (bit rate) to send the audio and video data stream to the receiving end 350; when the network is overloaded, the current bandwidth resources have been overused for a certain audio and video data stream, that is, the current bandwidth resources can no longer meet the bandwidth consumption of the audio and video data stream. The state machine enters the "decrease" state, at which point the sending end 310 needs to be notified to reduce the sending rate (bit rate) to send the live stream; when the network is normal, the current bandwidth resources are used normally for a certain audio and video data stream, and the state machine enters the "increase" state, at which point the server needs to be notified to start increasing the sending rate (bit rate), and the server will also return parameters to the sending end to ensure that the sending end sends a stable audio and video data stream. After the forwarding control module 321 generates the forwarding control logic according to the bandwidth evaluation result of the channel, the forwarding logic is sent to the bandwidth allocation module 331 corresponding to the audio and video data stream 311 that sends the channel. The bandwidth allocation module 331 adjusts the bit rate of the audio and video data transmitted by the audio and video data stream 311 according to the forwarding logic sent by the forwarding control module 321, and then sends the audio and video data of the channel after the bit rate adjustment to the corresponding smoothing module 341. Finally, the smoothing module 341 smoothes the audio and video data of the channel and transmits it to the receiving end 350 for the user to watch the audio and video data, thereby completing the transmission of the audio and video data of the channel.However, when a receiving end 350 needs to pull multiple audio and video live streams, the existing method is used to independently evaluate the bandwidth of each audio and video data stream, and generate a bandwidth evaluation result corresponding to each audio and video data stream. That is, each bandwidth evaluation result only reflects the bandwidth resources of the current receiving end and the bandwidth consumed by the audio and video data stream. For example, when the receiving end 350 receives 10 audio and video data streams, it will generate bandwidth evaluation results corresponding to the 10 audio and video data streams. Even if the evaluation result signals after the bandwidth evaluation of each audio and video data stream are underuse or normal, it does not mean that the current bandwidth resources of the receiving end 350 can meet the bandwidth requirements of all audio and video data streams. According to existing technical rules, in this state, the network congestion state machine enters the "hold" or "increase" state. If the network congestion state machine enters the "hold" state, it is necessary to notify the forwarding control module 320 of the RTC server to maintain the data forwarding logic of the current server, and then notify the server to maintain the sending rate (bit rate) to send the audio and video data stream to the receiving end. That is to say, each audio and video data stream will maintain the current bit rate to send audio and video data. This situation will occur when each audio and video data stream maintains its own data sending logic. Since the bandwidth evaluation cycle, start and end time points of each audio and video data stream are different, it cannot be guaranteed that the network conditions of the current receiving end 350 will not cause any jamming when pulling each audio and video data stream. When the network conditions of the receiving end 350 are poor, when the receiving end 350 pulls all audio and video data streams at the same time, the actual situation will be that each audio and video data stream competes for bandwidth resources. When the network environment of the receiving end 350 is poor, serious jamming will occur. If the signals displayed by each bandwidth assessment result are in the normal state, according to the existing technical rules, in this state, the state machine enters the "increase" state. At this time, it is necessary to notify the forwarding control module 320 of the RTC server to speed up the data forwarding rate of the current server, and then notify the sending end 310 to start increasing the sending rate (bit rate). In other words, the sending bit rate of each audio and video data stream will increase. In practice, each audio and video data stream will compete for the bandwidth resources of the receiving end 350. When the network environment of the receiving end 350 is poor, serious jamming will occur, causing each audio and video data stream played by the receiving end 350 to jam, seriously affecting the user experience.

[0056] For the above technical issues, see Figure 4 , Figure 4 A flow chart of an audio and video data transmission method provided in an embodiment of the present disclosure is applied to a receiving end, where the receiving end refers to a client of each student himself, specifically including the following Figure 4 The following steps S410 to S430 are shown:

[0057] S410: Evaluate the bandwidth of the receiving end based on a pre-built bandwidth evaluation module to generate a bandwidth evaluation result.

[0058] It can be understood that the receiving end includes a pre-built bandwidth evaluation module, which is recorded as a MultiREMB module. The bandwidth evaluation module can comprehensively evaluate multiple audio and video data streams and generate bandwidth evaluation results, that is, determine whether the current bandwidth resources of the receiving end can meet the multiple audio and video data streams. For example, the receiving end needs to receive 10 audio and video data streams, and a pre-built bandwidth evaluation module is used to evaluate the 10 audio and video data streams and the current bandwidth resources of the receiving end to generate a bandwidth evaluation result.

[0059] For example, see Figure 5 , Figure 5 This is another structural diagram of audio and video data transmission provided by an embodiment of the present disclosure, Figure 5 It can be understood as a structural diagram of the audio and video data transmission device involved in the present disclosure, Figure 5 The system includes a multi-channel transmitting end (multi-channel audio and video data stream) 510, a server end and a receiving end 550, wherein the server end includes a forwarding control module 520, a bandwidth allocation module 530 corresponding to each audio and video data stream, and a smoothing module 540; the receiving end 550 includes a bandwidth evaluation module 551; the multi-channel audio and video data stream 510 is connected to the corresponding bandwidth allocation module 530; the bandwidth evaluation module 551 in the receiving end 550 determines a comprehensive bandwidth evaluation result for multiple audio and video data streams, and sends it to the forwarding control module 520; the forwarding control module 520 is used to control the bandwidth allocation module 530 corresponding to each audio and video data stream according to the generated control parameters, that is, to perform comprehensive decision analysis; the smoothing module 540 receives the adjusted audio and video data (audio and video data after bandwidth allocation) transmitted by the bandwidth allocation module 530 corresponding to each audio and video data stream and performs smoothing processing, and then transmits the multi-channel audio and video data to the receiving end 550, so as to ensure that the audio and video data can be sent at a uniform speed when the network jitter is relatively severe, thereby improving the fluency of watching live broadcasts at the receiving end 550.

[0060] Optionally, before evaluating the bandwidth of the receiving end based on a pre-built bandwidth evaluation module to generate a bandwidth evaluation result, the method further includes the following steps:

[0061] A pre-configured interface is called to set priorities for the multiple sending ends, wherein the receiving end and the multiple sending ends are in the same channel.

[0062] It is understandable that before the client initiates an audio and video call / interactive live broadcast / video conference, the user to be called needs to be added to the channel. The online channel can be understood as a conference room. Multiple users join the same channel. Users in the same channel can make audio and video calls and hold audio and video conferences with each other. Before joining the channel, the receiving end calls the pre-built interface to set the priority for other remote users to join the same channel. The priority of the specified remote user can be set to high, for example, the priority can be set according to the remote user's identifier userId. It is understandable that the user at the receiving end (pull stream end) is the near-end user, and the user at the sending end (push stream end) is the remote user. The pre-built interface can be called through the following statement. The statement for calling the interface is setRemoteUserPriority(userId:longint,userPriority:string). Optionally, the implementation logic of the statement can be constructed through CNN or H5 language description, and the specific construction method is not limited. Among them, the interface statement includes two parameters userId (remote user identification) and userPriority (remote user priority), and also includes the data type corresponding to each parameter. The data type corresponding to userId is long integer (Longint), and the data type corresponding to userPriority is integer (int). Optionally, setting two levels of priority for remote users is used as an example for explanation. The number of priority levels is not limited and can be determined according to user needs. The two levels are high priority (high) and normal priority (normal). The default priority is normal priority. The parameter value corresponding to high priority can be 1, and the parameter value corresponding to normal priority can be 0. For example, the called interface statement can be set to setRemoteUserPriority (userId:123456789,userPriority:1), this statement can be understood as setting the remote user 123456789 to a high priority. It is understandable that in the process of joining the same channel for audio and video calls, the interface can also be called to set the priority of each remote user in real time. For example, in an educational scenario, before joining the channel, the teacher's audio and video live stream is set to a high priority. In the process of joining the channel to give a lecture, the priority of the student who answers the question can also be set to a high priority. The high priority can also be adjusted to a normal priority in real time to ensure the live broadcast experience in a weak network environment.

[0063] Optionally, the above S410 may be implemented by the following steps:

[0064] Data information transmitted by a pre-built smoothing module is received, wherein the data information is obtained by integrating the smoothing module according to transmission information of multiple channels of audio and video data sent by the multiple sending ends.

[0065] Based on a pre-built bandwidth evaluation module, a bandwidth evaluation result is generated according to the set priorities of the multiple sending ends, the bandwidth information of the receiving end and the data information.

[0066] Exemplarily, a bandwidth assessment module 551 in a receiving end 550 receives data information transmitted by a pre-built smoothing module 540, where the smoothing module 540 is denoted as PacedSender, wherein the data information is obtained by integrating the smoothing module according to the transmission information of multiple audio and video data sent by multiple sending ends, and the data information may be the time and size of the data packet sent by each sending end to the receiving end, and the receiving end may record the arrival time of each data packet and calculate the delay change between each data packet, that is, the receiving end may adopt a delay-based congestion control algorithm to evaluate the bandwidth situation, and then generate a bandwidth assessment result, the bandwidth assessment result includes the bit rate required for the receiving end to receive multiple audio and video live streams and the maximum bit rate that the receiving end can undertake, etc.; the receiving end may also adopt a loss-based congestion control algorithm, specifically, the sending end obtains the packet loss information and calculates the round-trip delay (Rrip Time, RTT), and then the receiving end calculates the final bit rate value through the bit rate information and round-trip delay carried by itself. The method of calculating the bit rate of the multi-channel audio and video live stream by the constructed bandwidth evaluation module 551 is not limited and can be determined by the user according to the user's needs. Then a pre-constructed bandwidth evaluation module will generate a bandwidth evaluation result according to the priority of each sending end in the set multi-channel sending ends, the bandwidth information of the receiving end (maximum bandwidth carrying capacity) and data information.

[0067] Optionally, the above-mentioned generating the bandwidth evaluation result according to the set priorities of the multiple sending ends, the bandwidth information of the receiving end and the data information can be specifically implemented by the following steps:

[0068] The bit rate of each channel of audio and video data in the multiple channels of audio and video data is determined according to the data information, and the bit rate and value of the multiple channels of audio and video data are calculated according to the bit rate of each channel of audio and video data.

[0069] A bandwidth evaluation value of the receiving end is determined according to the bandwidth information of the receiving end.

[0070] A bandwidth evaluation result is generated according to the set priorities of the multiple sending ends, the bit rates and values, the bandwidth evaluation value and the bit rate of each channel of audio and video data.

[0071] It can be understood that the bit rate of each audio and video data in the multiple audio and video data is determined according to the data information, that is, the bandwidth required for the receiving end to receive each audio and video live broadcast data, and the bit rate and value of the multiple audio and video data are calculated according to the bit rate of each audio and video data, that is, the bandwidth and value required for the receiving end to receive multiple audio and video data at the same time. For example, the receiving end needs to receive 10 channels of audio and video data, the bit rate of each audio and video data is 10, and the bit rate and value of the 10 channels of audio and video data is 100, that is, the receiving end needs to receive at least 10 channels of audio and video data. A bandwidth resource with a bit rate of 100 is required; the bandwidth evaluation value of the receiving end is determined according to the bandwidth information of the receiving end, that is, the bandwidth resources that the receiving end can use to receive audio and video data are determined; then, a bandwidth evaluation result is generated according to the priority, bit rate and value of the set multiple sending ends, the bandwidth evaluation value and the bit rate of each audio and video data, the bandwidth evaluation result includes the priority, bit rate and value of each sending end, the bandwidth evaluation value and the bit rate of each audio and video data, and the bandwidth evaluation result is subsequently sent to the forwarding control module 520 in the connected server for comprehensive decision control.

[0072] S420: Send the bandwidth evaluation result to a server connected to the receiving end, wherein the server is configured to generate a control parameter according to the bandwidth evaluation result through a pre-built forwarding control module.

[0073] It can be understood that, based on the above S410, the bandwidth assessment module 551 sends the generated bandwidth assessment result to the forwarding control module 520 in the connected server, and the forwarding control module 520 performs comprehensive decision control based on the bandwidth assessment result to generate corresponding control parameters. The control parameters include the transmission bit rate and allocated bandwidth of each audio and video data stream, that is, bandwidth is allocated according to the actual situation of each audio and video data. The decision control principle is to give priority to using the limited bandwidth resources of the receiving end to transmit the audio and video data with high priority. After the high priority bit rate is met, the remaining bandwidth resources will be allocated to other audio and video data.

[0074] Optionally, the implementation steps of the forwarding control module 520 in the server side generating the control parameters based on the bandwidth evaluation result are specifically described below. Figure 6 The embodiments shown are not described in detail here.

[0075] S430: Receive multiple channels of audio and video data adjusted based on the control parameters, wherein the multiple channels of audio and video data are generated by multiple channels of sending ends connected to the server end.

[0076] Exemplarily, on the basis of the above S420, after the forwarding control module 520 generates control parameters for each audio and video data stream based on the bandwidth evaluation result, the control parameters related to each audio and video data stream are sent to the bandwidth allocation module 530 corresponding to the audio and video data stream. Then, the bandwidth allocation module 530 adjusts the bit rate of the received audio and video data according to the received control parameters and sends the adjusted audio and video data to the smoothing module 540. Then, the smoothing module 540 smoothes the adjusted multi-channel audio and video data, and then sends the smoothed multi-channel audio and video data to the receiving end 550. The receiving end 550 receives the adjusted multi-channel audio and video data and displays them to improve the user experience.

[0077] The embodiment of the present disclosure provides a method for transmitting audio and video data. The receiving end evaluates the bandwidth of multiple audio and video data streams through a pre-built bandwidth evaluation module, thereby determining whether the current bandwidth resources of the receiving end support pulling multiple audio and video data, and generating a bandwidth evaluation result; then the bandwidth evaluation result is sent to a forwarding control module in the connected server, and the forwarding control module performs comprehensive decision control based on the bandwidth evaluation result, allocates bandwidth for each audio and video data, and generates control parameters for each audio and video data, wherein the bandwidth required by the audio and video data sent by the high-priority sending end is preferentially satisfied; the receiving end receives the multiple audio and video data adjusted based on the control parameters. The method provided by the present disclosure solves the problem of audio and video freeze caused by bandwidth resource limitation when the receiving end pulls multiple audio and video data at the same time, and can automatically evaluate the number of streams that can be pulled by the receiving end according to the network conditions of different qualities, that is, it can comprehensively evaluate multiple audio and video data, avoid the situation where each audio and video data competes for the bandwidth resources of the receiving end, and can also give priority to the transmission of the audio and video data of the high-priority channel with limited bandwidth resources, so as to avoid users missing important information and maximize the user experience.

[0078] Based on the above embodiments, Figure 6 Another flow chart of an audio and video data transmission method provided in an embodiment of the present disclosure is applied to a server connected to a receiving end, specifically to a forwarding control module pre-built in the server, that is, after the forwarding control module receives the bandwidth evaluation result generated and sent by the bandwidth evaluation module, the control parameter for the bandwidth of each channel of audio and video data is generated based on the bandwidth evaluation result, specifically including the following steps: Figure 6 The following steps S610 to S620 are shown:

[0079] S610: Receive a bandwidth evaluation result, wherein the bandwidth evaluation result is generated by a receiving end connected to the server end according to the above-mentioned audio and video data transmission method.

[0080] Optionally, the bandwidth evaluation result includes the priority of the multiple sending ends, the bit rate and value of the multiple audio and video data transmitted by the multiple sending ends, the bandwidth evaluation value of the receiving end and the bit rate of each audio and video data in the multiple audio and video data.

[0081] Exemplarily, the forwarding control module 520 receives the bandwidth evaluation result generated and transmitted by the bandwidth evaluation module 551 in the receiving end 550. The bandwidth evaluation result includes the priority of each channel of audio and video data, the bit rate and value of multiple channels of audio and video data, the bandwidth evaluation value reflecting the bandwidth resources of the receiving end, and the bit rate of each channel of audio and video data, and the bit rate of each channel of audio and video data refers to the bit rate required for normal transmission of audio and video data.

[0082] S620. Generate control parameters according to the bandwidth evaluation result using a pre-built forwarding control module, and send the multi-channel audio and video data adjusted based on the control parameters to the receiving end, wherein the multi-channel audio and video data is generated by a multi-channel sending end connected to the server end.

[0083] Exemplarily, based on the above S610, the forwarding control module 520 generates control parameters for each channel of audio and video data according to the bandwidth evaluation result, and sends the control parameters to the bandwidth allocation module 530 corresponding to each channel of audio and video data stream. The control parameters include the bandwidth allocated for each channel of audio and video data. The forwarding control module 520 will also adjust the packet retransmission (NACK) / forward error correction (FEC) logic according to the bandwidth evaluation result of the bandwidth evaluation module 551. The specific adjustment method will not be elaborated on. Among them, for the receiving end 550 (stream pulling end), multiple sending ends all belong to the streaming end, and the sending end 510 will transmit the audio and video data stream with a normal bit rate to the server end, and then the server end will adjust the bit rate of each audio and video data stream transmitted to the receiving end 550 according to the control parameters. Specifically, the bandwidth allocation module 530 corresponding to each audio and video data will adjust the bit rate of the audio and video data to be transmitted to the receiving end 550 according to the received control parameters, which can be to reduce the sending bit rate, increase the sending bit rate, and maintain the sending bit rate, etc. Then the smoothing module 540 receives the adjusted multi-channel audio and video data, and transmits the adjusted multi-channel audio and video data to the receiving end 550.

[0084] Optionally, in S620, a pre-built forwarding control module is used to generate a control parameter according to the bandwidth evaluation result, which can be specifically implemented by the following steps:

[0085] The bandwidth resource status of the receiving end is determined according to the code rate and value and the bandwidth evaluation value, wherein the bandwidth resource status includes idle bandwidth resources and overused bandwidth resources.

[0086] A control parameter is generated according to the bandwidth resource status, the priority of the multiple sending ends and the bit rate of each channel of audio and video data.

[0087] Exemplarily, the forwarding control module 520 determines the bandwidth resource status of the receiving end according to the bit rate and value and the bandwidth evaluation value, wherein the bandwidth resource status includes idle bandwidth resources and over-used bandwidth resources. If the bandwidth evaluation value of the receiving end is greater than the bit rate and value of the multi-channel audio and video data, it means that the bandwidth resources of the receiving end are idle, that is, the current bandwidth resources can meet the bandwidth consumption of the multi-channel live streams, in which case the multi-channel audio and video data can be directly pulled; if the bandwidth evaluation value of the receiving end is less than or equal to the bit rate and value of the multi-channel audio and video data, it means that the bandwidth resources of the receiving end are over-used, that is, the current bandwidth resources can no longer meet the bandwidth consumption of the multi-channel live streams, and it is necessary to automatically adjust the pull strategy for each channel of audio and video data. Subsequently, the forwarding control module 520 generates control parameters based on the priority of the multi-channel sending end and the bit rate of each channel of audio and video data according to different preset rules under different bandwidth resource conditions.

[0088] Optionally, the control parameters generated according to the bandwidth resource status, the priority of the multiple sending ends and the bit rate of each audio and video data can be generated by the following steps: Steps accomplish.

[0089] If the bandwidth resource status is that the bandwidth resource is idle, a control parameter is generated according to the bit rate of each channel of audio and video data according to a first preset rule, wherein the first preset rule satisfies the bit rate of each channel of audio and video data; or

[0090] If the bandwidth resource status is that the bandwidth resources are overused, a target sending end whose priority is greater than a preset threshold is determined among the multiple sending ends, and a control parameter is generated according to the bit rate of each channel of audio and video data according to a second preset rule, wherein the second preset rule is to give priority to satisfying the bit rate corresponding to the target sending end, and when the bit rate corresponding to the target sending end is satisfied, the bit rates corresponding to other sending ends except the target sending end are satisfied according to a preset ratio.

[0091] Exemplarily, the forwarding control module 520 generates corresponding control parameters under different resource states as follows: if the determined bandwidth resource status is that the bandwidth resources are idle, then the control parameters are generated according to the bit rate of each channel of audio and video data according to the first preset rule, wherein the first preset rule is to meet the bit rate of each channel of audio and video data, that is, the current bandwidth resources of the client can meet the bandwidth consumption of multiple live streams. In this case, multiple channels of audio and video data can be directly pulled at the current required bit rate of each channel of audio and video data. If the absolute value of the difference between the bit rate and the bandwidth evaluation value is greater than the preset value, that is, after pulling multiple channels of audio and video data, the bandwidth resources of the receiving end are still relatively idle, in this case, the high priority channel of audio and video data can be increased. bit rate to provide users with a better viewing experience; or, if the determined bandwidth resource status is that the bandwidth resources are overused, that is, the current bandwidth resources of the receiving end cannot meet the bandwidth consumption of multiple audio and video data streams, the receiving end may be in a weak network environment. In this case, a target sending end with a priority greater than a preset threshold can be determined among the multiple sending ends, and each sending end has a corresponding priority parameter value. For example, the priority parameter value can be 0 or 1. For the case where the priority level is level 2, the preset threshold can be set to 0, and the sending end with a priority parameter value greater than the preset threshold is determined as the target sending end, and then a control parameter is generated according to the bit rate of each audio and video data according to the second preset rule, wherein the second preset rule is priority. First, the bit rate corresponding to the target sending end is met, that is, the bandwidth required by the audio and video data with the highest priority must be 100% sufficient. When the bit rate corresponding to the target sending end is met, there are still remaining bandwidth resources at the receiving end. The bit rates corresponding to other sending ends except the target sending end are met according to the preset ratio. That is, the remaining bandwidth of the receiving end is distributed to other audio and video data according to the preset ratio. The preset ratio can be 5% or 10%. The specific ratio can be determined according to user needs and is not limited here. For example, the priority level is set to 3 levels, and the priority parameter value of each level is set to 2, 1 and 0 respectively. The preset threshold includes the first sub-preset threshold and the second sub-preset threshold. In the case of excessive use of bandwidth resources , prioritize the bit rate required by the target sending end whose priority parameter value is greater than the first sub-preset threshold, then directly meet or meet the bit rate required by the target sending end whose priority parameter value is less than or equal to the first sub-preset threshold and greater than the second sub-preset threshold according to the preset ratio, and finally meet the bit rate required by the sending end less than or equal to the second sub-preset threshold according to the preset ratio, where the first sub-preset threshold is 1 and the second sub-preset threshold is 0; for another example, when the bandwidth of the receiving end cannot meet the bit rate required by the audio and video data with the highest priority, all bandwidth resources of the receiving end can be allocated to the audio and video data with the highest priority. In this case, the bit rate of the audio and video data with the highest priority can be reduced according to the bandwidth evaluation value of the receiving end.

[0092] An audio and video data transmission method provided by an embodiment of the present disclosure is applied to a server. After the server receives a bandwidth evaluation result sent by a receiving end, a pre-built forwarding control module is used to perform comprehensive decision control based on the bandwidth evaluation result, and the corresponding bandwidth is automatically allocated to each channel of audio and video data according to the bandwidth resource status of the current receiving end, so as to avoid audio and video freeze problems caused by limited bandwidth resources when pulling multiple channels of audio and video data, and also avoid the situation where each channel of audio and video data streams competes for bandwidth resources. Secondly, in a weak network environment, the bit rate required for high-priority audio and video data is given priority, so as to maximize the user experience.

[0093] Figure 7 A schematic diagram of the structure of an audio and video data transmission device provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can be integrated on any electronic device with computing capabilities.

[0094] like Figure 7 As shown, the audio and video data transmission device provided in the embodiment of the present disclosure includes an evaluation unit 710, a sending unit 720 and a receiving unit 730, wherein:

[0095] An evaluation unit 710, configured to evaluate the bandwidth of the receiving end based on a pre-built bandwidth evaluation module and generate a bandwidth evaluation result;

[0096] A sending unit 720, configured to send the bandwidth evaluation result to a server connected to the receiving end, wherein the server is configured to generate a control parameter according to the bandwidth evaluation result through a pre-built forwarding control module;

[0097] The receiving unit 730 is used to receive the multi-channel audio and video data adjusted based on the control parameter, wherein the multi-channel audio and video data is generated by the multi-channel sending end connected to the server end.

[0098] Optionally, the device further includes a configuration unit, which is used to evaluate the bandwidth of the receiving end based on a pre-built bandwidth evaluation module and before generating a bandwidth evaluation result, specifically to:

[0099] A pre-configured interface is called to set priorities for multiple sending ends, wherein the receiving end and the multiple sending ends are in the same channel.

[0100] Optionally, the evaluation unit 710 evaluates the bandwidth of the receiving end based on a pre-built bandwidth evaluation module to generate a bandwidth evaluation result, which is specifically used for:

[0101] Receiving data information transmitted by a pre-built smoothing module, wherein the data information is obtained by integrating the smoothing module according to transmission information of multiple channels of audio and video data sent by the multiple sending ends;

[0102] Based on a pre-built bandwidth evaluation module, a bandwidth evaluation result is generated according to the set priorities of the multiple sending ends, the bandwidth information of the receiving end and the data information.

[0103] Optionally, the generating of the bandwidth evaluation result according to the set priorities of the multiple sending ends, the bandwidth information of the receiving end and the data information in the evaluation unit is specifically used for:

[0104] Determine the bit rate of each channel of audio and video data in the multiple channels of audio and video data according to the data information, and calculate the bit rate and value of the multiple channels of audio and video data according to the bit rate of each channel of audio and video data;

[0105] Determine a bandwidth evaluation value of the receiving end according to the bandwidth information of the receiving end;

[0106] A bandwidth evaluation result is generated according to the set priorities of the multiple sending ends, the bit rates and values, the bandwidth evaluation value and the bit rate of each channel of audio and video data.

[0107] The audio and video data transmission device provided in the embodiment of the present disclosure can execute the audio and video data transmission method provided in the embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in the embodiment of the device of the present disclosure, reference can be made to the description in the embodiment of the audio and video data transmission method in the present disclosure.

[0108] Figure 8 A schematic diagram of the structure of an audio and video data transmission device provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can be integrated on any electronic device with computing capabilities.

[0109] like Figure 8 As shown, the audio and video data transmission device 800 provided in the embodiment of the present disclosure may include a receiving unit 810 and a generating unit 820, wherein:

[0110] A receiving unit 810 is configured to receive a bandwidth evaluation result, wherein the bandwidth evaluation result is generated by a receiving end connected to the server end according to the above-mentioned audio and video data transmission method;

[0111] The generation unit 820 is used to generate control parameters according to the bandwidth evaluation result using a pre-built forwarding control module, and send the multi-channel audio and video data adjusted based on the control parameters to the receiving end, wherein the multi-channel audio and video data is generated by the multi-channel sending end connected to the server end.

[0112] Optionally, the bandwidth evaluation result in the receiving unit 810 includes the priority of the multiple sending ends, the bit rate and value of the multiple audio and video data transmitted by the multiple sending ends, the bandwidth evaluation value of the receiving end and the bit rate of each audio and video data in the multiple audio and video data.

[0113] Optionally, the generating unit 820 generates the control parameter according to the bandwidth evaluation result by using a pre-built forwarding control module, specifically for:

[0114] Determine the bandwidth resource status of the receiving end according to the bit rate and value and the bandwidth evaluation value, wherein the bandwidth resource status includes idle bandwidth resources and overused bandwidth resources;

[0115] A control parameter is generated according to the bandwidth resource status, the priority of the multiple sending ends and the bit rate of each channel of audio and video data.

[0116] Optionally, the generating unit 820 generates the control parameter according to the bandwidth resource status, the priority of the multiple sending ends, and the bit rate of each channel of audio and video data, specifically for:

[0117] If the bandwidth resource status is that the bandwidth resource is idle, a control parameter is generated according to the bit rate of each channel of audio and video data according to a first preset rule, wherein the first preset rule satisfies the bit rate of each channel of audio and video data; or

[0118] If the bandwidth resource status is that the bandwidth resources are overused, a target sending end whose priority is greater than a preset threshold is determined among the multiple sending ends, and a control parameter is generated according to the bit rate of each channel of audio and video data according to a second preset rule, wherein the second preset rule is to give priority to satisfying the bit rate corresponding to the target sending end, and when the bit rate corresponding to the target sending end is satisfied, the bit rates corresponding to other sending ends except the target sending end are satisfied according to a preset ratio.

[0119] The audio and video data transmission device provided in the embodiment of the present disclosure can execute the audio and video data transmission method provided in the embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in the embodiment of the device of the present disclosure, reference can be made to the description in the embodiment of the audio and video data transmission method in the present disclosure.

[0120] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.

[0121] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiments of the present disclosure.

[0122] refer to Fig. 9 , a structural block diagram of an electronic device 900 that can serve as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0123] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0124] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 908 may include, but is not limited to, a disk, an optical disk. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0125] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the audio and video data transmission method or the training method of the recognition network may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. In some embodiments, the computing unit 901 may be configured to perform the audio and video data transmission method or the training method of the recognition network by any other appropriate means (e.g., by means of firmware).

[0126] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0127] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0129] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0130] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0131] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and the server relationship is generated by computer programs running on respective computers and having a client-server relationship with each other.

[0132] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for transmitting audio and video data, characterized in that: Applied to the receiving end, the method comprises: Based on a pre-built bandwidth evaluation module, the bandwidth of the receiving end is evaluated to determine whether the current bandwidth resources of the receiving end meet the needs of multiple channels of audio and video data, and generate a bandwidth evaluation result, wherein the multiple channels of audio and video data are generated by multiple channels of sending ends connected to the service end; Sending the bandwidth evaluation result to a server connected to the receiving end, the server being used to generate a control parameter according to the bandwidth evaluation result through a pre-built forwarding control module; Receiving the audio and video data sent by the server after being adjusted based on the control parameters; The bandwidth evaluation result includes the priority of each transmitting end, the bit rate of each audio and video data, the bit rates and values ​​of the multiple audio and video data, and the bandwidth evaluation value of the receiving end; Among them, the server is used to determine a target sending end whose priority is greater than a preset threshold among the multiple sending ends through a forwarding control module when it is determined that the bandwidth resources of the receiving end are overused according to the bit rate and value and the bandwidth evaluation value, and generate control parameters according to the bit rate of each channel of audio and video data in accordance with the rule of giving priority to satisfying the bit rate corresponding to the target sending end, and the target sending end refers to some of the sending ends among the multiple sending ends; the server is also used to adjust the audio and video data generated by the target sending end according to the control parameters through the bandwidth allocation module corresponding to the target sending end.

2. The method according to claim 1, characterized in that Before evaluating the bandwidth of the receiving end based on a pre-built bandwidth evaluation module to generate a bandwidth evaluation result, the method further includes: A pre-configured interface is called to set priorities for multiple sending ends, wherein the receiving end and the multiple sending ends are in the same channel.

3. The method according to claim 2, characterized in that The step of evaluating the bandwidth of the receiving end based on a pre-built bandwidth evaluation module to generate a bandwidth evaluation result includes: Receiving data information transmitted by a pre-built smoothing module, wherein the data information is obtained by integrating the smoothing module according to transmission information of multiple channels of audio and video data sent by the multiple sending ends; Based on a pre-built bandwidth evaluation module, a bandwidth evaluation result is generated according to the set priorities of the multiple sending ends, the bandwidth information of the receiving end and the data information.

4. The method according to claim 3, characterized in that The generating of the bandwidth evaluation result according to the set priorities of the multiple sending ends, the bandwidth information of the receiving end and the data information comprises: Determine the bit rate of each channel of audio and video data in the multiple channels of audio and video data according to the data information, and calculate the bit rate and value of the multiple channels of audio and video data according to the bit rate of each channel of audio and video data; Determine a bandwidth evaluation value of the receiving end according to the bandwidth information of the receiving end; A bandwidth evaluation result is generated according to the set priorities of the multiple sending ends, the bit rates and values, the bandwidth evaluation value and the bit rate of each channel of audio and video data.

5. A method for transmitting audio and video data, characterized in that: Applied to the server, the method includes: Receiving a bandwidth assessment result, wherein the bandwidth assessment result is generated by a receiving end connected to the server end according to any one of the methods described in claim 1 to claim 4 above; A pre-built forwarding control module is used to generate control parameters according to the bandwidth evaluation result, and multiple channels of audio and video data adjusted based on the control parameters are sent to the receiving end, wherein the multiple channels of audio and video data are generated by a multiple channel sending end connected to the service end.

6. The method according to claim 5, characterized in that The bandwidth evaluation result includes the priority of the multi-channel sending end, the bit rate and value of the multi-channel audio and video data transmitted by the multi-channel sending end, the bandwidth evaluation value of the receiving end and the bit rate of each audio and video data in the multi-channel audio and video data, The method of using a pre-built forwarding control module to generate a control parameter according to the bandwidth evaluation result includes: Determine the bandwidth resource status of the receiving end according to the bit rate and value and the bandwidth evaluation value, wherein the bandwidth resource status includes idle bandwidth resources and overused bandwidth resources; A control parameter is generated according to the bandwidth resource status, the priority of the multiple sending ends and the bit rate of each channel of audio and video data.

7. The method according to claim 6, characterized in that The generating control parameters according to the bandwidth resource status, the priority of the multiple sending ends and the bit rate of each channel of audio and video data includes: If the bandwidth resource status is that the bandwidth resource is idle, a control parameter is generated according to the bit rate of each channel of audio and video data according to a first preset rule, wherein the first preset rule satisfies the bit rate of each channel of audio and video data; or If the bandwidth resource status is that the bandwidth resources are overused, a target sending end whose priority is greater than a preset threshold is determined among the multiple sending ends, and a control parameter is generated according to the bit rate of each channel of audio and video data according to a second preset rule, wherein the second preset rule is to give priority to satisfying the bit rate corresponding to the target sending end, and when the bit rate corresponding to the target sending end is satisfied, the bit rates corresponding to other sending ends except the target sending end are satisfied according to a preset ratio.

8. An audio and video data transmission device, characterized in that: Applied to the receiving end, including: An evaluation unit, configured to evaluate the bandwidth of the receiving end based on a pre-built bandwidth evaluation module, determine whether the current bandwidth resources of the receiving end meet the needs of multiple channels of audio and video data, and generate a bandwidth evaluation result, wherein the multiple channels of audio and video data are generated by multiple channels of sending ends connected to the service end; A sending unit, used for sending the bandwidth evaluation result to a server connected to the receiving end, wherein the server is used for generating a control parameter according to the bandwidth evaluation result through a pre-built forwarding control module; A receiving unit, configured to receive the audio and video data sent by the server after being adjusted based on the control parameters; The bandwidth evaluation result includes the priority of each sending end, the bit rate of each audio and video data, the bit rates and values ​​of the multiple audio and video data, and the bandwidth evaluation value of the receiving end; the server includes a forwarding control module and a bandwidth allocation module corresponding to each audio and video data, and the server is used to determine a target sending end with a priority greater than a preset threshold among the multiple sending ends through the forwarding control module when it is determined that the bandwidth resources of the receiving end are overused according to the bit rate and value and the bandwidth evaluation value, and generate a control parameter according to the bit rate of each audio and video data according to a rule of giving priority to the bit rate corresponding to the target sending end, and the target sending end refers to some sending ends among the multiple sending ends; the server is also used to adjust the audio and video data generated by the target sending end according to the control parameter through the bandwidth allocation module corresponding to the target sending end.

9. An audio and video data transmission device, characterized in that: Applied to the server, including: A receiving unit, configured to receive a bandwidth evaluation result, wherein the bandwidth evaluation result is generated by a receiving end connected to the server end according to the method described in any one of claims 1 to 4 above; A generating unit is used to generate control parameters according to the bandwidth evaluation result by using a pre-built forwarding control module, and send the multi-channel audio and video data adjusted based on the control parameters to the receiving end, wherein the multi-channel audio and video data is generated by the multi-channel sending end connected to the service end.

10. An electronic device, characterized in that: The electronic device comprises: Processor; and Memory for storing programs, The program includes instructions, which, when executed by the processor, enable the processor to execute the audio and video data transmission method according to any one of claims 1 to 7.

11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the audio and video data transmission method according to any one of claims 1 to 7.