CN114760479A - Video transmission method, device and system - Google Patents

Video transmission method, device and system Download PDF

Info

Publication number
CN114760479A
CN114760479A CN202210501361.9A CN202210501361A CN114760479A CN 114760479 A CN114760479 A CN 114760479A CN 202210501361 A CN202210501361 A CN 202210501361A CN 114760479 A CN114760479 A CN 114760479A
Authority
CN
China
Prior art keywords
video
data
compression parameters
compression
receiving device
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
CN202210501361.9A
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.)
Hefei Hongjing Semiconductor Technology Co ltd
Original Assignee
Hefei Hongjing Semiconductor 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 Hefei Hongjing Semiconductor Technology Co ltd filed Critical Hefei Hongjing Semiconductor Technology Co ltd
Priority to CN202210501361.9A priority Critical patent/CN114760479A/en
Publication of CN114760479A publication Critical patent/CN114760479A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/015High-definition television systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present disclosure provides a video transmission method, device and system, the method includes: compressing a video to be transmitted according to preset compression parameters to obtain a compressed video; coding the compressed video to obtain video coded data; and sending the video coding data and the compression parameters to a receiving device so that the receiving device can decode the video coding data to obtain a decoded video, and decompressing the decoded video according to the compression parameters to obtain a target video. According to the embodiment of the disclosure, the resolution of the transmitted video can be improved, the power consumption is reduced, and the transmission stability is improved.

Description

