CN111277591A - Improved data sending and receiving method, device and system - Google Patents

Improved data sending and receiving method, device and system Download PDF

Info

Publication number
CN111277591A
CN111277591A CN202010061754.3A CN202010061754A CN111277591A CN 111277591 A CN111277591 A CN 111277591A CN 202010061754 A CN202010061754 A CN 202010061754A CN 111277591 A CN111277591 A CN 111277591A
Authority
CN
China
Prior art keywords
data
module
udp protocol
specific
communication module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010061754.3A
Other languages
Chinese (zh)
Inventor
高炳海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lenkeng Technology Co Ltd
Original Assignee
Shenzhen Lenkeng Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lenkeng Technology Co Ltd filed Critical Shenzhen Lenkeng Technology Co Ltd
Priority to CN202010061754.3A priority Critical patent/CN111277591A/en
Publication of CN111277591A publication Critical patent/CN111277591A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Abstract

The application discloses an improved data sending and receiving method, device and system, which are used for obtaining multimedia data; processing the multimedia data to obtain first data in a YUV420 data format; compressing the first data through a distortion-free coding algorithm to obtain compressed second data, and encapsulating the second data through a UDP communication protocol to obtain a UDP protocol data packet; and sending the UDP protocol data packet to a first communication module through an input interface of the first communication module, wherein the first communication module is used for sending the UDP protocol data packet to a switch or a receiving end. By adopting the method and the device, the transmission cost can be reduced, a better solution is provided for the remote transmission of the high-definition video data, and the user experience is higher.

Description

