Video transmission method and device, electronic device and storage medium
By obtaining video frames and wireless signal parameters and dynamically adjusting the wireless transmission power, the problem of uneven power distribution in wireless video transmission is solved, transmission efficiency and user experience are improved, and device power consumption is reduced.
Patent Information
- Application Number
- CN202511134860.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-14
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2045-08-14
AI Technical Summary
In the existing technology, wireless video transmission equipment cannot perceive the network and video status in real time in a weak wireless network environment, resulting in uneven wireless power distribution, frequent video transmission retransmissions, high power consumption, low transmission efficiency, and poor user experience.
By obtaining the video frame to be sent and the local sending parameters, determining the video parameters and the number of round-trip transmissions, and combining the wireless signal parameters, dynamically adjusting the wireless transmission power to adapt to different video frame types, adaptive power control is achieved.
It improves video transmission efficiency and playback quality, reduces device power consumption loss, and enhances user experience.
Smart Images

Figure CN120639751A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless signal transmission, and in particular to a video transmission method, device, electronic device and storage medium. Background Art
[0002] With the development of society, wireless network transmission technology has flourished and is being applied to an increasing number of devices. For example, the main application scenario for wireless cameras (IPCs) currently on the market is that the wireless IPCs connect to a public cloud platform via WiFi, and users access the cloud platform via WiFi or mobile networks to view real-time video and alarm recordings of the monitored area. However, when video terminal devices connect to a WiFi network, factors such as the user's installation location, wireless interference, network latency, and wireless resource competition can lead to weak wireless networks. This can easily cause packet loss at the network transmission layer, leading to video playback issues such as stuttering, frame loss, delays, and asynchrony. One effective way to combat weak wireless networks is to increase wireless power and rationally utilize it for video data transmission. In related technologies, wireless power control in video streaming scenarios using wireless (such as Wi-Fi) terminal devices can suffer from uneven and mismatched wireless power distribution. Weak wireless signals can result in frequent video retransmissions, high power consumption, and low transmission efficiency, leading to video playback stuttering and frame loss. When the wireless signal is strong, improper power allocation can lead to high power consumption in wireless devices.
[0003] Currently, no effective solution has been proposed for related technologies on how to perceive network and video status in real time and adaptively adjust wireless transmission power. Summary of the Invention
[0004] The embodiments of the present application provide a video transmission method, device, electronic device and storage medium to at least solve the problem in the related art of how to perceive the network and video status in real time and thus adaptively adjust the wireless transmission power.
[0005] In a first aspect, an embodiment of the present application provides a video transmission method.
[0006] In some embodiments, the video transmission method includes:
[0007] Obtaining a video frame to be sent and local sending parameters, and determining video parameters of the video to be sent;
[0008] Determining the number of round-trip transmissions according to the video parameters and the local sending parameters;
[0009] Obtaining wireless signal parameters, and determining an estimated video frame transmission time based on the number of round-trip transmissions and the wireless signal parameters;
[0010] Determine a video frame type of the to-be-sent video frame, and determine a target wireless transmit power corresponding to the to-be-sent video frame based on the video frame type and the estimated transmission time of the video frame.
[0011] In some embodiments, determining the number of round-trip transmissions based on the video parameters and the local sending parameters includes:
[0012] Determining the video frame data volume and the fragment data volume included in the video parameters, and the congestion window size and the sending packet loss rate included in the local sending parameters;
[0013] The number of round-trip transmissions is determined according to the video frame data volume, the fragment data volume, the congestion window size, and the sending packet loss rate.
[0014] In some embodiments, obtaining wireless signal parameters and determining the estimated video frame transmission time based on the number of round-trip transmissions and the wireless signal parameters includes:
[0015] Determining the wireless data round-trip delay and wireless packet loss rate included in the wireless signal parameters;
[0016] An estimated video frame sending time is determined based on the number of round-trip transmissions, the wireless data round-trip delay, and the wireless packet loss rate.
[0017] In some embodiments, determining the video frame type of the to-be-sent video frame, and determining the target wireless transmit power corresponding to transmitting the to-be-sent video frame based on the video frame type and the estimated transmission time of the video frame includes:
[0018] Determining a video frame type and a power configuration rule for the video frame to be sent;
[0019] Determine a target wireless transmission power corresponding to the to-be-sent video frame according to the video frame type, the power configuration rule, and the estimated transmission time of the video frame.
[0020] In some embodiments, determining the target wireless transmit power corresponding to transmitting the to-be-sent video frame based on the video frame type, the power configuration rule, and the estimated transmission time of the video frame includes:
[0021] When the video frame type is the first I frame and the estimated sending time of the video frame is greater than a first preset threshold, a first target wireless transmission power corresponding to the video frame to be sent is determined according to the power configuration rule.
[0022] In some embodiments, determining the target wireless transmit power corresponding to transmitting the to-be-sent video frame based on the video frame type, the power configuration rule, and the estimated transmission time of the video frame includes:
[0023] Get channel utilization and signal strength;
[0024] When the video frame type is not the first I frame, and the estimated sending time of the video frame is greater than the second preset threshold, the channel utilization is greater than the utilization threshold, and the signal strength is less than the strength threshold, the second target wireless transmission power corresponding to the transmission of the video frame to be sent is determined according to the power configuration rule.
[0025] In some embodiments, determining the target wireless transmit power corresponding to transmitting the to-be-sent video frame based on the video frame type, the power configuration rule, and the estimated transmission time of the video frame includes:
[0026] Obtain the device power mode. When the video frame type is a P frame, the estimated sending time of the video frame is less than a third preset threshold, the device power mode is a low power mode, the channel utilization is less than the utilization threshold, and the signal strength is greater than the strength threshold, determine the third target wireless transmission power corresponding to the transmission of the video frame to be sent according to the power configuration rule.
[0027] In a second aspect, an embodiment of the present application provides a video transmission device.
[0028] In some embodiments, the video transmission device includes a parameter determination module, a round trip number determination module, an estimated time determination module, and a wireless power determination module:
[0029] The parameter determination module is used to obtain the video frame to be sent and the local sending parameters, and determine the video parameters of the video to be sent;
[0030] The round-trip number determination module is used to determine the round-trip transmission number according to the video parameters and the local sending parameters;
[0031] The estimated time determination module is used to obtain wireless signal parameters and determine the estimated time required to send the video frame based on the number of round-trip transmissions and the wireless signal parameters;
[0032] The wireless power determination module is used to determine the video frame type of the video frame to be sent, and determine the target wireless transmission power corresponding to the video frame to be sent based on the video frame type and the estimated transmission time of the video frame.
[0033] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the video transmission method as described in the first aspect above is implemented.
[0034] In a fourth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the video transmission method as described in the first aspect above is implemented.
[0035] Compared with the related art, the video transmission method, device, electronic device and storage medium provided in the embodiments of the present application determine the video parameters of the video to be sent by obtaining the video frame to be sent and the sending parameters of the local end, determine the number of round-trip transmissions based on the video parameters and the sending parameters of the local end, and then obtain the wireless signal parameters, determine the estimated sending time of the video frame based on the number of round-trip transmissions and the wireless signal parameters, and further determine the video frame type of the video frame to be sent, and determine the target wireless transmission power corresponding to the transmission of the video frame to be sent based on the video frame type and the estimated sending time of the video frame. This solves the problem of how to perceive the network and video status in real time in the related art, thereby adaptively adjusting the wireless transmission power. Different wireless transmission powers can be adopted for different video frame types, thereby improving video transmission efficiency and playback quality, and reducing equipment power consumption loss.
[0036] The details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0038] Figure 1 is a hardware structure block diagram of a terminal according to a video transmission method according to an embodiment of the present application;
[0039] Figure 2 is a flowchart of a video transmission method according to an embodiment of the present application;
[0040] Figure 3 is a flowchart of a video transmission method according to a preferred embodiment of the present application;
[0041] Figure 4 It is a structural block diagram of a video transmission device according to an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means and should not be understood as the contents disclosed in the present application being insufficient.
[0043] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments unless there is a conflict.
[0044] Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by persons of ordinary skill in the art to which this application belongs. The terms "a," "an," "an," "the," and similar expressions used herein do not denote limitations on quantity and may refer to either the singular or the plural. The terms "comprise," "include," "have," and any variations thereof, used herein, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or modules (units) is not limited to the listed steps or units but may also include steps or units not listed, or may include other steps or units inherent to the process, method, product, or apparatus. The terms "connected," "connected," "coupled," and similar expressions used herein are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. As used herein, "plurality" means greater than or equal to two. "And / or" describes an association between associated objects, indicating that three possible relationships exist. For example, "A and / or B" may mean: A exists alone; A and B exist simultaneously; or B exists alone. The terms "first", "second", "third" and the like involved in this application are merely used to distinguish similar objects and do not represent a specific ordering of the objects.
[0045] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. Taking running on a terminal as an example, Figure 1 FIG. 1 is a block diagram of the hardware structure of a terminal of the video transmission method according to an embodiment of the present invention. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0046] The memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to the video transmission method in the embodiment of the present invention. The processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, thereby implementing the above-mentioned method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0047] Transmission device 106 is used to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by the terminal's communications provider. In one embodiment, transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0048] This embodiment provides a video transmission method. Figure 2 is a flow chart of a video transmission method according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0049] Step S201: Obtain a video frame to be sent and local sending parameters, and determine video parameters of the video to be sent.
[0050] In the embodiments of this application, a video transmission scenario is described using a wireless WiFi device as the transmitter. When the device begins to send a video stream to the receiver, it obtains the video frame to be sent and determines the video parameters of the video frame to be sent. Furthermore, the device also obtains the local transmission parameters. In addition, the embodiments of this application can also be implemented based on other wireless technologies, such as Bluetooth technology, mobile cellular network technology, etc., and this application does not impose specific limitations on this.
[0051] Step S202: Determine the number of round-trip transmissions based on the video parameters and the local sending parameters.
[0052] According to the determined video parameters and the local sending parameters, it can be determined how many round trips are expected to be required to complete the transmission of this video frame, that is, the number of round trip transmissions is determined by calculation.
[0053] Step S203: obtaining wireless signal parameters, and determining the estimated transmission time of the video frame according to the number of round-trip transmissions and the wireless signal parameters.
[0054] Furthermore, the device side obtains wireless signal parameters. The round-trip transmission times and wireless signal parameters calculated above can be used to evaluate the current wireless quality. Therefore, based on the two, the time that may be required to send this video frame can be estimated, that is, the estimated video frame sending time.
[0055] Step S204 : determining the video frame type of the video frame to be sent, and determining the target wireless transmission power corresponding to the video frame to be sent according to the video frame type and the estimated transmission time of the video frame.
[0056] Among them, the video frame type of the video frame to be sent can be, for example, an I frame or a P frame. According to the different video frame types of the video frame to be sent and the estimated sending time of the video frame, the target wireless transmission power that meets the video transmission efficiency and quality, as well as the power consumption requirements of the device can be determined for transmitting the corresponding video frame to be sent.
[0057] Through the above steps, the embodiment of the present application obtains the video frame to be sent and the local transmission parameters to determine the video parameters of the video to be sent, and determines the number of round-trip transmissions based on the video parameters and the local transmission parameters. At the same time, wireless signal parameters are obtained to evaluate the wireless signal quality, and the estimated transmission time of the video frame is determined based on the number of round-trip transmissions and the wireless signal parameters. The video frame type of the video frame to be sent is further determined. The video frame type can reflect the video frame size and service characteristics. Based on the video frame type and the estimated transmission time of the video frame, the target wireless transmission power corresponding to the video frame to be sent is determined. It can be seen that the present application uses video characteristics, service characteristics, network characteristics and wireless characteristics to perform multi-dimensional parameter evaluation, and adaptively controls the wireless transmission power according to different video frame types and network status, so that the wireless transmission power matches and adapts to the video transmission service. This solves the problem of how to perceive the network and video status in real time in the related art, thereby adaptively adjusting the wireless transmission power. Different wireless transmission powers can be used for different video frame types, thereby improving video transmission efficiency and playback quality and reducing device power consumption loss.
[0058] In some embodiments, step S202 includes:
[0059] Step S2021: Determine the video frame data volume and the fragment data volume included in the video parameters, and the congestion window size and the sending packet loss rate included in the local sending parameters.
[0060] In this embodiment of the present application, video parameters include video frame data size and fragment data size. The fragment data size refers to the size of the video packets cut from the video frame. For example, the fragment data size corresponding to a video packet may be 1400 bytes. The local transmission parameters include the congestion window size and the transmission packet loss rate.
[0061] Step S2022: Determine the number of round-trip transmissions based on the video frame data volume, the fragment data volume, the congestion window size, and the sending packet loss rate.
[0062] Specifically, based on the video frame data volume, fragment data volume, congestion window size, and packet loss rate, the number of round-trip transmissions can be calculated using the following formula:
[0063] Number of round-trip transmissions = video frame data volume / fragment data volume / congestion window size + (video frame data volume / fragment data volume × sending packet loss rate) / congestion window size.
[0064] Through the above steps, the embodiment of the present application provides a specific method for calculating the number of round-trip transmissions based on the video frame data volume, the fragment data volume, the congestion window size and the sending packet loss rate, which is highly feasible.
[0065] In some embodiments, step S203 includes:
[0066] Step S2031: Determine the wireless data round-trip delay and wireless packet loss rate included in the wireless signal parameters.
[0067] Step S2032: Determine the estimated transmission time of the video frame based on the number of round-trip transmissions, the wireless data round-trip delay, and the wireless packet loss rate.
[0068] In the embodiment of the present application, the wireless signal parameters include the wireless data round-trip delay and the wireless packet loss rate. Based on the number of round-trip transmissions, the wireless data round-trip delay, and the wireless packet loss rate, the estimated video frame transmission time can be calculated based on the following formula:
[0069] Estimated video frame sending time = (number of round-trip transmissions + (video frame data volume / fragment data volume × wireless packet loss rate) / congestion window size) × wireless data round-trip delay.
[0070] Through the above steps, the embodiment of the present application provides a specific method for calculating the estimated sending time of video frames based on the number of round-trip transmissions, wireless data round-trip delay, congestion window size and wireless packet loss rate, which is accurate and feasible.
[0071] In some embodiments, step S204 includes:
[0072] Step S2041: Determine the video frame type and power configuration rule of the video frame to be sent.
[0073] Step S2042 : determining a target wireless transmission power corresponding to the video frame to be transmitted according to the video frame type, the power configuration rule, and the estimated transmission time of the video frame.
[0074] In the embodiment of the present application, the power configuration rule can be determined based on a preset power configuration table. Specifically, the power configuration table records the corresponding wireless transmit power determined based on parameters such as the video frame type and the estimated video frame transmission time. Therefore, based on the video frame type, the power configuration rule, and the estimated video frame transmission time, the target wireless transmit power for transmitting the video frame to be transmitted is determined.
[0075] Through the above steps, the embodiment of the present application determines the power configuration rules through the power configuration table, and further determines the target wireless transmission power corresponding to the video frame to be transmitted based on the video frame type, power configuration rules and estimated transmission time of the video frame, thereby improving the configuration efficiency of the wireless transmission power.
[0076] In some embodiments, step S2042 includes:
[0077] Step S2142: When the video frame type is the first I frame and the estimated transmission time of the video frame is greater than a first preset threshold, a first target wireless transmission power corresponding to the video frame to be transmitted is determined according to a power configuration rule.
[0078] In an embodiment of the present application, if the data currently to be transmitted is the first video I-frame of the stream, that is, the video frame type of the video to be transmitted is the first I-frame, and the estimated transmission time of the video frame exceeds a first preset threshold value α, then the transmission of the first I-frame needs to be accelerated. The device side increases the current power configuration by k1×δdBm according to the industry-wide power configuration table stipulated by law to determine the first target wireless transmit power corresponding to the video frame to be transmitted. The first preset threshold value α can be set according to business requirements. For example, when the business requires transmission within 40ms, it is set to 40ms. This setting is suitable for scenarios where users need to quickly display the screen when playing videos and increase the streaming speed. In the case of large WiFi signal interference or weak signal, the power can be instantly increased to speed up the transmission of the video I-frame. k1 is (WT1-α) / α, WT1 is the estimated transmission time of the video frame, and δ is the wireless transmit power value for the I-frame before adjusting the power configuration.
[0079] Through the above steps, when the video frame type of the video to be sent is the first I frame, the embodiment of the present application specifically increases the wireless transmission power when the wireless signal is weak, accelerates the transmission of the first video I frame, reduces the user video playback freeze and frame loss problems caused by wireless link packet loss, increases the outflow speed of the first I frame, and ensures video transmission efficiency and quality.
[0080] In some embodiments, step S2042 includes:
[0081] Step S2242, obtaining channel utilization and signal strength.
[0082] In step S2342, when the video frame type is not the first I frame, and the estimated sending time of the video frame is greater than the second preset threshold, the channel utilization is greater than the utilization threshold, and the signal strength is less than the strength threshold, the second target wireless transmission power corresponding to the video frame to be sent is determined according to the power configuration rule.
[0083] In an embodiment of the present application, channel utilization and signal strength are further obtained. If the data to be sent is a non-first video I frame of the stream, that is, the video frame type of the video frame to be sent is a non-first I frame, and the estimated sending time WT1 of the video frame exceeds the second preset threshold β, and the channel utilization exceeds the preset utilization threshold, and the signal strength is lower than the preset strength threshold, then it is necessary to accelerate the transmission of the non-first I frame. The device end increases the current power configuration by k2×δdBm according to the power configuration table to determine the second target wireless transmission power corresponding to the video frame to be sent, where k2 is (WT1-β) / β, WT1 is the estimated sending time of the video frame, and δ is the wireless transmission power value for the I frame before adjusting the power configuration. Specifically, during video playback, if the user is only concerned about smoothness, as long as the video is sent within a preset threshold (for example, 200ms), the user will not experience any poor viewing experience such as lag. However, in scenarios where wireless transmission efficiency is low, such as due to severe wireless interference, the transmission of non-first I frames will be slow, resulting in a poor user experience. In this case, the above-mentioned power configuration boost solution can allow WiFi to instantly increase power, thereby achieving accelerated transmission of non-first I frames.
[0084] Through the above steps, the embodiment of the present application further obtains channel utilization and signal strength to evaluate the quality of the wireless signal when the video frame type of the video to be sent is not the first I frame. When the wireless signal is weak, the wireless transmission power is increased, and the transmission of non-first video I frames is accelerated, thereby reducing the user video playback freeze and frame loss problems caused by wireless link packet loss, and improving video transmission efficiency and quality.
[0085] In some embodiments, step S2042 includes:
[0086] Step S2442, obtain the device power mode. When the video frame type is a P frame, the estimated sending time of the video frame is less than the third preset threshold, the device power mode is a low power mode, the channel utilization is less than the utilization threshold, and the signal strength is greater than the strength threshold, determine the third target wireless transmission power corresponding to the transmission of the video frame to be sent according to the power configuration rule.
[0087] In an embodiment of the present application, the device power mode is further obtained. If the data to be sent is a streamed video P frame, that is, the video frame type of the video frame to be sent is a P frame, and the device power mode is a low power mode, and the estimated sending time of the video frame is lower than the third preset threshold φ, and the channel utilization is lower than the preset utilization threshold, and the signal strength is higher than the preset strength threshold, then the P frame transmission speed can be reduced. The device end reduces the current power configuration by h×εdBm according to the power configuration table to determine the third target wireless transmission power corresponding to the video frame to be sent, where h is (φ-WT1) / φ, WT1 is the estimated sending time of the video frame, and ε is the wireless transmission power value for the P frame before adjusting the power configuration. Specifically, during video playback, if the user is only concerned about smoothness, as long as the video is sent within a preset threshold (for example, 200ms), the user will not experience any poor viewing experience such as lag. Therefore, in scenarios with low wireless interference and high signal quality, the wireless transmission efficiency is high. At this time, even if the wireless power is momentarily reduced to transmit P frames slowly, it will not affect business needs (the video can still be sent within the preset threshold). At the same time, it can also reduce device power loss and extend the battery life of products such as battery cameras.
[0088] Through the above steps, when the video frame type of the video frame to be sent is a P frame, when the wireless signal is strong, the embodiment of the present application reduces the wireless transmission power during P frame transmission, thereby saving the problem of large power consumption loss caused by waste of wireless device transmission power and reducing device power consumption loss.
[0089] As can be seen, the embodiment of the present application performs multi-dimensional parameter estimation based on video characteristics, service characteristics, network characteristics, and wireless characteristics, and dynamically adjusts the wireless transmission power for different video frame types, achieving the effect of accelerating video I frame transmission and energy saving video P frame transmission in wireless networks. This ensures that the wireless transmission power size is completely and evenly matched with the peak and valley characteristics of different types of video frame sizes and service status, which can improve video transmission efficiency and reduce device power consumption losses. In addition, in the embodiment of the present application, when the video frame transmission is completed, the device end restores the wireless transmission power to the power configuration before the adjustment.
[0090] The embodiments of the present application are described and illustrated below through preferred embodiments.
[0091] Figure 3 FIG. 1 is a flow chart of a video transmission method according to a preferred embodiment of the present application. Figure 3 As shown, the video transmission method includes the following steps:
[0092] Step S301: Obtain a video frame to be sent and local sending parameters, and determine the video parameters of the video to be sent.
[0093] Step S302: Determine the video frame data volume and the fragment data volume included in the video parameters, and the congestion window size and the transmission packet loss rate included in the local transmission parameters.
[0094] Step S303: determining the number of round-trip transmissions according to the video frame data volume, the fragment data volume, the congestion window size, and the sending packet loss rate.
[0095] Step S304: determining the wireless data round trip delay and wireless packet loss rate included in the wireless signal parameters.
[0096] Step S305 : determining the estimated transmission time of the video frame according to the number of round-trip transmissions, the wireless data round-trip delay, and the wireless packet loss rate.
[0097] Step S306 : determining the video frame type of the video frame to be sent, and determining the target wireless transmission power corresponding to the video frame to be sent according to the video frame type and the estimated transmission time of the video frame.
[0098] In addition, when the transmitting end includes a wireless power control transmission module and a wireless driver module, the present application may also have the following implementation methods: First, the transmitting end cuts the video frame into video packets of different sizes according to a certain size, and the video packets are sent to the receiving end through the wireless power control transmission module and the wireless driver module; second, the wireless driver module senses the change of the wireless signal state in real time and sends the signal parameters to the wireless power control transmission module for evaluation; third, after receiving the video packet, the receiving end also sends reception information and evaluates the packet loss and response status of the receiving end, and this information is fed back to the transmitting end via a confirmation character message; fourth, the wireless power control transmission module of the transmitting end performs a comprehensive evaluation of the confirmation character feedback information, the wireless signal feedback information, and the transmitting end video frame information, and calculates the wireless transmission power of the device end in the next video frame transmission time slot in real time; finally, the wireless power control transmission module sends the power configuration to the wireless driver module to adaptively adjust the wireless transmission power, thereby improving the video frame transmission ability to resist weak signals, especially the video I frame transmission signal enhancement ability.
[0099] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0100] This embodiment also provides a video transmission device, which is used to implement the above-mentioned embodiments and preferred implementations. Details already described will not be repeated here. As used below, the terms "module," "unit," "subunit," etc. may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0101] Figure 4 is a structural block diagram of a video transmission device according to an embodiment of the present application, such as Figure 4 As shown, the device includes a parameter determination module 10, a round trip number determination module 20, an estimated time determination module 30 and a wireless power determination module 40:
[0102] The parameter determination module 10 is used to obtain the video frame to be sent and the local sending parameters, and determine the video parameters of the video to be sent;
[0103] A round trip number determination module 20, configured to determine the number of round trip transmissions based on video parameters and local transmission parameters;
[0104] An estimated time determination module 30 is configured to obtain wireless signal parameters and determine an estimated video frame transmission time based on the number of round-trip transmissions and the wireless signal parameters;
[0105] The wireless power determination module 40 is configured to determine the video frame type of the video frame to be sent, and determine the target wireless transmission power corresponding to the video frame to be sent based on the video frame type and the estimated transmission time of the video frame.
[0106] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0107] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0108] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0109] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:
[0110] Obtain the video frame to be sent and the local sending parameters, and determine the video parameters of the video to be sent;
[0111] Determine the number of round-trip transmissions based on the video parameters and the parameters sent by the local end;
[0112] Obtain wireless signal parameters and determine the estimated transmission time of the video frame based on the number of round-trip transmissions and the wireless signal parameters;
[0113] Determine the video frame type of the video frame to be sent, and determine the target wireless transmit power corresponding to the video frame to be sent based on the video frame type and the estimated transmission time of the video frame. It should be noted that the specific examples of this embodiment can refer to the examples described in the above embodiments and optional implementations, and this embodiment will not be repeated here.
[0114] In addition, in conjunction with the video transmission method in the above embodiments, the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any one of the video transmission methods in the above embodiments is implemented.
[0115] Those skilled in the art should understand that the various technical features of the above-described embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the various technical features in the above-described 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 specification.
[0116] 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, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0117] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A video transmission method, characterized in that: The following steps are involved: Obtaining a video frame to be sent and local sending parameters, and determining video parameters of the video to be sent; Determining the number of round-trip transmissions according to the video parameters and the local sending parameters; Obtaining wireless signal parameters, and determining an estimated video frame transmission time based on the number of round-trip transmissions and the wireless signal parameters; Determine a video frame type of the to-be-sent video frame, and determine a target wireless transmit power corresponding to the to-be-sent video frame based on the video frame type and the estimated transmission time of the video frame.
2. The video transmission method according to claim 1, wherein: The determining, according to the video parameter and the local sending parameter, the number of round-trip transmissions includes: Determining the video frame data volume and the fragment data volume included in the video parameters, and the congestion window size and the sending packet loss rate included in the local sending parameters; The number of round-trip transmissions is determined according to the video frame data volume, the fragment data volume, the congestion window size, and the sending packet loss rate.
3. The video transmission method according to claim 2, wherein: The obtaining of wireless signal parameters and determining the estimated video frame transmission time according to the number of round-trip transmissions and the wireless signal parameters includes: Determining the wireless data round-trip delay and wireless packet loss rate included in the wireless signal parameters; An estimated video frame sending time is determined based on the number of round-trip transmissions, the wireless data round-trip delay, and the wireless packet loss rate.
4. The video transmission method according to any one of claims 1 to 3, characterized in that: The determining the video frame type of the to-be-sent video frame, and determining the target wireless transmit power corresponding to transmitting the to-be-sent video frame according to the video frame type and the estimated sending time of the video frame includes: Determining a video frame type and a power configuration rule for the video frame to be sent; Determine a target wireless transmission power corresponding to the to-be-sent video frame according to the video frame type, the power configuration rule, and the estimated transmission time of the video frame.
5. The video transmission method according to claim 4, characterized in that: The determining, according to the video frame type, the power configuration rule, and the estimated transmission time of the video frame, a target wireless transmit power corresponding to transmitting the to-be-sent video frame includes: When the video frame type is the first I frame and the estimated sending time of the video frame is greater than a first preset threshold, a first target wireless transmission power corresponding to the video frame to be sent is determined according to the power configuration rule.
6. The video transmission method according to claim 5, characterized in that: The determining, according to the video frame type, the power configuration rule, and the estimated transmission time of the video frame, a target wireless transmit power corresponding to transmitting the to-be-sent video frame includes: Get channel utilization and signal strength; When the video frame type is not the first I frame, and the estimated sending time of the video frame is greater than the second preset threshold, the channel utilization is greater than the utilization threshold, and the signal strength is less than the strength threshold, the second target wireless transmission power corresponding to the transmission of the video frame to be sent is determined according to the power configuration rule.
7. The video transmission method according to claim 6, wherein: The determining, according to the video frame type, the power configuration rule, and the estimated transmission time of the video frame, of a target wireless transmit power for transmitting the to-be-sent video frame includes: Obtain the device power mode. When the video frame type is a P frame, the estimated sending time of the video frame is less than a third preset threshold, the device power mode is a low power mode, the channel utilization is less than the utilization threshold, and the signal strength is greater than the strength threshold, determine the third target wireless transmission power corresponding to the transmission of the video frame to be sent according to the power configuration rule.
8. A video transmission device, characterized in that: It includes a parameter determination module, a round trip number determination module, an estimated time determination module, and a wireless power determination module: The parameter determination module is used to obtain the video frame to be sent and the local sending parameters, and determine the video parameters of the video to be sent; The round-trip number determination module is used to determine the round-trip transmission number according to the video parameters and the local sending parameters; The estimated time determination module is used to obtain wireless signal parameters and determine the estimated time required to send the video frame based on the number of round-trip transmissions and the wireless signal parameters; The wireless power determination module is used to determine the video frame type of the video frame to be sent, and determine the target wireless transmission power corresponding to the video frame to be sent based on the video frame type and the estimated transmission time of the video frame.
9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the video transmission method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the video transmission method according to any one of claims 1 to 7 when running.
Citation Information
Patent Citations
Power allocation method and communications device
CA2972110A1
Data transmission reliability over a network
CN102742292A
Data transmission method, device and computer storage medium
CN105099642A
Power control method and device, terminal equipment and storage medium
CN116939792A
Power grid data transmission method, transmission device and storage medium
CN118118076A