Video transmission method and device, electronic equipment and readable storage medium

By dynamically adjusting the encoding bandwidth and sending rate of video packets and redundant packets, and according to the characteristics of different application scenarios, the problem that existing technology cannot meet the video transmission quality requirements of different scenarios is solved, and the video transmission quality is improved.

CN118540525APending Publication Date: 2024-08-23SAMSUNG ELECTRONICS CHINA R&D CENT +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410733057.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing video transmission technology cannot dynamically adjust bandwidth usage strategies according to the characteristics of different application scenarios, resulting in the inability to meet the video transmission quality requirements in different scenarios.

Method used

By estimating the available bandwidth of the transmission network, determining the anti-packet loss redundancy based on historical packet loss rates, and dynamically adjusting the encoding bandwidth and sending rate of video packets and redundant packets to adapt to video transmission needs in different scenarios.

Benefits of technology

It achieves the guarantee of video transmission quality in different application scenarios, improves the stability and quality of video transmission, reduces the video bit rate, and avoids the problem of poor image quality caused by excessive redundant packets during video transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540525A
    Figure CN118540525A
Patent Text Reader

Abstract

The invention provides a video transmission method and device, electronic equipment and a readable storage medium, and relates to the field of computer communication. The specific implementation scheme is as follows: determining an available bandwidth based on an estimated bandwidth of a transmission network; the video packet coding bandwidth and the redundant packet coding bandwidth are determined based on the available bandwidth and the packet loss resistance redundancy, and the packet loss resistance redundancy is determined based on the historical packet loss rate of the transmission network; coding the video data to be sent based on the video packet coding bandwidth to obtain a video packet, and generating a redundant packet based on the redundant packet coding bandwidth and a preset redundant packet generation mode; a first sending rate for sending the video packet is determined based on the estimated bandwidth and a sending coefficient, a second sending rate for sending the redundant packet is determined based on the first sending rate and the packet loss resistance redundancy, and the sending coefficient is determined based on a historical packet loss rate and a preset configuration rule; and respectively transmitting the video packet and the redundant packet at the first sending rate and the second sending rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a video transmission method, device, electronic device and readable storage medium. Background Art

[0002] With the popularization of 5G and high-bandwidth home networks, applications such as audio and video chat, remote work, and cloud gaming are becoming more and more common, and video transmission has become an extremely important part of them.

[0003] In the related art, the bandwidth usage strategy involved in the video transmission process is generally universal, that is, different application scenarios (such as video conferencing scenarios, cloud gaming scenarios) adopt the same bandwidth usage strategy. However, since video transmission in different scenarios usually has different characteristics, such as broadband volatility and bit loss rate, the bandwidth usage strategy in the prior art cannot meet the needs of different application scenarios, and thus cannot guarantee the video transmission quality in different application scenarios. Summary of the invention

[0004] The present disclosure provides a video transmission method, an apparatus, an electronic device, a readable storage medium, and a computer program product.

[0005] According to one aspect of the present disclosure, there is provided a video transmission method, comprising:

[0006] Determining available bandwidth based on an estimated bandwidth of a transmission network;

[0007] Determine a video packet encoding bandwidth and a redundant packet encoding bandwidth based on the available bandwidth and anti-packet loss redundancy, wherein the anti-packet loss redundancy is determined based on a historical packet loss rate of the transmission network;

[0008] Encoding the video data to be transmitted based on the video packet encoding bandwidth to obtain a video packet, and generating a redundant packet based on the redundant packet encoding bandwidth and a preset redundant packet generation method;

[0009] Determine a first sending rate for sending the video packet based on the estimated bandwidth and a sending coefficient, and determine a second sending rate for sending the redundant packet based on the first sending rate and the anti-packet loss redundancy, wherein the sending coefficient is determined based on the historical packet loss rate and a preset configuration rule;

