A video transmission method, device, electronic device and storage medium

By sensing network and video status in real time and dynamically adjusting wireless transmission power, the problem of uneven power distribution in wireless video transmission is solved, improving transmission efficiency and user experience.

CN120639751BActive Publication Date: 2025-11-18ZHEJIANG DAHUA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511134860.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-14
Publication Date
2025-11-18
Estimated Expiration
2045-08-14

AI Technical Summary

Technical Problem

In existing technologies, wireless video transmission devices cannot perceive the network and video status in real time in weak wireless network environments, resulting in uneven wireless power distribution, causing multiple video retransmissions, high power consumption, low transmission efficiency, and poor user experience.

Method used

By acquiring the video frame to be sent and the local transmission parameters, the video parameters and round-trip transmission count are determined. Combined with the wireless signal parameters, the transmission time is estimated, and the wireless transmission power is dynamically adjusted to match the requirements of different video frame types, thus achieving adaptive power control.

Benefits of technology

It improves video transmission efficiency and playback quality, reduces device power consumption, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120639751B_ABST
    Figure CN120639751B_ABST
Patent Text Reader

Abstract

The application relates to a video transmission method and device, an electronic device and a storage medium, wherein the video transmission method comprises the following steps: obtaining a to-be-sent video frame and a local sending parameter, determining a video parameter of the to-be-sent video, determining a round-trip transmission number according to the video parameter and the local sending parameter, then obtaining a wireless signal parameter, determining a video frame estimated sending time according to the round-trip transmission number and the wireless signal parameter, further determining a video frame type of the to-be-sent video frame, and determining a target wireless transmission power corresponding to the to-be-sent video frame according to the video frame type and the video frame estimated sending time. Through the application, the problem of how to realize real-time sensing of network and video states in the related art, thereby adaptively adjusting wireless transmission power, is solved, different wireless transmission powers can be adopted for different video frame types, video transmission efficiency and playing quality are improved, and device power consumption loss is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless signal transmission, and in particular to a video transmission method, apparatus, electronic device, and storage medium. Background Technology

[0002] With social development, wireless network transmission technology has flourished and is being applied to an increasing number of devices. For example, wireless cameras (IPCs) on the market are primarily used in scenarios where they connect to a public cloud platform via WiFi, allowing users to access the 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 WiFi networks, they are affected by factors such as user installation location, wireless interference, network latency, and competition for wireless resources, resulting in weak wireless networks. This can easily lead to packet loss at the network transmission layer, causing problems such as stuttering, frame drops, latency, and desynchronization in video playback. One effective way to combat weak wireless networks is to increase wireless power and utilize it rationally for video data transmission. In related technologies, in video streaming scenarios using wireless (e.g., Wi-Fi) terminal devices, wireless power control suffers from uneven and mismatched power distribution. With weak wireless signals, this results in numerous video retransmissions, high power consumption, and low transmission efficiency, causing stuttering and frame drops in video playback. Conversely, with strong wireless signals, improper power distribution leads to high power consumption in wireless devices.

[0003] Currently, no effective solution has been proposed for how to perceive network and video status in real time and adaptively adjust wireless transmission power in related technologies. Summary of the Invention

[0004] This application provides a video transmission method, apparatus, electronic device, and storage medium to at least address the problem in related technologies of how to perceive network and video status in real time and adaptively adjust wireless transmission power.

[0005] In a first aspect, embodiments of this application provide a video transmission method.

[0006] In some embodiments, the video transmission method includes:

[0007] Obtain the video frame to be sent and the local transmission parameters, and determine the video parameters of the video to be sent;

[0008] The number of round-trip transmissions is determined based on the video parameters and the local transmission parameters.

[0009] Obtain wireless signal parameters, and determine the estimated transmission time of video frames based on the number of round trips and the wireless signal parameters;

[0010] The video frame type of the video frame to be sent is determined, and the target wireless transmission power corresponding to the video frame to be sent is determined 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 transmission parameters includes:

[0012] Determine the amount of video frame data and the amount of segment data included in the video parameters, as well as the congestion window size and packet loss rate included in the local transmission parameters;

[0013] The number of round-trip transmissions is determined based on the video frame data volume, the fragment data volume, the congestion window size, and the packet loss rate.

