A video data transmission method, system and storage medium

By realizing the unpacking, encoding, and decoding operations of the Ethernet interface module and FPGA chip at the sending and receiving ends of the KVM system, the Ethernet protocol and JPEG compression encoding are supported, which solves the problem that the KVM system does not support Ethernet high-definition data transmission. It improves the compatibility and scalability of the system and ensures the accuracy of data transmission through the TCP protocol.

CN117714736BActive Publication Date: 2024-08-30GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311706564.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-12
Publication Date
2024-08-30
Estimated Expiration
2043-12-12

AI Technical Summary

Technical Problem

The KVM optical moment system does not support the Ethernet interface for high-definition data transmission on the client side, which limits the functional compatibility and scalability of the system.

Method used

By implementing the Ethernet interface module at the sending end and receiving end of the KVM system, the FPGA chip is used to unpack, encode, decode and package the video data. It supports the Ethernet protocol and JPEG high-definition compression encoding to realize the transmission of high-definition video data, and The TCP protocol module is designed in the interface module to ensure the accuracy of data transmission.

Benefits of technology

It improves the functional compatibility and scalability of the KVM system, realizes the transmission of Ethernet high-definition video data, and enhances the data transmission accuracy of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714736B
    Figure CN117714736B
Patent Text Reader

Abstract

The present invention discloses a video data transmission method, system and storage medium. The method comprises: when a transmitting end receives video data, controlling the transmitting end to perform a first decoding, a first unpacking and a first data decoding on the video data to obtain image data; performing a first data encoding and a first packetizing on the image data to obtain first compressed data; sending the first compressed data to a KVM host, so that the KVM host sends the first compressed data to a receiving end; when the receiving end receives the first compressed data, controlling the receiving end to perform a second decoding, a second unpacking and a second data decoding on the first compressed data to obtain parsed data, performing a second data encoding and a second packetizing on the parsed data to obtain second compressed data; performing a third data encoding on the second compressed data and transmitting it to a corresponding display end, realizing the transmission of Ethernet high-definition video data through the receiving end and the transmitting end of the KVM system, thereby improving the compatibility and extensibility of the KVM system functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a video data transmission method, system and storage medium. Background Art

[0002] The existing KVM optical moment system supports the transmission of high-definition data through optical fiber, USB serial port and other communication methods, and supports the use of Ethernet protocol to transmit control information or data information within the system, which can realize the long-distance transmission of multi-channel high-definition video. Although the KVM optical moment system supports the use of Ethernet protocol to transmit control information or data information within the system at the sending end, it does not support the use of Ethernet interface for high-definition data transmission on the client side, which limits the compatibility of the KVM optical moment system functions and has a great impact on the extensibility of the KVM optical moment system functions. Summary of the invention

[0003] The present invention provides a video data transmission method, system and storage medium, which realize the transmission of Ethernet high-definition video data through a KVM system receiving end and a sending end, thereby improving the compatibility and extensibility of the KVM system function.

[0004] The present invention provides a video data transmission method, which is applied to a KVM system, wherein the KVM system comprises: a transmitting end, a receiving end and a KVM host;

[0005] The transmission method comprises:

[0006] When the transmitting end receives the video data, the transmitting end is controlled to perform first decoding, first unpacking and first data decoding on the video data to obtain image data; perform first data encoding and first packaging on the image data to obtain first compressed data; and send the first compressed data to the KVM host, so that the KVM host sends the first compressed data to the receiving end;

[0007] When the receiving end receives the first compressed data, the receiving end is controlled to perform a second decoding, a second unpacking and a second data decoding on the first compressed data to obtain parsed data, and perform a second data encoding and a second packaging on the parsed data to obtain second compressed data; the second compressed data is performed a third data encoding, and the second compressed data after the third data encoding is transmitted to the corresponding display end.

[0008] Furthermore, the sending end includes a first Ethernet interface module and a first FPGA module; the first Ethernet interface module includes a first interface and a first conversion module; the first interface includes a first receiving interface and a first sending interface; the first interface also includes a first TCP protocol module and a first UDP protocol module; the first TCP protocol module or the first TCP protocol module is used to transmit data in TCP format.