Video transmission method, device and system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a video transmission method, apparatus, and system.
Background
A High-Definition multimedia Interface (HDMI) is a Digital Video/audio Interface technology, which is suitable for a dedicated Digital Interface for Video transmission, can transmit audio and Video signals simultaneously, and is mainly used for transmission between audio and Video signal sources (sources) such as a Digital Video Disc (DVD), a set-top box, and the like, and a Television (Television, TV), a display, and other terminal devices (Sink Device). Different versions of HDMI protocols have corresponding limitations on the maximum data rate and maximum video resolution that can be achieved. In the case of determining the HDMI protocol to be used for transmitting video data, it is difficult to further increase the resolution of the transmitted video.
Disclosure of Invention
The disclosure provides a video transmission method, device and system.
In a first aspect, the present disclosure provides a video transmission method applied to a sending apparatus, the video transmission method including: compressing a video to be transmitted according to preset compression parameters to obtain a compressed video; coding the compressed video to obtain video coded data; and sending the video coding data and the compression parameters to a receiving device so that the receiving device can decode the video coding data to obtain a decoded video, and decompressing the decoded video according to the compression parameters to obtain a target video.
In a second aspect, the present disclosure provides a video transmission method applied to a receiving apparatus, the video transmission method including: under the condition that the video coding data and the compression parameters are obtained through the sending device, decoding the video coding data to obtain a decoded video; the video coding data are data obtained by coding a compressed video, and the compressed video is a video obtained by compressing a video to be transmitted according to preset compression parameters; and decompressing the decoded video according to the compression parameters to obtain a target video.
In a third aspect, the present disclosure provides a transmitting apparatus, comprising: the compression module is used for compressing the video to be transmitted according to preset compression parameters to obtain a compressed video; the coding module is used for coding the compressed video to obtain video coding data; and the transmission module is used for sending the video coding data and the compression parameters to a receiving device so that the receiving device can decode the video coding data to obtain a decoded video, and decompressing the decoded video according to the compression parameters to obtain a target video.
In a fourth aspect, the present disclosure provides a receiving apparatus comprising: the decoding module is used for decoding the video coding data to obtain a decoded video under the condition that the video coding data and the compression parameters are obtained through the sending device; the video coding data are data obtained by coding a compressed video, and the compressed video is a video obtained by compressing a video to be transmitted according to preset compression parameters; and the decompression module is used for decompressing the decoded video according to the compression parameters to obtain a target video.
In a fifth aspect, the present disclosure provides a video transmission system comprising: at least one transmitting device; and a receiving device connected to the at least one transmitting device; the sending device is used for realizing the video transmission method in any one of the embodiments of the present disclosure; the receiving device is used for realizing the video transmission method in any one of the embodiments of the present disclosure.
In a sixth aspect, the present disclosure provides an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, the one or more computer programs being executable by the at least one processor to enable the at least one processor to perform the video transmission method described above.
In a seventh aspect, the present disclosure provides a computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor/processing core, implements the video transmission method described above.
According to the embodiment provided by the disclosure, a video to be transmitted is compressed at a sending end, then the compressed video is encoded, the video encoded data and the used compression parameters are sent to a receiving end, the video encoded data is decoded at the receiving end, and then the decoding data is decompressed according to the compression parameter information, so that the target video is obtained. The method can be used for improving the resolution of the transmitted video under the condition of not changing the video transmission protocol, and can also be used for reducing the data volume transmitted in unit time, thereby reducing the power consumption and improving the transmission stability.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the principles of the disclosure and not to limit the disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing in detail exemplary embodiments with reference to the attached drawings.
Fig. 1 is a schematic diagram of a video transmission system according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of a video transmission method according to an embodiment of the disclosure.
Fig. 3 is a flowchart of a video transmission method according to an embodiment of the disclosure.
Fig. 4 is a block diagram of a transmitting apparatus according to an embodiment of the disclosure.
Fig. 5 is a block diagram of a receiving apparatus according to an embodiment of the disclosure.
Fig. 6 is a schematic diagram of a video transmission system according to an embodiment of the disclosure.
Fig. 7 is a schematic diagram of a video transmission system according to an embodiment of the disclosure.
Fig. 8 is a schematic diagram of an operating process of a video transmission method according to an embodiment of the present disclosure.
Fig. 9 is a schematic diagram of an operating process of a video transmission method according to an embodiment of the present disclosure.
Fig. 10 is a block diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
To enable those skilled in the art to better understand the technical aspects of the present disclosure, exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the present disclosure are included to assist understanding, and they should be considered as being merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Embodiments of the disclosure and features of the embodiments may be combined with each other without conflict.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The data size of the video image is usually large, and a large amount of bandwidth and other transmission resources are required for transmitting the video data. Moreover, the higher the resolution of the video, the larger the amount of data, and the correspondingly more transmission resources are required.
Fig. 1 is a schematic diagram of a video transmission system according to an embodiment of the disclosure. Referring to fig. 1, the video transmission system includes a transmitter 101, a transmission line 102, and a receiver 103.
In one example, the video transmission system supports an HDMI protocol (e.g., HDMI1.0 or HDMI 2.0). After the input video data is encoded into a differential signal by the transmitter 101, the differential signal is transmitted to the transmission line 102(HDMI Cable) through an interface (e.g., Controller & PHY), the transmission line 102 transmits the differential signal to an interface (e.g., Controller & PHY) of the receiver 103, and the receiver 103 decodes the differential signal and then outputs the video to the outside. Since the HDMI protocol has a limit on the maximum frequency of data rate that can be transmitted, the maximum resolution at which the video transmission system can transmit video is correspondingly limited.
According to the video transmission method disclosed by the embodiment of the disclosure, the resolution of the transmitted video can be improved under the condition of not changing a video transmission protocol, and the data volume transmitted in unit time can also be reduced, so that the power consumption is reduced, and the transmission stability is improved.
The video transmission method according to the embodiment of the present disclosure may be executed by an electronic device such as a terminal device or a server, the terminal device may be a vehicle-mounted device, a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like, and the method may be implemented by a processor calling a computer-readable program instruction stored in a memory. Alternatively, the method may be performed by a server.
Fig. 2 is a flowchart of a video transmission method provided in an embodiment of the present disclosure, which is applied to a sending device. Referring to fig. 2, the method includes the following steps.
In step S21, the video to be transmitted is compressed according to the preset compression parameters, so as to obtain a compressed video.
In step S22, the compressed video is encoded to obtain video encoded data.
In step S23, the encoded video data and the compression parameters are sent to the receiving device, so that the receiving device decodes the encoded video data to obtain a decoded video, and decompresses the decoded video according to the compression parameters to obtain a target video.
According to the embodiment of the disclosure, on one hand, the resolution of the transmitted video can be improved under the condition of not changing the video transmission protocol, on the other hand, the data volume transmitted in unit time can be reduced, the power consumption of a video transmission system is reduced, and the transmission stability is improved.
In some possible implementations, the video to be transmitted is the video that the sending device is to transmit to the receiving device. The transmission video may be a video locally stored in advance by the sending device, or may also be a video instantly captured by the sending device, which is not limited in this disclosure.
In some possible implementations, the compression parameters refer to parameters used in compressing the video to be transmitted. According to different compression modes, types of compression parameters are correspondingly different, and the embodiment of the disclosure does not limit the compression mode of the video to be transmitted and does not limit the types of the compression parameters.
In some possible implementations, the video to be transmitted includes at least one first video frame, and the compression parameter includes a compression ratio. In step S21, compressing the video to be transmitted according to the preset compression parameter to obtain a compressed video, including: and compressing the first video frame in a preset direction according to the compression ratio to obtain a compressed video.
The preset direction includes a vertical direction (i.e., a y-axis direction) and/or a horizontal direction (i.e., an x-axis direction). The compression ratio corresponding to the vertical direction may be the same as or different from the compression ratio corresponding to the horizontal direction, and this is not limited in the embodiment of the present disclosure.
In one example, the preset direction is the vertical direction, and the compression ratio is 2:1, based on which, for each first video frame, it is compressed to half the original size in the vertical direction, thereby obtaining a compressed video.
In one example, the preset direction is the horizontal direction, the compression ratio is 3:1, and based on this, for each first video frame, it is compressed to 1/3 in the horizontal direction, so as to obtain a compressed video.
In one example, the preset direction includes both the vertical direction and the horizontal direction, and the compression ratio corresponding to the vertical direction is 2:1 and the compression ratio corresponding to the horizontal direction is 3:1, based on which, for each first video frame, it is compressed to half the original size in the vertical direction and to 1/3 in the horizontal direction, thereby obtaining a compressed video.
In some possible implementations, the compressed video may also be obtained by cutting and compressing first.
In some possible implementations, the video to be transmitted includes at least one first video frame, and the compression parameters include a slicing parameter and a compression ratio. In step S21, compressing the video to be transmitted according to the preset compression parameter to obtain a compressed video, including: firstly, cutting a first video frame according to cutting parameters to obtain a cut image; and secondly, compressing the cut image corresponding to the first video frame in a preset direction according to the compression ratio to obtain a compressed video, wherein the preset direction comprises a vertical direction and/or a horizontal direction.
It should be noted that, the above video compression technology is only an example, in practical applications, other methods or other standards may also be used to perform video compression, and the embodiment of the present disclosure does not limit the video compression technology. In one example, Video compression based on the VESA DSC (Video Electronics Standards Association, Video compression transmission) standard can achieve a 4-fold compression ratio, which can increase the maximum resolution of the Video to be transmitted to 4-fold the original maximum resolution (e.g., for the HDMI2.0 protocol, the maximum resolution of the Video transmission can be increased from 4096x2160@60Hz to 7960x4320@60 Hz).
In some possible implementations, in step S22, the compressed video is encoded in a manner including, but not limited to, MPEG (Moving Picture Experts Group), h.264, and h.265, and the embodiment of the present disclosure does not limit the video encoding method.
In some possible implementations, the video encoding data and the compression parameters are transmitted to the receiving device in the form of video data packets. Correspondingly, before step S23, the method further includes: and generating a video data packet according to the video coding data and the compression parameters. In step S23, the method for transmitting the video encoding data and the compression parameters to the receiving device includes: the video data packet is sent to a receiving device.
In some possible implementations, the video data is transmitted between the sending device and the receiving device by using a pre-agreed HDMI protocol. Since the HDMI protocol has a limit on the highest frequency of data rate that can be transmitted, the highest resolution of video that can be transmitted is correspondingly limited. For example, for the HDMI version 1.4 protocol, which specifies the highest data rate as single channel 3.4 gbits/second (bps), the corresponding maximum video resolution that can be transmitted is 4096x2160@30Hz (hertz); as another example, for the HDMI version 2.0 protocol, which specifies the highest data rate of 6Gbps per channel, the corresponding maximum video resolution that can be transmitted is 4096x2160@60 Hz. If the resolution of the transmitted video is to be improved, the HDMD protocol of a higher version needs to be upgraded, which may not be supported by hardware devices, and the high-version protocol has a relatively high requirement on hardware, which makes the hardware difficult. Based on this, the method of the embodiment of the present disclosure may be adopted to transmit video data.
In one example, in step S23, transmitting the video encoding data and the compression parameters to the receiving device includes: the video encoded data and the compression parameters are transmitted to the receiving device over the HDMI protocol. The resolution of the video to be transmitted is greater than the maximum resolution of HDMI protocol video transmission, and the resolution of the compressed video is less than or equal to the maximum resolution of the HDMI protocol video transmission.
In some possible implementations, the video data is transmitted between the sending device and the receiving device by using a pre-agreed HDMI protocol. For video meeting the resolution requirement of the HDMI protocol, although transmission can be performed in a conventional manner, the amount of data to be transmitted is large. If the mode of the embodiment of the disclosure is adopted for transmission, the data volume of transmission can be effectively reduced due to the fact that compression is carried out in advance, and therefore power consumption of a video transmission system is reduced, and meanwhile transmission stability can be improved.
In some possible implementations, in step S23, the sending the video coding data and the compression parameters to the receiving device includes: and transmitting the video coding data and the compression parameters to a receiving device through an HDMI protocol, wherein the resolution of the video to be transmitted meets the video resolution required by the HDMI protocol.
In summary, the video transmission method provided by the embodiment of the present disclosure is applicable to at least two types of scenes. The first kind of scenes are mainly used for improving the resolution of the transmitted video, and in the scenes, the resolution of the transmitted video can be improved in a mode of compressing the video in advance, then coding the video, decoding the received video coding data and then decompressing the video without changing the existing video transmission protocol; the second type of scenes are mainly used for reducing the transmitted data volume, and for videos with the same resolution and size, the videos are transmitted in a mode of compressing first and then encoding, so that the data volume transmitted by a single channel in unit time can be effectively reduced, the power consumption of a video transmission system is reduced, and the transmission stability is improved.
Fig. 3 is a flowchart of a video transmission method according to an embodiment of the disclosure, and is applied to a receiving apparatus. Referring to fig. 3, the method includes the following steps.
In step S31, when the transmission device acquires the encoded video data and the compression parameter, the encoded video data is decoded to obtain a decoded video.
The video coding data are data obtained by coding a compressed video, and the compressed video is a video obtained by compressing a video to be transmitted according to preset compression parameters.
And step S32, decompressing the decoded video according to the compression parameters to obtain the target video.
In some possible implementations, the sending device directly sends the video encoded data and the compression parameters to the receiving device, or the sending device first generates a video data packet according to the video encoded data and the compression parameters at the local end and then sends the video data packet to the receiving device. In the case of directly transmitting the above information, the receiving apparatus may directly acquire the video encoded data and the compression parameter, and in the case of transmitting the video packet, before performing step S31, the receiving apparatus further includes: and under the condition of receiving the video data packet sent by the sending device, analyzing the video data packet to obtain video coding data and compression parameters.
It should be understood that the video data packets should be data packets that satisfy the requirements of the transmission protocol between the sending device and the receiving device. For example, the HDMI protocol is agreed in advance between the transmitting device and the receiving device to transmit video data, and the video data packet should be a data packet satisfying the HDMI protocol.
In some possible implementations, in step S31, decoding the video encoded data to obtain a decoded video includes: the receiving device decodes the video coded data according to a predetermined decoding mode to obtain a decoded video.
In some possible implementations, the decoded video includes at least one second video frame, and the compression parameter includes a compression ratio. Accordingly, in step S32, decompressing the decoded video according to the compression parameters to obtain the target video, including: and decompressing the second video frame in a preset direction according to the compression ratio to obtain the target video, wherein the preset direction comprises a vertical direction and/or a horizontal direction.
In some possible implementations, the compression parameters include a cutting parameter and a compression ratio. Accordingly, in step S32, decompressing the decoded video according to the compression parameters to obtain the target video, including: firstly, decompressing a cut image corresponding to the same video frame in a decoded video in a preset direction according to a compression ratio to obtain a decompressed cut image; secondly, splicing decompressed cut images corresponding to the same video frame according to the cutting parameters to obtain a decompressed video frame; and finally, arranging the plurality of decompressed video frames according to a time sequence to obtain the target video.
In some possible implementations, the receiving device may further include a display module and is configured to play the target video, or the receiving device transmits the target video to an external display device for the external display device to play the target video.
It should be noted that there may not be complete agreement between the target video and the video to be transmitted. For example, when a video to be transmitted is compressed by a lossy compression method, even if a target video is obtained by a decompression operation, a certain loss is already introduced in the compression-decompression process, so that the target video and the video to be transmitted do not coincide completely. However, in general, the difference caused by such loss is small, and may not be perceived by human eyes, or even if perceived, is within an acceptable range, and does not affect the video viewing effect or has a small effect.
It is understood that the above-mentioned embodiments of the method of the present disclosure can be combined with each other to form a combined embodiment without departing from the principle logic, which is limited by the space, and the detailed description of the present disclosure is omitted. Those skilled in the art will appreciate that in the above methods of the specific embodiments, the specific order of execution of the steps should be determined by their function and possibly their inherent logic.
In addition, the present disclosure also provides a sending apparatus, a receiving apparatus, a video transmission system, an electronic device, and a computer-readable storage medium, which can all be used to implement any video transmission method provided by the present disclosure, and the corresponding technical solutions and descriptions and corresponding descriptions in the methods section are not repeated.
Fig. 4 is a block diagram of a transmitting apparatus according to an embodiment of the disclosure.
Referring to fig. 4, an embodiment of the present disclosure provides a transmission apparatus including the following.
The compression module 401 is configured to compress a video to be transmitted according to preset compression parameters, so as to obtain a compressed video.
And an encoding module 402, configured to encode the compressed video to obtain video encoded data.
The transmission module 403 is configured to send the video encoded data and the compression parameters to the receiving device, so that the receiving device decodes the video encoded data to obtain a decoded video, and decompresses the decoded video according to the compression parameters to obtain a target video.
In some possible implementations, the video to be transmitted includes at least one first video frame, and the compression parameter includes a compression ratio. Correspondingly, the compressing module 401 is configured to compress the first video frame in a preset direction according to a compression ratio, so as to obtain a compressed video, where the preset direction includes a vertical direction and/or a horizontal direction.
In some possible implementations, the video to be transmitted includes at least one first video frame, and the compression parameters include a slicing parameter and a compression ratio. Correspondingly, the compression module 401 includes a cutting unit and a compression unit, where the cutting unit is configured to cut the first video frame according to the cutting parameter to obtain a cut image; and the compression unit is used for compressing the cut image corresponding to the first video frame in a preset direction according to the compression ratio to obtain a compressed video, wherein the preset direction comprises a vertical direction and/or a horizontal direction.
In some possible implementations, the sending apparatus further includes a generating module, configured to generate a video data packet according to the video coding data and the compression parameter; accordingly, the transmission module 403 is configured to send the video data packet to the receiving device.
In some possible implementations, the transmission module 403 is configured to transmit the video encoded data and the compression parameter to the receiving device through an HDMI protocol, where a resolution of the video to be transmitted is greater than a maximum resolution of the HDMI protocol video transmission.
Fig. 5 is a block diagram of a receiving apparatus according to an embodiment of the disclosure.
Referring to fig. 5, an embodiment of the present disclosure provides a receiving apparatus, which includes the following.
A decoding module 501, configured to decode the encoded video data to obtain a decoded video when the encoded video data and the compression parameter are obtained by the sending apparatus.
The video coding data are data obtained by coding a compressed video, and the compressed video is a video obtained by compressing a video to be transmitted according to preset compression parameters.
And a decompression module 502, configured to decompress the decoded video according to the compression parameters to obtain a target video.
In some possible implementations, the transmitting device generates video data packets from the video encoded data and the compression parameters and transmits the video data packets to the receiving device. Correspondingly, the receiving device further comprises an analysis module, configured to analyze the video data packet to obtain video encoded data and compression parameters when the video data packet sent by the sending device is received.
In some possible implementations, the decoding module 501 is configured to decode the video encoded data according to a decoding manner predetermined with the sending apparatus, so as to obtain a decoded video.
In some possible implementations, the decoded video includes at least one second video frame, and the compression parameter includes a compression ratio. Correspondingly, the decompressing module 502 is configured to decompress the second video frame in a preset direction according to the compression ratio, so as to obtain the target video, where the preset direction includes a vertical direction and/or a horizontal direction.
In some possible implementations, the compression parameters include a cutting parameter and a compression ratio. Accordingly, the decompression module 502 includes a decompression unit, a concatenation unit, and a sorting unit. The decompression unit is used for decompressing the cut images corresponding to the same video frame in the decoded video in a preset direction according to the compression ratio to obtain decompressed cut images; the splicing unit is used for splicing the decompressed cutting images corresponding to the same video frame according to the cutting parameters to obtain a decompressed video frame; and the sequencing unit is used for arranging the plurality of decompressed video frames according to a time sequence, so that the target video is obtained.
Fig. 6 is a schematic diagram of a video transmission system according to an embodiment of the disclosure.
Referring to fig. 6, an embodiment of the present disclosure provides a video transmission system including: a transmitting device 610 and a receiving device 620. Wherein, the sending device comprises a compression module 611, an encoding module 612 and a transmission module 613, and the receiving device comprises a decoding module 621 and a decompression module 622.
In some possible implementations, the transmission module includes an interface of the transmitting device, an interface of the receiving device, and a cable supporting the HDMI protocol.
In one example, an interface of the transmitting device is connected to one end of an HDMI transmission line, and the other end of the HDMI transmission line is connected to an interface of the receiving device. Firstly, a video to be transmitted is compressed by a compression module according to compression parameters, a color video is encoded by an encoding module to obtain video encoding data, the video encoding data is transmitted to an interface of a receiving device through an HDMI transmission line through the interface of the transmitting device, a decoding module of the receiving device acquires the video encoding data from the interface of the receiving device, the video encoding data is decoded to obtain a decoded video, and the decoding video is decompressed by a decompression module to obtain a target video, so that the transmission of the video data between the transmitting device and the receiving device is realized.
It should be noted that, the transmitting apparatus and the receiving apparatus are apparatuses based on function division, and in practical applications, the functional modules in the transmitting apparatus or the receiving apparatus may be integrated in one hardware device, or may be integrated in two or more hardware devices, which is not limited in this disclosure.
Fig. 7 is a schematic diagram of a video transmission system according to an embodiment of the present disclosure.
Referring to fig. 7, the video transmission system includes a compressor 701, a transmitter 702, a transmission line 703, a receiver 704, and a decompressor 705.
In some possible implementations, the video transmission system transmits video data according to an HDMI protocol. The Transmitter 702 is a Transmitter (HDMI Transmitter, HDMI TR) supporting the HDMI protocol, and is provided with a first interface supporting the HDMI protocol, for connecting to the transmission line 703; similarly, the Receiver 704 is also a Receiver device (HDMI Receiver, HDMI RX) supporting the HDMI protocol, and a second interface supporting the HDMI protocol is provided thereon for connecting with the other end of the transmission line 703.
In some possible implementation manners, a video to be transmitted is input into the compressor 701, the compressor 701 compresses the video to be transmitted according to preset compression parameters to obtain a compressed video, and sends the compressed video and the compression parameters to the transmitter 702; the transmitter 702 encodes the compressed video and transmits the video encoded data and the compression parameters to the receiver 704 via the transmission line 703; the receiver 704 decodes the video encoded data to obtain a decoded video, and sends the decoded video and the compression parameters to the decompressor 705; the decompressor 705 decompresses the decoded video using the compression parameters, obtains a target video, and outputs the target video outward.
Fig. 8 is a schematic diagram of an operating process of a video transmission method according to an embodiment of the present disclosure. Referring to fig. 8, the operation process includes the following steps.
And step S81, the sending device compresses the first video frame of the video to be transmitted in a preset direction according to a preset compression ratio, and arranges the compressed video frames according to a time sequence to obtain the compressed video.
The compressed video comprises a plurality of compressed video frames, and each compressed video frame is a video frame obtained by compressing a corresponding first video frame.
In step S82, the transmitting apparatus encodes the compressed video according to a predetermined encoding method to obtain encoded video data.
In step S83, the transmitting device generates a video packet from the compression ratio and the video encoded data, and transmits the video packet to the receiving device via the HDMI protocol.
In step S84, the receiving device receives the video data packet and parses the video data packet to obtain the compression ratio and the video encoded data.
In step S85, the receiving device decodes the video encoded data according to the predetermined decoding method to obtain a decoded video.
Wherein the decoded video comprises a plurality of second video frames.
And step S86, the receiving device decompresses the second video frame of the decoded video in the preset direction according to the compression ratio, and sorts the decompressed video frames according to the time sequence to obtain the target video.
In step S87, the receiving device outputs the target video to the display device, and the display device plays the target video.
Fig. 9 is a schematic diagram of an operating process of a video transmission method according to an embodiment of the present disclosure. Referring to fig. 9, the operation process includes the following steps.
And step S91, the sending device cuts the first video frame of the video to be transmitted according to the preset cutting parameters to obtain a cut image.
And step S92, the sending device compresses the cut images corresponding to the first video frame in a preset direction according to a preset compression ratio, and arranges the compressed cut images according to a certain sequence to obtain a compressed video.
In step S93, the transmitting device encodes the compressed video according to a predetermined encoding method to obtain encoded video data.
In step S94, the transmitting device generates a video packet according to the slicing parameter, the compression ratio, and the video encoding data, and transmits the video packet to the receiving device via the HDMI protocol.
Step S95, the receiving device receives the video data packet and parses the video data packet to obtain the slicing parameter, the compression ratio and the video encoding data.
In step S96, the receiving device decodes the video encoded data according to a predetermined decoding method to obtain a decoded video.
And step S97, decompressing the cutting image corresponding to the same video frame in the decoded video in a preset direction according to the compression ratio by the receiving device to obtain the decompressed cutting image.
And step S98, splicing the decompressed cutting images corresponding to the same video frame by the receiving device according to the cutting parameters to obtain decompressed video frames, and sequencing the decompressed video frames according to the time sequence to obtain the target video.
In step S99, the receiving device outputs the target video to the display device, and the display device plays the target video.
Fig. 10 is a block diagram of an electronic device provided in an embodiment of the present disclosure.
Referring to fig. 10, an embodiment of the present disclosure provides an electronic device including: at least one processor 1001; at least one memory 1002, and one or more I/O interfaces 1003 coupled between the processor 1001 and the memory 1002; the memory 1002 stores one or more computer programs that can be executed by the at least one processor 1001, and the one or more computer programs are executed by the at least one processor 1001 to enable the at least one processor 1001 to execute the video transmission method.
The disclosed embodiments also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor/processing core, implements the video transmission method described above. The computer readable storage medium may be a volatile or non-volatile computer readable storage medium.
Embodiments of the present disclosure also provide a computer program product, which includes computer readable code or a non-volatile computer readable storage medium carrying computer readable code, when the computer readable code runs in a processor of an electronic device, the processor in the electronic device executes the above-mentioned video transmission method.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable storage media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable program instructions, data structures, program modules or other data, as is well known to those skilled in the art. Computer storage media includes, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), Static Random Access Memory (SRAM), flash memory or other memory technology, portable compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer. In addition, communication media typically embodies computer readable program instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as is well known to those skilled in the art.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
Computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the disclosure are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
The computer program product described herein may be embodied in hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK) or the like.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purposes of limitation. In some instances, features, characteristics and/or elements described in connection with a particular embodiment may be used alone or in combination with features, characteristics and/or elements described in connection with other embodiments, unless expressly stated otherwise, as would be apparent to one skilled in the art. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the disclosure as set forth in the appended claims.