[0010] The video packets and the redundant packets are transmitted at the first transmission rate and the second transmission rate, respectively.

[0011] According to another aspect of the present disclosure, there is provided a video transmission device, comprising:

[0012] a bandwidth determination module configured to determine available bandwidth based on an estimated bandwidth of a transmission network;

[0013] a bandwidth allocation module configured to determine a video packet encoding bandwidth and a redundant packet encoding bandwidth based on the available bandwidth and anti-packet loss redundancy, wherein the anti-packet loss redundancy is determined based on a historical packet loss rate of the transmission network;

[0014] an encoding module configured to encode the video data to be transmitted based on the video packet encoding bandwidth to obtain a video packet, and to generate a redundant packet based on the redundant packet encoding bandwidth and a preset redundant packet generation method;

[0015] a sending rate determination module, configured to determine a first sending rate for sending the video packet based on the estimated bandwidth and a sending coefficient, and to determine a second sending rate for sending the redundant packet based on the first sending rate and the anti-packet loss redundancy, wherein the sending coefficient is determined based on the historical packet loss rate and a preset configuration rule;

[0016] The sending module is configured to transmit the video packet and the redundant packet at the first sending rate and the second sending rate respectively.

[0017] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0018] at least one processor; and

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the video transmission method provided by the present disclosure.

[0021] 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 enable the computer to execute the video transmission method provided by the present disclosure.

[0022] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the video transmission method provided by the present disclosure is implemented.

[0023] The present disclosure provides a video transmission method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product, which ensure the quality of video transmission in different scenarios by dynamically adjusting the sending rates of video packets and redundant packets.

[0024] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0026] Figure 1 is a flow chart of a video transmission method provided by an embodiment of the present disclosure;

[0027] Figure 2 is a flowchart of a video transmission method provided by another embodiment of the present disclosure;

[0028] Figure 3 A comparison diagram of a preset relationship table representing the relationship between packet loss rate and anti-packet loss redundancy provided by an embodiment of the present disclosure and the prior art;

[0029] Figure 4 is a structural schematic diagram of a video transmission device provided by an embodiment of the present disclosure;

[0030] Figure 5 It is a block diagram of an electronic device used to implement the video transmission method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0032] In the related art, in a real-time audio and video transmission scenario, there is a certain interval between video frame generation. Therefore, the real-time nature of video communication can be ensured by sending all data of the current frame before the next frame of video is generated.

[0033] In the process of video transmission, the existing bandwidth allocation strategy is usually universal. Generally speaking, after determining the current available bandwidth of the transmission network, the available bandwidth is divided into video encoding bandwidth and redundant packet generation bandwidth, and then allocated to the video encoding module and redundant packet generation module respectively, so as to generate video packets and redundant packets for each video frame, and then send the video packets and redundant packets successively. By sending all the data packets of a video frame within the frame generation interval, network congestion can be reduced, thereby reducing the occurrence of packet loss. If network packet loss occurs, the receiving end can recover the lost packet based on the redundant packet. The generation of redundant packets is usually determined based on the historical packet loss rate. Generally, the higher the historical packet loss rate, the larger the redundant packet.

[0034] In current technology, the sending rate of video packets and redundant packets is usually based on the video packet coding bandwidth and redundant packet coding bandwidth. However, with the development of current network facilities and the emergence of various video transmission scenarios (video conferencing scenarios and cloud gaming scenarios, etc.), the size of redundant packets in the video transmission process will also vary greatly, and larger redundant packets will usually lead to a decrease in video bit rate, resulting in reduced video transmission quality and poor image quality.

[0035] The present disclosure provides a video transmission method, which ensures the video transmission quality in different scenarios by dynamically adjusting the sending rates of video packets and redundant packets.

[0036] Figure 1 FIG. 1 is a flow chart of a video transmission method provided by an embodiment of the present disclosure. Figure 1 As shown, the video transmission method provided in this embodiment includes:

[0037] Step S101: Determine available bandwidth based on estimated bandwidth of a transmission network.

[0038] The estimated bandwidth of the transmission network is usually determined by a bandwidth estimation module, which can determine the estimated bandwidth of the current network based on a variety of methods, such as a bandwidth prediction algorithm based on delay and a bandwidth prediction algorithm based on packet loss, etc. The present disclosure does not specifically limit the method used for bandwidth estimation.

[0039] As an optional implementation method, the embodiment of the present disclosure calculates the estimated bandwidth by using statistics from the receiving end, and calculates the maximum bandwidth of the transmission network by the size of the received data packet group fed back by the receiving end and the time when each data packet in the data packet group is received. The specific process may include: determining the size of the data packet group received by the receiving end, the data packet group includes multiple data packets received within a preset time period; determining the time difference between the first data packet and the last data packet in the data packet group received by the receiving end; and determining the estimated bandwidth of the current network based on the size of the data packet group and the time difference.

[0040] The above calculation process can be implemented based on the following formula:

[0041]

[0042] Among them, BW recv represents the estimated bandwidth, L is the sum of the sizes of all data packets contained in the data packet group, and Δt is the time difference between the arrival times of the first and last data packets in the packet group.

[0043] In the disclosed embodiment, data packets continuously received within a preset time period are regarded as a data packet group. The preset time period can be set based on actual conditions, for example, it can be 5ms. The arrival time difference between two data packets in the packet group is generally set to be no greater than a preset number of video frame durations. The preset number can be set based on actual application scenarios, for example, the preset number is 3.

[0044] In particular, in actual applications, if the execution subject is started for the first time, the broadband estimation can be implemented based on the detection data packet when the bandwidth estimation is performed for the first time. Specifically, the execution subject can use the maximum configured bandwidth of the transmission network and send a preset number of data packets to the receiving end based on a preset time interval, and determine the estimated bandwidth by counting the size of the data packets received by the receiving end and the time interval, wherein the preset time interval can be set to the inverse of the frame rate.

[0045] After the estimated bandwidth is determined, the available bandwidth is determined based on the estimated bandwidth.

[0046] In some embodiments, the estimated bandwidth may be directly used as the available bandwidth.

[0047] In other embodiments, the available bandwidth may be determined based on a preset usage ratio of the estimated bandwidth. Specifically, the available bandwidth may be determined using the following formula:

[0048] BW able =max(BW recv ×γ×α,BW min ) (2)

[0049] Among them, BW able represents the available bandwidth, γ represents the preset usage ratio, which represents the usage ratio of the estimated bandwidth, and α represents the compensation coefficient, which represents the compensation ratio of redundant packets occupying the bandwidth when packet loss occurs. Both the preset usage ratio γ and the compensation coefficient α can be set based on different scenarios; BW min represents the minimum available bandwidth of the transmission network, and max represents the maximum value. In some embodiments, the compensation coefficient α may not be set when determining the available bandwidth.

[0050] By determining the available bandwidth based on the preset usage ratio, the bandwidth fluctuation in different application scenarios can be fully considered. For example, in the video conferencing scenario, the bandwidth fluctuation during video transmission is not large and is relatively stable, so γ can be set to 0.8, that is, a small bandwidth fluctuation space is reserved; while in the cloud gaming scenario, the bandwidth fluctuation is large, so γ can be set to 0.67, that is, a large bandwidth fluctuation space is reserved. By setting different preset usage ratios in different scenarios, the quality of video transmission can be better guaranteed.

[0051] Step S102: Determine a video packet coding bandwidth and a redundant packet coding bandwidth based on available bandwidth and anti-packet loss redundancy.

[0052] The anti-packet loss redundancy is determined based on the historical packet loss rate of the transmission network. Generally, the higher the historical packet loss rate, the higher the anti-packet loss redundancy.