[0009] Further, the controlling the transmitting end to perform a first decoding, a first unpacking and a first data decoding on the video data to obtain the image data is specifically:

[0010] Receive video data through a first receiving interface, send the video data to a first conversion module, control the first conversion module to perform a first decoding on the video data, and send the decoded video data to a first FPGA module; control the first FPGA module to perform a first unpacking and a first data decoding on the decoded video data to obtain image data; the decoded video data is video data with a preset format, and the preset format includes: UDP format or TCP format.

[0011] Furthermore, the image data is subjected to a first data encoding and a first packetization to obtain first compressed data, specifically:

[0012] Control the first FPGA module to convert image data into YCrCb grayscale data; convert the YCrCb grayscale data into discrete wavelet transform coefficients as image frequency data; divide the image frequency data with a preset brightness quantization table and a preset chromaticity quantization table respectively to obtain uniform quantization data; encode the uniform quantization data according to a coding algorithm to obtain first coded data; pack the first coded data into a preset format to obtain first compressed data.

[0013] Further, sending the first compressed data to the KVM host so that the KVM host sends the first compressed data to the receiving end is specifically:

[0014] Control the first FPGA module to send the first compressed data to the first sending interface through the first conversion module, so that the first sending interface sends the first compressed data to the KVM host through Ethernet, so that the KVM host sends the first compressed data to the receiving end through Ethernet.

[0015] Furthermore, the receiving end includes a second Ethernet interface module and a second FPGA module; the second Ethernet interface module includes a second interface and a second conversion module; the second interface includes a second receiving interface and a second sending interface; the second interface also includes a second TCP protocol module and a second UDP protocol module; the second TCP protocol module or the second TCP protocol module is used to transmit data in TCP format.

[0016] Further, the controlling the receiving end performs second decoding, second unpacking and second data decoding on the first compressed data to obtain parsed data, and performs second data encoding and second packaging on the parsed data to obtain second compressed data, specifically:

[0017] Receive the first compressed data through the second receiving interface, send the first compressed data to the second conversion module, control the second conversion module to perform a second decoding on the first compressed data, and send the decoded first compressed data to the second FPGA module; control the second FPGA module to perform a second unpacking and second data decoding on the decoded first compressed data to obtain parsed data; the decoded first compressed data is compressed data with UDP format or TCP format; according to the encoding algorithm, perform a second data encoding on the parsed data to obtain second encoded data; package the second encoded data into a preset format to obtain second compressed data.

[0018] Further, performing a third data encoding on the second compressed data, and transmitting the second compressed data after the third data encoding to the corresponding display terminal, specifically:

[0019] The second compressed data is sent to a second conversion module, the second compressed data is encoded with a third data, and the encoded second compressed data is sent to a second sending interface, so that the second sending interface transmits the encoded second compressed data to a corresponding display terminal through a connected network cable.

[0020] As a preferred solution, the present invention realizes the support of the Ethernet interface protocol by the client through the Ethernet interface module at the sending end and the receiving end of the KVM system. The data is input and output from the KVM system through the Ethernet interface module, so as to realize the transmission of high-definition video data through Ethernet. In the KVM system, the FPGA chip is used to unpack, encode, decode and package the video data, so that the FPGA chip supports the transmission of the Ethernet protocol and JPEG high-definition compression encoding, so as to realize the transmission of high-definition video data. The present invention realizes the transmission of Ethernet high-definition video data through the receiving end and the sending end of the KVM system. In addition, the TCP protocol module in the Ethernet interface module is a reserved expansion function module. Since the TCP protocol ensures the accuracy of data transmission, the compatibility and extensibility of the KVM system functions are improved.

[0021] Other features and advantages of the present invention will be described in detail in the following detailed description.

[0022] Accordingly, the present invention also provides a video data transmission system, comprising: a sending end, a receiving end, a KVM host and a control end;