Claims (11)

1. A video transmission method, comprising:
compressing a video to be transmitted according to preset compression parameters to obtain a compressed video;
coding the compressed video to obtain video coded data;
and sending the video coding data and the compression parameters to a receiving device so that the receiving device can decode the video coding data to obtain a decoded video, and decompressing the decoded video according to the compression parameters to obtain a target video.
2. The video transmission method according to claim 1, wherein said sending the video coding data and the compression parameters to a receiving device comprises:
and transmitting the video coding data and the compression parameters to the receiving device through a high-definition multimedia interface (HDMI) protocol, wherein the resolution of the video to be transmitted is greater than the maximum resolution of HDMI protocol video transmission.
3. The video transmission method according to claim 1, wherein the video to be transmitted includes at least one first video frame, and the compression parameter includes a compression ratio;
the compressing the video to be transmitted according to the preset compression parameters to obtain the compressed video includes:
and compressing the first video frame in a preset direction according to the compression ratio to obtain the compressed video, wherein the preset direction comprises a vertical direction and/or a horizontal direction.
4. The video transmission method according to claim 1, wherein the video to be transmitted includes at least one first video frame, and the compression parameters include a slicing parameter and a compression ratio;
the compressing the video to be transmitted according to the preset compression parameters to obtain the compressed video includes:
Cutting the first video frame according to the cutting parameters to obtain a cutting image;
and compressing the cut image corresponding to the first video frame in a preset direction according to the compression ratio to obtain the compressed video, wherein the preset direction comprises a vertical direction and/or a horizontal direction.
5. The video transmission method according to claim 1, wherein before sending the video coding data and the compression parameters to a receiving device, the method further comprises:
generating a video data packet according to the video coding data and the compression parameters;
the sending the video coding data and the compression parameters to a receiving device comprises:
and sending the video data packet to the receiving device.
6. A method of video transmission, comprising:
under the condition that the video coding data and the compression parameters are obtained through the sending device, decoding the video coding data to obtain a decoded video;
the video coding data are data obtained by coding a compressed video, and the compressed video is a video obtained by compressing a video to be transmitted according to preset compression parameters;
And decompressing the decoded video according to the compression parameters to obtain a target video.
7. The video transmission method according to claim 6, wherein the decoded video comprises at least one second video frame, and the compression parameter comprises a compression ratio;
the decompressing the decoded video according to the compression parameters to obtain a target video, including:
decompressing the second video frame in a preset direction according to the compression ratio to obtain the target video, wherein the preset direction comprises a vertical direction and/or a horizontal direction.
8. The video transmission method according to claim 6, wherein the transmitting device generates video data packets from the video coded data and the compression parameters, and transmits the video data packets to the receiving device;
the method, when the encoded video data and the compression parameter are acquired by the transmitting device, further includes, before decoding the encoded video data to obtain a decoded video:
and under the condition of receiving the video data packet transmitted by the transmitting device, analyzing the video data packet to obtain the video coding data and the compression parameters.
9. A transmitting apparatus, comprising:
the compression module is used for compressing the video to be transmitted according to preset compression parameters to obtain a compressed video;
the coding module is used for coding the compressed video to obtain video coding data;
and the transmission module is used for sending the video coding data and the compression parameters to a receiving device so that the receiving device can decode the video coding data to obtain a decoded video, and decompressing the decoded video according to the compression parameters to obtain a target video.
10. A receiving apparatus, comprising:
the decoding module is used for decoding the video coded data to obtain a decoded video under the condition that the video coded data and the compression parameters are obtained by the sending device;
the video coding data are data obtained by coding a compressed video, and the compressed video is a video obtained by compressing a video to be transmitted according to preset compression parameters;
and the decompression module is used for decompressing the decoded video according to the compression parameters to obtain a target video.
11. A video transmission system, comprising:
At least one transmitting device; and
a receiving device connected to the at least one transmitting device; wherein,
the sending device is used for realizing the video transmission method according to any one of claims 1-5;
the receiving device is used for implementing the video transmission method according to any one of claims 6 to 8.
CN202210501361.9A 2022-05-09 2022-05-09 Video transmission method, device and system Pending CN114760479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210501361.9A CN114760479A (en) 2022-05-09 2022-05-09 Video transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210501361.9A CN114760479A (en) 2022-05-09 2022-05-09 Video transmission method, device and system