[0014] In some embodiments, obtaining wireless signal parameters and determining the estimated transmission time of video frames based on the round-trip transmission count and the wireless signal parameters includes:

[0015] Determine the wireless data round-trip delay and wireless packet loss rate included in the wireless signal parameters;

[0016] The estimated transmission time of video frames 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 video frame to be transmitted, and determining the target wireless transmission power corresponding to transmitting the video frame to be transmitted based on the video frame type and the estimated transmission time of the video frame, includes:

[0018] Determine the video frame type and power configuration rules for the video frame to be sent;

[0019] Based on the video frame type, the power configuration rule, and the estimated transmission time of the video frame, the target wireless transmission power corresponding to the video frame to be transmitted is determined.

[0020] In some embodiments, determining the target wireless transmission power for transmitting the video frame to be transmitted, 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 transmission time of the video frame is greater than the first preset threshold, the first target wireless transmission power corresponding to the video frame to be transmitted is determined according to the power configuration rule.

[0022] In some embodiments, determining the target wireless transmission power for transmitting the video frame to be transmitted, based on the video frame type, the power configuration rule, and the estimated transmission time of the video frame, includes:

[0023] Obtain channel utilization and signal strength;

[0024] When the video frame type is not the first I-frame, and the estimated transmission 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 transmitted is determined according to the power configuration rule.

[0025] In some embodiments, determining the target wireless transmission power for transmitting the video frame to be transmitted, based on the video frame type, the power configuration rule, and the estimated transmission time of the video frame, includes:

[0026] The device power mode is obtained. Under the following conditions, the video frame type is P frame, the estimated transmission time of the video frame is less than a third preset threshold, the device power mode is low power mode, the channel utilization is less than the utilization threshold, and the signal strength is greater than the strength threshold, the third target wireless transmission power corresponding to the video frame to be transmitted is determined according to the power configuration rule.

[0027] Secondly, embodiments of this application provide 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 transmission 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 based on the video parameters and the local transmission parameters;

[0031] The estimated transmission time determination module is used to acquire wireless signal parameters and determine the estimated transmission time of video frames 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 transmitted, and to determine the target wireless transmission power corresponding to the video frame to be transmitted based on the video frame type and the estimated transmission time of the video frame.

[0033] Thirdly, embodiments of this application provide an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the video transmission method as described in the first aspect above.

[0034] Fourthly, embodiments of this application provide a storage medium storing a computer program thereon, which, when executed by a processor, implements the video transmission method as described in the first aspect above.

[0035] Compared to related technologies, the video transmission method, apparatus, electronic device, and storage medium provided in this application, by acquiring the video frame to be transmitted and the local transmission parameters, determines the video parameters of the video to be transmitted, determines the round-trip transmission count based on the video parameters and the local transmission parameters, then acquires the wireless signal parameters, determines the estimated transmission time of the video frame based on the round-trip transmission count and the wireless signal parameters, further determines the video frame type of the video frame to be transmitted, and determines the target wireless transmission power corresponding to the video frame to be transmitted based on the video frame type and the estimated transmission time of the video frame. This solves the problem in related technologies of how to perceive the network and video status in real time and thus adaptively adjust the wireless transmission power. It can adopt different wireless transmission powers for different video frame types, improve video transmission efficiency and playback quality, and reduce device power consumption loss.

[0036] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0037] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0038] Figure 1 This is a hardware structure block diagram of a terminal for a video transmission method according to an embodiment of this application;

[0039] Figure 2 This is a flowchart of a video transmission method according to an embodiment of this application;

[0040] Figure 3 This is a flowchart of a video transmission method according to a preferred embodiment of this application;

[0041] Figure 4 This is a structural block diagram of a video transmission device according to an embodiment of this application. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application. Furthermore, it is understood that although the efforts made in such a development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, modifications to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.

[0043] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0044] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes 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 these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application means two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The terms “first,” “second,” “third,” etc., used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.