[0023] The transmitting end includes: a first Ethernet interface module and a first FPGA module; the first Ethernet interface module includes a first interface and a first conversion module; the first interface includes a first receiving interface and a first sending interface; the first interface also includes a first TCP protocol module and a first UDP protocol module; the first TCP protocol module or the first TCP protocol module is used to transmit data in TCP format

[0024] The first receiving interface is used to receive video data;

[0025] The first conversion module is used to perform a first decoding on the video data and send the decoded video data to the first FPGA module; the first conversion module is also used to receive the first compressed data sent by the first FPGA module and send the first compressed data to the first sending interface;

[0026] The first sending interface is used to send the first compressed data to the KVM host;

[0027] The first FPGA module is used to perform a first unpacking and a first data decoding on the video data decoded by the first conversion module to obtain image data; perform a first data encoding and a first packetization on the image data to obtain first compressed data;

[0028] The receiving end includes: a second Ethernet interface module and a second FPGA module; the second Ethernet interface module includes a second interface and a second conversion module; the second interface includes a second receiving interface and a second sending interface; the second interface also includes a second TCP protocol module and a second UDP protocol module; the second TCP protocol module or the second TCP protocol module is used to transmit data in TCP format;

[0029] The second receiving interface is used to receive the first compressed data and send the first compressed data to the second conversion module;

[0030] The second conversion module is used to perform a second decoding on the first compressed data, and send the decoded first compressed data to the second FPGA module;

[0031] The second FPGA module is used to perform a second unpacking and a second data decoding on the decoded first compressed data to obtain parsed data; perform a second data encoding and a second packetization on the parsed data to obtain second compressed data; perform a third data encoding on the second compressed data, and send the encoded second compressed data to the second sending interface;

[0032] The second sending interface is used to receive the second compressed data encoded by the second FPGA module, and transmit the encoded second compressed data to the corresponding display terminal;

[0033] The control end is used to control the sending end and the receiving end.

[0034] Correspondingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a video data transmission method as described in the content of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a flow chart of an embodiment of a method for transmitting video data provided by the present invention;

[0036] Figure 2 It is a structural schematic diagram of an embodiment of a video data transmission system provided by the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] Embodiment 1

[0039] Please refer to Figure 1 , a video data transmission method provided by an embodiment of the present invention is applied to a KVM system, wherein the KVM system comprises: a transmitting end, a receiving end and a KVM host; the transmission method comprises steps S101-S102:

[0040] Step S101: When the transmitting end receives the video data, the transmitting end is controlled to perform first decoding, first unpacking and first data decoding on the video data to obtain image data; perform first data encoding and first packaging on the image data to obtain first compressed data; and send the first compressed data to the KVM host, so that the KVM host sends the first compressed data to the receiving end;

[0041] Furthermore, the sending end includes a first Ethernet interface module and a first FPGA module; the first Ethernet interface module includes a first interface and a first conversion module; the first interface includes a first receiving interface and a first sending interface; the first interface also includes a first TCP protocol module and a first UDP protocol module; the first TCP protocol module or the first TCP protocol module is used to transmit data in TCP format.

[0042] In this embodiment, the first interface is connected to the first conversion module, and the first conversion module is connected to the first FPGA module;

[0043] As a preferred embodiment, the first interface is an RJ45 interface, which has a sending interface and a receiving interface, respectively, for sending and receiving data to the client, and the RJ45 interface is connected to the first conversion module using a GMII interface.

[0044] As a preferred implementation scheme, the first interface also includes a first TCP protocol module and a first UDP protocol module, so that the sending interface of the first interface can send data in TCP format and UDP format, and the receiving interface can receive data in TCP format and UDP format. In addition, the first TCP protocol module is designed with reserved expansion functions, which can be expanded through the first interface.

[0045] Further, the controlling the transmitting end to perform a first decoding, a first unpacking and a first data decoding on the video data to obtain the image data is specifically:

[0046] Receive video data through a first receiving interface, send the video data to a first conversion module, control the first conversion module to perform a first decoding on the video data, and send the decoded video data to a first FPGA module; control the first FPGA module to perform a first unpacking and a first data decoding on the decoded video data to obtain image data; the decoded video data is video data with a preset format, and the preset format includes: UDP format or TCP format.