Publications (1)

Publication Number Publication Date
CN114760479A true CN114760479A (en) 2022-07-15

Family

ID=82334624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210501361.9A Pending CN114760479A (en) 2022-05-09 2022-05-09 Video transmission method, device and system

Country Status (1)

Country Link
CN (1) CN114760479A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379207A (en) * 2022-08-24 2022-11-22 中国第一汽车股份有限公司 Camera simulation method and device, electronic equipment and readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014022845A (en) * 2012-07-13 2014-02-03 Nippon Hoso Kyokai <Nhk> Image encoder, image decoder, super resolution apparatus, and program of them
CN103685859A (en) * 2012-09-12 2014-03-26 瑞昱半导体股份有限公司 Image processing method, image output processing method and image receiving processing method
CN103945225A (en) * 2005-11-30 2014-07-23 高通股份有限公司 Scaler architecture for image and video processing
CN107305684A (en) * 2016-04-18 2017-10-31 瑞萨电子株式会社 Image processing system, image processing method and picture transmitter device
CN108184084A (en) * 2017-12-29 2018-06-19 北京九方广维科技有限公司 The video-signal transmission method and device of intercom
CN108848381A (en) * 2018-06-20 2018-11-20 腾讯科技(深圳)有限公司 Method for video coding, coding/decoding method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945225A (en) * 2005-11-30 2014-07-23 高通股份有限公司 Scaler architecture for image and video processing
JP2014022845A (en) * 2012-07-13 2014-02-03 Nippon Hoso Kyokai <Nhk> Image encoder, image decoder, super resolution apparatus, and program of them
CN103685859A (en) * 2012-09-12 2014-03-26 瑞昱半导体股份有限公司 Image processing method, image output processing method and image receiving processing method
CN107305684A (en) * 2016-04-18 2017-10-31 瑞萨电子株式会社 Image processing system, image processing method and picture transmitter device
CN108184084A (en) * 2017-12-29 2018-06-19 北京九方广维科技有限公司 The video-signal transmission method and device of intercom
CN108848381A (en) * 2018-06-20 2018-11-20 腾讯科技(深圳)有限公司 Method for video coding, coding/decoding method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379207A (en) * 2022-08-24 2022-11-22 中国第一汽车股份有限公司 Camera simulation method and device, electronic equipment and readable medium