[0045] The method embodiments provided in this example can be executed on a terminal, computer, or similar computing device. Taking running on a terminal as an example, Figure 1 This is a hardware structure block diagram of the terminal for the video transmission method according to an embodiment of the present invention. For example... Figure 1 As shown, a terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. Optionally, the terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0046] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the video transmission method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described 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 instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0047] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0048] This embodiment provides a video transmission method. Figure 2 This is a flowchart of a video transmission method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0049] Step S201: Obtain the video frame to be sent and the local transmission parameters, and determine the video parameters of the video to be sent.

[0050] In the embodiments of this application, the transmission scenario is described using a wireless WiFi device as the transmitter. When the device begins sending a video stream to the receiver, it acquires the video frame to be sent and determines the video parameters of the frame. Furthermore, the device also acquires its own transmission parameters. Additionally, the embodiments of this application can also be implemented based on other wireless technologies, such as Bluetooth or mobile cellular network technologies; this application does not impose specific limitations on these.

[0051] Step S202: Determine the number of round trip transmissions based on the video parameters and the parameters sent from the local end.

[0052] Based on the determined video parameters and the local transmission 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 trips can be determined by calculation.

[0053] Step S203: Obtain wireless signal parameters and determine the estimated transmission time of video frames based on the number of round trips and wireless signal parameters.

[0054] Furthermore, the device obtains wireless signal parameters. The round-trip transmission count and wireless signal parameters calculated above can be used to assess the current wireless quality. Therefore, based on both, the time that this video frame may take to be sent can be estimated, i.e., the estimated transmission time of the video frame.

[0055] Step S204: 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.

[0056] The video frame to be transmitted can be of type I-frame or P-frame. Based on the different video frame types and the estimated transmission time of the video frame, the target wireless transmission power that simultaneously meets the requirements of video transmission efficiency and quality, as well as device power consumption, can be determined for transmitting the corresponding video frame to be transmitted.

[0057] Through the above steps, this embodiment of the application determines the video parameters of the video to be transmitted by acquiring the video frame to be transmitted and the local transmission parameters. Based on the video parameters and the local transmission parameters, it determines the number of round-trip transmissions. Simultaneously, it acquires wireless signal parameters to evaluate wireless signal quality. Based on the number of round-trip transmissions and the wireless signal parameters, it determines the estimated transmission time of the video frame and further determines the video frame type. The video frame type reflects the video frame size and service characteristics. Based on the video frame type and the estimated transmission time, it determines the target wireless transmission power corresponding to the video frame to be transmitted. Therefore, this application uses video features, service features, network features, and wireless features for multi-dimensional parameter evaluation. It adaptively controls the wireless transmission power for different video frame types and network conditions, ensuring that the wireless transmission power matches and adapts to the video transmission service. This solves the problem in related technologies of how to perceive network and video conditions in real time and adaptively adjust the wireless transmission power. It can adopt different wireless transmission powers for different video frame types, improving video transmission efficiency and playback quality while reducing device power consumption.

[0058] In some embodiments, step S202 includes:

[0059] Step S2021: Determine the amount of video frame data and fragment data included in the video parameters, as well as the congestion window size and packet loss rate included in the local transmission parameters.

[0060] In this embodiment, the video parameters include the video frame data size and the fragment data size, where the fragment data size refers to the size of a video packet formed by cutting a video frame. For example, the fragment data size corresponding to a video packet can be 1400 bytes. The local transmission parameters include the congestion window size and the packet loss rate.

[0061] Step S2022: Determine the number of round trips based on the video frame data volume, fragment data volume, congestion window size, and packet loss rate.

[0062] Specifically, based on the video frame data size, fragment data size, congestion window size, and packet loss rate, the round-trip transmission count can be calculated using the following formula:

[0063] Round trip transmission count = video frame data volume / fragment data volume / congestion window size + (video frame data volume / fragment data volume × packet loss rate) / congestion window size.

[0064] Through the above steps, this application embodiment provides a specific method for calculating the number of round-trip transmissions based on the video frame data volume, fragment data volume, congestion window size, and 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 this embodiment, the wireless signal parameters include wireless data round-trip delay and wireless packet loss rate. Based on the number of round-trip transmissions, wireless data round-trip delay, and wireless packet loss rate, the estimated transmission time of video frames can be calculated using the following formula:

[0069] Estimated transmission time for video frames = (Number of round trips + (Video frame data size / Fragment data size × Wireless packet loss rate) / Congestion window size) × Wireless data round trip delay.