[0047] As a preferred implementation, the first conversion module is a PHY chip, which is responsible for signal conversion. When receiving video data through the first receiving interface, the received video data is first decoded to obtain video data in UDP format or TCP format.

[0048] Furthermore, the image data is subjected to a first data encoding and a first packetization to obtain first compressed data, specifically:

[0049] Control the first FPGA module to convert image data into YCrCb grayscale data; convert the YCrCb grayscale data into discrete wavelet transform coefficients as image frequency data; divide the image frequency data with a preset brightness quantization table and a preset chromaticity quantization table respectively to obtain uniform quantization data; encode the uniform quantization data according to a coding algorithm to obtain first coded data; pack the first coded data into a preset format to obtain first compressed data.

[0050] In this embodiment, the first FPGA module includes a first UDP depacketizing module, a first JPEG compression decoding module, a first JPEG compression encoding module and a first UDP encapsulating module;

[0051] The first UDP depacketization module is used for performing UDP depacketization on the image data (first depacketization);

[0052] The first JPEG compression decoding module is used to perform first data decoding on the image data after UDP depacketization;

[0053] The first JPEG compression encoding module is used to perform JPEG compression encoding (first data encoding) on ​​the decoded image data. Preferably, the selected compression algorithm is JPEG-2000.

[0054] The first UDP packaging module is used to package the first encoded data into a UDP format to obtain first compressed data in a UDP format.

[0055] In this embodiment, the first FPGA module uses the first UDP unpacking module to perform the first unpacking on the decoded video data. If the decoded video data is video data in UDP format, the image data is parsed from the UDP data packet; the first JPEG compression decoding module is used to perform the first data decoding on the image data to obtain high-definition image data. If image processing is required for this part of the data in the middle, it can be taken to other modules for processing. The first JPEG compression encoding module is used to perform image encoding on the image data to obtain first encoded data. The first UDP packetization module is used to perform UDP packetization on the first encoded data to obtain first compressed data in UDP format.

[0056] Further, sending the first compressed data to the KVM host so that the KVM host sends the first compressed data to the receiving end is specifically:

[0057] Control the first FPGA module to send the first compressed data to the first sending interface through the first conversion module, so that the first sending interface sends the first compressed data to the KVM host through Ethernet, so that the KVM host sends the first compressed data to the receiving end through Ethernet.

[0058] In this embodiment, the sending end sends the first compressed data to the KVM host through the first sending interface via the network cable, opens the data path after finding the corresponding receiving end, and sends the first compressed data to the receiving end.

[0059] Step S102: When the receiving end receives the first compressed data, the receiving end is controlled to perform a second decoding, a second unpacking and a second data decoding on the first compressed data to obtain parsed data, and perform a second data encoding and a second packaging on the parsed data to obtain second compressed data; the second compressed data is performed a third data encoding, and the second compressed data after the third data encoding is transmitted to the corresponding display end.

[0060] Furthermore, the receiving end includes a second Ethernet interface module and a second FPGA module; the second Ethernet interface module includes a second interface and a second conversion module; the second interface includes a second receiving interface and a second sending interface; the second interface also includes a second TCP protocol module and a second UDP protocol module; the second TCP protocol module or the second TCP protocol module is used to transmit data in TCP format.

[0061] In this embodiment, the second interface is connected to the second conversion module, and the second conversion module is connected to the second FPGA module;

[0062] As a preferred embodiment, the second interface is an RJ45 interface, which has a sending interface and a receiving interface, respectively, for sending and receiving data to the client, and the RJ45 interface is connected to the second conversion module using a GMII interface.

[0063] As a preferred implementation scheme, the second interface also includes a second TCP protocol module and a second UDP protocol module, so that the sending interface of the second interface can send data in TCP format and UDP format, and the receiving interface can receive data in TCP format and UDP format. In addition, the second TCP protocol module is designed with reserved expansion functions, which can be expanded through the second interface.

[0064] Further, the controlling the receiving end performs second decoding, second unpacking and second data decoding on the first compressed data to obtain parsed data, and performs second data encoding and second packaging on the parsed data to obtain second compressed data, specifically:

[0065] Receive the first compressed data through the second receiving interface, send the first compressed data to the second conversion module, control the second conversion module to perform a second decoding on the first compressed data, and send the decoded first compressed data to the second FPGA module; control the second FPGA module to perform a second unpacking and second data decoding on the decoded first compressed data to obtain parsed data; the decoded first compressed data is compressed data with UDP format or TCP format; according to the encoding algorithm, perform a second data encoding on the parsed data to obtain second encoded data; package the second encoded data into a preset format to obtain second compressed data.

[0066] Further, performing a third data encoding on the second compressed data, and transmitting the second compressed data after the third data encoding to the corresponding display terminal, specifically:

[0067] The second compressed data is sent to a second conversion module, the second compressed data is encoded with a third data, and the encoded second compressed data is sent to a second sending interface, so that the second sending interface transmits the encoded second compressed data to a corresponding display terminal through a connected network cable.

[0068] Preferably, the second conversion module is a PHY chip, which performs second encoding on the packaged second compressed data before outputting the second compressed data to the corresponding display terminal to ensure that no errors occur during the transmission process.

[0069] In this embodiment, the second FPGA module includes a second UDP unpacking module, a second JPEG compression decoding module, a second JPEG compression encoding module and a second UDP packaging module;

[0070] The second UDP depacketization module is used for performing UDP depacketization on the second compressed data (second depacketization);

[0071] The second JPEG compression decoding module is used to perform second data decoding on the unpacked second compressed data to obtain parsed data;

[0072] The second JPEG compression encoding module is used to perform JPEG compression encoding (second data encoding) on ​​the parsed data to obtain second encoded data. Preferably, the selected compression algorithm is JPEG-2000.

[0073] The second UDP packaging module is used to package the second encoded data into a UDP format to obtain first compressed data in a UDP format.

[0074] In this embodiment, the receiving end receives the second compressed data sent from the Ethernet interface, and the PHY chip on the receiving end decodes to obtain data in the UDP message format; the data is sent to the second FPGA module, and the second UDP depacketization module inside the second FPGA module performs the second depacketization, and the second JPEG compression decoding module performs the second data decoding on the unpacked second compressed data to obtain the parsed data;

[0075] The second JPEG compression encoding module inside the second FPGA module performs JPEG-2000 encoding on the extracted parsed data to obtain second encoded data; since the second encoded data is to be transmitted via an Ethernet cable, the second encoded data is sent to the second UDP packetization module of the second FPGA module for UDP format packaging, and after completion, it is sent to the PHY chip on the receiving end for second encoding, and the encoded second compressed data is sent to the network cable connected to the RJ45 interface for transmission to the corresponding display end.

[0076] In this embodiment, the first JPEG compression coding module in the first FPGA module and the second JPEG compression coding module in the second FPGA module are both implemented by Verilog syntax, and each JPEG compression coding module includes a preprocessing module, a discrete wavelet transform module, a uniform quantization module, an adaptive arithmetic coding module and a code stream organization module;

[0077] Among them, since the JPEG encoding format uses YCrCb format data instead of the general RGB format, the preprocessing module is used to convert the format of the input data, that is, to convert the RGB data into YCrCb grayscale data;

[0078] The general FPEG encoding adopts discrete cosine transform, while JPEG-2000 adopts discrete wavelet transform encoding, which has better compression effect on image data; the discrete wavelet transform module is used to convert YCrCb grayscale data into DWT (discrete wavelet transform) coefficients to obtain processed image frequency data, which is similar to the convolution step at the beginning of image processing;

[0079] The uniform quantization module is used to divide the processed image frequency data with the 8*8 brightness quantization table and the 8*8 chrominance quantization table to obtain an approximate integer value, remove the high-frequency components in the image that are not sensitive to the human eye, and reduce the image data volume as much as possible while ensuring the integrity of the compressed data to obtain uniform quantized data;

[0080] The adaptive arithmetic coding module is used to compress the uniformly quantized data using Zig-Zag running code coding. Continuous 0s will appear in the data reordered according to the zig-zag table, which can be compressed to a greater extent and ensure image quality;

