Data transmission method, device, terminal equipment and storage medium
By analyzing and encoding the high-definition video packets collected by the monitoring device, and using positive and negative encoding rules to reduce the transmission amount, the problem that existing network bandwidth cannot transmit high-definition videos is solved, and efficient and stable high-definition video transmission is achieved.
Patent Information
- Application Number
- CN202011483500.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2040-12-15
AI Technical Summary
The existing network bandwidth cannot effectively transmit high-definition video data, resulting in lag or delay problems.
By obtaining the video data packets collected by the monitoring device, analyzing them, determining the number of identifications to determine the target data encoding type (positive or negative encoding), encoding the data packets, reducing the transmission amount, and decoding at the video network terminal to restore the original data.
It realizes efficient transmission of high-definition video data within the existing network bandwidth, reduces the transmission amount on the data transmission link, improves transmission efficiency, and avoids lag and delay problems.
Smart Images

Figure CN112752070B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a data transmission method, device, terminal equipment and storage medium. Background Art
[0002] In recent years, with the continuous development and changes in technology market demand, video images have gradually moved from standard definition to high definition. As one of the core businesses of the current visual network, video surveillance, video clarity and video smoothness are undoubtedly very critical features. The clearer the video, the more obvious the details, the better the viewing experience, and the higher the accuracy of application services such as intelligent analysis.
[0003] As the quality requirements for video images become higher and higher, problems such as freezing or delay may occur. For example, most of the existing network bandwidth transmits standard-definition video, which has a physical resolution of 1280P*720P, while the physical resolution of high-definition video is 1920P×1080P. The physical resolution of high-definition video is much larger than that of standard-definition video. Therefore, the bandwidth consumed for transmitting high-definition video data is several times that of transmitting standard-definition video data. As a result, high-definition video data cannot be transmitted through the existing network bandwidth.
[0004] How to use the existing network bandwidth to transmit high-definition video data is a technical problem that needs to be solved at present. Summary of the invention
[0005] In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method, apparatus, terminal device and storage medium that overcome the above problems or at least partially solve the above problems.
[0006] In a first aspect, an embodiment of the present invention provides a data transmission method, the method comprising:
[0007] Acquire a first monitoring video data packet collected by a monitoring device;
[0008] Parsing the first surveillance video data packet to determine the number of first identifiers and the number of second identifiers, wherein the first identifier and the second identifier are different;
[0009] Determine a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding;
[0010] According to the target data encoding type, the first monitoring video data packet is encoded to obtain a second monitoring video data packet, wherein the second monitoring video data packet includes a destination address of a visual network terminal;
[0011] The second monitoring video data packet is sent to the visual networking terminal corresponding to the destination address, so that the visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet.
[0012] Optionally, determining the target data encoding type according to the first identification quantity and the second identification quantity includes:
[0013] If the first identification number is greater than the second identification number, determining that the target data encoding type is a negative encoding type;
[0014] If the first identification quantity is less than the second identification quantity, it is determined that the target data encoding type is a forward encoding type.
[0015] Optionally, encoding the first surveillance video data packet according to the target data encoding type to obtain a second surveillance video data packet includes:
[0016] If the target data encoding type is a negative encoding type, the first data corresponding to the first identifier in the first monitoring video data packet is set as the third identifier data to obtain the third monitoring video data, wherein the third monitoring video data includes the third identifier data and the second data corresponding to the second identifier;
[0017] Encapsulating the third monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal to obtain the second monitoring video data packet;
[0018] or
[0019] If the target data encoding type is a forward encoding type, the second data corresponding to the second identifier in the first monitoring video data packet is set as the third identification data to obtain fourth monitoring video data, wherein the fourth monitoring video data includes the third identification data and the first data corresponding to the first identification;
[0020] The fourth monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal are encapsulated to obtain the second monitoring video data packet.
[0021] Optionally, sending the second monitoring video data packet to a visual networking terminal corresponding to the destination address includes:
[0022] If the target data encoding type is a negative encoding type, then according to a preset time slot rule, in the time slot corresponding to the second data, the second data in the third monitoring video data is sent to the visual network terminal corresponding to the destination address;
[0023] or
[0024] If the target data encoding type is a forward encoding type, then according to a preset time slot rule, the first data in the fourth monitoring video data is sent to the visual network terminal corresponding to the destination address in the time slot corresponding to the first data.
[0025] Optionally, the visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, including:
[0026] The visual networking terminal parses the second monitoring video data packet to obtain the negative coding type and the second data;
[0027] The visual networking terminal sets the data of the time slot corresponding to the third identification data as the first data according to the preset time slot rule;
[0028] The visual networking terminal determines the first monitoring video data packet based on the first data and the second data.
[0029] Optionally, the visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, including:
[0030] The visual networking terminal parses the second monitoring video data packet to obtain the forward coding type and the first data;
[0031] The visual networking terminal sets the data of the time slot corresponding to the third identification data as the second data according to the preset time slot rule;
[0032] The visual networking terminal determines the first monitoring video data packet based on the first data and the second data.
[0033] Optionally, before acquiring the first monitoring video data packet collected by the monitoring device, the method further includes:
[0034] A time synchronization instruction is received from the network management server, so that the monitoring access server corrects the local time according to the time synchronization instruction.
[0035] In a second aspect, an embodiment of the present invention provides a data transmission device, the device comprising:
[0036] An acquisition module, used to acquire a first monitoring video data packet collected by a monitoring device;
[0037] A parsing module, configured to parse the first surveillance video data packet to determine a first identification number and a second identification number, wherein the first identification and the second identification are different;
[0038] A determination module, configured to determine a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes a positive encoding or a negative encoding;
[0039] An encoding module, used for encoding the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet, wherein the second monitoring video data packet includes a destination address of a visual network terminal;
[0040] A sending module is used to send the second monitoring video data packet to the visual networking terminal corresponding to the destination address, so that the visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet.
[0041] Optionally, the determining module is used to:
[0042] If the first identification number is greater than the second identification number, determining that the target data encoding type is a negative encoding type;
[0043] If the first identification quantity is less than the second identification quantity, it is determined that the target data encoding type is a forward encoding type.
[0044] Optionally, the encoding module is used to:
[0045] If the target data encoding type is a negative encoding type, the first data corresponding to the first identifier in the first monitoring video data packet is set as the third identifier data to obtain the third monitoring video data, wherein the third monitoring video data includes the third identifier data and the second data corresponding to the second identifier;
[0046] Encapsulating the third monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal to obtain the second monitoring video data packet;
[0047] or
[0048] If the target data encoding type is a forward encoding type, the second data corresponding to the second identifier in the first monitoring video data packet is set as the third identification data to obtain fourth monitoring video data, wherein the fourth monitoring video data includes the third identification data and the first data corresponding to the first identification;
[0049] The fourth monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal are encapsulated to obtain the second monitoring video data packet.
[0050] Optionally, the sending module is used to:
[0051] If the target data encoding type is a negative encoding type, then according to a preset time slot rule, in the time slot corresponding to the second data, the second data in the third monitoring video data is sent to the visual network terminal corresponding to the destination address;
[0052] or
[0053] If the target data encoding type is a forward encoding type, then according to a preset time slot rule, the first data in the fourth monitoring video data is sent to the visual network terminal corresponding to the destination address in the time slot corresponding to the first data.
[0054] Optionally, the visual networking terminal includes a decoding module, and the decoding module is used to:
[0055] Parsing the second surveillance video data packet to obtain the negative coding type and the second data;
[0056] According to the preset time slot rule, the data of the time slot corresponding to the third identification data is set as the first data;
[0057] The first monitoring video data packet is determined according to the first data and the second data.
[0058] Optionally, the decoding module is further used to:
[0059] Parsing the second surveillance video data packet to obtain the forward encoding type and the first data;
[0060] According to the preset time slot rule, the data of the time slot corresponding to the third identification data is set as the second data;
[0061] The first monitoring video data packet is determined according to the first data and the second data.
[0062] Optionally, the device further comprises a correction module, wherein the correction module is used to:
[0063] A time synchronization instruction is received from the network management server, so that the monitoring access server corrects the local time according to the time synchronization instruction.
[0064] In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory;
[0065] The memory stores a computer program; and the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the first aspect.
[0066] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the data transmission method provided in the first aspect is implemented.
[0067] The embodiments of the present invention include the following advantages:
[0068] The data transmission method, apparatus, terminal device and storage medium provided by the embodiments of the present invention obtain a first monitoring video data packet collected by a monitoring device; parse the first monitoring video data packet to determine the first identification number and the second identification number, and determine the target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding; encode the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet; send the second monitoring video data packet to a visual network terminal corresponding to a destination address, so that the visual network terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, encodes the first monitoring video data packet according to positive and negative encoding rules, and sends the encoded data to the visual network terminal, which then decodes according to positive and negative decoding rules to obtain the original first monitoring video data. In this way, the transmission amount on the data transmission link is reduced, high-definition data can be transmitted, and transmission efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 is a flowchart of a data transmission method embodiment of the present invention;
[0070] Figure 2 is a flowchart of another data transmission method embodiment of the present invention;
[0071] Figure 3 is a structural schematic diagram of an embodiment of a data transmission system of the present invention;
[0072] Figure 4 is a structural block diagram of an embodiment of a data transmission device of the present invention;
[0073] Figure 5 It is a structural schematic diagram of a terminal device of the present invention. DETAILED DESCRIPTION
[0074] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0075] The visual Internet is an important milestone in the development of the Internet. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications towards high-definition video and high-definition face-to-face communication.
[0076] The visual network adopts real-time high-definition video exchange technology. It can integrate the required services such as high-definition video conferencing, video monitoring, intelligent monitoring analysis, emergency command, digital radio and television, delayed TV, online teaching, live broadcast, VOD on demand, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release and dozens of other video, voice, picture, text, communication, data and other services on a single system platform, and realize high-definition quality video playback through TV or computer.
[0077] The glossary is explained as follows:
[0078] Visual network: A real-time, high-bandwidth transmission network based on Ethernet hardware, used for high-speed transmission of high-definition video and dedicated protocols.
[0079] Monitoring access service: The visual network monitoring access service system is a core device that connects Internet monitoring resources to the visual network, and is an important link in the visual network in monitoring integration applications. It supports access to monitoring front-end equipment, video monitoring systems, and video monitoring networking platforms from different manufacturers, has low-latency video and audio protocol conversion capabilities, and realizes the integration and real-time scheduling of monitoring resources in the visual network.
[0080] Network management service: It can support the normal operation of the visual network and is a powerful network management and operation and maintenance guarantee system. The system coordinates and manages all devices and resources in the visual network in accordance with the operation mode and workflow. The system has the communication capability of operational-level real-time high-definition video, which can be used by many users and ensure the stable operation of operational-level high-definition video services.
[0081] Conference management service: It is an important support service for realizing the operation-level video conferencing of the visual network. The system can support a large number of users to conduct video conferences concurrently and ensure the effectiveness of the conference. The system supports multiple methods for conference reservation, review, scheduling and other functions. The system supports hierarchical conference management, distributed deployment, full network reservation, and display and monitoring of conference status, and supports super administrators to forcibly close "low priority meetings". System functions include user management, device management, group management, permission management, conference reservation, conference review, conference scheduling, operation record query, real-time information and historical statistics. The visual network conference management system is an important tool for visual network video conferencing system maintenance personnel to manage and ensure the conference business of the entire network.
[0082] An embodiment of the present invention provides a data transmission method for transmitting high-definition video data. The execution subject of this embodiment is a data transmission device, which is arranged on a monitoring access server.
[0083] Reference Figure 1 , shows a flow chart of a data transmission method embodiment of the present invention, the method may specifically include the following steps:
[0084] S101, obtaining a first monitoring video data packet collected by a monitoring device;
[0085] Specifically, an embodiment of the present invention is applied to a data transmission system, which includes a visual networking network device, and the visual networking network device includes a monitoring access server, a conference management server, and a network management server.
[0086] When it is necessary to view the high-definition video surveillance of a certain monitoring device during a meeting, the user can select the high-definition video surveillance to be viewed on the Pamir Fusion Video Scheduling Platform. The Pamir Fusion Video Scheduling Platform sends a request to view the real-time monitoring video to the conference management server, and then the conference management server sees the monitoring video request and sends it to the monitoring access server. The monitoring access server obtains the first monitoring video data packet from the monitoring device, and the first monitoring video data is high-definition video data.
[0087] S102, parsing the first surveillance video data packet to determine the number of first identifiers and the number of second identifiers, wherein the first identifier and the second identifier are different;
[0088] Specifically, the monitoring access server parses the first monitoring video data packet to obtain video digital data, and counts the number of first identifiers and the number of second identifiers, for example, counts 0 and 1 in the video digital data respectively.
[0089] S103, determining a target data encoding type according to the first identification quantity and the second identification quantity, wherein the target data encoding type includes positive encoding or negative encoding;
[0090] Specifically, the monitoring access server determines the positive encoding type or the negative encoding type according to the first identification data and the second identification data;
[0091] For example, if the data of the first monitoring video data packet A is: 111000110001110001111011111;
[0092] If the data of the first monitoring video data packet B is: 0000001100011100011110110000;
[0093] The number of high bits and low bits in the first monitoring video data packet is counted respectively, that is, the number of high bit 1s and the number of low bit 0s, and the number of high bits and the number of low bits are determined.
[0094] If the high-order 1 in data A is more than 1, reverse coding is used; if reverse coding is used, the high-order 1 in data A is replaced with -1, and if it is -1, no data is sent;
[0095] If there are more low-order 0s in data B, forward coding is used; if forward coding is used, the low-order 0 in data B is replaced with -1. If it is -1, no data is sent;
[0096] Negative coded data A: -1-1-1000-1-1000-1-1-1000-1-1-1-10-1-1-1-1-1-1;
[0097] Forward encoding data B: -1-1-1-1-1-111-1-1-1111-1-1-11111-1-1-1-1;
[0098] S104, encoding the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet, wherein the second monitoring video data packet includes a destination address of a visual network terminal;
[0099] Specifically, the monitoring access server encodes the first monitoring video data packet according to the target data encoding type to obtain the encoded data, and packetizes the encoded data to obtain the second monitoring video data packet. The specific packet format includes: a packet header and positive and negative encoded data, wherein the packet header includes the source MAC address, source number, target MAC address, target number, encoding type, encoding type length and data length, wherein the source MAC address is the MAC address of the monitoring device, the source number is the virtual visual network number corresponding to the monitoring device, the target MAC address is the MAC address of the visual network terminal, the target number is the visual network number, and the encoding type is positive encoding or negative encoding.
[0100] S105. Send the second monitoring video data packet to the visual networking terminal corresponding to the destination address, so that the visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet.
[0101] Specifically, the monitoring access server sends the second monitoring video data packet to the visual network terminal corresponding to the destination address. The visual network terminal first receives the header of the second monitoring video data packet, obtains the target encoding type of the video data by parsing the header, and then receives the encoded data after receiving the header. The received data is decoded by the target decoding type corresponding to the obtained target encoding type to obtain the first monitoring video data packet. In this way, by performing positive and negative encoding and decoding on high-definition video data, the data transmission efficiency of existing visual network equipment is improved, and the problems of high-definition video transmission jamming and delay on the visual network are fundamentally solved.
[0102] The data transmission method provided by the embodiment of the present invention obtains a first monitoring video data packet collected by a monitoring device; parses the first monitoring video data packet to determine a first identification number and a second identification number, and determines a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding; encodes the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet; sends the second monitoring video data packet to a visual network terminal corresponding to a destination address, so that the visual network terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, encodes the first monitoring video data packet according to positive and negative encoding rules, and sends the encoded data to the visual network terminal, which then decodes according to positive and negative decoding rules to obtain the original first monitoring video data. In this way, the transmission amount on the data transmission link is reduced, high-definition data can be transmitted, and transmission efficiency is improved.
[0103] Another embodiment of the present invention further supplements the data transmission method provided by the above embodiment.
[0104] like Figure 2 As shown, a flowchart of another data transmission method embodiment of the present invention is shown. The embodiment of the present invention is applied to a data transmission system, which includes a visual network device, and the visual network device includes a monitoring access server, a conference management server, and a network management server. A time synchronizer, a positive and negative encoder, a positive and negative decoder, a time slot transmitter, and a time slot receiver are installed on the visual network device and the visual network terminal to improve the data transmission efficiency of the existing visual network device, and fundamentally solve the problem of high-definition video transmission jamming and delay on the visual network. The data transmission method includes:
[0105] S201, the visual network terminal and the non-master virtual terminal on the monitoring access server respectively send a network access authentication request to the network management server; and receive a network access success response returned by the network management server;
[0106] Specifically, the monitoring device needs to be connected to the monitoring access server, and the monitoring access server 1 is configured with multiple virtual terminals, namely, a master virtual terminal and multiple non-master virtual terminals. The master virtual terminal of the monitoring access server is mainly used to allocate monitoring access links, that is, to manage non-master virtual terminals, and the non-master virtual terminals are mainly used for link data identification and data transmission, that is, to receive and send high-definition video data of the monitoring device through the non-master virtual terminal.
[0107] S202: Send a conference joining authentication request to the conference management server; and receive a conference joining success response returned by the network management server.
[0108] Specifically, after each visual network terminal and non-master virtual terminal successfully joins the network, it sends a joining authentication request to the conference management server. If the authentication is successful, the network management server sends a joining success response to each visual network terminal and the monitoring access server.
[0109] S203: Receive a time synchronization instruction sent by the network management server, so that the monitoring access server corrects the local time according to the time synchronization instruction.
[0110] Specifically, after successfully joining the network and the conference, the network management server sends a time synchronization instruction to each visual network terminal, monitoring access server, and conference management server. In this way, after receiving the time synchronization instruction, each visual network terminal, monitoring access server, and conference management server corrects the local time in real time. Since the subsequent data transmission is based on time slots, the time of each visual network terminal, monitoring access server, and conference management server is synchronized to improve the accuracy of data transmission.
[0111] S204. When high-definition video surveillance is needed during a meeting, a surveillance video acquisition request is sent to a surveillance access server through the Pamir Fusion Video Scheduling Platform;
[0112] Specifically, users can select the HD video surveillance to be viewed through the Pamir Fusion Video Scheduling Platform and send a request to view the real-time surveillance video to the conference management server. The conference management server receives the request and forwards it to the monitoring access server. The monitoring access server receives the request and pulls the HD surveillance video data from the monitoring device.
[0113] S205. The monitoring access server receives a first monitoring video data packet sent by the monitoring device through the non-master virtual terminal, parses the first monitoring video data packet, and determines the number of first identifiers and the number of second identifiers, wherein the first identifier and the second identifier are different;
[0114] Specifically, the first monitoring video data packet is high-definition monitoring video data. The monitoring access server parses the high-definition monitoring video data, obtains the high-order data and the low-order data in the high-definition monitoring video data, and counts the number of high bits and the number of low bits in the monitoring video data, that is, the high bit is 1 and the low bit is 0.
[0115] S206. Determine a target data encoding type according to the first identification quantity and the second identification quantity, wherein the target data encoding type includes positive encoding or negative encoding;
[0116] Specifically, if the number of the first identifiers is greater than the number of the second identifiers, it is determined that the target data encoding type is a negative encoding type;
[0117] If the first identification quantity is less than the second identification quantity, it is determined that the target data encoding type is a forward encoding type.
[0118] Exemplarily, the first identifier may be a high-order identifier, such as 1, and the second identifier may be a low-order identifier, such as 0, and the number of high-order identifiers and the number of low-order identifiers are counted, and the data encoding method is determined according to the number of high-order bits and the number of low-order bits, and the data encoding method includes a positive encoding method or a negative encoding method;
[0119] If the number of high-order flags is greater than the number of low-order flags, that is, the number of 1s is greater than the number of 0s, negative encoding is used;
[0120] If the number of high-order flags is less than the number of low-order flags, that is, the number of 1s is less than the number of 0s, the forward encoding method is used.
[0121] S207. If the target data encoding type is a negative encoding type, the first data corresponding to the first identifier in the first monitoring video data packet is set as third identifier data to obtain third monitoring video data, wherein the third monitoring video data includes the third identifier data and the second data corresponding to the second identifier;
[0122] Encapsulating the third monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal to obtain the second monitoring video data packet;
[0123] Exemplarily, the data of the first monitoring video data packet A is: 111000110001110001111011111;
[0124] The number of high bits and low bits in the first monitoring video data packet is counted respectively, that is, the number of high bit 1s and the number of low bit 0s, and the number of high bits and the number of low bits are determined.
[0125] If the high-order 1 in data A is more than 1, reverse coding is used; if reverse coding is used, the high-order 1 in data A is replaced with -1, and if it is -1, no data is sent;
[0126] Negative coded data A: -1-1-1000-1-1000-1-1-1000-1-1-1-10-1-1-1-1-1-1;
[0127] In the time slot corresponding to -1, no data is sent, and data is only sent in the time slot corresponding to 0. In this way, the amount of data sent is reduced through encoding.
[0128] A time slot is a process of dividing a nanosecond into eight time periods. Each time period is counted as a time slot, and each time slot sends one bit. Sending a positive time slot means sending only the high bit of the data carried by the packet, and the placeholder -1 is not sent. When it is the turn of the slot to send -1, this time slot does not send data and automatically skips this time slot. Sending a negative time slot means sending only the low bit of the data carried by the packet, and the placeholder -1 is not sent. When it is the turn of the slot to send -1, this time slot does not send data and automatically skips this time slot.
[0129] The negatively encoded data A is the third monitoring video data, which is then packaged according to the packet format to obtain the second monitoring video data packet; the specific packet format includes: a packet header and positive and negative encoded data, wherein the packet header includes the source MAC address, source number, target MAC address, target number, encoding type, encoding type length and data length, wherein the source MAC address is the MAC address of the monitoring device, the source number is the virtual visual network number corresponding to the monitoring device, the target MAC address is the MAC address of the visual network terminal, the target number is the visual network number, and the encoding type is positive encoding or negative encoding.
[0130] S208. If the target data encoding type is a forward encoding type, the second data corresponding to the second identifier in the first monitoring video data packet is set as the third identifier data to obtain fourth monitoring video data, wherein the fourth monitoring video data includes the third identifier data and the first data corresponding to the first identifier;
[0131] The fourth monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal are encapsulated to obtain the second monitoring video data packet.
[0132] For example, if the data of the first monitoring video data packet B is: 0000001100011100011110110000;
[0133] The number of high bits and low bits in the first monitoring video data packet is counted respectively, that is, the number of high bit 1s and the number of low bit 0s, and the number of high bits and the number of low bits are determined.
[0134] If there are more low-order 0s in data B, forward coding is used; if forward coding is used, the low-order 0 in data B is replaced with -1. If it is -1, no data is sent;
[0135] Forward encoding data B: -1-1-1-1-1-111-1-1-1111-1-1-11111-1-1-1-1;
[0136] In the time slot corresponding to -1, no data is sent, and data is only sent in the time slot corresponding to 0. In this way, the amount of data sent is reduced through encoding.
[0137] A time slot is a process of dividing a nanosecond into eight time periods. Each time period is counted as a time slot, and each time slot sends one bit. Sending a positive time slot means sending only the high bit of the data carried by the packet, and the placeholder -1 is not sent. When it is the turn of the slot to send -1, this time slot does not send data and automatically skips this time slot. Sending a negative time slot means sending only the low bit of the data carried by the packet, and the placeholder -1 is not sent. When it is the turn of the slot to send -1, this time slot does not send data and automatically skips this time slot.
[0138] The forward encoded data B is the fourth monitoring video data, which is then packaged according to the packet format to obtain the second monitoring video data packet; the specific packet format includes: a packet header and positive and negative encoded data, wherein the packet header includes the source MAC address, source number, target MAC address, target number, encoding type, encoding type length and data length, wherein the source MAC address is the MAC address of the monitoring device, the source number is the virtual visual network number corresponding to the monitoring device, the target MAC address is the MAC address of the visual network terminal, the target number is the visual network number, and the encoding type is positive encoding or negative encoding.
[0139] S209: Send the second monitoring video data packet to the visual network terminal corresponding to the destination address.
[0140] Specifically, the step includes:
[0141] If the target data encoding type is a negative encoding type, then according to a preset time slot rule, in the time slot corresponding to the second data, the second data in the third monitoring video data is sent to the visual network terminal corresponding to the destination address;
[0142] or
[0143] If the target data encoding type is a forward encoding type, then according to a preset time slot rule, the first data in the fourth monitoring video data is sent to the visual network terminal corresponding to the destination address in the time slot corresponding to the first data.
[0144] Among them, the pre-set time slot rule is that the time slot means that one nanosecond is divided into eight time periods, each time period is counted as a time slot, and each time slot sends one bit. Positive time slot transmission means that only the high bit of the data carried by the packet is sent, and the placeholder -1 is not sent. When it is the turn of the slot to send -1, this time slot does not send data and automatically skips this time slot. Negative time slot transmission means that only the low bit of the data carried by the packet is sent, and the placeholder -1 is not sent. When it is the turn of the slot to send -1, this time slot does not send data and automatically skips this time slot.
[0145] For example, 1 nanosecond is divided into 8 time slots, and each time slot transmits one bit;
[0146] Negative coded data A: -1-1-1000-1-1;
[0147] Forward encoding data B: -1-1-1-1-1-111;
[0148] S210. The visual network terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet.
[0149] Specifically, the time slot receiver of the video network terminal first receives the data packet header and obtains the video data encoding type by parsing the packet header. After receiving the packet header, the time slot transmitter then receives the bearer data of the packet through the time slot. According to the data encoding type, it is determined whether the bearer data of the packet is received through the positive time slot or the negative time slot.
[0150] Positive time slot reception means receiving only the high bit. When a time slot receives a high bit, the high bit is added to the receive data queue. When the time slot does not receive the high bit, a placeholder -1 is added to the receive data queue. Negative time slot reception means receiving only the low bit. When a time slot receives a low bit, the low bit is added to the receive data queue. When the time slot does not receive the low bit, a placeholder -1 is added to the receive data queue.
[0151] After the time slot receiver receives the data packet, it sends the data packet to the positive and negative decoder. The positive and negative decoder parses the packet header of the data to obtain the data encoding type, and determines whether to use positive decoding or negative decoding based on the data encoding type. When using positive decoding, replace the placeholder -1 in the packet's bearer data with a low bit. When using negative decoding, replace the placeholder -1 in the packet's bearer data with a high bit. After the positive and negative decoder completes parsing the packet's bearer data, the visual network terminal can watch high-definition surveillance video.
[0152] Specifically, if the target data encoding type is a negative encoding type, step S210 includes:
[0153] Step A1, the visual networking terminal parses the second monitoring video data packet to obtain the negative coding type and the second data;
[0154] Step A2, the visual networking terminal sets the data of the time slot corresponding to the third identification data as the first data according to the preset time slot rule;
[0155] Step A3: The visual network terminal determines the first monitoring video data packet based on the first data and the second data.
[0156] If the target data encoding type is a forward encoding type, step S210 includes:
[0157] Step B1, the visual network terminal parses the second monitoring video data packet to obtain the forward coding type and the first data;
[0158] Step B2, the visual network terminal sets the data of the time slot corresponding to the third identification data as the second data according to the preset time slot rule;
[0159] Step B3: The visual network terminal determines the first monitoring video data packet based on the first data and the second data.
[0160] Figure 3 Schematic diagram of the structure of the data transmission system embodiment of the present invention. Figure 3 As shown, the data transmission system includes a visual network device, which includes a monitoring access server, a conference management server and a network management server, and a time synchronizer, a positive and negative encoder, a positive and negative decoder, a time slot transmitter and a time slot receiver are installed on the visual network device and the visual network terminal to improve the data transmission efficiency of the existing visual network device, and fundamentally solve the problem of high-definition video transmission jamming and delay on the visual network. The monitoring device needs to be connected to the monitoring access server. The monitoring access server is configured with multiple virtual terminals, namely a main virtual terminal and multiple non-main virtual terminals. The main virtual terminal of the monitoring access server is mainly used to allocate monitoring access links, and the non-main virtual terminal is mainly used for link data identification and data transmission.
[0161] The data transmission method includes:
[0162] (1) All virtual terminals and video network terminals need to authenticate to the network management server. Video network terminals in a meeting need to authenticate to the conference management server.
[0163] (2) The network management server continuously broadcasts time synchronization information to all network devices in the network. The network devices and terminals receive the time synchronization information and adjust the local time in real time.
[0164] (3) When high-definition video surveillance needs to be viewed during a meeting, the Pamir Fusion Video Scheduling Platform selects the high-definition video surveillance to be viewed and sends a request to the conference management server to view the real-time surveillance video. The conference management server receives the request and forwards it to the monitoring access server. The monitoring access server receives the request and pulls the high-definition surveillance video data from the monitoring device.
[0165] (4) The monitoring access server receives the high-definition monitoring video data sent by the monitoring device through the non-main virtual terminal, and counts the high and low bits in the monitoring video data, that is, the high bit is 1 and the low bit is 0, and determines the data encoding method according to the number of high bits and low bits, and the data encoding method includes a positive encoding method or a negative encoding method.
[0166] When the number of high bits is greater than the number of low bits, negative encoding will be used to set the high bits in the surveillance video data to -1;.
[0167] When the number of high bits is less than the number of low bits, forward coding is used to set the low bit in the surveillance video data to -1.
[0168] After the positive and negative encoding of the high-definition video data is completed, the positive and negative encoded data are packaged.
[0169] (5) The monitoring access server encapsulates the encoded data. The specific encapsulation format includes a packet header + positive and negative encoded data, wherein the packet header includes source MAC (monitoring device) + source number + target MAC (visual network terminal) + target number (visual network terminal) + encoding type (positive or negative encoding) + encoding type length + data length.
[0170] (6) After the packet is completed, the monitoring access server sends the packetized data to the time slot transmitter. The time slot transmitter first parses the packet's bearer data encoding type, and sends it to the corresponding visual network terminal according to the target visual network number in the packet header. Finally, based on the data encoding type, it determines whether the packet's bearer data is sent through the positive time slot or the negative time slot.
[0171] (7) A time slot is a process of dividing one nanosecond into eight time periods. Each time period is counted as a time slot, and each time slot transmits one bit. Positive time slot transmission means that only the high bit of the data carried by the packet is transmitted, and the placeholder -1 is not transmitted. When it is the turn of the slot transmitter to transmit -1, no data is transmitted in this time slot, and this time slot is automatically skipped. Negative time slot transmission means that only the low bit of the data carried by the packet is transmitted, and the placeholder -1 is not transmitted. When it is the turn of the slot transmitter to transmit -1, no data is transmitted in this time slot, and this time slot is automatically skipped.
[0172] (8) The time slot transmitter of the monitoring access server sends the data packet to the video network, and the video network terminal in the conference can receive the data packet. The time slot receiver of the video network terminal first receives the data packet header and obtains the video data encoding type by parsing the packet header. After receiving the packet header, the time slot receiver then receives the payload data of the packet through the time slot. According to the data encoding type, it is determined whether the payload data of the packet is received through the positive time slot or the negative time slot.
[0173] (9) Positive time slot reception means receiving only the high bit. When a time slot receives a high bit, the high bit is added to the receive data queue. When the time slot does not receive the high bit, a placeholder -1 is added to the receive data queue. Negative time slot reception means receiving only the low bit. When a time slot receives a low bit, the low bit is added to the receive data queue. When the time slot does not receive the low bit, a placeholder -1 is added to the receive data queue.
[0174] (10) After the time slot receiver of the visual network terminal receives the data packet, it sends the data packet to the positive and negative decoder. The positive and negative decoder parses the data packet header to obtain the data encoding type, and determines whether to use positive decoding or negative decoding based on the data encoding type. When using positive decoding, the placeholder -1 in the payload data of the packet is replaced with a low bit. When using negative decoding, the placeholder -1 in the payload data of the packet is replaced with a high bit. After the positive and negative decoder completes parsing the payload data of the packet, the visual network terminal can watch the high-definition surveillance video.
[0175] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0176] The data transmission method provided by the embodiment of the present invention obtains a first monitoring video data packet collected by a monitoring device; parses the first monitoring video data packet to determine a first identification number and a second identification number, and determines a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding; encodes the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet; sends the second monitoring video data packet to a visual network terminal corresponding to a destination address, so that the visual network terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, encodes the first monitoring video data packet according to positive and negative encoding rules, and sends the encoded data to the visual network terminal, which then decodes according to positive and negative decoding rules to obtain the original first monitoring video data. In this way, the transmission amount on the data transmission link is reduced, high-definition data can be transmitted, and transmission efficiency is improved.
[0177] Another embodiment of the present invention provides a data transmission device, which is used to execute the data transmission method provided in the above embodiment.
[0178] Reference Figure 4 , shows a structural block diagram of an embodiment of a data transmission device of the present invention, the device may specifically include the following modules: an acquisition module 401, a parsing module 402, a determination module 403, an encoding module 404 and a sending module 405, wherein:
[0179] The acquisition module 401 is used to acquire a first monitoring video data packet collected by a monitoring device;
[0180] The parsing module 402 is used to parse the first surveillance video data packet to determine the number of first identifiers and the number of second identifiers, wherein the first identifier and the second identifier are different;
[0181] The determination module 403 is used to determine the target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding;
[0182] The encoding module 404 is used to encode the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet, wherein the second monitoring video data packet includes a destination address of a visual network terminal;
[0183] The sending module 405 is used to send the second monitoring video data packet to the visual networking terminal corresponding to the destination address, so that the visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet.
[0184] The data transmission device provided by the embodiment of the present invention obtains a first monitoring video data packet collected by a monitoring device; parses the first monitoring video data packet to determine a first identification number and a second identification number, and determines a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding; encodes the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet; sends the second monitoring video data packet to a visual network terminal corresponding to a destination address, so that the visual network terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, encodes the first monitoring video data packet according to positive and negative encoding rules, and sends the encoded data to the visual network terminal, which then decodes according to positive and negative decoding rules to obtain the original first monitoring video data. In this way, the transmission amount on the data transmission link is reduced, high-definition data can be transmitted, and transmission efficiency is improved.
[0185] Another embodiment of the present invention further supplements the data transmission device provided in the above embodiment.
[0186] Optionally, the determining module 403 is used to:
[0187] If the first identification number is greater than the second identification number, determining that the target data encoding type is a negative encoding type;
[0188] If the first identification quantity is less than the second identification quantity, it is determined that the target data encoding type is a forward encoding type.
[0189] Optionally, the encoding module 404 is used to:
[0190] If the target data encoding type is a negative encoding type, the first data corresponding to the first identifier in the first monitoring video data packet is set as the third identifier data to obtain the third monitoring video data, wherein the third monitoring video data includes the third identifier data and the second data corresponding to the second identifier;
[0191] Encapsulating the third monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal to obtain the second monitoring video data packet;
[0192] or
[0193] If the target data encoding type is a forward encoding type, the second data corresponding to the second identifier in the first monitoring video data packet is set as the third identification data to obtain fourth monitoring video data, wherein the fourth monitoring video data includes the third identification data and the first data corresponding to the first identification;
[0194] The fourth monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal are encapsulated to obtain the second monitoring video data packet.
[0195] Optionally, the sending module 405 is used to:
[0196] If the target data encoding type is a negative encoding type, then according to a preset time slot rule, in the time slot corresponding to the second data, the second data in the third monitoring video data is sent to the visual network terminal corresponding to the destination address;
[0197] or
[0198] If the target data encoding type is a forward encoding type, then according to a preset time slot rule, the first data in the fourth monitoring video data is sent to the visual network terminal corresponding to the destination address in the time slot corresponding to the first data.
[0199] Optionally, the visual networking terminal includes a decoding module, and the decoding module is used to:
[0200] Parsing the second surveillance video data packet to obtain the negative coding type and the second data;
[0201] According to the preset time slot rule, the data of the time slot corresponding to the third identification data is set as the first data;
[0202] The first monitoring video data packet is determined according to the first data and the second data.
[0203] Optionally, the decoding module is further used to:
[0204] Parsing the second surveillance video data packet to obtain the forward encoding type and the first data;
[0205] According to the preset time slot rule, the data of the time slot corresponding to the third identification data is set as the second data;
[0206] The first monitoring video data packet is determined according to the first data and the second data.
[0207] Optionally, the device further comprises a correction module, wherein the correction module is used to:
[0208] A time synchronization instruction is received from the network management server, so that the monitoring access server corrects the local time according to the time synchronization instruction.
[0209] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0210] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0211] The data transmission device provided by the embodiment of the present invention obtains a first monitoring video data packet collected by a monitoring device; parses the first monitoring video data packet to determine a first identification number and a second identification number, and determines a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding; encodes the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet; sends the second monitoring video data packet to a visual network terminal corresponding to a destination address, so that the visual network terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, encodes the first monitoring video data packet according to positive and negative encoding rules, and sends the encoded data to the visual network terminal, which then decodes according to positive and negative decoding rules to obtain the original first monitoring video data. In this way, the transmission amount on the data transmission link is reduced, high-definition data can be transmitted, and transmission efficiency is improved.
[0212] Still another embodiment of the present invention provides a terminal device for executing the data transmission method provided in the above embodiment.
[0213] Figure 5 is a schematic diagram of the structure of a terminal device of the present invention, such as Figure 5 As shown, the terminal device includes: at least one processor 501 and a memory 502;
[0214] The memory stores a computer program; and the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the above embodiment.
[0215] The terminal device provided in this embodiment obtains a first monitoring video data packet collected by a monitoring device; parses the first monitoring video data packet to determine a first identification number and a second identification number, and determines a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding; encodes the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet; sends the second monitoring video data packet to a visual network terminal corresponding to a destination address, so that the visual network terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, encodes the first monitoring video data packet according to positive and negative encoding rules, and sends the encoded data to the visual network terminal, which then decodes according to positive and negative decoding rules to obtain the original first monitoring video data. In this way, the transmission amount on the data transmission link is reduced, high-definition data can be transmitted, and transmission efficiency is improved.
[0216] Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the data transmission method provided in any of the above embodiments is implemented.
[0217] According to the computer-readable storage medium of the present embodiment, a first monitoring video data packet collected by a monitoring device is obtained; the first monitoring video data packet is parsed to determine the first identification number and the second identification number, and the target data encoding type is determined according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding; according to the target data encoding type, the first monitoring video data packet is encoded to obtain a second monitoring video data packet; the second monitoring video data packet is sent to a visual network terminal corresponding to a destination address, so that the visual network terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, encodes the first monitoring video data packet according to positive and negative encoding rules, and sends the encoded data to the visual network terminal, which then decodes according to positive and negative decoding rules to obtain the original first monitoring video data. In this way, the transmission amount on the data transmission link is reduced, high-definition data can be transmitted, and the transmission efficiency is improved.
[0218] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0219] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of 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 disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0220] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, electronic devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, 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 electronic device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing electronic device generate instructions for implementing the processes in the flowchart and / or block diagram. 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.
[0221] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0222] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device so that a series of operating steps are executed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable electronic device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0223] 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 embodiments of the present invention.
[0224] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises one..." do not exclude the presence of other identical elements in the process, method, article or electronic device including the elements.
[0225] The data transmission method and the data transmission device provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A data transmission method, characterized in that: The method comprises: Acquire a first monitoring video data packet collected by a monitoring device; Parse the first surveillance video data packet to determine the number of first identifiers and the number of second identifiers, wherein the first identifier and the second identifier are different, the first identifier is the high-order data 1 in the first surveillance video data packet, and the second identifier is the low-order data 0 in the first surveillance video data packet; Determine a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes positive encoding or negative encoding; According to the target data encoding type, the first monitoring video data packet is encoded to obtain a second monitoring video data packet, wherein the second monitoring video data packet includes a destination address of a visual network terminal; Sending the second monitoring video data packet to the visual networking terminal corresponding to the destination address, so that the visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet; The determining the target data encoding type according to the first identification quantity and the second identification quantity includes: If the first identification number is greater than the second identification number, determining that the target data encoding type is a negative encoding type; If the first identification number is less than the second identification number, determining that the target data encoding type is a forward encoding type; The step of encoding the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet includes: If the target data encoding type is a negative encoding type, the first data corresponding to the first identifier in the first monitoring video data packet is set as the third identifier data to obtain the third monitoring video data, wherein the third monitoring video data includes the third identifier data and the second data corresponding to the second identifier, and the third identifier data is used to indicate that the data is not to be sent; Encapsulating the third monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal to obtain the second monitoring video data packet; or If the target data encoding type is a forward encoding type, the second data corresponding to the second identifier in the first monitoring video data packet is set to the third identification data to obtain fourth monitoring video data, wherein the fourth monitoring video data includes the third identification data and the first data corresponding to the first identification, and the third identification data is used to indicate that data is not to be sent; The fourth monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal are encapsulated to obtain the second monitoring video data packet.
2. The method according to claim 1, characterized in that The sending of the second monitoring video data packet to the visual network terminal corresponding to the destination address comprises: If the target data encoding type is a negative encoding type, then according to a preset time slot rule, in the time slot corresponding to the second data, the second data in the third monitoring video data is sent to the visual network terminal corresponding to the destination address; or If the target data encoding type is a forward encoding type, then according to a preset time slot rule, the first data in the fourth monitoring video data is sent to the visual network terminal corresponding to the destination address in the time slot corresponding to the first data.
3. The method according to claim 2, characterized in that The visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, including: The visual networking terminal parses the second monitoring video data packet to obtain the negative coding type and the second data; The visual networking terminal sets the data of the time slot corresponding to the third identification data as the first data according to the preset time slot rule; The visual networking terminal determines the first monitoring video data packet based on the first data and the second data.
4. The method according to claim 2, characterized in that: The visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet, including: The visual networking terminal parses the second monitoring video data packet to obtain the forward coding type and the first data; The visual networking terminal sets the data of the time slot corresponding to the third identification data as the second data according to the preset time slot rule; The visual networking terminal determines the first monitoring video data packet based on the first data and the second data.
5. The method according to claim 1, characterized in that Before acquiring the first monitoring video data packet collected by the monitoring device, the method further includes: A time synchronization instruction is received from the network management server, so that the monitoring access server corrects the local time according to the time synchronization instruction.
6. A data transmission device, characterized in that: The device comprises: An acquisition module, used for acquiring a first monitoring video data packet collected by a monitoring device, wherein the first identifier is high-order data 1 in the first monitoring video data packet, and the second identifier is low-order data 0 in the first monitoring video data packet; A parsing module, configured to parse the first surveillance video data packet to determine a first identification number and a second identification number, wherein the first identification and the second identification are different; A determination module, configured to determine a target data encoding type according to the first identification number and the second identification number, wherein the target data encoding type includes a positive encoding or a negative encoding; An encoding module, used for encoding the first monitoring video data packet according to the target data encoding type to obtain a second monitoring video data packet, wherein the second monitoring video data packet includes a destination address of a visual network terminal; A sending module, used for sending the second monitoring video data packet to a visual networking terminal corresponding to the destination address, so that the visual networking terminal decodes the second monitoring video data packet according to the target data encoding type to obtain the first monitoring video data packet; The determination module is used to determine that the target data encoding type is a negative encoding type if the first identification number is greater than the second identification number; if the first identification number is less than the second identification number, determine that the target data encoding type is a positive encoding type; The encoding module is used to: if the target data encoding type is a negative encoding type, set the first data corresponding to the first identifier in the first monitoring video data packet to the third identification data to obtain the third monitoring video data, wherein the third monitoring video data includes the third identification data and the second data corresponding to the second identification, and the third identification data is used to indicate that the data is not sent; encapsulate the third monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal to obtain the second monitoring video data packet; or If the target data encoding type is a forward encoding type, the second data corresponding to the second identifier in the first monitoring video data packet is set to the third identification data to obtain fourth monitoring video data, wherein the fourth monitoring video data includes the third identification data and the first data corresponding to the first identifier, and the third identification data is used to indicate that data is not sent; the fourth monitoring video data, the source address of the monitoring device and the destination address of the visual network terminal are encapsulated to obtain the second monitoring video data packet.
7. A terminal device, characterized in that: include: at least one processor and memory; The memory stores a computer program; The at least one processor executes the computer program stored in the memory to implement the data transmission method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the data transmission method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Low-power consumption encoding method for dynamic memory in video decoding application
CN102075759A
Image encoding and decoding method, device and system and storage medium
CN109922340A