[0070] Through the above steps, this application embodiment provides a specific and accurate method for calculating the estimated transmission 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.

[0071] In some embodiments, step S204 includes:

[0072] Step S2041: Determine the video frame type and power configuration rules for the video frame to be sent.

[0073] Step S2042: Determine 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.

[0074] In this embodiment, the power configuration rules can be determined based on a preset power configuration table. This table records the corresponding wireless transmission power determined based on parameters such as video frame type and estimated transmission time. Therefore, the target wireless transmission power for transmitting the video frame to be sent is determined according to the video frame type, power configuration rules, and estimated transmission time.

[0075] Through the above steps, this embodiment of the application determines the power configuration rules through a 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 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 the first preset threshold, the first target wireless transmission power corresponding to the video frame to be transmitted is determined according to the power configuration rule.

[0078] In this embodiment, if the data to be sent is the first video I-frame of the stream, i.e., the video frame type of the video to be sent is the first I-frame, and the estimated transmission time of the video frame exceeds the first preset threshold α, then the transmission of the first I-frame needs to be accelerated. The device increases the current power configuration by k1×δdBm according to the power configuration table commonly used in the industry as stipulated by law, in order to determine the first target wireless transmission power corresponding to the video frame to be sent. The first preset threshold α can be set according to business requirements. For example, when the business requires the transmission to be completed within 40ms, it is set to 40ms. This setting is suitable for scenarios where users need to quickly display the video and improve 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-α) / α, where WT1 is the estimated transmission time of the video frame; δ is the wireless transmission power value for the I-frame before adjusting the power configuration.

[0079] Through the above steps, this application embodiment, when the video frame type of the video to be sent is the first I-frame, specifically increases the wireless transmission power under weak wireless signal conditions, accelerates the transmission of the first video I-frame, reduces the problem of user video playback stuttering and frame dropping caused by wireless link packet loss, improves the outgoing speed of the first I-frame, and ensures video transmission efficiency and quality.

[0080] In some embodiments, step S2042 includes:

[0081] Step S2242: Obtain channel utilization and signal strength.

[0082] Step S2342: When the video frame type is not the first I-frame, and the estimated transmission 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 transmitted is determined according to the power configuration rules.

[0083] In this embodiment of the application, channel utilization and signal strength are further obtained. If the data to be transmitted is a non-first video I-frame, that is, the video frame type of the video frame to be transmitted is a non-first I-frame, and the estimated transmission 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 the transmission of the non-first I-frame needs to be accelerated. The device 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 transmitted, where k2 is (WT1-β) / β, WT1 is the estimated transmission 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 only cares about smoothness, as long as the video is sent within a preset threshold (e.g., 200ms), the user will not experience any stuttering or other poor viewing experience. However, in scenarios where wireless transmission efficiency is low due to strong wireless interference, the transmission of non-first I-frames slows down, resulting in a poorer viewing experience for the user. In this case, the aforementioned power configuration enhancement scheme can allow WiFi to instantly increase its power, thereby accelerating the transmission of non-first I-frames.

[0084] Through the above steps, this application embodiment further obtains channel utilization and signal strength to evaluate wireless signal quality when the video frame type of the video to be sent is not the first I-frame. In the case of weak wireless signal, it increases wireless transmission power, accelerates the transmission of non-first video I-frames, reduces the problem of user video playback stuttering and frame dropping caused by wireless link packet loss, and improves video transmission efficiency and quality.

[0085] In some embodiments, step S2042 includes:

[0086] Step S2442: Obtain the device power mode. Under the conditions that the video frame type is P frame, the estimated transmission time of the video frame is less than the third preset threshold, the device power mode is 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 video frame to be transmitted according to the power configuration rules.

[0087] In this embodiment, the device power mode is further obtained. If the data to be transmitted is a streaming video P-frame, that is, the video frame type of the video frame to be transmitted is P-frame, and the device power mode is low power mode, and the estimated transmission 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 transmission speed of the P-frame can be reduced. The device 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 transmitted, where h is (φ-WT1) / φ, WT1 is the estimated transmission 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 only cares about smoothness, as long as the video is sent within a preset threshold (e.g., 200ms), the user will not experience any stuttering or other poor viewing experience. Therefore, in scenarios with low wireless interference and high signal quality, wireless transmission efficiency is high. 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 reduce device power consumption and extend the battery life of products such as battery-powered cameras.

