Unmanned ship video transmission system and method under network resource limitation
By using the RTCP protocol in the unmanned boat video transmission system to obtain network parameters, smoothing processing and strategy selection, combined with the improved RAP algorithm and encoding strategy, the problems of unstable network signals and insufficient bandwidth in unmanned boat video transmission are solved. Achieving the stability and low latency of video transmission.
Patent Information
- Application Number
- CN202410724270.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-20
AI Technical Summary
In unmanned boat applications, unstable network signals and insufficient bandwidth lead to increased screen freezes and delays during video transmission, affecting real-time performance. Existing technologies such as packet loss retransmission and forward error correction increase bandwidth overhead, and the RAP algorithm Parameters are not adjustable, and CDN technology has cost and deployment complexity issues.
Obtain network parameters through the RTCP protocol, smooth the packet loss rate and link loopback time, select an appropriate packet loss return strategy or adjust the bit rate, use the improved RAP algorithm to adaptively adjust the video bit rate, and combine NACK and FEC coding Strategies to ensure the stability and low latency of video transmission.
It realizes the effective transmission of video data under different network conditions, ensures the stability and low delay of video transmission, avoids the degradation of video quality caused by frequent bit rate adjustment, and optimizes the use of network bandwidth.
Smart Images

Figure CN118678166A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned boats, and in particular to an unmanned boat video transmission system and method under limited network resources. Background Art
[0002] In unmanned ship applications such as unmanned boats, real-time video transmission is essential for monitoring, navigation, and decision-making. In the marine environment, network signals are often unstable and affected by factors such as weather and currents. When the network environment is unstable or the bandwidth is insufficient, it often causes problems such as image freezes and quality degradation during video transmission, and increased latency affects real-time performance. Image freezes are often caused by network packet loss. At the same time, due to factors such as network congestion and signal interference, the transmission delay of video data is high and cannot meet real-time requirements. For application scenarios such as unmanned boats, this may cause operators to be unable to obtain real-time video information in a timely manner, thereby affecting the accuracy and timeliness of operations.
[0003] In order to solve the problem of image jamming and quality degradation caused by network limitations during the operation of unmanned boats, the current mainstream method is to select packet loss retransmission and forward error correction technology (FEC) based on network parameters. Packet loss retransmission mechanism: When a lost data packet is detected, the packet loss is compensated by requesting the sender to resend the data packet. Although data integrity can be guaranteed, the sender needs to resend the video data packet after the receiver feedbacks it. This will add extra time. If the network status continues to lose packets and then retransmit, it will cause network congestion and increase video delay. FEC technology: By introducing a certain amount of redundant data after data encoding and transmission and then sending packets, it can still be restored through redundant data after data packet loss occurs at the receiving end, thereby reducing the impact of packet loss on video quality, but this means that additional bandwidth is required to transmit this redundant information, increasing bandwidth overhead, which has a worse effect on the network transmission system that already has insufficient bandwidth.
[0004] In order to solve the problem of increased transmission delay caused by network limitations during the operation of unmanned boats, the main solutions currently used include the end-to-end real-time flow control mechanism RAP and the use of content distribution network (CDN) technology. RAP algorithm: It uses the principle of additive increase and multiplicative reduction algorithm to adjust the transmission rate to reduce the delay. This algorithm is simple and has achieved good results in practice. However, it can be analyzed from the RAP algorithm that when the bit rate is predicted according to the RAP algorithm model, because the calculation results are overly dependent on the selection of a and b parameters, and the parameters are not adjustable, it is very likely to cause sudden and large changes in the bit rate, resulting in frequent adjustments to the video bit rate, thereby reducing the video quality. CDN technology: Using content distribution network (CDN) technology, data is cached to nodes closer to the user, thereby reducing the delay in data transmission. However, CDN technology may have problems such as high cost and complex deployment. Summary of the invention
[0005] In view of the above-mentioned defects, the purpose of the present invention is to propose an unmanned boat video transmission system and method under limited network resources, which can adaptively select a bit rate control algorithm to ensure that video data can be effectively transmitted under different network conditions.
[0006] To achieve this purpose, the present invention adopts the following technical solution: a method for transmitting video of an unmanned boat under limited network resources, comprising the following steps:
[0007] Step S1: Initialize encoding parameters and bit rate;
[0008] Step S2: based on the RTCP protocol, the RR packet sent by the receiving end is obtained, and the RR packet is parsed to obtain network parameters, wherein the network parameters include: packet loss rate, link loop time, actual duration of audio and video data packets, and size of data packets;
[0009] Step S3: Smoothing the packet loss rate and the link loop time to obtain a first parameter and a second parameter respectively;
[0010] Step S4: selecting a packet loss return strategy or adjusting the bit rate based on the first parameter and the packet loss situation;
[0011] Step S5: Determine whether the video transmission is completed. If not, repeat steps S2 to S4 until the video transmission is completed.
[0012] Preferably, the packet loss rate smoothing process in step S3 is specifically as follows:
[0013]
[0014] Where α is the filter coefficient, The first parameter at the previous moment, l, is the packet loss rate obtained by parsing the RR packet;
[0015] The link loop time smoothing process is as follows:
[0016]
[0017] Among them, β is the smoothing coefficient, is the predicted value of the last link loop time, T RTT The actual link loop time.
[0018] Preferably, the specific steps of step S4 are as follows:
[0019] Obtaining the packet loss retransmission time according to the first parameter and the second parameter;
[0020] Determine whether the packet loss retransmission time is greater than the time threshold. If so, adjust the bit rate. If less than, select the packet loss retransmission strategy based on the packet loss rate and link loopback time.
[0021] Preferably, the specific formula for obtaining the packet loss retransmission time according to the first parameter and the second parameter is as follows:
[0022]
[0023] in and are the first and second parameters respectively, T RTT It is the actual link loop time.
[0024] Preferably, the specific steps of adjusting the bit rate are as follows:
[0025] Use the encoder to set the default bitrate R d Divide by the size of the packet sent, S d , get the expected sending time T e ;
[0026] Get the actual duration T of the audio and video data packet r ;
[0027] Determine the actual duration T of the audio and video data packet r and the expected sending time T e Whether the difference between is greater than the allowable deviation range, if it is, an auto-increment variable is introduced. When the auto-increment variable is greater than the quantity threshold, the improved RAP algorithm is used to adjust the bit rate of the network status; if it is less than, no adjustment is made.
[0028] Preferably, the improved RAP algorithm is used to adjust the bit rate of the network status as follows:
[0029] Where a is the rate increment (a>0), b is the multiplicative reduction factor (0 <b<1),lmax and l min are the maximum critical value of packet loss rate and the minimum critical value of packet loss rate, R n-1 is the bit rate at the previous moment, R max and R min are the maximum bit rate and the minimum bit rate respectively, T RTTmin and T RTTmax are the minimum and maximum link loop time thresholds, respectively; c is the subtraction factor; S Th is the bit rate obtained within the preset time, S n It represents the expected bit rate, i.e., the bit rate initialized by the encoder, and d is the divisor factor.
[0030] Preferably, the rules for selecting a lost packet return strategy based on the packet loss rate and link loopback time are as follows:
[0031] when and When the NACK retransmission strategy is used, the lost data packets are resent to the receiving end;
[0032] when and and and When the video quality is affected, FEC redundant coding is used to send the I frames that affect the video quality to the receiving end, and the remaining frames are sent to the receiving end through the NACK retransmission mechanism;
[0033] when and When the NACK retransmission mechanism is stopped, FEC coding is used to protect lost data packets.
[0034] An unmanned boat video transmission system under limited network resources includes: an initialization module, a parsing module, a smoothing processing module and an adjustment module;
[0035] The initialization module is used to initialize the encoding parameters and bit rate;
[0036] The parsing module is used to obtain the RR packet sent by the receiving end based on the RTCP protocol, and parse the RR packet to obtain network parameters;
[0037] The smoothing processing module is used to smooth the packet loss rate and the link loop time to obtain a first parameter and a second parameter respectively;
[0038] The adjustment module is used to select a packet loss return strategy or adjust the bit rate based on the first parameter and the packet loss situation until the video transmission is completed.
[0039] One of the above technical solutions has the following advantages or beneficial effects: the design of the present invention smoothes network parameters through filtering to ensure network data reliability and selects different packet loss recovery algorithms based on the optimized network parameters, so that the system can adjust the packet loss recovery strategy in real time according to the changes in network bandwidth to ensure the quality of video transmission and the stability of video transmission; at the same time, the data packet sending time is detected in real time, and changes are made based on the network status to determine whether the preset conditions are met, and an adaptive bit rate control algorithm is proposed. The video bit rate and encoding parameters are changed through the improved RAP algorithm while ensuring the low latency of video transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of an embodiment of the method of the present invention.
[0041] Figure 2 This is a schematic diagram of loop delay.
[0042] Figure 3 It is a schematic diagram of the structure of an embodiment of the system of the present invention. DETAILED DESCRIPTION
[0043] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0044] In the description of the embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0045] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, the meaning of "plurality" is two or more. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0046] like Figures 1 to 3 As shown, a method for transmitting video of an unmanned boat under limited network resources includes the following steps:
[0047] Step S1: Initialize encoding parameters and bit rate;
[0048] Step S2: based on the RTCP protocol, the RR packet sent by the receiving end is obtained, and the RR packet is parsed to obtain network parameters, wherein the network parameters include: packet loss rate, link loop time, actual duration of audio and video data packets, and size of data packets;
[0049] Step S3: Smoothing the packet loss rate and the link loop time to obtain a first parameter and a second parameter respectively;
[0050] Step S4: selecting a packet loss return strategy or adjusting the bit rate based on the first parameter and the packet loss situation;
[0051] Step S5: Determine whether the video transmission is completed. If not, repeat steps S2 to S4 until the video transmission is completed.
[0052] In order to solve the problems of image freeze and quality degradation caused by network packet loss and increased transmission delay caused by network limitation in audio and video transmission of unmanned boats, the present invention is designed to smooth network parameters through filtering to ensure network data reliability and select different packet loss recovery algorithms according to the optimized network parameters, so that the system can adjust the packet loss recovery strategy in real time according to the change of network bandwidth to ensure the quality of video transmission and the stability of video transmission; at the same time, the data packet sending time is detected in real time, and changes are made based on the network status to determine whether the preset conditions are met, and an adaptive bit rate control algorithm is proposed. The video bit rate and encoding parameters are changed through the improved RAP algorithm while ensuring the low delay of video transmission.
[0053] Preferably, the packet loss rate smoothing process in step S3 is specifically as follows:
[0054]
[0055] Where α is the filter coefficient, The first parameter at the previous moment, l, is the packet loss rate obtained by parsing the RR packet;
[0056] The RR packet of RTCP contains a packet loss rate field. The calculation formula of the packet loss rate l is as follows:
[0057] l = CNPL / 265 × 100%;
[0058] CNPL is the value of the packet loss rate field of the RTCP RR packet. Due to the randomness of the network, the actual packet loss rate may change suddenly, increase or decrease suddenly, or even fluctuate violently. Therefore, when the packet loss rate is used as the main basis for adjusting the bit rate, the actual packet loss rate needs to be processed. The present invention smoothes the packet loss rate through a low-pass filter to calculate the predicted value of the packet loss rate. This can make the change of the packet loss rate more stable, which helps the network system to adjust the bit rate more accurately.
[0059] The link loop time smoothing process is as follows:
[0060]
[0061] Among them, β is the smoothing coefficient, is the predicted value of the last link loop time, T RTT The actual link loop time.
[0062] Latency is an important indicator of network status, especially in video surveillance applications, where real-time requirements are high, making latency an essential consideration. Link loop time (T RTT ) refers to the time interval from when the sender sends the SR packet to when it receives the RR packet sent by the receiver. It is determined by the link transmission time, the receiver processing time, and the queuing and processing time in the cache. It fully reflects the delay time under various influencing factors and is the main reference indicator for latency. Figure 2 Shown is a schematic diagram of loop delay.
[0063] Where LSR represents the NTP timestamp of the previous SR data packet, DLSR represents the time interval between the time of sending the current RR packet and the time of the previous SR, T represents the time when the sender receives the RR packet sent by the receiver, and the actual link loop time T RTT =T-DLSR-LSR; Due to network changes or terminal heterogeneity, the link loop time T RTT There will be a big difference, so the link loop time T RTT Perform smoothing to obtain the second parameter This helps to accurately select subsequent strategies for returning different packet losses.
[0064] Preferably, the specific steps of step S4 are as follows:
[0065] Obtaining the packet loss retransmission time according to the first parameter and the second parameter;
[0066] Determine whether the packet loss retransmission time is greater than the time threshold. If so, adjust the bit rate. If less than, select the packet loss retransmission strategy based on the packet loss rate and link loopback time.
[0067] Preferably, the specific formula for obtaining the packet loss retransmission time according to the first parameter and the second parameter is as follows:
[0068]
[0069] in and are the first and second parameters respectively, T RTT It is the actual link loop time.
[0070] Preferably, the specific steps of adjusting the bit rate are as follows:
[0071] Use the encoder to set the default bitrate R d Divide by the size of the packet sent, S d , get the expected sending time T e ;
[0072] Get the actual duration T of the audio and video data packet r ;
[0073] Determine the actual duration T of the audio and video data packet r and the expected sending time T e Whether the difference between is greater than the allowable deviation range, if it is, an auto-increment variable is introduced. When the auto-increment variable is greater than the quantity threshold, the improved RAP algorithm is used to adjust the bit rate of the network status; if it is less than, no adjustment is made.
[0074] In the present invention, an auto-increment variable is added before adjustment. The auto-increment variable will grow at a stable size, and the bit rate will be adjusted only after it grows to a threshold value. The auto-increment variable is introduced to solve the problem of frequent changes in video quality caused by frequent switching of bit rates due to accidental deviations.
[0075] Preferably, the improved RAP algorithm is used to adjust the bit rate of the network status as follows:
[0076] Where a is the rate increment (a>0), b is the multiplicative reduction factor (0 <b<1),l max and l min are the maximum critical value of packet loss rate and the minimum critical value of packet loss rate, R n-1 is the bit rate at the previous moment, R max and R min are the maximum bit rate and the minimum bit rate respectively, T RTTmin and T RTTmax are the minimum and maximum link loop time thresholds, respectively; c is the subtraction factor; S Th is the bit rate obtained within the preset time, S nIt represents the expected bit rate, i.e., the bit rate initialized by the encoder, and d is the divisor factor.
[0077] When in and Under this condition, the network is in an idle state. Therefore, a larger growth step is used to increase the video output bit rate by the multiplier factor a, but it is necessary to ensure that the maximum output bit rate does not exceed the maximum network bandwidth of the system.
[0078] When in and Under this condition, the network is in a light load state, and the video output bit rate can be appropriately increased. By increasing the factor b, a slow and smooth adjustment can be achieved, which is also limited by the maximum output bit rate.
[0079] When in ( and )or( and ) When the network is in a stable state, it only needs to maintain the video output bit rate of the previous moment. Avoid additional adjustments that affect the normal transmission of the current video or audio data.
[0080] When in ( and ) or S n >S Th When the network is overloaded, the system moderately reduces the video output bit rate by reducing the factor c, but ensures that the minimum reduction is not less than the minimum network bandwidth required for system video transmission.
[0081] When in When the network is in an overloaded state, the video output bit rate needs to be quickly reduced. The present invention achieves a substantial reduction through the divisor factor d. It is also required that the minimum reduction value is not less than the minimum network bandwidth required for system transmission to ensure effective bit rate reduction.
[0082] Preferably, the rules for selecting a lost packet return strategy based on the packet loss rate and link loopback time are as follows:
[0083] when and When the network bandwidth is sufficient, NACK can be used to resend the lost data packets to the receiving end, making full use of the available bandwidth and ensuring smooth video.
[0084] when and and and When the video quality is affected, FEC redundant coding is used to send the I frames that affect the video quality to the receiving end, and the remaining frames are sent to the receiving end through the NACK retransmission mechanism;
[0085] At this time, the network is in a light-load state. For frames that affect video quality, such as I frames, FEC redundant coding is used to ensure that I frames can be sent to the other end in time. The rest use the NACK retransmission mechanism.
[0086] when and When the network is overloaded, FEC coding is used extensively for protection, and the NACK retransmission mechanism is stopped to prioritize video continuity.
[0087] An unmanned boat video transmission system under limited network resources includes: an initialization module, a parsing module, a smoothing processing module and an adjustment module;
[0088] The initialization module is used to initialize the encoding parameters and bit rate;
[0089] The parsing module is used to obtain the RR packet sent by the receiving end based on the RTCP protocol, and parse the RR packet to obtain network parameters;
[0090] The smoothing processing module is used to smooth the packet loss rate and the link loop time to obtain a first parameter and a second parameter respectively;
[0091] The adjustment module is used to select a packet loss return strategy or adjust the bit rate based on the first parameter and the packet loss situation until the video transmission is completed.
[0092] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0093] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for transmitting video of an unmanned boat under limited network resources, characterized in that: The following steps are involved: Step S1: Initialize encoding parameters and bit rate; Step S2: based on the RTCP protocol, the RR packet sent by the receiving end is obtained, and the RR packet is parsed to obtain network parameters, wherein the network parameters include: packet loss rate, link loop time, actual duration of audio and video data packets, and size of data packets; Step S3: Smoothing the packet loss rate and the link loop time to obtain a first parameter and a second parameter respectively; Step S4: selecting a packet loss return strategy or adjusting the bit rate based on the first parameter and the packet loss situation; Step S5: Determine whether the video transmission is completed. If not, repeat steps S2 to S4 until the video transmission is completed.
2. According to the method for transmitting video of an unmanned boat under limited network resources as described in claim 1, it is characterized in that: The packet loss rate smoothing process in step S3 is specifically as follows: Where α is the filter coefficient, The first parameter at the previous moment, l, is the packet loss rate obtained by parsing the RR packet; The link loop time smoothing process is as follows: Among them, β is the smoothing coefficient, is the predicted value of the last link loop time, T RTT The actual link loop time.
3. The method for transmitting video of an unmanned boat under limited network resources according to claim 1, characterized in that: The specific steps of step S4 are as follows: Obtaining the packet loss retransmission time according to the first parameter and the second parameter; Determine whether the packet loss retransmission time is greater than the time threshold. If so, adjust the bit rate. If less than, select the packet loss retransmission strategy based on the packet loss rate and link loopback time.
4. The method for transmitting video of an unmanned boat under limited network resources according to claim 3 is characterized in that: The specific formula for obtaining the packet loss retransmission time according to the first parameter and the second parameter is as follows: in and are the first and second parameters respectively, T RTT It is the actual link loop time.
5. The method for transmitting video of an unmanned boat under limited network resources according to claim 3, characterized in that: The specific steps to adjust the bit rate are as follows: Use the encoder to set the default bitrate R d Divide by the size of the packet sent, S d , get the expected sending time T e ; Get the actual duration T of the audio and video data packet r ; Determine the actual duration T of the audio and video data packet r and the expected sending time T e Whether the difference between is greater than the allowable deviation range, if it is, an auto-increment variable is introduced. When the auto-increment variable is greater than the quantity threshold, the improved RAP algorithm is used to adjust the bit rate of the network status; if it is less than, no adjustment is made.
6. The method for transmitting video of an unmanned boat under limited network resources according to claim 5, characterized in that: The improved RAP algorithm is used to adjust the bit rate of the network status as follows: Where a is the rate increment (a>0), b is the multiplicative reduction factor (0 <b<1),l max and l min are the maximum critical value of packet loss rate and the minimum critical value of packet loss rate, R n-1 is the bit rate at the previous moment, R max and R min are the maximum bit rate and the minimum bit rate respectively, T RTTmin and T RTTmax are the minimum and maximum link loop time thresholds, respectively; c is the subtraction factor; S Th is the bit rate obtained within the preset time, S n It represents the expected bit rate, i.e., the bit rate initialized by the encoder, and d is the divisor factor.
7. The method for transmitting video of an unmanned boat under limited network resources according to claim 5, characterized in that: The rules for selecting the packet loss return policy based on the packet loss rate and link loopback time are as follows: when and When the NACK retransmission strategy is used, the lost data packets are resent to the receiving end; when and and and When the video quality is affected, FEC redundant coding is used to send the I frames that affect the video quality to the receiving end, and the remaining frames are sent to the receiving end through the NACK retransmission mechanism; when and When the NACK retransmission mechanism is stopped, FEC coding is used to protect lost data packets.
8. An unmanned boat video transmission system under limited network resources, characterized in that: The method for transmitting video of an unmanned boat under limited network resources as claimed in any one of claims 1 to 7 comprises: an initialization module, a parsing module, a smoothing processing module and an adjustment module; The initialization module is used to initialize the encoding parameters and bit rate; The parsing module is used to obtain the RR packet sent by the receiving end based on the RTCP protocol, and parse the RR packet to obtain network parameters; The smoothing processing module is used to smooth the packet loss rate and the link loop time to obtain a first parameter and a second parameter respectively; The adjustment module is used to select a packet loss return strategy or adjust the bit rate based on the first parameter and the packet loss situation until the video transmission is completed.
Citation Information
Cited By
Work card-wearable audio and video equipment capable of realizing 4G network transmission
CN119342163A
A wearable badge-style audio and video device that enables 4G network transmission
CN119342163B
Efficient collaboration method for video data
CN119854435A
Two-channel unmanned aerial vehicle sight distance communication system
CN120017224A
