Disclosure of Invention
The application provides a method, a device, a system and a medium for synchronously outputting multi-channel video signals, which are used for solving the technical problem of poor synchronism in the existing multi-channel split-screen output.
In view of the above, a first aspect of the present application provides a method for synchronously outputting a multi-channel video signal, including:
acquiring display response time corresponding to each transmission channel, and converting the display response time into signal sending lead of each transmission channel, wherein the display response time is the time for sending a test video signal to receiving end equipment through the transmission channel to the receiving end equipment to respond to the video signal;
and determining the signal sending time of each transmission channel according to each signal sending advance so as to send a video signal to the receiving end equipment according to the signal sending time.
Optionally, the method further comprises:
sending a test video signal to the receiving end equipment through the transmission channel;
and obtaining the display response time of the transmission channel according to the difference value between the time node for sending the test video signal and the time node for responding the test video signal by the receiving end equipment.
Optionally, the determining, according to each of the signal sending advance values, the signal sending time of each of the transmission channels specifically includes:
and respectively obtaining the signal sending time corresponding to each transmission channel according to the difference value between the synchronous response time point and the signal sending advance.
Optionally, the method further comprises:
respectively calculating the ratio of each image complexity to the total image complexity of all transmission channels according to the image complexity in each transmission channel, wherein the image complexity is the image complexity of the current video signal frame to be transmitted in the transmission channel;
obtaining a bandwidth distribution coefficient of the transmission channel according to the product of the ratio and the total bandwidth of all the transmission channels;
and respectively updating the bandwidth allocation of each transmission channel according to the bandwidth allocation coefficient of each transmission channel.
A second aspect of the present application provides a multichannel video signal synchronous output device, including:
the device comprises a signal sending lead calculation unit, a signal sending lead calculation unit and a video signal sending unit, wherein the signal sending lead calculation unit is used for acquiring display response time corresponding to each transmission channel and converting the display response time into the signal sending lead of each transmission channel, and the display response time is the time for sending a test video signal to receiving end equipment through the transmission channel and enabling the receiving end equipment to respond to the video signal;
and the signal sending time determining unit is used for determining the signal sending time of each transmission channel according to each signal sending advance so as to send a video signal to the receiving end equipment according to the signal sending time.
Optionally, the method further comprises:
the test video signal sending unit is used for sending a test video signal to the receiving end equipment through the transmission channel;
and the display response time calculation unit is used for obtaining the display response time of the transmission channel according to the difference value between the time node for sending the test video signal and the time node for responding the test video signal by the receiving end equipment.
Optionally, the signal sending time determining unit is specifically configured to:
and respectively obtaining the signal sending time corresponding to each transmission channel according to the difference value between the synchronous response time point and the signal sending advance.
Optionally, the method further comprises:
the image complexity calculating unit is used for respectively calculating the ratio of each image complexity to the total image complexity of all the transmission channels according to the image complexity in each transmission channel, wherein the image complexity is the image complexity of the current video signal frame to be transmitted in the transmission channel;
a bandwidth allocation coefficient calculation unit, configured to obtain a bandwidth allocation coefficient of the transmission channel according to a product of the ratio and a total bandwidth of all transmission channels;
and the bandwidth allocation adjusting unit is used for respectively updating the bandwidth allocation of each transmission channel according to the bandwidth allocation coefficient of each transmission channel.
A third aspect of the present application provides a multi-channel video signal transmission system comprising: a host terminal and a receiving terminal device;
the host terminal is in communication connection with the receiving terminal equipment through a plurality of transmission channels;
the host terminal includes: a memory and a processor;
the memory is used for storing program codes corresponding to the multichannel video signal synchronous output method of the first aspect of the application;
the processor is configured to execute the program code.
A fourth aspect of the present application provides a storage medium having stored therein program code corresponding to the multichannel video signal synchronous output method according to the first aspect of the present application.
According to the technical scheme, the method has the following advantages:
the application provides a multichannel video signal synchronous output method, which comprises the following steps: acquiring display response time corresponding to each transmission channel, and converting the display response time into signal sending lead of each transmission channel, wherein the display response time is the time for sending a test video signal to receiving end equipment through the transmission channel to the receiving end equipment to respond to the video signal; and determining the signal sending time of each transmission channel according to each signal sending advance so as to send a video signal to the receiving end equipment according to the signal sending time.
According to the method and the device, the time for sending the video signals by each transmission channel is adjusted according to the transmission time difference of the video signals sent by the sending end to the receiving end to respond to the video signals in different transmission channels, so that the display end can finish transmission and response display at the same time point, and the technical problem of poor synchronism existing in the existing multi-channel split screen output is solved.
Detailed Description
The embodiment of the application provides a method, a device, a system and a medium for synchronously outputting multi-channel video signals, which are used for solving the technical problem of poor synchronism in the existing multi-channel split-screen output.
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the embodiments described below are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a first embodiment of the present application provides a method for outputting a multi-channel video signal synchronously, including:
step 101, obtaining display response time corresponding to each transmission channel, and converting the display response time into a signal sending advance of each transmission channel.
It should be noted that, in this embodiment, based on the display response time of each transmission channel obtained through the test, the display response time is converted into a signal sending advance for adjusting the sending time when the sending end sends the video signal by using the transmission channel, and a specific conversion manner may be direct assignment.
The display response time is the time for sending the test video signal to the receiving end device through the transmission channel to the receiving end device to respond to the video signal, and the length of the display response time is mainly influenced by the transmission channel.
The number of transmission channels is based on the principle of actual physical connection, and the number of output channels generally corresponds to the number of pictures displayed by the display device, for example, 4-picture output corresponds to 4-channel number, and 9-picture output corresponds to 9-channel number.
And 102, determining the signal sending time of each transmission channel according to each signal sending advance so as to send the video signal to the receiving end equipment according to the signal sending time.
It should be noted that, according to the signal transmission advance calculated in step 101, the originally same transmission time is advanced by a certain time, and the specific advanced time is equal to the signal transmission advance, that is, the longer the display response time is, the higher the transmission priority of the transmission channel is, so that the video signals of each transmission channel can be received and responded by the receiving end device at the same time, thereby ensuring the synchronization of multiple signal pictures and solving the technical problem of poor synchronization existing in the existing multi-channel split-screen output.
The above is a detailed description of a first embodiment of a method for synchronously outputting multi-channel video signals provided by the present application, and the following is a detailed description of a second embodiment of the method for synchronously outputting multi-channel video signals provided by the present application.
Referring to fig. 2, a second embodiment of the present application provides a method for outputting a multi-channel video signal synchronously, including:
step 201, sending a test video signal to a receiving end device through a transmission channel;
step 202, obtaining the display response time of the transmission channel according to the difference value between the time node sent by the test video signal and the time node of the receiving end device responding to the test video signal.
It should be noted that, in this embodiment, the test video signal may be sent to the receiving end device through the transmission channel, and then the value of the time node sent by the test video signal is subtracted from the time node of the receiving end device responding to the test video signal, which is used as the display response time of the transmission channel.
It will be appreciated that the steps are performed by looping201 and 202, obtaining the display response time t of each transmission channel1~tnAnd n is the number of transmission channels.
Step 203, obtaining the display response time corresponding to each transmission channel, and converting the display response time into the signal sending advance of each transmission channel.
In this embodiment, based on the display response time of each transmission channel obtained through the test, the display response time is converted into the signal sending lead T, which is used to adjust the sending time when the sending end sends the video signal through the transmission channel, and the specific conversion manner may be direct assignment, that is, the signal sending lead T of the first transmission channel is directly assigned1=t1Signal transmission advance T of the second transmission channel2=t2。
And 204, respectively obtaining signal sending time corresponding to the transmission channels according to the difference value between the synchronous response time point and the signal sending advance so as to send the video signals to the receiving end equipment according to the signal sending time.
It should be noted that the synchronization response time point M in this embodiment is a time point responded by the receiving end device in the same group of video signal frames, and it is assumed that there are two transmission channels, and their respective signal transmission advance amounts are T respectively1And T2Then the signal transmission time point of the first transmission channel is M-T1The signal transmission time point of the first transmission channel is M-T2And by adding the respective display response times, the signal response time point of the first transmission channel and the signal response time point of the second transmission channel are both M. Thereby realizing synchronous display of multiple signals.
Further, after the signal transmission time is determined in step 204 and before the receiving-end device responds to the video signal, the following steps can be optionally added, including:
step 205, respectively calculating the ratio of each image complexity to the total image complexity of all transmission channels according to the image complexity in each transmission channel.
The image complexity is the image complexity of the video signal frame to be transmitted currently in the transmission channel.
Step 206 obtains the bandwidth allocation coefficient of the transmission channel according to the product of the ratio and the total bandwidth of all the transmission channels.
And step 207, respectively updating the bandwidth allocation of each transmission channel according to the bandwidth allocation coefficient of each transmission channel.
It should be noted that, steps 205 to 207 of this embodiment are used to calculate the image complexity of the video frames transmitted by each channel, and calculate the bandwidth allocation coefficient of each transmission channel according to the image complexity, so as to adjust the bandwidth load balance, and avoid the picture stalling problem caused by channel blocking due to unbalanced channel transmission bandwidth.
The specific method is as follows:
calculating the image complexity corresponding to each frame of image, for example, a four-frame image composed of two rows and two columns with one frame of image being 2 × 2, firstly performing binarization calculation on each frame of image, selecting a threshold value of each frame of image as a fixed value M (M is more than or equal to 0 and less than or equal to 255), performing binarization calculation on each frame of image, wherein the number of pixels of each frame is N, the number of pixels larger than the threshold value M after binarization is N1, the binarization corresponding value is 255, the number of pixels smaller than the threshold value M is N2, the corresponding binarization value is 0, setting the total binarization value of reference pixels of each frame as L, calculating the complexity formula of each frame as (N1 + 255+ N2 × 0)/L, the complexity of each frame is fixed between 0 and 9 integer values through the formula calculation values, the total complexity sum of each frame is O, and the code rate of each frame transmitted in a channel is K J1Z is the current channel bandwidth value, assuming there are four frames, the total bandwidth is 100kBps, the complexity of frame 1 is 1, the complexity of frame 2 is 2, the complexity of frame 3 is 3, the complexity of frame 4 is 4, the total complexity of four frames is 1+2+3+4 is 10, and the channel 1 coding rate is: 1/10 x 100; the channel 2 is 2/10 × 100, the channel 3 is 3/10 × 100, the channel 4 is 4/10 × 100, and the value of the coding code rate is used as a bandwidth allocation coefficient for adjusting bandwidth resources, thereby further overcoming the defect that when no bandwidth load balancing adjustment is carried out, a picture occupying high bandwidth only uses a fixed channel for data transmission, which may cause the transmission of a high-band channelThe width causes the jam and the output of the picture has the problem of pause phenomenon.
The above is a detailed description of the second embodiment of the method for synchronously outputting multi-channel video signals provided by the present application, and the following is a detailed description of the first embodiment of the apparatus for synchronously outputting multi-channel video signals provided by the present application.
Referring to fig. 3, a third embodiment of the present application provides a multi-channel video signal synchronous output device, including:
a signal sending advance calculation unit 301, configured to obtain display response time corresponding to each transmission channel, and convert the display response time into a signal sending advance of each transmission channel, where the display response time is a time when a video signal is sent to a receiving end device through the transmission channel and the receiving end device responds to the video signal;
a signal sending time determining unit 302, configured to determine a signal sending time of each transmission channel according to each signal sending advance, so as to send a video signal to a receiving end device according to the signal sending time.
Further, still include:
a test video signal sending unit 303, configured to send a test video signal to a receiving end device through a transmission channel;
the display response time calculation unit 304 is configured to obtain the display response time of the transmission channel according to a difference between the time node for sending the test video signal and the time node for the receiving end device to respond to the test video signal.
Further, the signal sending time determining unit is specifically configured to:
and respectively obtaining the signal sending time corresponding to the transmission channel according to the difference value between the synchronous response time point and the signal sending lead.
Further, still include:
an image complexity calculating unit 305, configured to calculate, according to the image complexity in each transmission channel, a ratio of each image complexity to a total image complexity of all transmission channels, where the image complexity is an image complexity of a video signal frame to be currently transmitted in the transmission channel;
a bandwidth allocation coefficient calculation unit 306, configured to obtain a bandwidth allocation coefficient of the transmission channel according to a product of the ratio and a total bandwidth of all transmission channels;
a bandwidth allocation adjusting unit 307, configured to update bandwidth allocation of each transmission channel according to the bandwidth allocation coefficient of each transmission channel.
The above is a detailed description of a first embodiment of a multi-channel video signal synchronous output device provided by the present application, and the following is a detailed description of a first embodiment of a multi-channel video signal transmission system provided by the present application.
Referring to fig. 4, a fourth embodiment of the present application provides a multi-channel video signal transmission system, including: a host terminal A and a receiving terminal device B;
the host terminal A is in communication connection with the terminal equipment B through a plurality of transmission channels C;
the host terminal a includes: a memory and a processor;
the memory is used for storing program codes corresponding to the multi-channel video signal synchronous output method of the first embodiment or the second embodiment of the application;
the processor is used for executing the program codes.
Meanwhile, a fifth embodiment of the present application provides a storage medium having stored therein program codes corresponding to the multichannel video signal synchronous output method of the first or second embodiment 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 systems, apparatuses and units 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 system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, 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 or units, and may be in an electrical, mechanical or other form.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit 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 invention may be embodied in the form of 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 invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.