[0088] Through the above steps, in this embodiment of the application, when the video frame type of the video frame to be sent is a P-frame, the wireless transmission power during P-frame transmission is reduced when the wireless signal is strong, thereby saving the problem of large power consumption loss caused by the waste of wireless device transmission power and reducing device power consumption loss.

[0089] As can be seen, the embodiments of this application perform multi-dimensional parameter estimation based on video features, service features, network features, and wireless features, and dynamically adjust the wireless transmission power for different video frame types. This achieves accelerated transmission of video I-frames and energy-saving transmission of video P-frames under a wireless network, thereby ensuring that the wireless transmission power is perfectly matched and adapted to the peak-valley characteristics and service status of different types of video frame sizes. This improves video transmission efficiency and reduces device power consumption. Furthermore, in the embodiments of this application, once video frame transmission is complete, the device restores the wireless transmission power to its previous configuration.

[0090] The embodiments of this application will be described and illustrated below through preferred embodiments.

[0091] Figure 3 This is a flowchart of a video transmission method according to a preferred embodiment of this application. Figure 3 As shown, the video transmission method includes the following steps:

[0092] Step S301: Obtain the video frame to be sent and the local transmission parameters, and determine the video parameters of the video to be sent.

[0093] Step S302: Determine the amount of video frame data and fragment data included in the video parameters, as well as the congestion window size and packet loss rate included in the local transmission parameters.

[0094] Step S303: Determine the number of round trips based on the video frame data volume, fragment data volume, congestion window size, and packet loss rate.

[0095] Step S304: Determine the wireless data round-trip delay and wireless packet loss rate included in the wireless signal parameters.

[0096] Step S305: 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.

[0097] Step S306: 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.

[0098] Furthermore, when the transmitting end includes a wireless power control transmission module and a wireless driving module, this application can also have the following implementation methods. First, the transmitting end segments the video frame into video packets of different sizes according to a certain size, and the video packets are transmitted to the receiving end via the wireless power control transmission module and the wireless driving module. Second, the wireless driving module senses changes in the wireless signal status in real time and sends the signal parameters to the wireless power control transmission module for evaluation. Third, after receiving the video packets, the receiving end also sends reception information and evaluates the packet loss and acknowledgment status of the receiving end. This information is fed back to the transmitting end through an acknowledgment character message. Fourth, the wireless power control transmission module of the transmitting end performs a comprehensive evaluation based on the acknowledgment character feedback information, wireless signal feedback information, and the transmitting end's video frame information, and calculates the wireless transmission power of the device in the next video frame transmission time slot in real time. Finally, the wireless power control transmission module sends a power configuration to the wireless driving module to adaptively adjust the wireless transmission power, thereby improving the video frame transmission's ability to resist weak signals, especially the enhancement capability of video I-frame transmission signals.

[0099] It should be noted that the steps shown in the above process or in the flowchart of the accompanying figures 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 may be executed in a different order than that shown here.

[0100] This embodiment also provides a video transmission device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "module," "unit," "subunit," etc., can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0101] Figure 4 This is a structural block diagram of a video transmission device according to an embodiment of this application, such as... Figure 4 As shown, the device includes a parameter determination module 10, a round trip count 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 transmission parameters, and determine the video parameters of the video to be sent.

[0103] The round-trip number determination module 20 is used to determine the number of round-trip transmissions based on the video parameters and the parameters sent from the local end;

[0104] The estimated transmission time determination module 30 is used to acquire wireless signal parameters and determine the estimated transmission time of video frames based on the number of round-trip transmissions and wireless signal parameters.

[0105] The wireless power determination module 40 is used to determine the video frame type of the video frame to be transmitted, and to determine the target wireless transmission power corresponding to the video frame to be transmitted 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 reside in the same processor; or the above modules can be located in different processors in any combination.

[0107] This embodiment also 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 perform the steps in any 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 can be configured to perform the following steps via 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] The number of round-trip transmissions is determined based on the video parameters and the parameters sent from the local end.