[0053] The packet loss resistance redundancy can usually be determined based on a preset relationship table, in which a corresponding relationship between the packet loss rate and the packet loss resistance redundancy is stored.

[0054] When determining the video packet coding bandwidth and the redundant packet coding bandwidth based on the available bandwidth and the anti-packet loss redundancy, the available bandwidth can usually be proportionally allocated based on the anti-packet loss redundancy.

[0055] As an optional implementation of the embodiment of the present disclosure, the video packet coding bandwidth and the redundant packet coding bandwidth may be determined based on the following formula:

[0056]

[0057] BW FEC =max(BW video ×β,BW min ) (4)

[0058] Among them, BW video Indicates the video encoding bandwidth, BW able represents the current available bandwidth of the transmission network, β represents the redundancy against packet loss, BW min Indicates the minimum available bandwidth of the transmission network, and max indicates the maximum value.

[0059] Based on the above formulas (3) and (4), it is determined that the video coding bandwidth and the redundant packet coding bandwidth have a good allocation ratio, which can better adapt to the sizes of the video packets and redundant packets to be transmitted.

[0060] Step S103: Encode the video data to be transmitted based on the video packet encoding bandwidth to obtain a video packet, and generate a redundant packet based on the redundant packet encoding bandwidth and a preset redundant packet generation method.

[0061] After determining the video packet coding bandwidth and the redundant packet coding bandwidth, the video data to be transmitted is encoded based on the video packet coding bandwidth to obtain a video packet; and the redundant packet is generated based on the redundant packet coding bandwidth and a preset redundant packet generation method.

[0062] Among them, the preset redundant packet generation method is usually determined based on FEC (Forward Error / Erasure Correction) technology. The embodiment of the present disclosure adopts a redundant packet generation method based on RS code (Reed-Solomon code) to generate redundant packets. This method can generate redundant packets of a certain size according to the size of the anti-packet loss redundancy.

[0063] Step S104: determining a first sending rate for sending video packets based on the estimated bandwidth and the sending coefficient, and determining a second sending rate for sending redundant packets based on the first sending rate and the anti-packet loss redundancy.

[0064] After the encoding of the data to be sent is completed, a first sending rate for sending video packets and a second sending rate for sending redundant packets are further determined.

[0065] In the embodiment of the present disclosure, when determining the first transmission rate for sending video packets, it is determined based on the estimated bandwidth and the transmission coefficient, wherein the transmission coefficient is determined based on the historical packet loss rate and the preset configuration rule, and the preset configuration rule is pre-set based on different video transmission scenarios. In actual applications, the preset configuration rule can be stored in a configuration file within the execution subject, and the user can change the relevant parameters in the configuration file based on different usage scenarios. The preset configuration rule is usually set based on the historical packet loss rate, and is used to dynamically adjust the transmission coefficient according to the historical packet loss rate.

[0066] In some embodiments, the first sending rate is calculated based on the following formula:

[0067] BW send =BW recv ×ω (5)

[0068] Among them, BW send represents a first transmission rate for transmitting video packets, and ω represents a transmission coefficient.

[0069] In practical applications, the preset configuration rules can be set by those skilled in the art based on historical packet loss rates in different scenarios, as long as the first sending rate can be dynamically adjusted based on the historical packet loss rate.

[0070] The disclosed implementation adjusts the first sending rate for sending video packets based on the historical packet loss rate and pre-set configuration rules, thereby achieving the adjustability of the sending rate. Compared with the prior art, it can alleviate the subsequent network congestion that may occur, thereby ensuring the quality of video transmission.

[0071] As an optional implementation of the embodiment of the present disclosure, the preset configuration rule may be set as:

[0072] In response to the historical packet loss rate being less than a preset first threshold, the sum of the preset initial value and the preset first fixed value is calculated, and the sending coefficient is configured to be the smaller of the sum and the preset maximum value; in response to the historical packet loss rate being greater than or equal to the preset first threshold and less than the preset second threshold, the sending coefficient is still configured to be the preset initial value; in response to the historical packet loss rate being greater than or equal to the preset second threshold, the difference between the preset initial value and the preset second fixed value is calculated, and the sending coefficient is configured to be the larger of the difference and the minimum value.