Improved data sending and receiving method, device and system
Technical Field
The present application relates to the field of network communication technologies, and in particular, to an improved data sending and receiving method, apparatus, and system.
Background
At present, people have higher and higher requirements on video quality and longer requirements on video transmission distance, but ultrahigh-definition video data is large in amount and requires higher transmission bandwidth, but the existing ultrahigh-definition video is generally transmitted based on cables or network cables and is not friendly to long-distance transmission.
Disclosure of Invention
Based on the existing problems and the defects of the prior art, the application provides an improved data sending and receiving method, device and system, which provides a better solution for long-distance transmission of high-definition video data and has higher user experience.
In a first aspect, the present application provides an improved data transmission method, including:
acquiring multimedia data;
processing the multimedia data to obtain first data in a YUV420 data format;
packaging the first data through a UDP communication protocol to obtain a UDP protocol data packet;
and sending the UDP protocol data packet to the first communication module through an input interface of the first communication module.
In combination with the first aspect, in some alternative embodiments,
acquiring multimedia data, comprising:
acquiring multimedia data through three TMDS data channels of an HDMI (high-definition multimedia interface);
alternatively, the first and second electrodes may be,
acquiring multimedia data through an SDI (serial digital interface);
alternatively, the first and second electrodes may be,
and acquiring the multimedia data through the Type-C interface.
In combination with the first aspect, in some alternative embodiments,
the distortion-free coding algorithm comprises the following steps:
run length coding algorithm, Huffman coding algorithm, constant block coding algorithm of binary image, quad-tree coding algorithm or wavelet transform coding algorithm.
In combination with the first aspect, in some alternative embodiments,
when the distortion-free encoding algorithm is a run-length encoding algorithm,
compressing the first data through a distortion-free coding algorithm to obtain compressed second data, wherein the method comprises the following steps:
and compressing the redundant data in the first data through the run-length coding algorithm to obtain compressed second data.
In combination with the first aspect, in some alternative embodiments,
the sending the UDP protocol data packet to the first communication module through the input interface of the first communication module includes:
sending the UDP protocol data packet to a first optical module through an input interface of the first optical module; the first optical module is used for converting the UDP data packet into an optical signal; the first light module includes: the transmission rate is not lower than a first threshold value;
alternatively, the first and second electrodes may be,
sending the UDP protocol data packet to the first electrical module through an input interface of the first electrical module; the first electrical module includes: the communication module with the transmission rate not lower than the first threshold value; the communication module of which the transmission rate is not lower than the first threshold value comprises: a first physical transceiver, a first RJ45 interface.
In combination with the first aspect, in some alternative embodiments,
when the data format of the multimedia data is the RGB data format,
the processing the multimedia data to obtain the first data in the YUV420 data format includes:
converting the multimedia data in the RGB data format into the multimedia data in a YUV444 data format through a CSC algorithm, and sampling the multimedia data in the YUV444 data format to obtain first data in a YUV420 data format;
alternatively, the first and second electrodes may be,
when the data format of the multimedia data is YUV data format,
the processing the multimedia data to obtain the first data in the YUV420 data format includes:
and sampling the multimedia data in the YUV data format to obtain first data in a YUV420 data format.
In a second aspect, the present application provides an improved data receiving method, comprising:
acquiring a UDP protocol data packet from a second communication module through an output interface of the second communication module;
decapsulating the UDP protocol data packet through a UDP communication protocol to obtain second specific data, and decompressing the second specific data through a distortion-free decoding algorithm to obtain first specific data in a YUV420 data format;
and recovering the first specific data to obtain specific multimedia data.
In combination with the second aspect, in some alternative embodiments,
the distortion-free decoding algorithm comprises the following steps:
run decoding algorithm, Huffman decoding algorithm, constant block decoding algorithm of binary image, quadtree decoding algorithm or wavelet transform decoding algorithm.
In combination with the second aspect, in some alternative embodiments,
when the distortion-free decoding algorithm is a run-length decoding algorithm,
decompressing the second specific data through a distortion-free decoding algorithm to obtain the first specific data in the YUV420 data format, including:
decompressing the second specific data through the run decoding algorithm to obtain the first specific data in the YUV420 data format.
In combination with the second aspect, in some alternative embodiments,
the acquiring, by the output interface of the second communication module, the UDP protocol data packet from the second communication module includes:
acquiring a UDP protocol data packet from a second optical module through an output interface of the second optical module;
the second optical module is used for converting the optical signal acquired from the transmitting device or the switchboard into a UDP protocol data packet; the second light module includes: the transmission rate is not lower than a second threshold value;
alternatively, the first and second electrodes may be,
acquiring a UDP protocol data packet from a second electrical module through an output interface of the second electrical module;
the second electrical module is used for acquiring the UDP protocol data packet from the sending device or the switch; the second electrical module includes: the transmission rate is not lower than a second threshold value; the communication module of which the transmission rate is not lower than the second threshold value comprises: a second physical transceiver, a second RJ45 interface.
In a third aspect, the present application provides an improved data transmission apparatus, comprising: the device comprises an acquisition module, a processing module, a coding module, a packaging module and a first communication module; the obtaining module is configured to: acquiring multimedia data; the processing module is used for: processing the multimedia data to obtain first data in a YUV420 data format; the coding module is used for compressing the first data to obtain compressed second data; the encapsulation module is configured to encapsulate the second data through a UDP communication protocol to obtain a UDP protocol data packet, and the first communication module is configured to send the UDP protocol data packet; the sending apparatus is configured to perform the method of the first aspect.
In a fourth aspect, the present application provides an improved data receiving apparatus comprising: the device comprises a second communication module, a decapsulation module, a decoding module and a recovery module; the second communication module is used for acquiring a UDP protocol data packet from the sending device or the switch; the decapsulation module is configured to decapsulate the UDP protocol data packet to obtain second specific data; the decoding module is used for decompressing the second specific data to obtain first specific data in a YUV420 data format; the recovery module is used for recovering the first specific data to obtain specific multimedia data; the receiving device is configured to perform the method of the second aspect.
In a fifth aspect, the present application provides an improved data transmission system comprising: a transmitting device and a receiving device; the transmitting device is configured to perform the method of the first aspect; the receiving device is configured to perform the method of the second aspect.
The application provides an improved data sending and receiving method, device and system. The sending end processes the obtained multimedia data to obtain first data in a YUV420 data format, compresses the first data through a distortion-free coding algorithm to obtain compressed second data, and encapsulates the second data through a UDP communication protocol to obtain a UDP protocol data packet; sending the UDP protocol data packet to a first communication module through the first communication module; a receiving end acquires a UDP protocol data packet through a second communication module, decapsulates the UDP protocol data packet to acquire second specific data, and decompresses the second specific data through a distortion-free decoding algorithm to acquire first specific data in a YUV420 data format; and recovering the first specific data to obtain specific multimedia data. Compared with the prior art, the remote transmission of high-definition video data can be realized by adopting the optical module, and the user experience is higher.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an improved data transmission method provided in the present application;
fig. 2 is a schematic flow chart of an improved data receiving method provided in the present application;
fig. 3 is a schematic structural diagram of an improved data transmission device provided in the present application;
fig. 4 is a schematic structural diagram of another improved data transmission device provided in the present application;
fig. 5 is a schematic structural diagram of a further improved data transmission device provided in the present application;
fig. 6 is a schematic structural diagram of a further improved data transmission device provided in the present application;
fig. 7 is a schematic structural diagram of an improved data receiving device provided in the present application;
FIG. 8 is a schematic diagram of another improved data receiving device provided in the present application;
fig. 9 is a schematic structural diagram of a further improved data receiving device provided in the present application;
FIG. 10 is a schematic diagram of a further improved data receiving device provided by the present application;
FIG. 11 is a schematic diagram of an improved data transmission system provided by the present application;
FIG. 12 is a schematic diagram of another improved data transmission system provided herein;
fig. 13 is a schematic diagram of yet another improved data transmission system provided by the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the drawings in the present application, and the described embodiments are a part of the embodiments of the present application, but not all of the embodiments.
Referring to fig. 1, which is a schematic flow chart of an improved data transmission method provided in the present application, as shown in fig. 1, the method may include, but is not limited to, the following steps:
s101, multimedia data are obtained.
In the embodiment of the present application, acquiring multimedia data may include, but is not limited to, the following manners:
mode 1: the sending end obtains the multimedia data through the HDMI interface.
Specifically, the sending end may obtain the Multimedia data from the video source device (e.g., DVD, set top box, camera, etc.) through three TMDS (Transition Minimized Differential signal) data channels of the HDMI (High Definition Multimedia Interface) input Interface. The HDMI input interface may further include a clock channel.
Multimedia data may include, but is not limited to: such as text, data, sound, graphics, image or video (e.g., 1080P, 4K or 8K resolution, high definition video at a frame rate of 60FPS, 100FPS or 120 FPS), etc. The multimedia data may also include, but is not limited to, the following features: high Dynamic Range hdr (high Dynamic Range imaging).
Mode 2: the sending end obtains multimedia data through an SDI (serial digital interface) interface.
Mode 3: the sending terminal obtains multimedia data through the Type-C interface.
S102, processing the multimedia data to obtain first data in a YUV420 data format.
In the embodiment of the present application, processing the multimedia data to obtain the first data in the YUV420 data format may include, but is not limited to, the following two scenarios:
scene 1: if the data format of the multimedia data is the RGB data format, the multimedia data in the RGB data format is converted into the multimedia data in the YUV444 data format by a CSC (Color space converter) algorithm, and the multimedia data in the YUV444 data format is sampled, so as to obtain the first data in the YUV420 data format.
Scene 2: and if the data format of the multimedia data is the YUV data format, sampling the multimedia data in the YUV data format to obtain first data in the YUV420 data format.
If the multimedia data is in the RGB data format,
taking the data in 8 pixels as an example, if the data format in each pixel is YUV444 format, the data in the pixel in 8 YUV444 format can be expressed as follows:
YUV,YUV,YUV,YUV,YUV,YUV,YUV,YUV.
at this time, the memory space occupied by the data in the 8 YUV444 format pixels may be: 8 × 3bit 192 bit. Where 8 pixels, each pixel comprises Y, U, V three components, each component being representable by 8 bits. In other words, YUV444 format data, represents: each Y component corresponds to a set of UV components.
If the format of the data in each pixel is YUV422 format, the data in 8 YUV422 format pixels can be expressed as follows:
YUV,Y,YUV,Y,YUV,Y,YUV,Y.
at this time, the memory space occupied by the data in the 8 pixels in YUV422 format may be: 8 x 4bit 128 bit. In other words, YUV422 format data, representing: each two Y components corresponds to (share) a set of UV components.
If the format of the data in each pixel is YUV420 format, the data in 8 YUV420 format pixels can be expressed as follows:
Y,YUV,Y,Y,Y,YUV,Y,Y.
at this time, the memory space occupied by the data in the 8 YUV420 format pixels may be: 8 × 2 × 6bit is 96 bit. It should be noted that YUV420 format data, represents: every fourth Y component may correspond to (share) a set of UV components.
It should be noted that, taking data in 8 pixels as an example, data in YUV444 data format is processed to obtain data in YUV420 format; compared with the data in YUV444 format, the storage space occupied by the data in YUV420 data format in 8 pixels is half of the original storage space (96/192).
S103, compressing the first data through a distortion-free coding algorithm to obtain compressed second data, and encapsulating the second data through a UDP communication protocol to obtain a UDP protocol data packet.
In the embodiment of the present application, the distortion-free coding algorithm may include, but is not limited to:
run length coding algorithm, Huffman coding algorithm, constant block coding algorithm of binary image, quad-tree coding algorithm or wavelet transform coding algorithm.
It should be noted that, when the undistorted coding algorithm is a run-length coding algorithm,
compressing the first data through a distortion-free coding algorithm to obtain compressed second data, wherein the method comprises the following steps:
and the sending end compresses the redundant data in the first data through a run-length coding algorithm to obtain compressed second data.
For example, when the first data is bbbbbbbbbbtttttttjjjjaaauuu, the sending end may obtain the second data (10B5T5J5A3U) after compressing the first data by the run-length coding algorithm, thereby implementing compression of the redundant bits in the first data.
In summary, when the types of different colors in an image are few (in other words, the pixel values of a great number of pixel points in the image are the same), the data included in the image is encoded by the run-length encoding algorithm, so that the image data can be compressed to a greater extent; however, when the types of different colors in an image are very many or rich (in other words, the pixel values of very many pixels in the image are different), the data contained in the image is encoded by the run-length encoding algorithm, so that the image data can be compressed to a smaller extent.
When the distortion-free coding algorithm is a huffman coding algorithm,
compressing the first data through a distortion-free coding algorithm to obtain compressed second data, wherein the method comprises the following steps:
and the sending end compresses the redundant data in the first data through a Huffman coding algorithm to obtain compressed second data.
For example, when the first data is CASTCASTSATATATASA, where the character set is { C, a, S, T }, if equal length encoding is used, each character is encoded with equal length a:00, T:10, C:01, S:11, because the number of occurrences of each character is W ═ 2, 7, 4, 5}, the storage space required for the first data is (2+7+4+5) × 2 ═ 36.
When the sender adopts the Huffman coding algorithm to code the first data (CASTCASTSATATATASA), wherein, the character set is { C, A, S, T }, the occurrence probability of each character is {2/18, 7/18, 4/18, 5/18}, and the integer is {2, 7, 4, 5 }. And establishing a Huffman tree by taking the weight values as the weight values on each leaf node. The left branch is assigned 0 and the right branch is assigned 1. A is 0, T is 10, C is 110 and S is 111. Obtaining a storage space required by the encoded second data: 7 × 1+5 × 2+ (2+4) × 3 ═ 35. When the distortion-free encoding algorithm is a constant block encoding algorithm for a binary image,
compressing the first data through a distortion-free coding algorithm to obtain compressed second data, wherein the method comprises the following steps:
and the transmitting end compresses the redundant data in the first data through a constant block coding algorithm of the binary image to obtain compressed second data.
When the lossless coding algorithm is a quad-tree coding algorithm,
compressing the first data through a distortion-free coding algorithm to obtain compressed second data, wherein the method comprises the following steps:
and the sending end compresses the redundant data in the first data through a quadtree coding algorithm to obtain compressed second data.
When the distortion-free encoding algorithm is a wavelet transform encoding algorithm,
compressing the first data through a distortion-free coding algorithm to obtain compressed second data, wherein the method comprises the following steps:
and the sending end compresses the redundant data in the first data through a wavelet transform coding algorithm to obtain compressed second data.
In this embodiment of the application, encapsulating the second data through a UDP communication protocol to obtain a UDP protocol data packet, which may specifically include:
and the sending end adds a User Datagram Protocol (UDP) Protocol header and a UDP Protocol tail to the second data to obtain a UDP Protocol data packet comprising the second data, the UDP Protocol header and the UDP Protocol tail. The UDP header or the UDP trailer may include control information such as a destination address, a source address, a port number, and a flag bit.
And S104, sending the UDP protocol data packet to the first communication module through the input interface of the first communication module.
In this embodiment of the application, sending the UDP protocol packet to the first communication module through the input interface of the first communication module may include the following two cases:
case 1: the sending end can send the UDP protocol data packet to the first optical module through the input interface (such as XF1, XAUX, RAUX) of the first optical module; the first optical module is used for converting the UDP data packets into optical signals.
Wherein, first optical module includes: the single-fiber single-mode optical module with the transmission rate not lower than a first threshold value and the single-fiber multi-mode optical module with the transmission rate not lower than the first threshold value. Alternatively, the first threshold may be 10bps, but is not limited thereto.
Case 2: the sending end can send the UDP protocol data packet to the first electric module through the input interface of the first electric module; the first electrical module includes: and the transmission rate is not lower than the first threshold value.
When the first electrical module comprises: physical interface transceiver (PHY), RJ-45 interface,
specifically, the sending end may send the UDP protocol packet to the PHY through an input interface (e.g., XF1, XAUX, RAUX) of the PHY, and it should be noted that the sending end may output the UDP protocol packet through the RJ-45 interface through the PHY.
It should be noted that, sending the UDP protocol packet to the first communication module through the input interface of the first communication module may further include:
the sending end may send the UDP protocol packet to the outside of the first optical module through the input interface of the first optical module, and may also send the UDP protocol packet to the first electrical module through the input interface of the PHY in the first electrical module.
It should be noted that the first communication module may be configured to be communicatively connected to a switch, where the switch may include: a gigabit switch or a gigabit switch; the switch may also be: a stack switch.
Specifically, when the first communication module is a first optical module,
the transmitting end can transmit the obtained UDP protocol data packet to the first optical module based on the input interface of the first optical module, and the UDP protocol data packet is converted into an optical signal by the first optical module and then is transmitted to the switch through the optical port of the first optical module;
specifically, when the first communication module is the first electrical module,
the sending end can send the obtained UDP protocol data packet to the first electrical module based on the input interface of the first electrical module, and send the UDP protocol data packet to the switch through the electrical ports such as the RJ45 interface of the PHY in the first electrical module and the network cable.
It should be noted that the first communication module may be used for communication connection with a receiving end.
Specifically, when the first communication module is a first optical module,
the transmitting end can transmit the obtained UDP protocol data packet to the first optical module based on the input interface of the first optical module, and after converting the UDP protocol data packet into an optical signal by the first optical module, the UDP protocol data packet is transmitted to the receiving end through the optical port of the first optical module.
Specifically, when the first communication module is the first electrical module,
the transmitting end can transmit the obtained UDP protocol data packet to the first electrical module based on the input interface of the first electrical module, and transmit the UDP protocol data packet to the receiving end through the electrical ports such as the RJ45 interface of the PHY in the first electrical module and the network cable.
The embodiment of the application provides an improved data transmission method, and firstly, a sending end acquires multimedia data; further, the sending end processes the multimedia data to obtain first data in a YUV420 data format; then, the sending end compresses the first data through a distortion-free coding algorithm to obtain compressed second data, and encapsulates the second data through a UDP communication protocol to obtain a UDP protocol data packet; and finally, the transmitting end transmits the UDP protocol data packet to the first communication module through the input interface of the first communication module. To sum up, this application can reduce transmission cost, provides a better solution for high definition video data's remote transmission.
Referring to fig. 2, which is a schematic flow chart of an improved data receiving method provided in the present application, as shown in fig. 2, the method may include, but is not limited to, the following steps:
s201, obtaining a UDP protocol data packet from the second communication module through an output interface of the second communication module.
The obtaining of the UDP protocol data packet from the second communication module through the output interface of the second communication module may specifically include, but is not limited to, the following manners:
mode 1: the receiving end can acquire a UDP data packet from the second optical module through an output interface of the second optical module; wherein the second optical module includes: the single-fiber single-mode optical module with the transmission rate not lower than a second threshold value and the single-fiber multi-mode optical module with the transmission rate not lower than the second threshold value. Alternatively, the second threshold may be 10bps, but is not limited thereto.
Mode 2: the receiving end may obtain the UDP packet from the second electrical module via an output interface of the second electrical module. The second electrical module includes: and the transmission rate is not lower than a second threshold value.
When the second electrical module comprises: physical interface transceiver (PHY), RJ-45 interface,
in the method 2, the receiving end may obtain the UDP packet from the second electrical module through the output interface of the PHY of the second electrical module. It should be noted that the receiving end may obtain the UDP packet from the transmitting end or the switch through the RJ-45 interface of the second electrical module.
It should be noted that, in this embodiment of the application, before acquiring the UDP protocol packet from the second communication module through the output interface of the second communication module, the following two processing manners may also be included:
treatment method 1: and the receiving end acquires the UDP protocol data packet from the transmitting end through the second communication module.
In the processing mode 1, when the second communication module is the second optical module,
the receiving end can acquire the optical signal from the transmitting end through the input interface (such as XF1, XAUX, RAUX) of the second optical module, and convert the optical signal into a UDP protocol data packet through the second optical module.
When the second communication module is the second electrical module, the receiving end may obtain the UDP protocol data packet from the transmitting end through an input interface (e.g., XF1, XAUX, RAUX) of the PHY in the second electrical module.
Treatment method 2: the receiving end acquires the UDP protocol data packet from the switch through the second communication module, wherein the switch may include but is not limited to: a gigabit switch or a gigabit switch; the switch may also be: a stack switch.
In the processing mode 2, when the second communication module is the second optical module,
the receiving end can obtain the optical signal from the switch through the input interface (such as XF1, XAUX, RAUX) of the second optical module, and convert the optical signal into UDP protocol data packet through the second optical module.
When the second communication module is the second electrical module, the receiving end may obtain the UDP protocol data packet from the switch through an input interface (e.g., XF1, XAUX, RAUX) of the PHY in the second electrical module.
It should be noted that, before acquiring the UDP protocol data packet from the second communication module through the output interface of the second communication module, the method may further include:
the receiving end can obtain the UDP protocol data packet from the switch through the input interface of the second optical module, and can also obtain the UDP protocol data packet from the switch through the input interface of the PHY in the second optical module;
alternatively, the first and second electrodes may be,
the receiving end can obtain the UDP protocol data packet from the transmitting end through the input interface of the second optical module, and can also obtain the UDP protocol data packet from the transmitting end through the input interface of the PHY in the second optical module.
S202, decapsulating the UDP protocol data packet through a UDP communication protocol to obtain second specific data, and decompressing the second specific data through a distortion-free decoding algorithm to obtain first specific data in a YUV420 data format.
In this embodiment of the application, decapsulating the UDP protocol packet by using a UDP communication protocol to obtain the second specific data may specifically include, but is not limited to, the following steps:
and the receiving end removes the UDP protocol head and the UDP protocol tail of the UDP protocol data packet through the UDP communication protocol so as to obtain second specific data from the UDP protocol data packet.
It should be noted that the distortion-free decoding algorithm includes:
run decoding algorithm, Huffman decoding algorithm, constant block decoding algorithm of binary image, quadtree decoding algorithm or wavelet transform decoding algorithm.
When the distortion-free decoding algorithm is a run-length decoding algorithm,
decompressing the second specific data by a distortion-free decoding algorithm to obtain the first specific data in the YUV420 data format, including:
decompressing the second specific data by a run-length decoding algorithm to obtain the first specific data in the YUV420 data format.
When the distortion-free decoding algorithm is a huffman decoding algorithm,
decompressing the second specific data by a distortion-free decoding algorithm to obtain the first specific data in the YUV420 data format, including:
decompressing the second specific data by a Huffman decoding algorithm to obtain the first specific data in the YUV420 data format.
When the distortion-free decoding algorithm is a constant block decoding algorithm of a binary image,
decompressing the second specific data by a distortion-free decoding algorithm to obtain the first specific data in the YUV420 data format, including:
decompressing the second specific data through a constant block decoding algorithm of the binary image to obtain the first specific data in the YUV420 data format.
When the distortion-free decoding algorithm is a quadtree decoding algorithm,
decompressing the second specific data by a distortion-free decoding algorithm to obtain the first specific data in the YUV420 data format, including:
decompressing the second specific data by a quadtree decoding algorithm to obtain the first specific data in the YUV420 data format.
When the distortion-free decoding algorithm is a wavelet transform decoding algorithm,
decompressing the second specific data by a distortion-free decoding algorithm to obtain the first specific data in the YUV420 data format, including:
decompressing the second specific data through a wavelet transform decoding algorithm to obtain the first specific data in the YUV420 data format.
S203, restoring the first specific data to obtain specific multimedia data.
In the embodiment of the present application, the recovering the first specific data to obtain the specific multimedia data may include, but is not limited to, the following two scenarios:
scene 1: if the data of the specific multimedia data is in the RGB data format, the receiving end interpolates the first specific data to obtain the data in the YUV444 data format, and converts the data in the YUV444 data format into the specific multimedia data in the RGB data format through a CSC algorithm;
scene 2: if the data of the specific multimedia data is in the YUV data format, the receiving end interpolates the first specific data to obtain the specific multimedia data in the YUV444 data format or the specific multimedia data in the YUV422 data format.
It should be noted that, after the first specific data is recovered and the specific multimedia data is obtained, the following steps may be further included:
the receiving end can output the specific multimedia data to the display device through an output interface such as an HDMI interface, an SDI interface or a Type-C interface, wherein the display device can be used for displaying or playing the specific multimedia data.
It should be noted that, the method embodiment in fig. 2 is not described in definition and description, and reference may be made to the method embodiment in fig. 1, which is not described again in this application.
The present application provides an improved data transmission apparatus that may be used to implement the method described in the embodiment of fig. 1. The transmitting apparatus shown in fig. 3 can be used to implement the description in the embodiment of fig. 1.
As shown in fig. 3, the transmitting device 30 may include, but is not limited to: the device comprises an acquisition module 300, a processing module 301, an encoding module 302, an encapsulation module 303 and a first communication module 304.
An obtaining module 300 configured to: acquiring multimedia data;
the processing module 301 is configured to: processing the multimedia data to obtain first data in a YUV420 data format;
the encoding module 302 is configured to: compressing the first data to obtain compressed second data;
the encapsulation module 303 is configured to: packaging the second data through a UDP communication protocol to obtain a UDP protocol data packet, and inputting the UDP protocol data packet into the first communication module through an input interface of the first communication module;
a first communication module 304, configured to send a UDP protocol data packet.
The obtaining module 300 may be specifically configured to:
and acquiring the multimedia data through the HDMI interface or acquiring the multimedia data through the SDI interface.
The processing module 301 may be specifically configured to:
if the data format of the multimedia data is the RGB data format, converting the multimedia data in the RGB data format into the multimedia data in the YUV444 data format through a CSC algorithm, and sampling the multimedia data in the YUV444 data format to obtain first data in the YUV420 data format;
alternatively, the first and second electrodes may be,
and if the data format of the multimedia data is the YUV data format, sampling the multimedia data in the YUV data format to obtain first data in the YUV420 data format.
The encoding module 302 may be specifically configured to: and compressing the first data through a distortion-free coding algorithm to obtain compressed second data.
A distortion-free encoding algorithm comprising:
run length coding algorithm, Huffman coding algorithm, constant block coding algorithm of binary image, quad-tree coding algorithm or wavelet transform coding algorithm.
When the distortion-free encoding algorithm is a run-length encoding algorithm,
the encoding module 302 may be specifically configured to: and compressing redundant data in the first data through a run-length coding algorithm to obtain compressed second data.
The first communication module 304 may be configured to send the UDP protocol packet input to the first communication module 304 to a switch or a receiving device.
Specifically, the first communication module 304 may include: a first optical module;
the present application provides a schematic structural diagram of another transmitting apparatus, as shown in fig. 4, a first communication module 304 includes: the first light module 3041.
The sending device 30 can send the obtained UDP protocol data packet to the first optical module 3041 based on the input interface of the first optical module 3041, convert the UDP protocol data packet into an optical signal by the first optical module 3041, and send the optical signal to the switch or the receiving device through the optical port of the first optical module 3041.
Specifically, the first communication module 304 may include: a first electrical module;
the present application provides a schematic structural diagram of another transmitting apparatus, as shown in fig. 5, a first communication module 304 includes: a first electrical module 3042.
The sending device 30 may send the obtained UDP protocol packet to the first electrical module 3042 based on the input interface of the first electrical module 3042, and send the UDP protocol packet to a switch or a receiving device through an electrical port and a network such as an RJ45 interface of a PHY in the first electrical module 3042.
It should be noted that the first communication module 304 may further include: a first optical module and a first electrical module;
as shown in fig. 6, the first communication module 303 may include: a first light module 3041 and a first electrical module 3042.
The sending device 30 can send the obtained UDP protocol data packet to the first optical module 3041 based on the input interface of the first optical module 3041, convert the UDP protocol data packet into an optical signal by the first optical module 3041, and send the optical signal to the switch or the receiving device through the optical port of the first optical module 3041, and can also send the obtained UDP protocol data packet to the first electrical module 3042 based on the input interface of the first electrical module 3042, and send the data packet to the switch or the receiving device through the electrical port such as the RJ45 interface of the PHY in the first electrical module 3042 and the network cable.
It should be understood that the transmitting device 30 is only one example provided in the embodiments of the present application, and the transmitting device 30 may have more or less components than those shown, may combine two or more components, or may have a different configuration implementation of the components.
It can be understood that, as to the specific implementation manner of the functional modules included in the sending apparatus 30, reference may be made to the method embodiment shown in fig. 2, which is not described herein again.
Fig. 3-6 are merely illustrative of embodiments of the present application and should not be taken to be limiting.
The present application provides an improved data receiving device that may be used to implement the method described in the embodiment of fig. 2. The receiving apparatus shown in fig. 7 can be used to implement the description in the embodiment of fig. 2.
As shown in fig. 7, the receiving device 40 may include, but is not limited to: a second communication module 400, a decapsulation module 401, a decoding module 402, and a recovery module 403.
The second communication module 400 is configured to obtain a UDP protocol data packet from a sending device or a switch;
a decapsulation module 401, configured to decapsulate the UDP protocol data packet to obtain second specific data;
the decoding module 402 is configured to decompress the second specific data to obtain the first specific data in the YUV420 data format;
the recovery module 403 is configured to recover the first specific data to obtain specific multimedia data.
The recovery module 403 may be specifically configured to:
if the data of the specific multimedia data is in the RGB data format, interpolating the first specific data to obtain the data in the YUV444 data format, and converting the data in the YUV444 data format into the specific multimedia data in the RGB data format through a CSC algorithm;
alternatively, the first and second electrodes may be,
if the data of the specific multimedia data is in YUV data format, the first specific data is interpolated to obtain the specific multimedia data in YUV444 data format or the specific multimedia data in YUV422 data format.
The decoding module 402 is specifically operable to:
and decompressing the second specific data to obtain the first specific data in the YUV420 data format.
A distortion-free decoding algorithm comprising:
run decoding algorithm, Huffman decoding algorithm, constant block decoding algorithm of binary image, quadtree decoding algorithm or wavelet transform decoding algorithm.
When the distortion-free decoding algorithm is a run-length decoding algorithm,
the decoding module 402 is specifically operable to:
decompressing the second specific data by a run-length decoding algorithm to obtain the first specific data in the YUV420 data format.
Specifically, the second communication module 400 may include: a second optical module; the second light module may include: the transmission rate is not lower than a second threshold value; the second threshold may be: 10 Gbps.
The present application provides a schematic structural diagram of another receiving apparatus, as shown in fig. 8, a second communication module 400 includes: the second optical module 4001.
The receiving device 40 can convert the optical signals acquired from the transmitting device or the switch into UDP protocol data packets via the input interface (e.g., XF1, XAUX, RAUX) of the second optical module 4001.
Specifically, the second communication module 400 may include: a second electrical module; the second electrical module may include: the transmission rate is not lower than a second threshold value; the second threshold may be: 10 Gbps. The communication module having the transmission rate not lower than the second threshold may include: a second physical transceiver, a second RJ45 interface.
The present application provides a schematic structural diagram of another receiving apparatus, as shown in fig. 9, a second communication module 400 includes: a second electrical module 4002.
The receiving device 40 can retrieve UDP protocol packets from a transmitting device or switch via an input interface (e.g., XF1, XAUX, RAUX) of the second electrical module 4002.
It should be noted that the second communication module 400 may further include: a first optical module and a first electrical module;
the present application provides a schematic structural diagram of another receiving apparatus, as shown in fig. 10, the second communication module 400 may include: a first optical module 4001 and a first electrical module 4002.
The receiving device 40 can obtain the UDP protocol packet from the transmitting device or the switch through the input interface of the second electrical module 4002, in addition to converting the optical signal obtained from the transmitting device or the switch into the UDP protocol packet through the input interface of the second electrical module 4001.
It should be understood that the receiving device 40 is only one example provided by the embodiments of the present application, and that the receiving device 40 may have more or less components than those shown, may combine two or more components, or may have a different configuration implementation of the components.
It can be understood that, regarding the specific implementation manner of the functional modules included in the receiving apparatus 40, reference may be made to the method embodiment shown in fig. 2, which is not described herein again.
Fig. 7-10 are intended to illustrate embodiments of the present application and should not be taken to be limiting.
The present application provides a schematic diagram of an improved data transmission system, as shown in fig. 11, which may include, but is not limited to: a transmitting device 30, a receiving device 40, and a cable 50, wherein the transmitting device 30 can be used for executing the method described in the embodiment of fig. 1, and the receiving device 40 can be used for executing the method described in the embodiment of fig. 2.
Delivery device 30 may include, but is not limited to: the device comprises an acquisition module 300, a processing module 301, an encoding module 302, an encapsulation module 303 and a first communication module 304.
An obtaining module 300 configured to: acquiring multimedia data;
the processing module 301 is configured to: processing the multimedia data to obtain first data in a YUV420 data format;
the encoding module 302 is configured to: compressing the first data to obtain compressed second data;
the encapsulation module 303 is configured to: packaging the second data through a UDP communication protocol to obtain a UDP protocol data packet, and inputting the UDP protocol data packet into the second communication module through the input interface of the first communication module;
a first communication module 304, configured to send a UDP protocol data packet.
Receiving device 40 may include, but is not limited to: a second communication module 400, a decapsulation module 401, a decoding module 402, and a recovery module 403.
The second communication module 400 is configured to obtain a UDP protocol data packet from a sending device or a switch;
a decapsulation module 401, configured to decapsulate the UDP protocol data packet to obtain second specific data;
the decoding module 402 is configured to decompress the second specific data to obtain the first specific data in the YUV420 data format;
the recovery module 403 is configured to recover the first specific data to obtain specific multimedia data.
It should be noted that the transmitting device 30 and the receiving device 40 are connected by the cable 50, and the following scenarios may be included but not limited to:
scene 1: when the first communication module 303 is a first optical module, the cable 50 is an optical fiber, and the second communication module 400 is a second optical module, the transmitting device 30 and the optical fiber are communicatively connected to the receiving device 40 through the first optical module and the second optical module.
Scene 2: when the first communication module 303 is a first electrical module, the cable 50 is a network cable, and the second communication module 400 is a second electrical module, the transmitting device 30 is communicatively connected to the network cable and the receiving device 40 through an RJ45 interface of the first electrical module and an RJ45 interface of the second electrical module.
It can be understood that, regarding the specific implementation manner of the functional modules included in the system of fig. 11, reference may be made to the embodiments shown in fig. 1 to 10, which are not described herein again.
The present application provides a schematic diagram of another improved data transmission system, as shown in fig. 12, which may include, but is not limited to: a transmitting device 30, a receiving device 40, a cable 50 and a switch 60, wherein the transmitting device 30 can be used for executing the transmitting method described in the embodiment of fig. 1, and the receiving device 40 can be used for executing the receiving method described in the embodiment of fig. 2.
In the embodiment of the present application, the sending device 30 may send the obtained UDP protocol packet to the switch through the first communication module 300 and based on the cable 50. In particular, the method comprises the following steps of,
when the first communication module 300 is a first optical module and the cable 50 is an optical fiber,
the transmitting device 30 may transmit the obtained UDP protocol packet to the first optical module based on the input interface of the first optical module, convert the UDP protocol packet into an optical signal by the first optical module, and transmit the optical signal to the switch through the optical port of the first optical module based on the optical fiber.
When the first communication module 300 is a first electrical module and the cable 50 is a network cable,
the sending device 30 may send the obtained UDP protocol packet to the first electrical module based on the input interface of the first electrical module, and send the UDP protocol packet to the switch through the power port such as the RJ45 interface of the PHY in the first electrical module and the network cable.
It should be noted that, when the second communication module 400 is a second optical module and the cable 50 is an optical fiber,
the receiving means 40 may convert the optical signals obtained from the switch via the input interface of the second optical module (e.g. XF1, XAUX, RAUX) into UDP protocol data packets.
When the second communication module 400 is a second electrical module and the cable 50 is a network cable,
the receiving device 40 may retrieve UDP protocol packets from the switch via an input interface (e.g., XF1, XAUX, RAUX) of the second electrical module.
It can be understood that, regarding the specific implementation manner of the functional modules included in the transmission system of fig. 12, reference may be made to the embodiments shown in fig. 1 to 10, which are not described herein again.
The present application provides a schematic diagram of yet another improved data transmission system, as shown in fig. 13, which may include, but is not limited to: a transmitting device 30, a receiving device 40, a cable 50 and a switch 60, wherein the transmitting device 30 can be used for executing the transmitting method described in the embodiment of fig. 1, and the receiving device 40 can be used for executing the receiving method described in the embodiment of fig. 2.
In the embodiment of the present application, the sending device 30 may include, but is not limited to: a first transmitting device and a second transmitting device;
the receiving device 40 may include at least, but is not limited to: the device comprises a first receiving device and a second receiving device.
It should be noted that the plurality of transmitting devices included in the transmitting device 30 may be distributed in one or more different multicast domains; the plurality of receiving devices comprised by receiving device 40 may be distributed in one or more different multicast domains.
The data transmission system in the embodiment of the present application is described below by exemplifying various situations.
Case 1: the transmission system may include: multicast domain 1, wherein multicast domain 1 may include but is not limited to: the device comprises a first sending device and a first receiving device.
In case 1, the first transmitting device may transmit the UDP protocol packet to the switch 60 via the communication module of the first transmitting device based on the cable 50, and accordingly, the second receiving device may acquire the UDP protocol packet from the switch 60 via the communication module of the second receiving device based on the cable 50.
Specifically, when the communication module of the first transmitting device is an optical module, the cable 50 is an optical fiber, and the communication module of the first receiving device is an optical module,
the first transmitting device can transmit the obtained UDP protocol data packet to the optical module based on the input interface of the optical module of the first transmitting device, convert the UDP protocol data packet into an optical signal by the optical module of the first transmitting device, and transmit the optical signal to the switch based on the optical fiber through the optical port of the optical module of the first transmitting device.
The first receiving device can convert the optical signal obtained from the switch 60 into UDP protocol data packets via the input interface (e.g., XF1, XAUX, RAUX) of the optical module of the first receiving device.
When the communication module of the first transmitting device is an electrical module, the cable 50 is a network cable, and the communication module of the first receiving device is an electrical module,
the first transmitting device may transmit the obtained UDP packet to the electrical module of the first transmitting device based on the input interface of the electrical module of the first transmitting device, and transmit the UDP packet to the switch 60 through the power port and the network cable, such as the RJ45 interface of the PHY in the electrical module of the first transmitting device.
The first receiving device may retrieve UDP protocol packets from the switch 60 via an input interface (e.g., XF1, XAUX, RAUX) of the electrical module of the first receiving device.
Case 2: the transmission system may include: multicast domain 1, wherein multicast domain 1 may include but is not limited to: the device comprises a first sending device, a second sending device and a first receiving device.
In case 2, when the first transmitting device can transmit the UDP protocol packet to the switch 60 via the cable 50 through the communication module of the first transmitting device and the second transmitting device can transmit the UDP protocol packet to the switch 60 via the cable 50 through the communication module of the second transmitting device, accordingly, the first receiving device can acquire the UDP protocol packet transmitted by the first transmitting device and the UDP protocol packet transmitted by the second transmitting device from the switch 60 via the communication module of the first receiving device via the cable 50.
It should be noted that, for the application process of the apparatus described in case 2, reference may be made to a specific application processing process of the apparatus described in case 1, and details are not described here.
Case 3: the transmission system may include: multicast domain 1, wherein multicast domain 1 may include but is not limited to: the device comprises a first sending device, a first receiving device and a second receiving device.
In case 3, when the first transmitting device can transmit the UDP protocol packet to the switch 60 via the communication module of the first transmitting device via the cable 50, accordingly, the first receiving device can acquire the UDP protocol packet transmitted by the first transmitting device from the switch 60 via the communication module of the first receiving device via the cable 50, and the second receiving device can acquire the UDP protocol packet transmitted by the first transmitting device from the switch 60 via the communication module of the second receiving device via the cable 50. It should be noted that, the processing procedure of the apparatus described in case 2 can refer to the processing procedure of the apparatus described in case 1, and is not described herein again.
It should be noted that, for the application process of the apparatus described in case 3, reference may be made to a specific application processing process of the apparatus described in case 1, and details are not described here.
Case 4: the transmission system may include: multicast domain 1, wherein multicast domain 1 may include but is not limited to: the device comprises a first sending device, a second sending device, a first receiving device and a second receiving device.
In case 4, when the first transmitting device can transmit the UDP protocol packet to the switch 60 on the basis of the cable 50 through the communication module of the first transmitting device, the second transmitting device can transmit the UDP protocol packet to the switch 60 on the basis of the cable 50 through the communication module of the second transmitting device;
accordingly, the first receiving device can acquire the UDP protocol data packet sent by the first sending device and the UDP protocol data packet sent by the second sending device from the switch 60 through the communication module of the first receiving device based on the cable 50; also, the second receiving device can acquire the UDP protocol packet transmitted by the first transmitting device and the UDP protocol packet transmitted by the second transmitting device from the switch 60 through the communication module of the second receiving device based on the cable 50.
It should be noted that, for the application process of the apparatus described in case 4, reference may be made to a specific application processing process of the apparatus described in case 1, and details are not described here.
Case 5: the transmission system may include: a multicast domain 1 and a multicast domain 2; wherein, multicast domain 1: may include, but is not limited to: a first transmitting device and a first receiving device; multicast domain 2 may include, but is not limited to: a second transmitting device and a second receiving device.
In the multicast domain 1, when the first transmitting device can transmit the UDP protocol packet to the switch 60 via the communication module of the first transmitting device via the cable 50, accordingly, the first receiving device can acquire the UDP protocol packet transmitted by the first transmitting device from the switch 60 via the communication module of the first receiving device via the cable 50.
In the multicast domain 2, when the second transmitting device can transmit the UDP protocol packet to the switch 60 via the communication module of the second transmitting device via the cable 50, accordingly, the second receiving device can acquire the UDP protocol packet transmitted by the second transmitting device from the switch 60 via the communication module of the second receiving device via the cable 50.
It should be noted that, in different multicast domains, the communication processes of the devices do not affect each other. The application process of the device in case 5 can refer to the specific application processing process of the device in case 1, and is not described herein again.
Case 6: the transmission system may include: a multicast domain 1 and a multicast domain 2;
wherein, multicast domain 1: may include, but is not limited to: the device comprises a first sending device, a second sending device and a first receiving device; multicast domain 2: may include, but is not limited to: a third transmitting device, a second receiving device, and a third receiving device.
In the multicast domain 1, when the first transmitting device can transmit the UDP protocol packet to the switch 60 via the cable 50 through the communication module of the first transmitting device and the second transmitting device can transmit the UDP protocol packet to the switch 60 via the cable 50 through the communication module of the second transmitting device, accordingly, the first receiving device can acquire the UDP protocol packet transmitted by the first transmitting device and the UDP protocol packet transmitted by the second transmitting device from the switch 60 via the communication module of the first receiving device via the cable 50.
In the multicast domain 2, when the third transmitting device can transmit the UDP protocol packet to the switch 60 via the communication module of the third transmitting device via the cable 50, accordingly, the second receiving device can acquire the UDP protocol packet transmitted by the third transmitting device from the switch 60 via the communication module of the second receiving device via the cable 50, and the third receiving device can acquire the UDP protocol packet transmitted by the third transmitting device from the switch 60 via the communication module of the third receiving device via the cable 50.
It should be noted that, for the application process of the apparatus described in case 6, reference may be made to a specific application processing process of the apparatus described in case 1, and details are not described here.
Case 7: the transmission system may include: a multicast domain 1 and a multicast domain 2;
wherein, multicast domain 1: may include, but is not limited to: the device comprises a first sending device, a first receiving device and a second receiving device; multicast domain 2: may include, but is not limited to: a second transmitting device, a third receiving device and a fourth receiving device.
In the multicast domain 1, when the first sending device can send the UDP protocol packet to the switch 60 through the communication module of the first sending device based on the cable 50, accordingly, the first receiving device can obtain the UDP protocol packet sent by the first sending device from the switch 60 through the communication module of the first receiving device based on the cable 50, and the second receiving device can obtain the UDP protocol packet sent by the first sending device from the switch 60 through the communication module of the second receiving device based on the cable 50.
In the multicast domain 2, when the second sending device can send the UDP protocol packet to the switch 60 through the communication module of the second sending device based on the cable 50, accordingly, the third receiving device can obtain the UDP protocol packet sent by the second sending device from the switch 60 through the communication module of the third receiving device based on the cable 50, and the fourth receiving device can obtain the UDP protocol packet sent by the second sending device from the switch 60 through the communication module of the fourth receiving device based on the cable 50.
It should be noted that, for the application process of the apparatus described in case 7, reference may be made to a specific application processing process of the apparatus described in case 1, and details are not described here.
Case 8: the transmission system may include: a multicast domain 1 and a multicast domain 2;
wherein, multicast domain 1: may include, but is not limited to: the device comprises a first sending device, a second sending device and a first receiving device; multicast domain 2: may include, but is not limited to: a third transmitting device, a fourth transmitting device and a second receiving device.
In the multicast domain 1, when the first transmitting device can transmit the UDP protocol packet to the switch 60 via the cable 50 through the communication module of the first transmitting device and the second transmitting device can transmit the UDP protocol packet to the switch 60 via the cable 50 through the communication module of the second transmitting device, accordingly, the first receiving device can acquire the UDP protocol packet transmitted by the first transmitting device and the UDP protocol packet transmitted by the second transmitting device from the switch 60 via the communication module of the first receiving device via the cable 50.
In the multicast domain 2, when the third transmitting device can transmit the UDP protocol packet to the switch 60 via the cable 50 through the communication module of the third transmitting device and the fourth transmitting device can transmit the UDP protocol packet to the switch 60 via the cable 50 through the communication module of the fourth transmitting device, accordingly, the second receiving device can acquire the UDP protocol packet transmitted by the third transmitting device and the UDP protocol packet transmitted by the fourth transmitting device from the switch 60 via the communication module of the second receiving device via the cable 50.
It should be noted that, for the application process of the apparatus described in case 8, reference may be made to a specific application processing process of the apparatus described in case 1, and details are not described here.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other ways. For example, the components and steps of the various examples are described. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-described embodiments of the apparatus and device are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another apparatus, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices, apparatuses or modules, and may also be an electrical, mechanical or other form of connection.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. An improved data transmission method, comprising:
acquiring multimedia data;
processing the multimedia data to obtain first data in a YUV420 data format;
compressing the first data through a distortion-free coding algorithm to obtain compressed second data, and encapsulating the second data through a UDP communication protocol to obtain a UDP protocol data packet;
and sending the UDP protocol data packet to the first communication module through an input interface of the first communication module.
2. The method of claim 1,
the distortion-free coding algorithm comprises the following steps:
run length coding algorithm, Huffman coding algorithm, constant block coding algorithm of binary image, quad-tree coding algorithm or wavelet transform coding algorithm.
3. The method of claim 1,
when the distortion-free encoding algorithm is a run-length encoding algorithm,
compressing the first data through a distortion-free coding algorithm to obtain compressed second data, including:
and compressing the redundant data in the first data through the run-length coding algorithm to obtain compressed second data.
4. The method of claim 1,
the acquiring multimedia data comprises:
acquiring multimedia data through three TMDS data channels of an HDMI (high-definition multimedia interface);
alternatively, the first and second electrodes may be,
acquiring the multimedia data through an SDI interface;
alternatively, the first and second electrodes may be,
and acquiring the multimedia data through a Type-C interface.
5. The method of claim 1,
the sending the UDP protocol data packet to the first communication module through the input interface of the first communication module includes:
sending the UDP protocol data packet to a first optical module through an input interface of the first optical module; the first optical module is used for converting the UDP data packet into an optical signal; the first light module includes: the transmission rate is not lower than a first threshold value;
alternatively, the first and second electrodes may be,
sending the UDP protocol data packet to the first electrical module through an input interface of the first electrical module; the first electrical module includes: the communication module with the transmission rate not lower than the first threshold value; the communication module of which the transmission rate is not lower than the first threshold value comprises: a first physical transceiver, a first RJ45 interface.
6. The method of claim 1,
when the data format of the multimedia data is the RGB data format,
the processing the multimedia data to obtain the first data in the YUV420 data format includes:
converting the multimedia data in the RGB data format into the multimedia data in a YUV444 data format through a CSC algorithm, and sampling the multimedia data in the YUV444 data format to obtain first data in a YUV420 data format;
alternatively, the first and second electrodes may be,
when the data format of the multimedia data is YUV data format,
the processing the multimedia data to obtain the first data in the YUV420 data format includes:
and sampling the multimedia data in the YUV data format to obtain first data in a YUV420 data format.
7. An improved data reception method, comprising:
acquiring a UDP protocol data packet from a second communication module through an output interface of the second communication module;
decapsulating the UDP protocol data packet through a UDP communication protocol to obtain second specific data, and decompressing the second specific data through a distortion-free decoding algorithm to obtain first specific data in a YUV420 data format;
and recovering the first specific data to obtain specific multimedia data.
8. The method of claim 7,
the distortion-free decoding algorithm comprises the following steps:
run decoding algorithm, Huffman decoding algorithm, constant block decoding algorithm of binary image, quadtree decoding algorithm or wavelet transform decoding algorithm.
9. The method of claim 7,
when the distortion-free decoding algorithm is a run-length decoding algorithm,
decompressing the second specific data through a distortion-free decoding algorithm to obtain the first specific data in the YUV420 data format, including:
decompressing the second specific data through the run decoding algorithm to obtain the first specific data in the YUV420 data format.
10. The method of claim 7, wherein the method further comprises the step of applying a voltage to the substrate
When the data of the specific multimedia data is in the RGB data format,
the recovering the first specific data to obtain specific multimedia data includes:
interpolating the first specific data to obtain data in YUV444 data format, and converting the data in YUV444 data format into the specific multimedia data in RGB data format through a CSC algorithm;
alternatively, the first and second electrodes may be,
when the data of the specific multimedia data is in YUV data format,
the recovering the first specific data to obtain specific multimedia data includes:
interpolating the first specific data to obtain the specific multimedia data in YUV444 data format or the specific multimedia data in YUV422 data format.
11. The method of claim 7,
the acquiring, by the output interface of the second communication module, the UDP protocol data packet from the second communication module includes:
acquiring a UDP protocol data packet from a second optical module through an output interface of the second optical module; the second optical module is used for converting the optical signal acquired from the transmitting device or the switchboard into a UDP protocol data packet; the second light module includes: the transmission rate is not lower than a second threshold value;
or acquiring a UDP protocol data packet from the second electrical module through an output interface of the second electrical module; the second electrical module is used for acquiring the UDP protocol data packet from the sending device or the switch; the second electrical module includes: the transmission rate is not lower than a second threshold value; the communication module of which the transmission rate is not lower than the second threshold value comprises: a second physical transceiver, a second RJ45 interface.
12. An improved data transmission apparatus, comprising:
the device comprises an acquisition module, a processing module, a coding module, a packaging module and a first communication module; the obtaining module is configured to: acquiring multimedia data; the processing module is used for: processing the multimedia data to obtain first data in a YUV420 data format; the coding module is used for compressing the first data to obtain compressed second data; the encapsulation module is configured to encapsulate the second data through a UDP communication protocol to obtain a UDP protocol data packet, and the first communication module is configured to send the UDP protocol data packet; the transmitting device is configured to perform the method of any of claims 1-6.
13. An improved data receiving apparatus, comprising:
the device comprises a second communication module, a decapsulation module, a decoding module and a recovery module; the second communication module is used for acquiring a UDP protocol data packet; the decapsulation module is configured to decapsulate the UDP protocol data packet to obtain second specific data; the decoding module is used for decompressing the second specific data to obtain first specific data in a YUV420 data format; the recovery module is used for recovering the first specific data to obtain specific multimedia data; the receiving device is configured to perform the method of any of claims 7-11.
14. An improved data transmission system, comprising: a transmitting device and a receiving device; the transmitting device is configured to perform the method of any one of claims 1-6; the receiving device is configured to perform the method of any of claims 7-11.
CN202010061754.3A 2020-01-19 2020-01-19 Improved data sending and receiving method, device and system Pending CN111277591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010061754.3A CN111277591A (en) 2020-01-19 2020-01-19 Improved data sending and receiving method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010061754.3A CN111277591A (en) 2020-01-19 2020-01-19 Improved data sending and receiving method, device and system