[0112] Obtain wireless signal parameters and determine the estimated transmission time of video frames based on the number of round trips and wireless signal parameters;

[0113] The video frame type to be transmitted is determined, and based on the video frame type and the estimated transmission time, the target wireless transmission power corresponding to the video frame to be transmitted is determined. It should be noted that specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0114] Furthermore, in conjunction with the video transmission methods described in the above embodiments, this application embodiment can provide a storage medium for implementation. This storage medium stores a computer program; when executed by a processor, the computer program implements any of the video transmission methods described in the above embodiments.

[0115] Those skilled in the art should understand that 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 have been 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, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0117] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. 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 patent application should be determined by the appended claims.

Claims

1. A video transmission method, characterized in that, Includes the following steps: Obtain the video frame to be sent and the local transmission parameters, and determine the video parameters of the video to be sent; The number of round-trip transmissions is determined based on the video parameters and the local transmission parameters. Obtain wireless signal parameters, and determine the estimated transmission time of video frames based on the number of round trips and the wireless signal parameters; The video frame type of the video frame to be sent is determined, and the target wireless transmission power corresponding to the video frame to be sent is determined based on the video frame type and the estimated transmission time of the video frame. The video frame type and power configuration rules of the video frame to be sent are determined. Based on the video frame type, the power configuration rules and the estimated transmission time of the video frame, the target wireless transmission power corresponding to the video frame to be sent is determined so as to accelerate the transmission of video I-frames and save energy in the transmission of video P-frames. The channel utilization and signal strength are obtained. When the video frame type is not the first I-frame, and the estimated transmission time of the video frame is greater than a 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 transmitted is determined according to the power configuration rule.

2. The video transmission method according to claim 1, characterized in that, The step of determining the number of round-trip transmissions based on the video parameters and the local transmission parameters includes: Determine the amount of video frame data and the amount of segment data included in the video parameters, as well as the congestion window size and packet loss rate included in the local transmission parameters; The number of round-trip transmissions is determined based on the video frame data volume, the fragment data volume, the congestion window size, and the packet loss rate.

3. The video transmission method according to claim 2, characterized in that, The step of acquiring wireless signal parameters and determining the estimated transmission time of video frames based on the number of round-trip transmissions and the wireless signal parameters includes: Determine the wireless data round-trip delay and wireless packet loss rate included in the wireless signal parameters; The estimated transmission time of video frames 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 claim 3, characterized in that, The step of determining the target wireless transmission power for transmitting the video frame to be transmitted based on the video frame type, the power configuration rule, and the estimated transmission time of the video frame includes: When the video frame type is the first I-frame and the estimated transmission time of the video frame is greater than the first preset threshold, the first target wireless transmission power corresponding to the video frame to be transmitted is determined according to the power configuration rule.

5. The video transmission method according to claim 4, characterized in that, The step of determining the target wireless transmission power for transmitting the video frame to be transmitted based on the video frame type, the power configuration rule, and the estimated transmission time of the video frame includes: The device power mode is obtained. Under the following conditions, the video frame type is P frame, the estimated transmission time of the video frame is less than a third preset threshold, the device power mode is low power mode, the channel utilization is less than the utilization threshold, and the signal strength is greater than the strength threshold, the third target wireless transmission power corresponding to the video frame to be transmitted is determined according to the power configuration rule.

6. A video transmission apparatus for implementing the video transmission method as described in any one of claims 1 to 5, characterized in that, This includes a parameter determination module, a round-trip count 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 transmission 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 based on the video parameters and the local transmission parameters; The estimated transmission time determination module is used to acquire wireless signal parameters and determine the estimated transmission time of video frames 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 transmitted, and to determine the target wireless transmission power corresponding to the video frame to be transmitted based on the video frame type and the estimated transmission time of the video frame.

7. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the video transmission method according to any one of claims 1 to 5.

8. 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 5 when it is run.

Citation Information

Patent Citations

  • Data transmission reliability over a network

    CN102742292A

  • Power grid data transmission method, transmission device and storage medium

    CN118118076A

  • Data transmission method, electronic device, and computer readable storage medium

    WO2021238199A1