[0081] The code stream organization module is used to encode the compressed image using Huffman coding to obtain first coded data. The basic principle of Huffman coding is to adjust the code length according to the usage frequency of elements in the data, so as to obtain a higher compression ratio.

[0082] In this embodiment, the display end includes a display device of the client, such as a PC or a display.

[0083] In this embodiment, the high transmission rate of Ethernet is very suitable for the transmission of high-definition video data. The transmission delay of high-definition video data supporting Ethernet interface is very low, which is a good choice for video processing such as video splicing and high-definition video transmission. In addition, most PC devices support Ethernet technology, and KVM products can expand their functions through this interface.

[0084] Implementing the embodiments of the present invention has the following effects:

[0085] The present invention realizes the support of the Ethernet interface protocol by the client through the Ethernet interface modules at the transmitting end and the receiving end of the KVM system, and the data is input and output from the KVM system through the Ethernet interface module, so as to realize the transmission of high-definition video data through Ethernet. In the KVM system, the FPGA chip is used to unpack, encode, decode and package the video data, so that the FPGA chip supports the transmission of the Ethernet protocol and JPEG high-definition compression encoding, so as to realize the transmission of high-definition video data. The present invention realizes the transmission of high-definition video data through the receiving end and the transmitting end of the KVM system. In addition, the TCP protocol module in the Ethernet interface module is a reserved expansion function module. Since the TCP protocol ensures the accuracy of data transmission, the compatibility and extensibility of the KVM system functions are improved.

[0086] Embodiment 2

[0087] Please refer to Figure 2 , a video data transmission system provided by an embodiment of the present invention, comprising: a sending end 201, a receiving end 202, a KVM host 203 and a control end 204;

[0088] The sending end includes: a first Ethernet interface module and a first FPGA module; the first Ethernet interface module includes a first interface and a first conversion module; the first interface includes a first receiving interface and a first sending interface; the first interface also includes a first TCP protocol module and a first UDP protocol module; the first TCP protocol module or the first TCP protocol module is used to transmit data in TCP format.

[0089] The first receiving interface is used to receive video data;

[0090] The first conversion module is used to perform a first decoding on the video data and send the decoded video data to the first FPGA module; the first conversion module is also used to receive the first compressed data sent by the first FPGA module and send the first compressed data to the first sending interface;

[0091] The first sending interface is used to send the first compressed data to the KVM host;

[0092] The first FPGA module is used to perform a first unpacking and a first data decoding on the video data decoded by the first conversion module to obtain image data; perform a first data encoding and a first packetization on the image data to obtain first compressed data;

[0093] The first FPGA module includes a first UDP depacketizing module, a first JPEG compression decoding module, a first JPEG compression encoding module and a first UDP encapsulating module;

[0094] The first UDP depacketization module is used for performing UDP depacketization on the image data (first depacketization);

[0095] The first JPEG compression decoding module is used to perform first data decoding on the image data after UDP depacketization;

[0096] The first JPEG compression encoding module is used to perform JPEG compression encoding (first data encoding) on ​​the decoded image data. Preferably, the selected compression algorithm is JPEG-2000.

[0097] The first UDP packaging module is used to package the first encoded data into a UDP format to obtain first compressed data in a UDP format.

[0098] The receiving end includes: a second Ethernet interface module and a second FPGA module; the second Ethernet interface module includes a second interface and a second conversion module; the second interface includes a second receiving interface and a second sending interface; the second interface also includes a second TCP protocol module and a second UDP protocol module; the second TCP protocol module or the second TCP protocol module is used to transmit data in TCP format;

[0099] The second receiving interface is used to receive the first compressed data and send the first compressed data to the second conversion module;

[0100] The second conversion module is used to perform a second decoding on the first compressed data, and send the decoded first compressed data to the second FPGA module;

[0101] The second FPGA module is used to perform a second unpacking and a second data decoding on the decoded first compressed data to obtain parsed data; perform a second data encoding and a second packetization on the parsed data to obtain second compressed data; perform a third data encoding on the second compressed data, and send the encoded second compressed data to the second sending interface;