Similar Documents

Publication Publication Date Title
CN105981391B (en) Transmission device, transmission method, reception device, reception method, display device, and display method
US9351028B2 (en) Wireless 3D streaming server
US11985386B2 (en) Remote user interface
EP3399752B1 (en) Image decoding method and decoding device
US10971109B2 (en) Image processing method, apparatus, device, and video image transmission system
US20210168426A1 (en) Transmitting method, receiving method, transmitting device, and receiving device
CN110662114B (en) Video processing method and device, electronic equipment and storage medium
US20170149856A1 (en) Wireless video transmission device, video playing device and method, and system
US12039693B2 (en) Apparatus and method of controlling the same
KR102342051B1 (en) Image processing apparatus, image processing method and image display system
EP2736251A1 (en) Transmitting apparatus, receiving apparatus, and transceiving method therefor
CN111343479A (en) Method and equipment for sending and receiving audio and video data in long-distance transmission scene
CN114760479A (en) Video transmission method, device and system
CN205105347U (en) Video wireless transmission equipment, video playback devices and system
CN110572673A (en) Video encoding and decoding method and device, storage medium and electronic device
EP2312859A2 (en) Method and system for communicating 3D video via a wireless communication link
CN106210843A (en) The play handling method of TV and device
US20100208830A1 (en) Video Decoder
CN104185033A (en) Method, device and system for processing multiple images of television
CN115280769A (en) Method and apparatus for video encoding and decoding
CN105812922A (en) Multimedia file data processing method, system, player and client
US11463699B2 (en) Image processing apparatus and control method thereof
CN110868391A (en) Remote transmission method, system and equipment
WO2023148084A1 (en) A method and an apparatus for encoding/decoding attributes of a 3d object
CN113709558A (en) Multimedia processing method and multimedia interaction system

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