[0073] The minimum value is usually determined based on the anti-packet loss redundancy. In some implementations, the minimum value is calculated as follows: Wherein, β represents the anti-packet loss redundancy; the preset maximum value and the preset initial value are pre-configured parameters. Generally, the preset maximum value is 1, and the preset initial value can be set based on different video transmission scenarios.

[0074] The preset first threshold and the preset second threshold are judgment parameters set based on different video transmission scenarios. For example, in a video conferencing scenario, the preset first threshold can be set to 0.05, and the preset second threshold can be set to 0.1; in a cloud gaming scenario, the preset first threshold can be set to 0.03, and the preset second threshold can be set to 0.07.

[0075] The preset first fixed value and the preset second fixed value are parameters that characterize the fluctuation amount of the transmission coefficient and can be set according to the actual application scenario. In some implementations, the preset first fixed value can be set to 0.1 and the preset second fixed value can be set to 0.2.

[0076] The configuration rules provided in the embodiments of the present disclosure can appropriately increase the sending rate when the historical packet loss rate is less than a certain range, and appropriately reduce the sending rate when the historical packet loss rate is greater than a certain range, thereby ensuring the adaptation of the sending rate and the packet loss rate and ensuring the quality of video transmission.

[0077] After the first sending rate is determined, a second sending rate for sending redundant packets is further determined based on the first sending rate and the anti-packet loss redundancy.

[0078] In the embodiment of the present disclosure, the second transmission rate is configured to be higher than the first transmission rate. In some optional implementations, the value range of the second transmission rate is configured to be greater than the first transmission rate and less than or equal to 10 times the first transmission rate. Specifically, the value of the second transmission rate can be determined based on the following formula:

[0079]

[0080] Among them, BW FEC_send Indicates the second sending rate, and min indicates the minimum value.

[0081] In the disclosed embodiment, by configuring the second sending rate to be higher than the first sending rate, redundant packets are sent at a higher rate, thereby reducing queuing delays. Moreover, since the transmission time of the entire video frame is reduced, the subsequent bandwidth estimation process can make the estimated bandwidth closer to the maximum bandwidth configured for the transmission network, thereby realizing the detection function of the bandwidth upper limit.

[0082] Step S105: Transmit the video packet and the redundant packet at the first transmission rate and the second transmission rate respectively.

[0083] After respectively determining a first sending rate for sending the video packets and a second sending rate for sending the redundant packets, the video packets and the redundant packets are transmitted at the first sending rate and the second sending rate, respectively.

[0084] In the disclosed embodiment, the video packets and redundant packets may be transmitted in a smooth transmission manner, that is, all data packets are gradually transmitted within a certain period of time using a timer. Specifically, the video packets are first transmitted in sequence at a first transmission rate, and then, the redundant packets are transmitted at a second transmission rate.

[0085] The video transmission method provided by the present disclosure can ensure the quality of video transmission in different scenarios by adjusting the sending rates of video packets and redundant packets based on configuration rules of different scenarios.

[0086] Figure 2 FIG. 1 is a flowchart of a video transmission method provided by another embodiment of the present disclosure. Figure 2 As shown, the video transmission method provided by the embodiment of the present disclosure includes:

[0087] Step S201: Determine available bandwidth based on estimated bandwidth of the transmission network.

[0088] This step is Figure 1 Step S101 in the illustrated embodiment is the same, please refer to the description of step S101 for details, which will not be repeated here.

[0089] Step S202: Count the historical packet loss rate within the historical preset time period up to the current moment.

[0090] Step S203: Determine anti-packet loss redundancy according to the historical packet loss rate and the preset relationship table.

