Video transmission method, device, video transmission equipment and storage medium
By determining the code rate and transmission priority of video in the mesh network and optimizing routing and channel resource allocation, the problem of poor video transmission quality in the mesh network is solved, and efficient video transmission effect is achieved.
Patent Information
- Application Number
- CN202310193196.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2043-02-20
AI Technical Summary
When real-time transmission of multi-channel video services in mesh network, the video transmission quality is poor, and it is prone to lag and mosaics. The existing technology fails to effectively subdivid category video services and pre-allocate channel resources.
By determining the code rate and transmission priority of video, using the self-discovery, self-configuration and self-organization characteristics of the mesh network, the code rate and transmission priority information are transmitted step by step, the routing strategy and channel resource allocation are optimized, the target transmission link is established, and the real-time and clarity requirements of different videos are met.
It improves the quality of video transmission, avoids lag and distortion, meets the real-time and clarity needs of different videos, and improves the video transmission effect.
Smart Images

Figure CN116209016B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless network technology, and in particular to a video transmission method, apparatus, video transmission equipment, and computer-readable storage medium. Background Art
[0002] With the rapid development of information technology, various types of videos continue to emerge. These videos have increasingly important value in social life and production, which makes the transmission quality of videos particularly important.
[0003] In the IEEE 802.11e protocol, the MAC (Media Access Control) layer develops the Distributed Coordination Function (DCF) and channel access mechanism into Enhanced Distributed Channel Access (EDCA). It also categorizes access controllers (ACs) into four access classes based on service priority: AC_VO, AC_VI, AC_BE, and AC_BK. High-priority ACs have a higher chance of occupying channels than low-priority ACs. Each AC queue defines a set of channel contention EDCA parameters that determine its channel occupation capacity. AC_VO is the audio service class, and AC_VI is the video service class. Existing technologies do not further subclassify video services. Currently, the bandwidth occupied by videos of various specifications varies greatly during transmission. When transmitted on mesh wireless networks, the required channel bandwidth also varies greatly. The DCF and EDCA mechanisms do not pre-allocate mesh channel resources based on the size of the video service. This leads to poor video transmission quality when transmitting multiple video services in real time, and is prone to poor video effects such as freezes and mosaics in video on demand or live broadcasts. Summary of the Invention
[0004] The main purpose of the present invention is to provide a video transmission method, apparatus, video transmission equipment and computer-readable storage medium, aiming to solve the technical problem of poor video transmission quality in existing mesh networks when transmitting multi-channel video services in real time.
[0005] To achieve the above object, the present invention provides a video transmission method, which is applied to a mesh network; the mesh network includes multiple node devices; and the method includes the following steps:
[0006] Determining a bit rate of a video to be transmitted in the mesh network and determining a transmission priority of the video to be transmitted;
[0007] The bit rate and the transmission priority are transmitted step by step between the node devices through a connection management message to determine a target transmission link corresponding to the video to be transmitted;
[0008] The video to be transmitted is transmitted based on the target transmission link in the mesh networking.
[0009] Optionally, the step of determining a bit rate of the video to be transmitted in the mesh network includes:
[0010] Obtain the resolution, frame rate, and compression rate of the video to be transmitted in the mesh network;
[0011] The resolution, the frame rate, and the compression rate are multiplied to calculate the bit rate of the video to be transmitted.
[0012] Optionally, the step of determining the transmission priority of the video to be transmitted includes:
[0013] If the video to be transmitted has a fixed bit rate, the transmission priority of the video to be transmitted is determined according to the bit rate size order corresponding to the bit rate.
[0014] Optionally, the step of determining the transmission priority of the video to be transmitted includes:
[0015] If the video to be transmitted has a variable bit rate, obtaining the bit rate range of the video to be transmitted;
[0016] The transmission priority of the video to be transmitted is determined according to the bit rate order corresponding to the maximum bit rate in the bit rate range.
[0017] Optionally, the step of determining the transmission priority of the video to be transmitted includes:
[0018] Receive user input of a target resolution and / or target frame rate;
[0019] The transmission priority of the video to be transmitted is determined according to the target resolution and / or the target frame rate.
[0020] Optionally, the step of determining the transmission priority of the video to be transmitted includes:
[0021] Receive a video category importance list input by the user;
[0022] The transmission priority of the video to be transmitted is determined according to the video category importance list.
[0023] Optionally, the step of transmitting the code rate and the transmission priority between the node devices step by step through a connection management message includes:
[0024] In the link establishment handshake mechanism between the node devices, the code rate and the transmission priority are filled into the reserved bytes in the connection management message, so that the code rate and the transmission priority are transmitted step by step between the node devices.
[0025] In addition, to achieve the above-mentioned object, the present invention further provides a video transmission device, comprising:
[0026] A video parsing module, used to determine the bit rate of the video to be transmitted in the mesh network and determine the transmission priority of the video to be transmitted;
[0027] A transmission configuration module is used to transmit the bit rate and the transmission priority step by step between node devices through connection management messages to determine the target transmission link corresponding to the video to be transmitted; and transmit the video to be transmitted based on the target transmission link in the mesh network.
[0028] In addition, to achieve the above-mentioned purpose, the present invention also provides a video transmission device, including a processor, a storage unit, and a video transmission program stored on the storage unit and executable by the processor, wherein when the video transmission program is executed by the processor, the steps of the video transmission method described above are implemented.
[0029] The present invention also provides a computer-readable storage medium, on which a video transmission program is stored. When the video transmission program is executed by a processor, the steps of the video transmission method described above are implemented.
[0030] The video transmission method of the present invention utilizes video bitrate and transmission priority within the routing strategies, channel access priority, and channel resource allocation strategies and algorithms inherent in mesh nodes. This allows for the transmission of multiple different video services, assigning different transmission priorities to each video to be transmitted. This ensures priority transmission of key video services and sufficient bandwidth, while also preventing playback artifacts such as video freezes and distortion. Furthermore, different node routes can be assigned to videos with different transmission priorities. This allows different videos to be transmitted to form transmission links between multiple nodes, meeting the real-time and clarity requirements of different videos while also ensuring the transmission of higher-priority videos. Furthermore, by leveraging the mesh network's inherent self-discovery, self-configuration, self-organization, self-healing, and structural flexibility, the present invention utilizes the handshake mechanism within network connection management and uses reserved bytes in connection establishment messages to communicate video bitrates (bitrates) and transmission priorities between different nodes. This ensures the transmission of information such as video bitrate and priority while maintaining the flexibility of the mesh network. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of the structure of the hardware operating environment of the video transmission device involved in the embodiment of the present invention;
[0032] Figure 2 Schematic diagram of the flow of the first embodiment of the video transmission method of the present invention;
[0033] Figure 3 This is a detailed flow chart of step S10 involved in an embodiment of the video transmission method of the present invention;
[0034] Figure 4 This is a schematic diagram of the mesh networking involved in the video transmission method of the present invention;
[0035] Figure 5 This is a schematic diagram of the mesh connection management principle involved in the video transmission method of the present invention;
[0036] Figure 6 Schematic diagram of the framework structure of the video transmission device of the present invention.
[0037] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0038] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0039] An embodiment of the present invention provides a video transmission device.
[0040] like Figure 1 As shown, Figure 1 It is a structural diagram of the hardware operating environment of the video transmission device involved in the embodiment of the present invention.
[0041] like Figure 1 As shown, the video transmission device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a storage unit 1005, and a communication bus 1002. Communication bus 1002 is used to enable communication between these components. User interface 1003 may include a display and an input unit, such as a control panel. Optionally, user interface 1003 may also include a standard wired interface or a wireless interface. Network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WiFi interface). Storage unit 1005 may be a high-speed RAM storage unit or a non-volatile memory unit, such as a disk storage unit. Storage unit 1005 may also be a storage device independent of processor 1001. Storage unit 1005, which serves as a computer storage medium, may include a video transmission program.
[0042] Those skilled in the art will understand that Figure 1 The hardware structure shown in the figure does not constitute a limitation of the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0043] Continue to refer to Figure 1 , Figure 1 The storage unit 1005 as a computer-readable storage medium may include an operating system, a user interface module, a network communication module, and a video transmission program.
[0044] exist Figure 1 In the example, the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the video transmission program stored in the storage unit 1005 and perform the following operations:
[0045] Determining a bit rate of a video to be transmitted in the mesh network and determining a transmission priority of the video to be transmitted;
[0046] The bit rate and the transmission priority are transmitted step by step between the node devices through a connection management message to determine a target transmission link corresponding to the video to be transmitted;
[0047] The video to be transmitted is transmitted based on the target transmission link in the mesh networking.
[0048] Furthermore, the processor 1001 may call the video transmission program stored in the memory 1005 and perform the following operations:
[0049] Obtain the resolution, frame rate, and compression rate of the video to be transmitted in the mesh network;
[0050] The resolution, the frame rate, and the compression rate are multiplied to calculate the bit rate of the video to be transmitted.
[0051] Furthermore, the processor 1001 may call the video transmission program stored in the memory 1005 and perform the following operations:
[0052] If the video to be transmitted has a fixed bit rate, the transmission priority of the video to be transmitted is determined according to the bit rate size order corresponding to the bit rate.
[0053] Furthermore, the processor 1001 may call the video transmission program stored in the memory 1005 and perform the following operations:
[0054] If the video to be transmitted has a variable bit rate, obtaining the bit rate range of the video to be transmitted;
[0055] The transmission priority of the video to be transmitted is determined according to the bit rate order corresponding to the maximum bit rate in the bit rate range.
[0056] Furthermore, the processor 1001 may call the video transmission program stored in the memory 1005 and perform the following operations:
[0057] Receive user input of a target resolution and / or target frame rate;
[0058] The transmission priority of the video to be transmitted is determined according to the target resolution and / or the target frame rate.
[0059] Furthermore, the processor 1001 may call the video transmission program stored in the memory 1005 and perform the following operations:
[0060] Receive a video category importance list input by the user;
[0061] The transmission priority of the video to be transmitted is determined according to the video category importance list.
[0062] Furthermore, the processor 1001 may call the video transmission program stored in the memory 1005 and perform the following operations:
[0063] In the link establishment handshake mechanism between the node devices, the code rate and the transmission priority are filled into the reserved bytes in the connection management message, so that the code rate and the transmission priority are transmitted step by step between the node devices.
[0064] In order to facilitate understanding of the following embodiments of the present invention, the main technical solutions of the present invention are briefly described here:
[0065] For the transmission of multi-stream or single-stream video data in the mesh network, and the situation of multiple channels with different bit rates or time-sharing different bit rates video transmission, combined with the characteristics of various current streaming media or live videos and the actual video transmission needs of users, as well as based on different resolutions, frame rates, compression ratios and other video information, the network transmission bandwidth required for various combinations is calculated, and the relevant information of each video transmission is integrated to sort the priority transmission list. The above relevant information and priority transmission list sorting are used in mesh wireless channel resource allocation and scheduling, as the policy decision conditions for mesh transmission priority, wireless channel resource allocation and scheduling, and then in the initial link handshake mechanism between nodes The corresponding table information of the video data to be transmitted (i.e., the priority transmission list and the above-mentioned related information) is transmitted between nodes through the default bytes of the heartbeat message. In the multi-node routing strategy, node MAC layer channel access and channel reservation, the table information is used as a new variable to determine the multi-node channel access priority of the transmission network, routing strategy and scheduling priority of the transmitted service, channel reservation and channel resource allocation, etc., thereby improving the efficiency of mesh transmission, improving the efficiency of wireless spectrum, improving the real-time transmission effect of videos of different priority levels, and giving priority to ensuring the transmission quality of key video services, thereby reducing or avoiding video on demand or live broadcast freezes, mosaics and other phenomena, and improving video effects.
[0066] Here we also need to explain the principles of mesh networking:
[0067] 1) Mesh networking
[0068] Wireless mesh networks have also become "multi-hop" networks, where any device node can act as a router and terminal. Every node in the network can send and receive signals, and each node can communicate with one or more nodes.
[0069] Please refer to Figure 4 ,As shown in the figure, the figure includes five mesh nodes (devices), MP1, MP2, MP3, MP4, and MP5, as well as the mesh links between each node.
[0070] Here are some relevant concepts in mesh networking:
[0071] Mesh Point (MP): Also known as a mesh node, this node uses IEEE 802.11 MAC and physical layer protocols for wireless communication and supports mesh functionality. It supports automatic topology, automatic route discovery, and data packet forwarding. An MP node can provide both mesh services and user access services.
[0072] Neighbor MP: An MP that is within direct communication range of a mesh node is called a neighbor MP of the mesh node.
[0073] Candidate MP: A neighboring MP with which the MP is preparing to establish a mesh link.
[0074] Peer MP: A neighboring MP that has established a mesh connection with an MP is called the peer MP of the MP.
[0075] 2) Mesh implementation principle
[0076] The process of establishing a mesh connection includes mesh neighbor discovery, mesh connection management, mesh security mechanism, mesh routing, mesh forwarding, etc. Mesh neighbor discovery is the first step in establishing a mesh network, similar to the STA (station) scanning the network in the access service.
[0077] 2.1) Mesh Neighbor Discovery
[0078] Before establishing a mesh network, you first need to discover neighboring MP devices. In a mesh network, each node obtains information about neighboring APs through active or passive scanning.
[0079] Active scanning: The MP actively sends mesh Probe Request frames on each channel (except the DFS channel) to obtain information about neighboring APs.
[0080] Passive scanning: The MP listens to the mesh Beacon frames (including information such as the mesh ID) sent periodically by neighboring MPs on each channel to obtain relevant information about neighboring APs.
[0081] Each MP has a neighbor relationship table, which divides the information of all neighbor nodes into four categories: ordinary AP neighbors, other mesh network nodes, candidate MP nodes, and peer MP nodes.
[0082] For the passive scanning method, if the MP finds that the mesh ID in the mesh Beacon frame it receives is consistent with its own mesh ID, it records the neighbor device as a candidate MP node in the neighbor relationship table; if the MP finds that the Beacon frame it receives does not contain a mesh ID, it determines that the neighbor node is a common AP neighbor; if the MP finds that the mesh ID in the mesh Beacon frame it receives is inconsistent with its own, it determines that the neighbor node is another mesh network node.
[0083] 2.2) Mesh connection management
[0084] Mesh connection management includes two processes: mesh connection establishment and mesh connection removal, which are implemented through the interaction of three mesh connection management Action frames: mesh PeeringOpen / Confirm / Close.
[0085] Please refer to Figure 5 When managing mesh connections, taking MP1 and MP2 as an example, the signaling between any two nodes mainly includes:
[0086] mesh Peering Open;
[0087] mesh Peering Confirm;
[0088] Security Negotiation & Data forwarding;
[0089] mesh Peering Close.
[0090] After selecting a candidate MP node, the MP can initiate the mesh connection establishment process with it. The two MPs establishing the mesh connection are in a peer position and complete the mesh connection establishment through two mesh peering open / confirm interactions.
[0091] After the mesh connection is established, the subsequent key negotiation phase needs to proceed. Only after the key negotiation is successful can the mesh node participate in mesh data forwarding.
[0092] Either party in a mesh connection can proactively send a mesh Peering Close message to the other party to close the mesh connection. The MP that receives the mesh Peering Close message must respond with a mesh Peering Close message to the other MP.
[0093] An embodiment of the present invention provides a video transmission method.
[0094] Please refer to Figure 2 , Figure 2 This is a flow chart of a first embodiment of a video transmission method according to the present invention. In the first embodiment of the present invention, the video transmission method is based on a mesh network; the mesh network includes a plurality of node devices; the video transmission method includes the following steps:
[0095] Step S10, determining the bit rate of the video to be transmitted in the mesh network and determining the transmission priority of the video to be transmitted;
[0096] In this embodiment, the videos to be transmitted in the mesh network are multiple videos that need to be transmitted simultaneously. Each of these videos has its own video source, such as a video capture terminal such as a camera. Each video source can be connected to a node device in the mesh network, which can be called a first-level node.
[0097] The bit rate of the video to be transmitted is often positively correlated with the quality of the video, that is, the higher the bit rate, the higher the video quality. However, the higher the video quality, the greater the network bandwidth required during video data transmission.
[0098] The transmission priority of the video to be transmitted is used to prioritize which video or videos to transmit. Videos with different transmission priorities will have different channel access priorities, scheduling priorities, and channel resource allocation within the mesh network. The transmission priority can be determined based on video parameters such as the bitrate, resolution, and frame rate of the video to be transmitted, or it can be set based on the user's actual transmission needs for different videos.
[0099] In one embodiment, the step S10 of determining the bit rate of the video to be transmitted in the mesh network includes:
[0100] Step a, obtaining the resolution, frame rate, and compression rate of the video to be transmitted in the mesh network;
[0101] Typically, in video acquisition terminals such as cameras (video sources), parameters such as video format, codec format, resolution, frame rate, and bit rate can be set. There are many codec formats, and H264 and H265 are currently commonly used. Resolution refers to the size of each frame of video: the higher the resolution, the larger the image, and the lower the resolution, the smaller the image. Frame rate (FPS) refers to the number of frames transmitted in 1 second. The higher the frame rate, the smoother the picture; the lower the frame rate, the more jittery the picture (stuttering). Bit rate, also called bit stream, is the number of data bits transmitted per unit time during data transmission, measured in kbps. To ensure the size and clarity of the transmitted video image, the resolution and frame rate of the video are generally fixed. That is, when a fixed bit rate is used, the transmission bit rate is determined by the codec format.
[0102] Step b: multiplying the resolution, the frame rate, and the compression rate to calculate the bit rate of the video to be transmitted.
[0103] When the resolution and frame rate vary, that is, when a variable bit rate is used, the bit rate of the video to be transmitted can be obtained by multiplying the resolution, frame rate, and compression rate. Of course, even when a fixed bit rate is used, the bit rate of the video to be transmitted can be obtained by multiplying the above three factors.
[0104] Through this embodiment, a relatively accurate bit rate can be obtained, and then appropriate bandwidth can be divided according to the bit rate, thereby ensuring that the quality of some videos is guaranteed during the transmission process.
[0105] In one embodiment, the step S10, determining the transmission priority of the video to be transmitted, includes:
[0106] Step c: If the video to be transmitted has a fixed bit rate, the transmission priority of the video to be transmitted is determined according to the bit rate size corresponding to the bit rate.
[0107] If a fixed bitrate (CBR) is used, the bandwidth required for video transmission is essentially fixed. That is, the fixed bitrate mesh network automatically allocates network bandwidth for the corresponding videos to be transmitted. Multiple videos to be transmitted may have different bitrates, requiring different network bandwidths. The bitrates of the videos to be transmitted can be sorted by size, and the corresponding bitrate ranking is determined based on the sorting. The transmission priority of each video to be transmitted is then determined based on the bitrate ranking. For users with higher requirements for video clarity or smoothness, videos with higher bitrates can be ranked higher and given a higher transmission priority. For users with higher requirements for real-time video transmission, videos with lower bitrates can be ranked higher and given a higher transmission priority. Therefore, based on the bitrate ranking of all videos to be transmitted, the transmission priority of each video to be transmitted should be determined in accordance with user needs to maximize the user's actual video data transmission needs.
[0108] Please refer to Figure 3 In one embodiment, the step S10 of determining the transmission priority of the video to be transmitted includes:
[0109] Step S11, if the video to be transmitted has a variable bit rate, obtaining the bit rate range of the video to be transmitted;
[0110] If the video to be transmitted is a variable bit rate (VBR), the bandwidth required for video transmission changes dynamically. However, no matter how the bit rate of the video to be transmitted and the required network bandwidth change, the bit rate and the required network bandwidth are within a certain range. For variable bit rates, there is a certain bit rate range and upper limit.
[0111] Step S12: determining the transmission priority of the video to be transmitted according to the bit rate order corresponding to the maximum bit rate in the bit rate interval.
[0112] In order to sort the bit rates of videos to be transmitted with variable bit rates, after obtaining the bit rate ranges of each video to be transmitted with variable bit rates, the maximum bit rate corresponding to each video to be transmitted, that is, the upper limit value, can be determined for sorting. Based on the bit rate size sorting corresponding to each video to be transmitted and combined with the actual needs of the user, the transmission priority of each video to be transmitted is determined. The video to be transmitted with a larger bit rate can have a higher transmission priority, and the video to be transmitted with a smaller bit rate can have a higher transmission priority.
[0113] Through this embodiment of the present invention, not only can the bit rates of videos to be transmitted using variable bit rates be sorted, but the actual video transmission needs of users can also be met to the greatest extent, thereby improving the effect of video transmission.
[0114] In one embodiment, the step S10, determining the transmission priority of the video to be transmitted, includes:
[0115] Step d, receiving a target resolution and / or target frame rate input by a user;
[0116] Step e: determining the transmission priority of the video to be transmitted according to the target resolution and / or the target frame rate.
[0117] In this embodiment, it should be noted that users' video transmission requirements are diverse. Some users have higher requirements for video clarity, while some users have higher requirements for video smoothness, which are reflected in the video parameters as resolution and frame rate requirements respectively.
[0118] Mesh networking can receive target resolution and / or target frame rate input by the user. The target resolution and target frame rate refer to the video to be transmitted with a certain clarity and a certain smoothness that the user hopes to transmit first. Generally, the target resolution and target frame rate are often set higher, but some users will also choose a lower target resolution and lower target frame rate due to transmission speed and network bandwidth limitations.
[0119] After determining the target resolution and / or target frame rate, the transmission priority of each video to be transmitted can be determined based on the target resolution or target frame rate. For example, if the target resolution input by the user is 2K, then the transmission priority of the 2K video to be transmitted is the highest because it fully meets the user's goals and needs. That is, the video to be transmitted with a resolution of 2k is transmitted first, and the videos to be transmitted with a resolution lower than 2K are sorted according to the size of their resolution. The higher the resolution, the higher the transmission priority. For another example, if the target resolution input by the user is 480P, then the transmission priority of the 480P video to be transmitted can be the highest, and the transmission priority of other videos to be transmitted with a resolution higher than 480P is sorted according to the size of their resolution. The higher the resolution, the lower the transmission priority. Similarly, the same is true for the target frame rate.
[0120] After determining the target resolution and / or target frame rate, the transmission priority of each video to be transmitted can also be determined in combination with the target resolution and target frame rate, which will not be elaborated here. When there is a conflict in the transmission priority among the various transmission priorities determined based on the target resolution and target frame rate, different weights can be assigned to the resolution and frame rate according to the type of video, so as to focus on one of the parameters to determine a unique transmission priority for each video to be transmitted as much as possible. For example, if the type of video is a game video, then the frame rate can be focused on. When the transmission priorities of two game videos determined based on the target resolution and target frame rate are originally the same, the video to be transmitted with a higher frame rate can be determined as a higher transmission priority when the resolution difference is not much (such as one order of magnitude). This can not only meet the needs of users, but also adapt to the characteristics of the video to ensure that users have a better video viewing experience.
[0121] In one embodiment, the step S10, determining the transmission priority of the video to be transmitted, includes:
[0122] Step f, receiving a video category importance list input by a user;
[0123] Step g: determining the transmission priority of the video to be transmitted according to the video category importance list.
[0124] Users can set the demand for video transmission as a video category importance list, which can have a certain video category ranking. The higher the ranking of the video type, the higher the transmission priority of the video to be transmitted. It is easier to understand that, for example, in the video category importance list, there are: conference videos, game live videos, variety show recordings, etc., then among the multiple videos to be transmitted, the conference videos can be transmitted with the highest priority, followed by game live videos, variety show recordings, etc. Of course, the classification of videos is not limited to the above-mentioned video categories, and can also be classified according to actual needs, so as to further meet the user's diversified actual video transmission needs.
[0125] Step S20: transmitting the bit rate and the transmission priority level by level among the node devices via a connection management message to determine a target transmission link corresponding to the video to be transmitted;
[0126] The bit rate and transmission priority corresponding to each video to be transmitted can be transmitted step by step through connection management messages during the connection between any two nodes. Based on the functions of mesh networking itself, that is, utilizing the self-discovery, self-configuration, self-organization, self-healing and flexible structure of mesh networking, the corresponding target transmission link for each video to be transmitted is defined before the video is officially transmitted.
[0127] In one embodiment, step S20 includes:
[0128] Step h: In the link establishment handshake mechanism between the node devices, the code rate and the transmission priority are filled into the reserved bytes in the connection management message, so that the code rate and the transmission priority are transmitted step by step between the node devices.
[0129] Specifically, during the link establishment handshake mechanism and process, node devices must communicate via connection management messages to establish a handshake connection. These messages reserve a portion of blank bytes, specifically in the ACTION frame of the mesh peering confirm message from one node to another. This inter-node connection characteristic allows the encoding of the bitrate and transmission priority to be placed in the reserved bytes of the connection management message. The previous node sends these bits and priorities to the current node via the connection management message, which the current node can then use for routing, channel access priority, scheduling priority, and channel resource allocation for the next node. When multiple node devices and the mesh network learn the bitrate and transmission priority of the video to be transmitted, they can then use these bits and priorities as variables to automatically plan the transmission paths for each video to be transmitted, forming one or more transmission links with optimal routing, wireless channel access, and resource scheduling, thereby improving video transmission quality and meeting user video transmission needs.
[0130] Step S30: transmitting the video to be transmitted based on the target transmission link in the mesh network.
[0131] After determining the target transmission link corresponding to each video to be transmitted, the video data can be transmitted based on a more reasonable and efficient target transmission link, thereby achieving a better video transmission effect.
[0132] The video transmission method of the present invention utilizes video bitrate and transmission priority within the routing strategies, channel access priority, and channel resource allocation strategies and algorithms inherent in mesh nodes. This allows for the transmission of multiple different video services, assigning different transmission priorities to each video to be transmitted. This ensures priority transmission of key video services and sufficient bandwidth, while also preventing playback artifacts such as video freezes and distortion. Furthermore, different node routes can be assigned to videos with different transmission priorities. This allows different videos to be transmitted to form transmission links between multiple nodes, meeting the real-time and clarity requirements of different videos while also ensuring the transmission of higher-priority videos. Furthermore, by leveraging the mesh network's inherent self-discovery, self-configuration, self-organization, self-healing, and structural flexibility, the present invention utilizes the handshake mechanism within network connection management and uses reserved bytes in connection establishment messages to communicate video bitrates (bitrates) and transmission priorities between different nodes. This ensures the transmission of information such as video bitrate and priority while maintaining the flexibility of the mesh network.
[0133] In addition, refer to Figure 6 , Figure 6The present invention further provides a video transmission device, which includes:
[0134] The video analysis module A10 is used to determine the bit rate of the video to be transmitted in the mesh network and determine the transmission priority of the video to be transmitted;
[0135] The transmission configuration module A20 is used to transmit the bit rate and the transmission priority step by step between node devices through connection management messages to determine the target transmission link corresponding to the video to be transmitted; and transmit the video to be transmitted based on the target transmission link in the mesh network.
[0136] Optionally, the video analysis module A10 is further configured to:
[0137] Obtain the resolution, frame rate, and compression rate of the video to be transmitted in the mesh network;
[0138] The resolution, the frame rate, and the compression rate are multiplied to calculate the bit rate of the video to be transmitted.
[0139] Optionally, the video analysis module A10 is further configured to:
[0140] If the video to be transmitted has a fixed bit rate, the transmission priority of the video to be transmitted is determined according to the bit rate size order corresponding to the bit rate.
[0141] Optionally, the video analysis module A10 is further configured to:
[0142] If the video to be transmitted has a variable bit rate, obtaining the bit rate range of the video to be transmitted;
[0143] The transmission priority of the video to be transmitted is determined according to the bit rate order corresponding to the maximum bit rate in the bit rate range.
[0144] Optionally, the video analysis module A10 is further configured to:
[0145] Receive user input of a target resolution and / or target frame rate;
[0146] The transmission priority of the video to be transmitted is determined according to the target resolution and / or the target frame rate.
[0147] Optionally, the video analysis module A10 is further configured to:
[0148] Receive a video category importance list input by the user;
[0149] The transmission priority of the video to be transmitted is determined according to the video category importance list.
[0150] Optionally, the transmission configuration module A20 is further configured to:
[0151] In the link establishment handshake mechanism between the node devices, the code rate and the transmission priority are filled into the reserved bytes in the connection management message, so that the code rate and the transmission priority are transmitted step by step between the node devices.
[0152] The specific implementation of the video transmission device of the present invention is basically the same as the above-mentioned embodiments of the video transmission method, and will not be repeated here.
[0153] In addition, the present invention further provides a computer-readable storage medium having a video transmission program stored thereon, wherein when the video transmission program is executed by a processor, the steps of the above-mentioned video transmission method are implemented.
[0154] The method implemented when the video transmission program is executed can refer to the various embodiments of the video transmission method of the present invention, and will not be described in detail here.
[0155] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0156] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0157] These computer program instructions may also be stored in a computer-readable storage unit that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable storage unit produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1The function specified in one or more boxes.
[0158] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0159] It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third etc. does not indicate any order. These words may be interpreted as names.
[0160] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0161] The above description is only a preferred embodiment of the present invention and does not limit the patent scope of the present invention. All equivalent structural transformations made by using the contents of the present invention description and drawings under the inventive concept of the present invention, or direct / indirect application in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A video transmission method, characterized in that: The video transmission method is applied to a mesh network; the mesh network includes a plurality of node devices; the method includes the following steps: Determining a bit rate of a video to be transmitted in the mesh network and determining a transmission priority of the video to be transmitted; In a link establishment handshake mechanism between the node devices, the bit rate and the transmission priority are filled into reserved bytes in a connection management message, so that the bit rate and the transmission priority are transmitted step by step between the node devices to determine a target transmission link corresponding to the video to be transmitted; The video to be transmitted is transmitted based on the target transmission link in the mesh networking.
2. The video transmission method according to claim 1, wherein: The step of determining the bit rate of the video to be transmitted in the mesh network includes: Obtain the resolution, frame rate, and compression rate of the video to be transmitted in the mesh network; The resolution, the frame rate, and the compression rate are multiplied to calculate the bit rate of the video to be transmitted.
3. The video transmission method according to claim 1, wherein: The step of determining the transmission priority of the video to be transmitted includes: If the video to be transmitted has a fixed bit rate, the transmission priority of the video to be transmitted is determined according to the bit rate size order corresponding to the bit rate.
4. The video transmission method according to claim 1, wherein: The step of determining the transmission priority of the video to be transmitted includes: If the video to be transmitted has a variable bit rate, obtaining the bit rate range of the video to be transmitted; The transmission priority of the video to be transmitted is determined according to the bit rate order corresponding to the maximum bit rate in the bit rate range.
5. The video transmission method according to claim 1, wherein: The step of determining the transmission priority of the video to be transmitted includes: Receive user input of a target resolution and / or target frame rate; The transmission priority of the video to be transmitted is determined according to the target resolution and / or the target frame rate.
6. The video transmission method according to claim 1, wherein: The step of determining the transmission priority of the video to be transmitted includes: Receive a video category importance list input by the user; The transmission priority of the video to be transmitted is determined according to the video category importance list.
7. A video transmission device, characterized in that: The video transmission device comprises: A video parsing module, used to determine the bit rate of the video to be transmitted in the mesh network and determine the transmission priority of the video to be transmitted; A transmission configuration module is used to fill the bit rate and the transmission priority into the reserved bytes in the connection management message in the link establishment handshake mechanism between the node devices, so that the bit rate and the transmission priority are transmitted step by step between the node devices to determine the target transmission link corresponding to the video to be transmitted; based on the target transmission link in the mesh network, the video to be transmitted is transmitted.
8. A video transmission device, characterized in that: The video transmission device includes a processor, a storage unit, and a video transmission program stored in the storage unit and executable by the processor, wherein when the video transmission program is executed by the processor, the steps of the video transmission method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that A video transmission program is stored on the computer-readable storage medium, wherein when the video transmission program is executed by the processor, the steps of the video transmission method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Intelligent monitoring method and device of wireless ad hoc network
CN109903499A