[0102] The second FPGA module includes a second UDP unpacking module, a second JPEG compression decoding module, a second JPEG compression encoding module and a second UDP packaging module;

[0103] The second UDP depacketization module is used for performing UDP depacketization on the second compressed data (second depacketization);

[0104] The second JPEG compression decoding module is used to perform second data decoding on the unpacked second compressed data to obtain parsed data;

[0105] The second JPEG compression encoding module is used to perform JPEG compression encoding (second data encoding) on ​​the parsed data to obtain second encoded data. Preferably, the selected compression algorithm is JPEG-2000.

[0106] The second UDP packaging module is used to package the second encoded data into a UDP format to obtain first compressed data in a UDP format.

[0107] The second sending interface is used to receive the second compressed data encoded by the second FPGA module, and transmit the encoded second compressed data to the corresponding display terminal;

[0108] The control end is used to control the sending end and the receiving end.

[0109] Specifically, the control end is used to control the sending end to perform first decoding, first unpacking and first data decoding on the video data to obtain image data when the sending end receives the video data; control the sending end to perform first data encoding and first packaging on the image data to obtain first compressed data; control the sending end to send the first compressed data to the KVM host, so that the KVM host sends the first compressed data to the receiving end;

[0110] When the receiving end receives the first compressed data, the receiving end is controlled to perform the second decoding, the second unpacking and the second data decoding on the first compressed data to obtain the parsed data; the receiving end is controlled to perform the second data encoding and the second packaging on the parsed data to obtain the second compressed data; the receiving end is controlled to perform the third data encoding on the second compressed data, and the second compressed data after the third data encoding is transmitted to the corresponding display end.

[0111] The above-mentioned video data transmission system can implement the video data transmission method of the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of this application can refer to the contents of the above-mentioned method embodiment, and will not be repeated in this embodiment.

[0112] Embodiment 3

[0113] Correspondingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the video data transmission method described in any one of the above embodiments.

[0114] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the terminal device.

[0115] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0116] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0117] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0118] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0119] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for transmitting video data, characterized in that: Applied to a KVM system, the KVM system comprises: a transmitting end, a receiving end and a KVM host; the transmitting end comprises a first Ethernet interface module and a first FPGA module; the first Ethernet interface module comprises a first interface and a first conversion module; the first interface comprises a first receiving interface and a first transmitting interface; the receiving end comprises a second Ethernet interface module and a second FPGA module; the second Ethernet interface module comprises a second interface and a second conversion module; the second interface comprises a second receiving interface and a second transmitting interface; The transmission method comprises: When the transmitting end receives the video data, the transmitting end is controlled to perform first decoding, first unpacking and first data decoding on the video data to obtain image data; and perform first data encoding and first packetization on the image data to obtain first compressed data; Sending the first compressed data to the KVM host so that the KVM host sends the first compressed data to the receiving end is specifically: Control the first FPGA module to send the first compressed data to the first sending interface through the first conversion module, so that the first sending interface sends the first compressed data to the KVM host through Ethernet, so that the KVM host sends the first compressed data to the receiving end through Ethernet; When the receiving end receives the first compressed data, controlling the receiving end to perform second decoding, second unpacking and second data decoding on the first compressed data to obtain parsed data, and performing second data encoding and second packaging on the parsed data to obtain second compressed data; Performing a third data encoding on the second compressed data, and transmitting the second compressed data after the third data encoding to the corresponding display terminal, specifically: The second compressed data is sent to a second conversion module, the second compressed data is encoded with a third data, and the encoded second compressed data is sent to a second sending interface, so that the second sending interface transmits the encoded second compressed data to a corresponding display terminal through a connected network cable.

2. A video data transmission method as claimed in claim 1, characterized in that: The first interface also includes a first TCP protocol module and a first UDP protocol module; the first TCP protocol module or the first TCP protocol module is used to transmit data in TCP format.