[0091] Step S204: Determine the video packet coding bandwidth and the redundant packet coding bandwidth based on the available bandwidth and the anti-packet loss redundancy.

[0092] In this embodiment, steps S202 to S204 further define the process of determining the video packet encoding bandwidth and the redundant packet encoding bandwidth.

[0093] In the current technology, in the preset relationship table used to determine the anti-packet loss redundancy, generally, the higher the packet loss rate, the higher the corresponding anti-packet loss redundancy is, and the larger the generated redundant packets are; when the packet loss rate is 0, the anti-packet loss redundancy is also 0, that is, no redundant packets are generated subsequently. Although this setting can avoid data redundancy, it can also not prevent sudden packet loss.

[0094] Compared with the prior art, in this embodiment, the preset relationship table used to determine the anti-packet loss redundancy is obtained based on the statistics of the packet loss rate of different application scenarios, and the anti-packet loss redundancy corresponding to each packet loss rate is optimized to achieve a balance between the anti-packet loss capability and bandwidth occupancy. In particular, the value of the anti-packet loss redundancy in the relationship table used in the embodiment of the present disclosure is not equal to zero, that is, when the packet loss rate is 0, the anti-packet loss redundancy is not 0, that is, a certain size of redundant packets are still generated subsequently, thereby improving the anti-packet loss capability and preventing sudden packet loss.

[0095] In the disclosed embodiment, the value range of the anti-packet loss redundancy is usually (0, 1]. Figure 3 It is a comparison diagram of a preset relationship table characterizing the relationship between packet loss rate and anti-packet loss redundancy provided by an embodiment of the present disclosure and the prior art.

[0096] like Figure 3 As shown, in one embodiment of the present disclosure, the anti-packet loss redundancy is still set to a certain value when the packet loss rate is 0, thereby realizing the normal opening of the anti-packet loss function and achieving the purpose of preventing sudden packet loss. It should be noted that Figure 3 It only shows the relationship curve between the packet loss rate and the anti-packet loss redundancy in a certain scenario of the present disclosure, which cannot limit the relationship between the packet loss rate and the anti-packet loss redundancy of the present disclosure.

[0097] In step S202, the preset time period used for calculating the historical packet loss rate can be set according to different scenarios and / or different requirements, for example, it can be 1 second, 2 seconds, 5 seconds, etc. The packet loss rate can be calculated by counting the response messages fed back by the receiving end, and of course, it can also be determined by other methods. The statistical packet loss rate is a mature technology in the field, and the embodiments of the present disclosure will not be repeated.

[0098] Step S205: Encode the video data to be transmitted based on the video packet encoding bandwidth to obtain a video packet, and generate a redundant packet based on the redundant packet encoding bandwidth and a preset redundant packet generation method.

[0099] Step S206: determining a first sending rate for sending video packets based on the estimated bandwidth and the sending coefficient, and determining a second sending rate for sending redundant packets based on the first sending rate and anti-packet loss redundancy.

[0100] Step S207: Transmit the video packet and the redundant packet at the first transmission rate and the second transmission rate respectively.

[0101] Steps S205-S207 and Figure 1 In the illustrated embodiment, steps S103 - S105 correspond to each other one by one. Please refer to the description of steps S103 - S105 for details, which will not be repeated here.

[0102] Based on the same inventive concept as the video transmission method provided by the present disclosure, the present disclosure also provides a video transmission device. Figure 4 FIG. 1 is a schematic diagram of a video transmission device provided by an embodiment of the present disclosure. Figure 4 As shown, the video transmission device provided by the present disclosure includes: a bandwidth determination module 41, a bandwidth allocation module 42, an encoding module 43, a sending rate determination module 44 and a sending module 45.