Publications (1)

Publication Number Publication Date
CN111277591A true CN111277591A (en) 2020-06-12

Family

ID=71000729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010061754.3A Pending CN111277591A (en) 2020-01-19 2020-01-19 Improved data sending and receiving method, device and system

Country Status (1)

Country Link
CN (1) CN111277591A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187939A (en) * 2020-09-30 2021-01-05 深圳市朗强科技有限公司 Method and equipment for sending and receiving control instruction in long-distance transmission scene
CN112565823A (en) * 2020-12-09 2021-03-26 深圳市朗强科技有限公司 Method and equipment for sending and receiving high-definition video data
CN113365073A (en) * 2021-06-04 2021-09-07 深圳市朗强科技有限公司 Wireless transmitting and receiving method and device for ultra-high-definition video applying light compression algorithm

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857745A (en) * 2012-09-14 2013-01-02 福建星网视易信息系统有限公司 Device for transmitting high-resolution video and sending multimedia signals through FPGA (Field Programmable Gate Array)-based dual-kilomega internet interface
CN202816325U (en) * 2012-09-14 2013-03-20 福建星网视易信息系统有限公司 Dual Gigabit Ethernet port transmission high definition video and multimedia signal sending device based on FPGA
CN104135643A (en) * 2014-07-31 2014-11-05 深圳锐取信息技术股份有限公司 Long-distance high-definition transmission method and equipment
CN104427302A (en) * 2013-08-28 2015-03-18 北京计算机技术及应用研究所 Multichannel transmission subsystem and transmission method of superhigh-definition video image
US20160142461A1 (en) * 2013-06-21 2016-05-19 Zte Corporation Method and device for transmission of multimedia data
CN106790257A (en) * 2017-01-24 2017-05-31 深圳市朗强科技有限公司 IP-based multimedia transmission method and system
CN209731446U (en) * 2019-01-25 2019-12-03 深圳市朗强科技有限公司 A kind of sending device, reception device and the Transmission system of ultra high-definition video

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857745A (en) * 2012-09-14 2013-01-02 福建星网视易信息系统有限公司 Device for transmitting high-resolution video and sending multimedia signals through FPGA (Field Programmable Gate Array)-based dual-kilomega internet interface
CN202816325U (en) * 2012-09-14 2013-03-20 福建星网视易信息系统有限公司 Dual Gigabit Ethernet port transmission high definition video and multimedia signal sending device based on FPGA
US20160142461A1 (en) * 2013-06-21 2016-05-19 Zte Corporation Method and device for transmission of multimedia data
CN104427302A (en) * 2013-08-28 2015-03-18 北京计算机技术及应用研究所 Multichannel transmission subsystem and transmission method of superhigh-definition video image
CN104135643A (en) * 2014-07-31 2014-11-05 深圳锐取信息技术股份有限公司 Long-distance high-definition transmission method and equipment
CN106790257A (en) * 2017-01-24 2017-05-31 深圳市朗强科技有限公司 IP-based multimedia transmission method and system
CN209731446U (en) * 2019-01-25 2019-12-03 深圳市朗强科技有限公司 A kind of sending device, reception device and the Transmission system of ultra high-definition video

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187939A (en) * 2020-09-30 2021-01-05 深圳市朗强科技有限公司 Method and equipment for sending and receiving control instruction in long-distance transmission scene
CN112565823A (en) * 2020-12-09 2021-03-26 深圳市朗强科技有限公司 Method and equipment for sending and receiving high-definition video data
CN113365073A (en) * 2021-06-04 2021-09-07 深圳市朗强科技有限公司 Wireless transmitting and receiving method and device for ultra-high-definition video applying light compression algorithm

