Transmission processing method, image pickup apparatus, computer device, and storage medium
By acquiring the encoding configuration parameters and WiFi signal strength of the camera device, the most suitable MCS level is selected and the rate adaptive algorithm is disabled, which solves the problem of frequent switching of MCS level in traditional camera devices and improves the stability and smoothness of video transmission.
Patent Information
- Application Number
- CN202611241927.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-17
- Publication Date
- 2026-11-27
AI Technical Summary
The frequent switching of MCS levels in traditional camera equipment causes video transmission rate jitter, affecting video stability and smoothness, and failing to effectively match actual transmission needs.
By obtaining the encoding configuration parameters of the camera device and the downlink signal strength of WiFi, the required transmission bandwidth of the target video stream is determined, and the most matching MCS level is selected based on this. The chip's built-in rate adaptive algorithm is disabled, and a fixed-lock transmission strategy is adopted.
This avoids transmission rate jitter caused by frequent switching of MCS levels, improves the stability and smoothness of video transmission, and ensures the continuity of video quality.
Smart Images

Figure CN123184787A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a transmission processing method, a camera device, a computer device, and a storage medium. Background Technology
[0002] With the rapid development of security monitoring and smart homes, wireless video surveillance solutions based on wireless fidelity (WiFi) communication technology are becoming increasingly popular. Consequently, camera devices with WiFi communication capabilities, such as smart doorbells and webcams, are widely used in various indoor and outdoor monitoring scenarios, requiring high real-time transmission quality and stability of the video stream.
[0003] However, in traditional technologies, camera devices typically adjust the modulation and coding scheme (MCS) level based on wireless channel quality indicators such as received signal strength indicator (RSSI), signal-to-noise ratio (SNR), and bit error rate, relying on the chip's built-in rate adaptive algorithm. This adjustment is then used to transmit the video stream at the physical layer transmission rate corresponding to the selected MCS level. However, traditional solutions often only focus on the instantaneous state of the physical layer link, neglecting the dynamic impact of upper-layer video services on actual transmission bandwidth requirements. This leads to a mismatch between the selected MCS level and actual transmission needs, easily causing frequent MCS level switching. Consequently, transmission rate jitter, video stuttering, screen tearing, or transmission delays occur, affecting the stability and smoothness of video transmission. Summary of the Invention
[0004] Therefore, it is necessary to provide a transmission processing method, camera equipment, computer equipment, and storage medium to address the above-mentioned technical problems. This method can avoid transmission rate jitter caused by frequent switching of MCS level, and also avoid video stuttering, screen tearing, and high latency caused by mismatch between MCS level and actual transmission requirements, thereby improving the stability and smoothness of video transmission.
[0005] Firstly, this application provides a transmission processing method applied to a camera device with wireless fidelity WiFi communication capabilities. The method includes:
[0006] Obtain the encoding configuration parameters and WiFi downlink received signal strength of the camera device. The encoding configuration parameters are used to describe the encoding configuration of the video encoding module in the camera device.
[0007] Based on the encoding configuration parameters, the required transmission bandwidth of the target video stream is determined. The target video stream is the video stream to be transmitted after being captured by the camera device and encoded by the video encoding module.
[0008] Based on the required transmission bandwidth of the target video stream and the downlink received signal strength of WiFi, multiple candidate modulation and coding schemes (MCS) levels are screened to obtain the target MCS level. The physical layer transmission rate corresponding to each candidate MCS level is different.
[0009] The target video stream is transmitted based on the physical layer transmission rate corresponding to the target MCS level.
[0010] In one implementation, before transmitting the target video stream based on the physical layer transmission rate corresponding to the target MCS level, the method further includes:
[0011] The WiFi driver layer interface of the camera device is invoked to lock the target MCS level, and a first indication message is sent to the WiFi communication chip of the camera device. The first indication message is used to indicate that the built-in rate adaptation algorithm of the WiFi communication chip is disabled to stop the behavior of adjusting the MCS level through the rate adaptation algorithm.
[0012] In one implementation, based on the required transmission bandwidth of the target video stream and the downlink received signal strength of WiFi, multiple candidate modulation and coding schemes (MCS) are screened to obtain the target MCS level, including:
[0013] Based on the WiFi downlink received signal strength and a preset mapping relationship, the packet loss rate of each candidate MCS level among multiple candidate MCS levels is evaluated under the WiFi downlink received signal strength; wherein, the preset mapping relationship is used to describe the correspondence between signal strength and packet loss rate;
[0014] Based on the packet loss rate corresponding to multiple candidate MCS levels, multiple first MCS levels are determined from the multiple candidate MCS levels, and the packet loss rate corresponding to each first MCS level is less than or equal to a preset packet loss rate threshold.
[0015] The required transmission bandwidth of the target video stream is compared with the physical layer transmission rate corresponding to each first MCS level, and one or more second MCS levels are determined from multiple first MCS levels. The physical layer transmission rate corresponding to each second MCS level is greater than or equal to the required transmission bandwidth of the target video stream.
[0016] Based on the level information of each second MCS level, the target MCS level is determined from one or more second MCS levels.
[0017] In one implementation, determining the target MCS level from one or more second MCS levels based on the level information of each second MCS level includes:
[0018] Based on the level information of each second MCS level, the second MCS level with the lowest level is determined as the target MCS level from one or more second MCS levels.
[0019] In one implementation, after comparing the required transmission bandwidth of the target video stream with the physical layer transmission rate corresponding to each first MCS level, the method further includes:
[0020] If the physical layer transmission rate corresponding to each first MCS level is less than the transmission bandwidth required by the target video stream, then based on the level information of each first MCS level, the highest first MCS level is determined from multiple first MCS levels.
[0021] The target MCS level is determined based on the highest-level first MCS level.
[0022] In one embodiment, after calling the WiFi driver layer interface of the camera device to lock the target MCS level and sending the first indication information to the WiFi communication chip of the camera device, the method further includes:
[0023] Based on a preset mapping relationship, the estimated packet loss rate of the target MCS level under WiFi downlink received signal strength is evaluated. The preset mapping relationship is used to describe the correspondence between signal strength and packet loss rate.
[0024] If the estimated packet loss rate of the target MCS level is greater than the preset packet loss rate threshold within a preset time period, a second indication message is sent to the WiFi communication chip of the camera device. The second indication message is used to instruct the execution of the rate adaptation algorithm built into the WiFi communication chip to determine a new MCS level through the rate adaptation algorithm.
[0025] Transmitting the target video stream based on the physical layer transmission rate corresponding to the target MCS level includes:
[0026] If the physical layer transmission rate corresponding to the target MCS level is greater than the physical layer transmission rate corresponding to the new MCS level, then the target video stream is transmitted based on the physical layer transmission rate corresponding to the new MCS level.
[0027] In one implementation, determining the required transmission bandwidth for the target video stream based on encoding configuration parameters includes:
[0028] Based on the protocol frame overhead of the WiFi communication protocol, the expected retransmission rate of the camera device, and the reserved burst traffic margin of the video encoding module, the transmission redundancy coefficient is determined. The transmission redundancy coefficient is used to quantitatively compensate for the protocol overhead and retransmission loss of the target video stream during the transmission process based on the WiFi communication protocol.
[0029] The required transmission bandwidth for the target video stream is calculated based on the encoding configuration parameters and the transmission redundancy coefficient.
[0030] Secondly, this application also provides a camera device, including:
[0031] The acquisition unit is used to acquire the encoding configuration parameters and WiFi downlink received signal strength of the camera device. The encoding configuration parameters are used to describe the encoding configuration of the video encoding module in the camera device.
[0032] The processing unit is used to determine the required transmission bandwidth of the target video stream based on the encoding configuration parameters. The target video stream is the video stream to be transmitted after being captured by the camera device and encoded by the video encoding module.
[0033] The processing unit is used to filter multiple candidate modulation and coding scheme (MCS) levels based on the transmission bandwidth required by the target video stream and the downlink received signal strength of WiFi, and obtain the target MCS level. The physical layer transmission rate corresponding to each candidate MCS level is different.
[0034] The transmission unit is used to transmit the target video stream based on the physical layer transmission rate corresponding to the target MCS level.
[0035] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described transmission processing method.
[0036] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described transmission processing method.
[0037] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described transmission processing method.
[0038] The aforementioned transmission processing method, apparatus, computer equipment, and storage medium, because their encoding configuration parameters reflect the encoding configuration of the video encoding module in the camera device, allow for the determination of the required transmission bandwidth for the target video stream based on these parameters after obtaining them. Thus, by combining the required transmission bandwidth of the target video stream with the WiFi downlink received signal strength, the target MCS level that best matches the current transmission requirements can be automatically selected from multiple candidate MCS levels. The target video stream is then transmitted using the physical layer transmission rate corresponding to this target MCS level. This achieves automatic matching of different video encoding configurations with different MCS levels, avoiding transmission rate jitter caused by frequent MCS level switching, and preventing video stuttering, screen tearing, and high latency caused by a mismatch between the MCS level and actual transmission requirements, thereby improving the stability and smoothness of video transmission. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is an application environment diagram of the transmission processing method in one embodiment;
[0041] Figure 2 This is a flowchart illustrating a transmission processing method in one embodiment;
[0042] Figure 3 This is another flowchart illustrating the transmission processing method in one embodiment;
[0043] Figure 4 This is yet another flowchart illustrating the transmission processing method in one embodiment;
[0044] Figure 5 This is a flowchart illustrating step 203 in one embodiment;
[0045] Figure 6 This is a structural block diagram of a camera device in one embodiment;
[0046] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0048] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0049] The transmission processing method provided in this application embodiment can be applied to, for example... Figure 1 The application environment shown. For example... Figure 1 As shown, it includes at least a camera device 101 and a terminal device 102. The camera device 101 has WiFi communication capabilities. The camera device 101 and the terminal device 102 can communicate directly via a WiFi network; alternatively, the camera device 101 can also communicate with a cloud server 103 via a WiFi network, and the terminal device 102 can then communicate with the server 103 to transmit video streams.
[0050] For example, after obtaining the encoding configuration of its video encoding module (i.e., encoding configuration parameters) and the WiFi downlink received signal strength, the camera device 101 can determine the required transmission bandwidth for the target video stream based on the encoding configuration parameters. Based on this transmission bandwidth and the WiFi downlink received signal strength, it can select the target MCS level from multiple candidate MCS levels, and then transmit the target video stream based on the physical layer transmission rate corresponding to the target MCS level. For instance, the camera device 101 can send the target video stream to the terminal device 102 or the cloud server 103 via a WiFi network, based on the physical layer transmission rate corresponding to the target MCS level. After receiving the target video stream, the terminal device 102 can decode and play it or store it, or it can forward the decoded video stream to other display terminals or storage devices to achieve remote monitoring or playback.
[0051] It should be noted that the camera device 101 in this application refers to a video acquisition device with WiFi communication capability, including but not limited to surveillance cameras, dashcams, or smart doorbells.
[0052] Terminal device 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted displays, etc. Head-mounted displays can include virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Cloud server 103 can be understood as a server that provides cloud services.
[0053] Furthermore, the transmission processing method of this application can be applied to security monitoring scenarios, smart home scenarios, intelligent transportation scenarios, or industrial inspection scenarios, etc., and is not limited in this application.
[0054] In one exemplary embodiment, such as Figure 2 As shown, a transmission processing method is provided, which is applied to... Figure 1 Taking the camera equipment in the image as an example, the explanation includes the following steps 201 to 204. Wherein:
[0055] 201. Obtain the encoding configuration parameters and WiFi downlink received signal strength of the camera device. The encoding configuration parameters are used to describe the encoding configuration of the video encoding module in the camera device.
[0056] For example, a camera device includes a video encoding module. This module primarily encodes the video stream captured by the camera to generate video data that meets specific bitrate or resolution requirements. Furthermore, encoding configuration parameters within this module, such as video resolution, frame rate F (fps), video encoding bitrate (kbps), encoding type (e.g., H.264 / H2.265), and I-frame interval, affect the bandwidth requirements of the video stream. Therefore, the camera device can first obtain these encoding configuration parameters to assess the specific bandwidth requirements of the video stream. For instance, the camera device can read these encoding configuration parameters from the internal registers or configuration interface of the video encoding module. It should be noted that the encoding configuration parameters directly determine the amount of network resources required by the video stream during transmission.
[0057] In addition, the downlink received signal strength of the camera device reflects the current quality of the wireless channel and is an important basis for assessing link stability and selecting an appropriate transmission rate. Therefore, the camera device also needs to acquire the downlink received signal strength of the WiFi to perceive the quality of the wireless channel in real time. For example, the camera device can read the current Received Signal Strength Indication (RSSI) value in real time through its built-in WiFi module or RF interface to obtain the downlink received signal strength of the WiFi.
[0058] 202. Based on the encoding configuration parameters, determine the transmission bandwidth required for the target video stream. The target video stream is the video stream to be transmitted after being captured by the camera device and encoded by the video encoding module.
[0059] For example, after the camera device is started, it also needs to collect data in real time within the preset monitoring range and send the collected raw video data to the video encoding module. The video encoding module encodes the raw video data according to the current encoding configuration parameters (such as video resolution, frame rate, video encoding bitrate, etc.) to generate the target video stream.
[0060] In this way, after obtaining the target video stream, the camera device can calculate the required transmission bandwidth of the target video stream based on the encoding configuration parameters, thereby providing data support for the subsequent selection of a suitable modulation and coding scheme.
[0061] In some embodiments, the determination of the required transmission bandwidth for the target video stream based on encoding configuration parameters in step 202 can be implemented in the following manner:
[0062] Step S1: Based on the protocol frame overhead of the WiFi communication protocol, the expected retransmission rate of the camera device, and the reserved burst traffic margin corresponding to the video encoding module, determine the transmission redundancy coefficient. The transmission redundancy coefficient is used to quantitatively compensate for the protocol overhead and retransmission loss of the target video stream during the transmission process based on the WiFi communication protocol.
[0063] For example, the camera device can obtain fixed overhead such as the Media Access Control (MAC) header, Physical Layer Convergence Procedure (PLCP) preamble, and inter-frame spacing (SIFS / DIFS) from the WiFi communication protocol to determine the protocol frame overhead. Additionally, the camera device can estimate the expected retransmission rate based on the signal environment of the usage scenario. For instance, the estimated retransmission rate for a camera device in an indoor, close-range scenario is approximately 5%-10%; for a camera device in an outdoor or heavily interfered scenario, the estimated retransmission rate is approximately 15%-30%. This expected retransmission rate reflects the probability of data packets being lost and needing to be retransmitted under the usage environment. A higher expected retransmission rate means a lower actual effective throughput, thus requiring more bandwidth margin to handle potential retransmission demands. Furthermore, the camera device can also determine the reserved burst traffic margin for the video encoding module based on the burst characteristics of the video stream or a network congestion prediction model to handle situations such as stuttering caused by instantaneous traffic peaks exceeding the transmission bandwidth.
[0064] Based on this, after obtaining the protocol frame overhead, expected retransmission rate, and reserved burst traffic margin, the transmission redundancy coefficient can be calculated. For example, the protocol frame overhead, expected retransmission rate, and reserved burst traffic margin can be directly weighted and summed or multiplied to obtain the transmission redundancy coefficient.
[0065] Step S2: Calculate the transmission bandwidth required for the target video stream based on the encoding configuration parameters and transmission redundancy coefficient.
[0066] For example, after calculating the transmission redundancy coefficient, the camera device can calculate the transmission bandwidth required for the target video stream based on the transmission redundancy coefficient and the encoding configuration parameters.
[0067] For example, the video coding bitrate can be extracted from the coding configuration parameters as a base bitrate, and multiplying this base bitrate by the transmission redundancy factor yields the transmission bandwidth required for the target video stream. For instance, the transmission bandwidth required for the target video stream can satisfy the following expression: Breq = B × β. Here, Breq represents the transmission bandwidth required for the target video stream, B represents the video coding bitrate in the coding configuration parameters, and β represents the transmission redundancy factor.
[0068] It should be noted that the transmission redundancy coefficient mentioned above can range from 1.3 to 2.0, and the specific value is not limited.
[0069] By using the above methods to determine the transmission bandwidth required for the target video stream using encoding configuration parameters and transmission redundancy coefficients, the bandwidth requirements in the actual network environment can be more accurately reflected, thereby avoiding video stuttering or image quality degradation caused by insufficient bandwidth estimation and improving the stability and smoothness of video transmission.
[0070] 203. Based on the transmission bandwidth required by the target video stream and the downlink received signal strength of WiFi, multiple candidate modulation and coding schemes (MCS) levels are screened to obtain the target MCS level. The physical layer transmission rate corresponding to each candidate MCS level is different.
[0071] For example, the camera device can pre-set multiple candidate MCS levels and the corresponding physical layer transmission rate for each candidate MCS level. It should be noted that different candidate MCS levels correspond to different physical layer transmission rates. Furthermore, the higher the candidate MCS level, the higher its corresponding physical layer transmission rate, enabling faster data transmission, but with relatively weaker anti-interference capabilities. Conversely, the lower the candidate MCS level, the lower its corresponding physical layer transmission rate, allowing for more stable data transmission.
[0072] For example, taking 802.11n 20MHz single stream as an example, the multiple candidate MCS levels and their physical layer transmission rates can be understood with reference to the illustration in Table 1 below, such as:
[0073] Table 1
[0074] Candidate MCS Rank Physical layer transmission rate MCS 0 BPSK 1 / 2 → 6.5Mbps MCS 1 QPSK 1 / 2 → 13Mbps MCS 2 QPSK 3 / 4 → 19.5Mbps MCS 3 16-QAM 1 / 2 → 26Mbps MCS 4 16-QAM 3 / 4 → 39Mbps MCS 5 64-QAM 2 / 3 → 52Mbps MCS 6 64-QAM 3 / 4 → 58.5Mbps MCS 7 64-QAM 5 / 6 → 65Mbps
[0075] As shown in Table 1 above, there is a positive correlation between the candidate MCS level and the physical layer transmission rate; that is, as the candidate MCS level increases, its corresponding physical layer transmission rate increases significantly. For example, for the lowest level MCS 0, its physical layer transmission rate is only 6.5 Mbps. For MCS 1, its physical layer transmission rate is 13 Mbps. Similarly, for the highest level MCS 7, its physical layer transmission rate can reach 65 Mbps.
[0076] It should be noted that the MCS levels shown in Table 1 above are only an example. In actual applications, more or fewer candidate levels can be set according to specific scenarios, which is not limited in this application.
[0077] After setting these multiple candidate MCS levels, the camera device can select the target MCS level that meets the bandwidth requirements and has the best signal quality from the multiple candidate MCS levels based on the calculated transmission bandwidth required by the target video stream and the WiFi downlink received signal strength.
[0078] 204. Transmit the target video stream based on the physical layer transmission rate corresponding to the target MCS level.
[0079] For example, after determining the target MCS level, the camera device can obtain the physical layer transmission rate corresponding to that target MCS level. Then, the camera device transmits the target video stream based on the physical layer transmission rate corresponding to the target MCS level. For instance, the camera device can directly send the target video stream to the terminal device via a WiFi network at the physical layer transmission rate corresponding to the target MCS level. Alternatively, the camera device can also upload the target video stream to a cloud server via a WiFi network at the physical layer transmission rate corresponding to the target MCS level. The cloud server then forwards the target video stream to the terminal device. After receiving the target video stream, the terminal device decodes and plays it, thereby enabling real-time viewing of the monitoring footage.
[0080] In this embodiment, after obtaining the encoding configuration parameters of the camera device, the required transmission bandwidth for the target video stream can be determined based on these parameters. Thus, by combining the required transmission bandwidth for the target video stream with the downlink signal strength of the WiFi, the target MCS level that best matches the current transmission requirements can be automatically selected from multiple candidate MCS levels. The target video stream is then transmitted using the physical layer transmission rate corresponding to this target MCS level. This achieves automatic matching of different MCS levels for different video encoding configurations, avoiding transmission rate jitter caused by frequent MCS level switching, and preventing video stuttering, screen tearing, and high latency caused by a mismatch between the MCS level and the actual transmission requirements, thereby improving the stability and smoothness of video transmission.
[0081] In other embodiments, before performing step 204, the target MCS level can be fixed and locked in the driver layer to enable stable transmission of the target video stream throughout the entire time period. For example... Figure 3 As shown, the transmission processing method provided in this embodiment includes the following steps 301 to 305, namely:
[0082] 301. Obtain the encoding configuration parameters and WiFi downlink received signal strength of the camera device. The encoding configuration parameters are used to describe the encoding configuration of the video encoding module in the camera device.
[0083] 302. Based on the encoding configuration parameters, determine the transmission bandwidth required for the target video stream. The target video stream is the video stream to be transmitted after being captured by the camera device and encoded by the video encoding module.
[0084] 303. Based on the required transmission bandwidth of the target video stream and the downlink received signal strength of WiFi, multiple candidate modulation and coding schemes (MCS) levels are screened to obtain the target MCS level. The physical layer transmission rate corresponding to each candidate MCS level is different.
[0085] It should be noted that the content of steps 301-303 above can be referred to the aforementioned... Figure 2 The content of steps 201-203 in the middle section will be understood and will not be elaborated here.
[0086] 304. Call the WiFi driver layer interface of the camera device to lock the target MCS level and send the first instruction information to the WiFi communication chip of the camera device. The first instruction information is used to disable the built-in rate adaptation algorithm of the WiFi communication chip to stop the behavior of adjusting the MCS level through the rate adaptation algorithm.
[0087] For example, after determining the target MCS level, the camera device can also call its WiFi driver layer interface to lock the target MCS level to the WiFi driver layer. This ensures that the camera device can stably transmit video streams at the physical layer transmission rate corresponding to the target MCS level throughout the entire time period. Simultaneously, the camera device also needs to send a first indication message to the WiFi communication chip to disable its behavior of adjusting the MCS level using the built-in rate adaptation algorithm.
[0088] 305. Transmit the target video stream based on the physical layer transmission rate corresponding to the target MCS level.
[0089] It should be noted that the content of step 305 above can be referred to the aforementioned... Figure 2 The content of step 204 will be understood and will not be elaborated here.
[0090] By using the above method, the camera device locks the target MCS level in the WiFi driver layer and disables the dynamic rate adjustment mechanism inside the chip. In this way, the camera device strictly follows the target MCS level calculated based on the WiFi downlink received signal strength and the transmission bandwidth required by the target video stream for data transmission, thereby ensuring a constant and controllable transmission rate and further solving the problem of transmission rate jitter caused by frequent switching of MCS level in traditional solutions.
[0091] In other embodiments, such as Figure 4 As shown, after performing step 304, the transmission processing method of this application may further include steps 405-406. Correspondingly, step 305 may include step 407. Specifically:
[0092] 401. Obtain the encoding configuration parameters and WiFi downlink received signal strength of the camera device. The encoding configuration parameters are used to describe the encoding configuration of the video encoding module in the camera device.
[0093] 402. Based on the encoding configuration parameters, determine the transmission bandwidth required for the target video stream. The target video stream is the video stream to be transmitted after being captured by the camera device and encoded by the video encoding module.
[0094] 403. Based on the transmission bandwidth required by the target video stream and the downlink received signal strength of WiFi, multiple candidate modulation and coding schemes (MCS) levels are screened to obtain the target MCS level. The physical layer transmission rate corresponding to each candidate MCS level is different.
[0095] 404. Call the WiFi driver layer interface of the camera device to lock the target MCS level and send a first indication message to the WiFi communication chip of the camera device. The first indication message is used to indicate that the built-in rate adaptation algorithm of the WiFi communication chip is disabled to stop the behavior of adjusting the MCS level through the rate adaptation algorithm.
[0096] It should be noted that the content of steps 401-404 above can be referred to the aforementioned... Figure 3 The content of steps 301-304 in the middle section will be understood and will not be elaborated here.
[0097] 405. Based on the preset mapping relationship, evaluate the estimated packet loss rate of the target MCS level under the WiFi downlink received signal strength. The preset mapping relationship is used to describe the correspondence between signal strength and packet loss rate.
[0098] For example, multiple MCS levels under different signal strengths can be pre-tested or simulated offline to statistically analyze the packet loss rate corresponding to each MCS level within each signal strength range, thereby constructing a mapping table between signal strength and packet loss rate, thus obtaining a preset mapping relationship. It should be noted that the signal strength described here can be understood as the aforementioned WiFi downlink received signal strength. Subsequently, this preset mapping relationship is stored in the local memory of the camera device for direct querying and retrieval when determining the target MCS level, eliminating the need for real-time calculation, thereby reducing processing latency and improving response efficiency.
[0099] In this way, based on the preset mapping relationship, the estimated packet loss rate of the target MCS level under the WiFi downlink received signal strength can be evaluated. For example, the WiFi downlink received signal strength can be matched with the signal strength range in the preset mapping relationship, and the corresponding estimated packet loss rate can be obtained from the mapping table.
[0100] 406. If the estimated packet loss rate of the target MCS level is greater than the preset packet loss rate threshold within a preset time period, a second indication message is sent to the WiFi communication chip of the camera device. The second indication message is used to instruct the execution of the rate adaptation algorithm built into the WiFi communication chip to determine a new MCS level through the rate adaptation algorithm.
[0101] For example, after evaluating the estimated packet loss rate of the target MCS level, the estimated packet loss rate of the target MCS level is continuously compared with a preset packet loss rate threshold. If the estimated packet loss rate of the target MCS level is greater than the preset packet loss rate threshold within a preset time period, it is determined that the currently locked target MCS level cannot meet the transmission quality requirements. At this time, the locking of the target MCS level needs to be released, and the rate adaptive algorithm needs to be reactivated. That is, a second indication message is sent to the WiFi communication chip in the camera device. The second indication message instructs the WiFi communication chip to resume the execution of the built-in rate adaptive algorithm so as to dynamically adjust and determine a new MCS level according to the current channel conditions.
[0102] Conversely, if the estimated packet loss rate of the target MCS level is less than or equal to the preset packet loss rate threshold, the current target MCS level is kept locked, and video stream transmission processing continues based on that target MCS level.
[0103] 407. If the physical layer transmission rate corresponding to the target MCS level is greater than the physical layer transmission rate corresponding to the new MCS level, then the target video stream is transmitted based on the physical layer transmission rate corresponding to the new MCS level.
[0104] For example, after determining the new MCS level, the physical layer transmission rate corresponding to the target MCS level can be further compared with the physical layer transmission rate corresponding to the new MCS level. If the physical layer transmission rate corresponding to the target MCS level is greater than the physical layer transmission rate corresponding to the new MCS level, then the physical layer transmission rate corresponding to the new MCS level is used for the transmission processing of the target video stream.
[0105] By using the above method, when the packet loss rate remains high, the built-in rate adaptation mechanism of the restart chip is triggered, and the difference between the physical layer transmission rate between the new MCS level and the target MCS level is further judged to decide whether to adopt the physical layer transmission rate corresponding to the new MCS level. This can ensure the stability of video stream transmission while avoiding the waste of bandwidth resources caused by blindly reducing the speed.
[0106] In some embodiments, such as Figure 5 As shown, step 203 includes steps 501 to 504. Wherein:
[0107] 501. Based on the WiFi downlink received signal strength and a preset mapping relationship, evaluate the packet loss rate of each candidate MCS level among multiple candidate MCS levels under the WiFi downlink received signal strength; wherein, the preset mapping relationship is used to describe the correspondence between signal strength and packet loss rate.
[0108] For example, multiple MCS levels under different signal strengths can be pre-tested or simulated offline to calculate the packet loss rate corresponding to each MCS level within each signal strength range, thereby constructing a mapping table between signal strength and packet loss rate, thus obtaining a preset mapping relationship. It should be noted that the signal strength described here can be understood as the aforementioned WiFi downlink received signal strength (RSSI). Subsequently, this preset mapping relationship is stored in the local memory of the camera device for direct querying and retrieval when determining the target MCS level, eliminating the need for real-time calculation, thereby reducing processing latency and improving response efficiency.
[0109] In this way, during the process of determining the target MCS level, the preset mapping relationship can be invoked first to quickly query and evaluate the packet loss rate of each candidate MCS level under the WiFi downlink received signal strength, providing data support for the subsequent selection of the first MCS level that meets the stability requirements.
[0110] 502. Based on the packet loss rate corresponding to multiple candidate MCS levels, determine multiple first MCS levels from the multiple candidate MCS levels, and the packet loss rate corresponding to each first MCS level is less than or equal to a preset packet loss rate threshold.
[0111] For example, the preset packet loss rate threshold can be understood as the maximum packet loss ratio that the camera device can tolerate when transmitting video streams.
[0112] After determining the packet loss rate corresponding to each candidate MCS level, the camera device can iterate through each candidate MCS level and compare the packet loss rate corresponding to each candidate MCS level with a preset packet loss rate threshold. If the packet loss rate corresponding to a candidate MCS level is less than or equal to the preset packet loss rate threshold, then that MCS level is selected as the first MCS level. After comparing all MCS levels in this way, a set of first MCS levels that meets the stability requirements can be obtained. This set of first MCS levels includes multiple first MCS levels.
[0113] For example, taking multiple candidate MCS levels, including MCS levels 0 to 7 mentioned in Table 1, if the packet loss rates corresponding to MCS levels 0 to 7 are determined to be 0.1%, 0.3%, 0.5%, 0.8%, 1.2%, 1.5%, 2.0%, and 2.5%, respectively, and the preset packet loss rate threshold is 1%, then by comparison, MCS levels 0 to 3 can be selected as the first MCS level. Through this screening step, those MCS levels that, although the signal strength is acceptable, cannot meet the basic quality requirements of the video stream in terms of transmission stability can be effectively eliminated, ensuring that the finally selected MCS level can maintain the robustness of the transmission link while ensuring video smoothness.
[0114] It should be noted that the aforementioned preset packet loss rate threshold can be flexibly set according to the actual application scenario. For example, the value may include, but is not limited to, 1%, 0.5%, 2%, etc., and is not limited in this application.
[0115] 503. Compare the transmission bandwidth required by the target video stream with the physical layer transmission rate corresponding to each first MCS level, and determine one or more second MCS levels from multiple first MCS levels. The physical layer transmission rate corresponding to each second MCS level is greater than or equal to the transmission bandwidth required by the target video stream.
[0116] For example, after determining the first MCS level that meets the stability requirements from multiple candidate MCS levels, its transmission capability needs to be further verified. Specifically, after extracting the physical layer transmission rate corresponding to each first MCS level, the transmission bandwidth required by the target video stream is compared with the physical layer transmission rate corresponding to each first MCS level. If the physical layer transmission rate corresponding to the first MCS level is greater than or equal to the transmission bandwidth required by the target video stream, then the first MCS level is determined as the second MCS level. In this way, one or more second MCS levels can be determined from these multiple first MCS levels. Through this screening step, those MCS levels whose transmission rates are insufficient to support the bitrate requirements of the target video stream can be effectively eliminated, thereby ensuring that the selected MCS level has sufficient bandwidth margin to support the high-definition and smooth transmission of the target video stream.
[0117] For example, taking multiple first MCS levels, including the previously selected MCS levels 0 to 3, as shown in Table 1, the physical layer transmission rates corresponding to MCS levels 0 to 3 are 6.5 Mbps, 13.0 Mbps, 19.5 Mbps, and 26.0 Mbps, respectively. If the target video stream requires a transmission bandwidth of 15 Mbps, it can be seen that the physical layer transmission rates corresponding to MCS levels 0 and 1 are both less than this bandwidth and do not meet the requirement; while the physical layer transmission rates corresponding to MCS levels 2 and 3 are both greater than or equal to this bandwidth. Therefore, MCS levels 2 and 3 can be determined as second MCS levels.
[0118] 504. Based on the level information of each second MCS level, determine the target MCS level from one or more second MCS levels.
[0119] For example, if a second MCS level exists, it can be directly determined as the target MCS level. Conversely, if multiple second MCS levels exist, the target MCS level can be determined from these multiple second MCS levels based on the level information of each second MCS level, such as modulation order or coding rate.
[0120] By employing the dual filtering mechanisms of signal strength and transmission bandwidth, the optimal modulation and coding strategy can be precisely identified while ensuring stable transmission of the video stream, thereby achieving the best balance between transmission efficiency and service quality in complex wireless channel environments.
[0121] In other embodiments, the determination of the target MCS level from one or more second MCS levels in step 504 can be understood in the following manner:
[0122] Based on the level information of each second MCS level, the lowest level second MCS level is determined from these one or more second MCS levels, and then the lowest level second MCS level is determined as the target MCS level.
[0123] For example, if the level information includes the modulation order, and the second MCS level includes MCS 2 (16QAM) level and MCS 3 (64QAM) level, then since the modulation order of MCS 2 level is lower than that of MCS 3 level, MCS 2 level can be determined as the target MCS level.
[0124] By using the above method, the lowest-level second MCS level is determined as the target MCS level. This allows for the priority selection of modulation and coding strategies with stronger anti-interference capabilities and more robust transmission, while meeting transmission bandwidth requirements. This effectively reduces the bit error rate and improves the smoothness of video playback and user experience.
[0125] In other embodiments, after performing step 503, which compares the transmission bandwidth required for the target video stream with the physical layer transmission rate corresponding to each first MCS level, the transmission processing method of this application may further include:
[0126] If the physical layer transmission rate corresponding to each first MCS level is less than the transmission bandwidth required by the target video stream, then based on the level information of each first MCS level, the highest first MCS level is determined from multiple first MCS levels.
[0127] The target MCS level is determined based on the highest-level first MCS level.
[0128] For example, when it is determined that the physical layer transmission rate corresponding to all first MCS levels cannot meet the bandwidth requirements of the target video stream, the highest-level first MCS level is selected as the target MCS level from among these multiple first MCS levels based on the level information of each first MCS level, such as modulation order and coding rate.
[0129] For example, taking the selected MCS levels 0 to 3 as the first MCS level, their respective physical layer transmission rates are 6.5Mbps, 13.0Mbps, 19.5Mbps, and 26Mbps. If the target video stream requires a transmission bandwidth of 30Mbps, and after comparison, the physical layer transmission rates corresponding to MCS levels 0 to 3 are all less than 30Mbps, then the highest-level MCS level, 3, can be determined as the target MCS level to provide the highest possible transmission rate.
[0130] By using the above method, when all first-level MCS cannot meet the bandwidth requirements, the highest level is selected as the target. This maximizes the use of channel capacity in extreme bandwidth-limited scenarios, minimizes video stuttering or quality degradation, and ensures a basic viewing experience.
[0131] For example, taking multiple camera devices including camera 1, camera 2, and camera 3, their encoding configuration parameters are 2MP / 15fps / H.264, 4MP / 25fps / H.264, and 5MP / 25fps / H.265, respectively, with video encoding bitrates of 1Mbps, 2Mbps, and 3Mbps. If the transmission redundancy parameter β=1.5 is used as an example, the required transmission bandwidth for the target video streams corresponding to camera 1, camera 2, and camera 3 are 1.5Mbps, 3Mbps, and 6.0Mbps, respectively. Thus, combining the multiple candidate MCS levels in Table 1 above, it can be seen that the target MCS levels corresponding to camera 1, camera 2, and camera 3 are MCS level 0, MCS level 1, and MCS level 2, respectively. It is evident that the encoding configuration parameters of the video encoding modules in different cameras can adaptively match the differentiated MCS levels, automatically adapting to different physical layer transmission rates to transmit video streams, improving configuration efficiency and accuracy.
[0132] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0133] Based on the same inventive concept, this application also provides a camera device for implementing the transmission processing method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more camera device embodiments provided below can be found in the limitations of the transmission processing method described above, and will not be repeated here.
[0134] In one exemplary embodiment, such as Figure 6 As shown, a camera device is provided, including: an acquisition unit 601, a processing unit 602, and a transmission unit 603. Wherein:
[0135] The acquisition unit 601 is used to acquire the encoding configuration parameters and WiFi downlink received signal strength of the camera device. The encoding configuration parameters are used to describe the encoding configuration of the video encoding module in the camera device.
[0136] The processing unit 602 is used to determine the required transmission bandwidth of the target video stream based on the encoding configuration parameters. The target video stream is the video stream to be transmitted after being captured by the camera device and encoded by the video encoding module.
[0137] The processing unit 602 is used to filter multiple candidate modulation and coding scheme (MCS) levels based on the transmission bandwidth required by the target video stream and the downlink received signal strength of WiFi, and obtain the target MCS level. The physical layer transmission rate corresponding to each candidate MCS level is different.
[0138] The transmission unit 603 is used to transmit the target video stream based on the physical layer transmission rate corresponding to the target MCS level.
[0139] In one embodiment, the processing unit 602 is further configured to:
[0140] Before transmitting the target video stream based on the physical layer transmission rate corresponding to the target MCS level, the WiFi driver layer interface of the camera device is called to lock the target MCS level and send a first indication message to the WiFi communication chip of the camera device. The first indication message is used to disable the built-in rate adaptation algorithm of the WiFi communication chip to stop the behavior of adjusting the MCS level through the rate adaptation algorithm.
[0141] In one embodiment, the processing unit 602 is specifically used for:
[0142] Based on the WiFi downlink received signal strength and a preset mapping relationship, the packet loss rate of each candidate MCS level among multiple candidate MCS levels is evaluated under the WiFi downlink received signal strength; wherein, the preset mapping relationship is used to describe the correspondence between signal strength and packet loss rate;
[0143] Based on the packet loss rate corresponding to multiple candidate MCS levels, multiple first MCS levels are determined from the multiple candidate MCS levels, and the packet loss rate corresponding to each first MCS level is less than or equal to a preset packet loss rate threshold.
[0144] The required transmission bandwidth of the target video stream is compared with the physical layer transmission rate corresponding to each first MCS level, and one or more second MCS levels are determined from multiple first MCS levels. The physical layer transmission rate corresponding to each second MCS level is greater than or equal to the required transmission bandwidth of the target video stream.
[0145] Based on the level information of each second MCS level, the target MCS level is determined from one or more second MCS levels.
[0146] In one embodiment, the processing unit 602 is specifically used for:
[0147] Based on the level information of each second MCS level, the second MCS level with the lowest level is determined as the target MCS level from one or more second MCS levels.
[0148] In one embodiment, the processing unit 602 is further configured to:
[0149] After comparing the transmission bandwidth required by the target video stream with the physical layer transmission rate corresponding to each first MCS level, if the physical layer transmission rate corresponding to each first MCS level is less than the transmission bandwidth required by the target video stream, then based on the level information of each first MCS level, the highest level first MCS level is determined from multiple first MCS levels.
[0150] The target MCS level is determined based on the highest-level first MCS level.
[0151] In one embodiment, the processing unit 602 is specifically used for:
[0152] After calling the WiFi driver layer interface of the camera device to lock the target MCS level and sending the first indication information to the WiFi communication chip of the camera device, the estimated packet loss rate of the target MCS level under the WiFi downlink received signal strength is evaluated based on the preset mapping relationship. The preset mapping relationship is used to describe the correspondence between signal strength and packet loss rate.
[0153] If the estimated packet loss rate of the target MCS level is greater than the preset packet loss rate threshold within a preset time period, a second indication message is sent to the WiFi communication chip of the camera device. The second indication message is used to instruct the execution of the rate adaptation algorithm built into the WiFi communication chip to determine a new MCS level through the rate adaptation algorithm.
[0154] The transmission unit 603 is specifically used to: if the physical layer transmission rate corresponding to the target MCS level is greater than the physical layer transmission rate corresponding to the new MCS level, then transmit the target video stream based on the physical layer transmission rate corresponding to the new MCS level.
[0155] In one embodiment, the processing unit 602 is specifically used for:
[0156] Based on the protocol frame overhead of the WiFi communication protocol, the expected retransmission rate of the camera device, and the reserved burst traffic margin of the video encoding module, the transmission redundancy coefficient is determined. The transmission redundancy coefficient is used to quantitatively compensate for the protocol overhead and retransmission loss of the target video stream during the transmission process based on the WiFi communication protocol.
[0157] The required transmission bandwidth for the target video stream is calculated based on the encoding configuration parameters and the transmission redundancy coefficient.
[0158] The various modules in the aforementioned camera device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0159] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a transmission processing method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0160] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0161] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described transmission processing method.
[0162] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-described transmission processing method.
[0163] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the above-described transmission processing method.
[0164] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0165] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0166] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0167] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A transmission processing method, characterized in that, The method, applied to a camera device with Wi-Fi communication capability, includes: Obtain the encoding configuration parameters and WiFi downlink received signal strength of the camera device. The encoding configuration parameters are used to describe the encoding configuration of the video encoding module in the camera device. Based on the encoding configuration parameters, the required transmission bandwidth of the target video stream is determined. The target video stream is the video stream to be transmitted after being captured by the camera device and encoded by the video encoding module. Based on the transmission bandwidth required by the target video stream and the downlink received signal strength of the WiFi, multiple candidate modulation and coding scheme (MCS) levels are screened to obtain the target MCS level. The physical layer transmission rate corresponding to each candidate MCS level is different. The target video stream is transmitted based on the physical layer transmission rate corresponding to the target MCS level.
2. The method according to claim 1, characterized in that, Before transmitting the target video stream based on the physical layer transmission rate corresponding to the target MCS level, the method further includes: The WiFi driver layer interface of the camera device is invoked to lock the target MCS level, and a first indication message is sent to the WiFi communication chip of the camera device. The first indication message is used to indicate that the built-in rate adaptation algorithm of the WiFi communication chip is disabled to stop the behavior of adjusting the MCS level through the rate adaptation algorithm.
3. The method according to claim 1, characterized in that, The process of filtering multiple candidate modulation and coding scheme (MCS) levels based on the required transmission bandwidth of the target video stream and the downlink received signal strength of the WiFi, to obtain the target MCS level, includes: Based on the WiFi downlink received signal strength and a preset mapping relationship, the packet loss rate of each of the multiple candidate MCS levels under the WiFi downlink received signal strength is evaluated; wherein, the preset mapping relationship is used to describe the correspondence between signal strength and packet loss rate; Based on the packet loss rate corresponding to the multiple candidate MCS levels, multiple first MCS levels are determined from the multiple candidate MCS levels, and the packet loss rate corresponding to each first MCS level is less than or equal to a preset packet loss rate threshold. The transmission bandwidth required for the target video stream is compared with the physical layer transmission rate corresponding to each of the first MCS levels, and one or more second MCS levels are determined from the plurality of first MCS levels, wherein the physical layer transmission rate corresponding to each second MCS level is greater than or equal to the transmission bandwidth required for the target video stream. Based on the level information of each second MCS level, the target MCS level is determined from the one or more second MCS levels.
4. The method according to claim 3, characterized in that, The step of determining the target MCS level from the one or more second MCS levels based on the level information of each second MCS level includes: Based on the level information of each second MCS level, the second MCS level with the lowest level is determined as the target MCS level from the one or more second MCS levels.
5. The method according to claim 3, characterized in that, After comparing the required transmission bandwidth of the target video stream with the physical layer transmission rate corresponding to each of the first MCS levels, the method further includes: If the physical layer transmission rate corresponding to each of the first MCS levels is less than the transmission bandwidth required by the target video stream, then based on the level information of each of the first MCS levels, the highest-level first MCS level is determined from the plurality of first MCS levels. The target MCS level is determined based on the highest MCS level.
6. The method according to claim 2, characterized in that, After calling the WiFi driver layer interface of the camera device to lock the target MCS level and sending the first indication information to the WiFi communication chip of the camera device, the method further includes: Based on a preset mapping relationship, the estimated packet loss rate of the target MCS level under the downlink received signal strength of the WiFi is evaluated. The preset mapping relationship is used to describe the correspondence between signal strength and packet loss rate. If the estimated packet loss rate of the target MCS level is greater than the preset packet loss rate threshold within a preset time period, a second indication message is sent to the WiFi communication chip of the camera device. The second indication message is used to instruct the execution of the rate adaptation algorithm built into the WiFi communication chip to determine a new MCS level through the rate adaptation algorithm. The transmission of the target video stream based on the physical layer transmission rate corresponding to the target MCS level includes: If the physical layer transmission rate corresponding to the target MCS level is greater than the physical layer transmission rate corresponding to the new MCS level, then the target video stream is transmitted based on the physical layer transmission rate corresponding to the new MCS level.
7. The method according to any one of claims 1 to 6, characterized in that, Determining the required transmission bandwidth for the target video stream based on the encoding configuration parameters includes: Based on the protocol frame overhead of the WiFi communication protocol, the expected retransmission rate of the camera device, and the reserved burst traffic margin corresponding to the video encoding module, a transmission redundancy coefficient is determined. The transmission redundancy coefficient is used to quantitatively compensate for the protocol overhead and retransmission loss of the target video stream during the transmission process based on the WiFi communication protocol. Based on the encoding configuration parameters and the transmission redundancy coefficient, the required transmission bandwidth for the target video stream is calculated.
8. A camera device, characterized in that, include: The acquisition unit is used to acquire the encoding configuration parameters and WiFi downlink received signal strength of the camera device, wherein the encoding configuration parameters are used to describe the encoding configuration of the video encoding module in the camera device; The processing unit is used to determine the required transmission bandwidth of the target video stream based on the encoding configuration parameters. The target video stream is the video stream to be transmitted after being acquired by the camera device and encoded by the video encoding module. The processing unit is used to filter multiple candidate modulation and coding scheme (MCS) levels based on the transmission bandwidth required by the target video stream and the downlink received signal strength of the WiFi, and obtain the target MCS level. The physical layer transmission rate corresponding to each candidate MCS level is different. The transmission unit is used to transmit the target video stream based on the physical layer transmission rate corresponding to the target MCS level.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