[0103] Among them, the bandwidth determination module 41 is configured to determine the available bandwidth based on the estimated bandwidth of the transmission network; the bandwidth allocation module 42 is configured to determine the video packet encoding bandwidth and the redundant packet encoding bandwidth based on the available bandwidth and the anti-packet loss redundancy, wherein the anti-packet loss redundancy is determined based on the historical packet loss rate of the transmission network; the encoding module 43 is configured to encode the video data to be transmitted based on the video packet encoding bandwidth to obtain video packets, and to generate redundant packets based on the redundant packet encoding bandwidth and a preset redundant packet generation method; the sending rate determination module 44 is configured to determine a first sending rate for sending video packets based on the estimated bandwidth and the sending coefficient, and to determine a second sending rate for sending redundant packets based on the first sending rate and the anti-packet loss redundancy, wherein the sending coefficient is determined based on the historical packet loss rate and a preset configuration rule; the sending module 45 is configured to transmit the video packets and the redundant packets at the first sending rate and the second sending rate, respectively.

[0104] The functions of each module are consistent with the present disclosure. Figure 1 The relevant steps of the video transmission method shown correspond to each other one by one. For specific descriptions, please refer to the descriptions of the relevant steps in the method embodiment.

[0105] In some embodiments, the sending coefficient includes a minimum value, a preset maximum value, and a preset initial value, and the minimum value is determined based on anti-packet loss redundancy.

[0106] Correspondingly, the preset configuration rules include: in response to the historical packet loss rate being less than the preset first threshold, calculating the sum of the preset initial value and the preset first fixed value, and configuring the sending coefficient to be the smaller of the sum and the preset maximum value; in response to the historical packet loss rate being greater than or equal to the preset first threshold and less than the preset second threshold, configuring the sending coefficient to be the preset initial value; in response to the historical packet loss rate being greater than or equal to the preset second threshold, calculating the difference between the preset initial value and the preset second fixed value, and configuring the sending coefficient to be the larger of the difference and the minimum value.

[0107] In some embodiments, the bandwidth allocation module 42 is further configured to: count the historical packet loss rate within the historical preset time period up to the current moment, determine the anti-packet loss redundancy according to the historical packet loss rate and the preset relationship table, and determine the video packet encoding bandwidth and the redundant packet encoding bandwidth based on the available bandwidth and the anti-packet loss redundancy. The preset relationship table stores the corresponding relationship between the packet loss rate and the anti-packet loss redundancy, and the value of the anti-packet loss redundancy is not equal to zero.

[0108] In some embodiments, the second sending rate has a value range that is greater than the first sending rate and less than or equal to 10 times the first sending rate.

[0109] In some embodiments, the bandwidth determination module 41 further includes a bandwidth estimation unit and an available bandwidth determination unit, wherein the bandwidth estimation unit is configured to obtain the estimated bandwidth of the current network, and the available bandwidth determination unit determines the available bandwidth based on a preset usage ratio of the estimated bandwidth.

[0110] In some embodiments, the bandwidth estimation unit is further configured to: determine the size of a data packet group received by a receiving end, wherein the data packet group includes multiple data packets received within a preset time period; determine the time difference between the first data packet and the last data packet in the data packet group received by the receiving end; and determine the estimated bandwidth of the current network based on the size of the data packet group and the time difference.

[0111] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0112] Figure 5A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, 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.

[0113] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 805 is also connected to the bus 504.

[0114] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0115] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 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 501 performs the various methods and processes described above, such as the video transmission method. For example, in some embodiments, the video transmission method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the video transmission method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the video transmission method in any other appropriate manner (e.g., by means of firmware).

[0116] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0117] 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, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. 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.

[0118] 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 equipment, 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.

[0119] 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).

[0120] The systems and techniques described herein may be implemented in a computing system that includes back-end 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 front-end 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 back-end components, middleware components, or front-end 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.