3. A video data transmission method as claimed in claim 2, characterized in that: The controlling the transmitting end to perform a first decoding, a first unpacking and a first data decoding on the video data to obtain the image data is specifically: Receive video data through a first receiving interface, send the video data to a first conversion module, control the first conversion module to perform a first decoding on the video data, and send the decoded video data to a first FPGA module; control the first FPGA module to perform a first unpacking and a first data decoding on the decoded video data to obtain image data; The decoded video data is video data with a preset format, and the preset format includes: UDP format or TCP format.

4. A video data transmission method as claimed in claim 3, characterized in that: The image data is subjected to a first data encoding and a first packetization to obtain first compressed data, specifically: Control the first FPGA module to convert the image data into YCrCb grayscale data; convert the YCrCb grayscale data into discrete wavelet transform coefficients as image frequency data; divide the image frequency data by a preset brightness quantization table and a preset chromaticity quantization table respectively to obtain uniform quantization data; According to a coding algorithm, the uniformly quantized data is encoded to obtain first encoded data; The first encoded data is packaged into a preset format to obtain first compressed data.

5. A video data transmission method as claimed in claim 1, characterized in that: The second interface also includes a second TCP protocol module and a second UDP protocol module; the second TCP protocol module or the second TCP protocol module is used to transmit data in TCP format.

6. A video data transmission method as claimed in claim 5, characterized in that: The controlling the receiving end to perform second decoding, second unpacking and second data decoding on the first compressed data to obtain parsed data, and performing second data encoding and second packaging on the parsed data to obtain second compressed data is specifically: Receive the first compressed data through the second receiving interface, send the first compressed data to the second conversion module, control the second conversion module to perform a second decoding on the first compressed data, and send the decoded first compressed data to the second FPGA module; control the second FPGA module to perform a second unpacking and second data decoding on the decoded first compressed data to obtain parsed data; the decoded first compressed data is compressed data in UDP format or TCP format; According to the encoding algorithm, the parsed data is subjected to second data encoding to obtain second encoded data; The second encoded data is packaged into a preset format to obtain second compressed data.

7. A video data transmission system, characterized in that: include: Sending end, receiving end, KVM host and control end; The transmitting end includes: a first Ethernet interface module and a first FPGA module; the first Ethernet interface module includes a first interface and a first conversion module; the first interface includes a first receiving interface and a first sending interface; the first interface also includes a first TCP protocol module and a first UDP protocol module; the first TCP protocol module or the first TCP protocol module is used to transmit data in TCP format The first receiving interface is used to receive video data; The first conversion module is used to perform a first decoding on the video data and send the decoded video data to the first FPGA module; the first conversion module is also used to receive the first compressed data sent by the first FPGA module and send the first compressed data to the first sending interface; The first sending interface is used to send the first compressed data to the KVM host via Ethernet, so that the KVM host sends the first compressed data to the receiving end via Ethernet; The first FPGA module is used to perform a first unpacking and a first data decoding on the video data decoded by the first conversion module to obtain image data; perform a first data encoding and a first packetization on the image data to obtain first compressed data; The receiving end includes: a second Ethernet interface module and a second FPGA module; the second Ethernet interface module includes a second interface and a second conversion module; the second interface includes a second receiving interface and a second sending interface; the second interface also includes a second TCP protocol module and a second UDP protocol module; the second TCP protocol module or the second TCP protocol module is used to transmit data in TCP format; The second receiving interface is used to receive the first compressed data and send the first compressed data to the second conversion module; The second conversion module is used to perform a second decoding on the first compressed data, and send the decoded first compressed data to the second FPGA module; The second FPGA module is used to perform a second unpacking and a second data decoding on the decoded first compressed data to obtain parsed data; perform a second data encoding and a second packetization on the parsed data to obtain second compressed data; perform a third data encoding on the second compressed data, and send the encoded second compressed data to the second sending interface; The second sending interface is used to receive the second compressed data encoded by the second FPGA module, and transmit the encoded second compressed data to the corresponding display terminal through the connected network cable; The control end is used to control the sending end and the receiving end.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, it controls the device where the computer-readable storage medium is located to execute a video data transmission method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • KVM optical matrix switching system

    CN106921834A

  • Data transmission method, system and device

    CN110868426A