Similar Documents

Publication Publication Date Title
CN111277588A (en) Data sending and receiving method, device and system
CN111372097B (en) Receiving apparatus, display device, and receiving method
US20230102364A1 (en) Transmitting method, receiving method, transmitting device, and receiving device for high-definition video data
US11381869B2 (en) Transmitting method, receiving method, transmitting device, and receiving device for audio and video data in long-distance transmission
CN111277591A (en) Improved data sending and receiving method, device and system
US20210168426A1 (en) Transmitting method, receiving method, transmitting device, and receiving device
KR101492535B1 (en) Method, apparatus and system for generating and facilitating mobile high-definition multimedia interface
JP5736389B2 (en) Multi-channel signal transmission and detection in reduced channel format
EP3399752B1 (en) Image decoding method and decoding device
CN111083170A (en) Method and equipment for sending and receiving multimedia data
US11500804B2 (en) Method for transmitting control instruction, transmitting device, and receiving device
CN111510763A (en) WIFI-based sending and receiving method and device
US9106786B2 (en) Ethernet-based image transmitting/receiving system
US9686560B2 (en) Lossless data compression and decompression apparatus, system, and method
CN109831668B (en) Data compression method and device, data coding/decoding method and device
CN113365075A (en) Wired sending and receiving method and device of ultra-high-definition video applying light compression algorithm
CN213547715U (en) High-definition video data sending device, receiving device and transmission system
KR101783992B1 (en) Digital image transmitting/receiving system based on ethernet
CN210986124U (en) Transmitting and receiving device and system for audio and video data in long-distance transmission scene
EP3026908A1 (en) Method and device for quantizing and de-quantizing a picture using scaling factors for chrominance based on luminance
US20210204020A1 (en) Transmitting device, receiving device, transmitting method, and receiving method for multimedia data
CN110868391A (en) Remote transmission method, system and equipment
CN113365073A (en) Wireless transmitting and receiving method and device for ultra-high-definition video applying light compression algorithm
US20210227055A1 (en) Data transmitting method, data receiving method, transmitting device, receiving device, transmission system, and computer storage medium
CN113784140B (en) Mathematical lossless coding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200612