[0121] 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 relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0122] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0123] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A video transmission method, include: Determining available bandwidth based on an estimated bandwidth of a transmission network; Determine a video packet encoding bandwidth and a redundant packet encoding bandwidth based on the available bandwidth and anti-packet loss redundancy, wherein the anti-packet loss redundancy is determined based on a historical packet loss rate of the transmission network; Encoding the video data to be transmitted based on the video packet encoding bandwidth to obtain a video packet, and generating a redundant packet based on the redundant packet encoding bandwidth and a preset redundant packet generation method; Determine a first sending rate for sending the video packet based on the estimated bandwidth and a sending coefficient, and determine a second sending rate for sending the redundant packet based on the first sending rate and the anti-packet loss redundancy, wherein the sending coefficient is determined based on the historical packet loss rate and a preset configuration rule; The video packets and the redundant packets are transmitted at the first transmission rate and the second transmission rate, respectively.

2. The method according to claim 1, in, The transmission coefficient includes a minimum value, a preset maximum value and a preset initial value, wherein the minimum value is determined based on the anti-packet loss redundancy; and the preset configuration rule includes: In response to the historical packet loss rate being less than a preset first threshold, calculating a sum of the preset initial value and a preset first fixed value, and configuring the sending coefficient to be the smaller of the sum and the preset maximum value; In response to the historical packet loss rate being greater than or equal to the preset first threshold and less than a preset second threshold, configuring the sending coefficient to be the preset initial value; In response to the historical packet loss rate being greater than or equal to the preset second threshold, a difference between the preset initial value and the preset second fixed value is calculated, and the sending coefficient is configured to be a larger one between the difference and the minimum value.

3. The method according to claim 1, in, The determining of the video packet coding bandwidth and the redundant packet coding bandwidth based on the available bandwidth and the anti-packet loss redundancy comprises: Statistics on the historical packet loss rate within the preset historical time period up to the current moment; Determine the anti-packet loss redundancy according to the historical packet loss rate and a preset relationship table, wherein the preset relationship table stores a corresponding relationship between the packet loss rate and the anti-packet loss redundancy, and the value of the anti-packet loss redundancy is not equal to zero; A video packet encoding bandwidth and a redundant packet encoding bandwidth are determined based on the available bandwidth and the anti-packet loss redundancy.

4. The method according to claim 1, in, The value range of the second sending rate is greater than the first sending rate and less than or equal to 10 times the first sending rate.

5. The method according to any one of claims 1 to 4, in, The determining of the available bandwidth based on the estimated bandwidth of the transmission network includes: Get the estimated bandwidth of the current network; The available bandwidth is determined based on a preset usage ratio of the estimated bandwidth.

6. The method according to claim 5, in, The obtaining of the estimated bandwidth of the current network includes: Determining a size of a data packet group received by a receiving end, the data packet group comprising a plurality of data packets received within a preset time period; Determine the time difference between the first data packet and the last data packet in the data packet group received by the receiving end; An estimated bandwidth of the current network is determined based on the size of the data packet group and the time difference.

7. A video transmission device, include: a bandwidth determination module configured to determine available bandwidth based on an estimated bandwidth of a transmission network; a bandwidth allocation module, configured to determine a video packet encoding bandwidth and a redundant packet encoding bandwidth based on the available bandwidth and anti-packet loss redundancy, wherein the anti-packet loss redundancy is determined based on a historical packet loss rate of the transmission network; an encoding module configured to encode the video data to be transmitted based on the video packet encoding bandwidth to obtain a video packet, and to generate a redundant packet based on the redundant packet encoding bandwidth and a preset redundant packet generation method; a sending rate determination module, configured to determine a first sending rate for sending the video packet based on the estimated bandwidth and a sending coefficient, and to determine a second sending rate for sending the redundant packet based on the first sending rate and the anti-packet loss redundancy, wherein the sending coefficient is determined based on the historical packet loss rate and a preset configuration rule; The sending module is configured to transmit the video packet and the redundant packet at the first sending rate and the second sending rate respectively.

8. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.