Synchronous display method based on distributed system

文档序号:1408397 发布日期:2020-03-06 浏览:24次 中文

阅读说明:本技术 一种基于分布式系统的同步显示方法 (Synchronous display method based on distributed system ) 是由 刘妍 于 2019-11-27 设计创作,主要内容包括:本发明公开一种基于分布式系统的同步显示方法,用于解决现有技术各个视频显示终端无法同步显示接收到的视频内容的问题;包括步骤一:获取同步显示的视频内容并存储在服务器内,将待同步显示终端与服务器建立通信连接;步骤二:采集待同步显示终端的性能数据并对其进行分析,本发明通过控制待同步显示终端之间的播放间隔时间,从而达到待同步显示终端之间的同步显示问题;通过性能匹配值和显示硬件值将处理器与待同步显示终端进行匹配,将性能较好的处理器与硬件较差的待同步显示终端进行对应,从而将处理器与待同步显示终端进行优化组合,减少处理器与待同步显示终端之间差值,避免其影响同步显示的同步性。(The invention discloses a synchronous display method based on a distributed system, which is used for solving the problem that each video display terminal in the prior art cannot synchronously display the received video content; the method comprises the following steps: acquiring and storing synchronously displayed video content in a server, and establishing communication connection between a terminal to be synchronously displayed and the server; step two: the method comprises the steps of collecting performance data of the terminals to be synchronously displayed and analyzing the performance data, and controlling the playing interval time between the terminals to be synchronously displayed so as to achieve the synchronous display problem between the terminals to be synchronously displayed; the processor is matched with the display terminal to be synchronized through the performance matching value and the display hardware value, and the processor with better performance corresponds to the display terminal to be synchronized with poorer hardware, so that the processor and the display terminal to be synchronized are optimally combined, the difference between the processor and the display terminal to be synchronized is reduced, and the influence on the synchronism of synchronous display is avoided.)

1. A synchronous display method based on a distributed system is characterized by comprising the following steps:

the method comprises the following steps: acquiring and storing synchronously displayed video content in a server, and establishing communication connection between a terminal to be synchronously displayed and the server;

step two: acquiring performance data of a display terminal to be synchronized and analyzing the performance data to obtain a display hardware value of the display terminal to be synchronized;

step three: the server allocates a corresponding processor according to the display hardware value of the terminal to be synchronously displayed; sending video content to the processor;

step four: the server calculates the delay value of the terminal to be synchronously displayed according to the parameter of the terminal to be synchronously displayed and calculates the playing interval time according to the delay value;

step five: the server sends playing instructions to the processors at the same time, the processors calculate time through the timing module after receiving the service instructions, when the time calculated by the timing module is the same as the playing interval time, the processors send video content signals to the terminal to be synchronously displayed, and the terminal to be synchronously displayed receives the video content signals, decodes and then displays the video content signals.

2. The synchronous display method based on the distributed system according to claim 1, wherein the communication connection between the terminal to be synchronously displayed and the server is established in the step one, and the specific communication process is as follows:

a: the method comprises the steps that a synchronous display request instruction is sent to a server by a terminal to be synchronously displayed, the server receives the synchronous display request instruction, the terminal to be synchronously displayed receiving the synchronous display request instruction is marked as a terminal to be synchronously displayed, and the terminal to be synchronously displayed is marked as Ai, i is 1, … … and n;

b: the server sends a timing module to the display terminal to be synchronized; the timing module is used for counting and timing acquisition instructions of the server received by the synchronous display terminal, and the time of the timing module is the same as that of the server;

c: the server sends an acquisition instruction to the display terminal to be synchronized and records the sending time, wherein the sending time is recorded as T1Ai(ii) a When the synchronous display terminal receives the acquisition instruction, the timing module records the receiving time, and the receiving time is recorded as T2Ai(ii) a The timing module sends the receiving time to the server; and simultaneously, the terminal to be synchronously displayed sends performance data into the server, wherein the performance data is the average value of the video decoding speed and the network speed of the terminal to be synchronously displayed.

3. The synchronous display method based on the distributed system according to claim 1, wherein the second step of collecting the performance data of the terminal to be synchronously displayed and analyzing the performance data comprises the following specific analysis steps:

s1: acquiring performance data of a terminal to be synchronously displayed, and setting the video decoding speed of the terminal to be synchronously displayed as VAi(ii) a The mean value of the network speed is denoted as WSAi

S2: using formulas

Figure FDA0002292061930000021

4. The synchronous display method based on the distributed system according to claim 1, wherein the display hardware value in step three is assigned to the corresponding processor, and the specific assignment steps are as follows:

w1: setting a processor as Cj, j is 1, … … and n; acquiring the power-on duration and frequency of the processor Cj;

w2: setting the power-on duration of the processor as DCjAnd the frequency of the processor is denoted as PCj

W3: to the power-on time length DCjScreening is carried out when DCjIf the time is less than the set threshold value, a preset time coefficient t1 is obtained; using formulas

Figure FDA0002292061930000022

W4: sorting the performance matching values and the display hardware values from large to small, matching the display terminal to be synchronized with the maximum display hardware value, selecting the processor Cj with the maximum performance matching value to correspond to the display terminal to be synchronized, and increasing the total number of times of allocation of the processor Cj by one; then matching the display terminal to be synchronized with the next display hardware value, and recalculating the performance matching value according to the processor Cj with the maximum performance matching value selected in the step W3; then, reordering the Cj, selecting the processor Cj with the maximum performance matching value to correspond to the display terminal to be synchronized, and increasing the total number of times of allocation of the processor Cj by one; and so on.

5. The synchronous display method based on the distributed system as claimed in claim 1, wherein the specific calculation steps of obtaining the delay value of the terminal to be synchronously displayed and calculating the playing interval time according to the delay value in the step four are as follows:

z1: acquiring a display hardware value of a terminal to be synchronously displayed; selecting the maximum display hardware value as the reference value and recording as CmaxAi

Z2: using formula YAi=|CAi-CmaxAiObtaining delay value YAi

Z3: using the formula JGAi=YAiTz obtaining playing interval time JG of display terminal to be synchronizedAi(ii) a Wherein tz is a preset time conversion coefficient;

z4: displaying the playing interval time JG of the terminal to be synchronizedAiRespectively sent to the corresponding processors Cj.

Technical Field

The invention relates to the technical field of video display, in particular to a synchronous display method based on a distributed system.

Background

In the field of video display technology, when video data from a front-end video source passes through a switch, the video data is often distributed to a plurality of video display terminals. And the distributed operating system can select the most appropriate processor in the system according to the needs, submit the video to the processor, and send the video to the user video display terminal through the processor after the processor finishes the operation. In the process, the user can not realize that a plurality of processors exist, and the system is just like a processor, so that the synchronism of video transmission is ensured;

patent CN108235098A discloses a display synchronization method and video display terminals, which achieve the purpose of adjusting the clock frequency of each video display terminal in a distributed video system to be consistent quickly, so as to ensure that each video display terminal can synchronously display the received video data; but has the following disadvantages: the display terminal has different decoding and playing rates of the received video data, which affects synchronous display, and meanwhile, the performance of the sending terminal and the network speed of the display terminal also affect the reception of the video data, which further affects the synchronous display of the video.

Disclosure of Invention

The invention aims to provide a synchronous display method based on a distributed system; the invention achieves the synchronous display problem between the display terminals to be synchronized by controlling the play interval time between the display terminals to be synchronized; the processor is matched with the display terminal to be synchronized through the performance matching value and the display hardware value, and the processor with better performance corresponds to the display terminal to be synchronized with poorer hardware, so that the processor and the display terminal to be synchronized are optimally combined, the difference between the processor and the display terminal to be synchronized is reduced, and the influence on the synchronism of synchronous display is avoided.

The technical problem to be solved by the invention is as follows:

(1) how to analyze the performance data of the display terminals, then match the performance data to the corresponding processor for video content transmission according to the display hardware value, and how to calculate the delay value between the display terminals and the corresponding playing interval time, thereby achieving synchronous display by controlling the playing interval time and solving the problem that each video display terminal in the prior art cannot synchronously display the received video content;

the purpose of the invention can be realized by the following technical scheme: a synchronous display method based on a distributed system comprises the following steps:

the method comprises the following steps: acquiring and storing synchronously displayed video content in a server, and establishing communication connection between a terminal to be synchronously displayed and the server;

step two: acquiring performance data of a display terminal to be synchronized and analyzing the performance data to obtain a display hardware value of the display terminal to be synchronized;

step three: the server allocates a corresponding processor according to the display hardware value of the terminal to be synchronously displayed; sending video content to the processor;

step four: the server calculates the delay value of the terminal to be synchronously displayed according to the parameter of the terminal to be synchronously displayed and calculates the playing interval time according to the delay value;

step five: the server sends playing instructions to the processors at the same time, the processors calculate time through the timing module after receiving the service instructions, when the time calculated by the timing module is the same as the playing interval time, the processors send video content signals to the terminal to be synchronously displayed, and the terminal to be synchronously displayed receives the video content signals, decodes and then displays the video content signals;

preferably, in the step one, the communication connection between the terminal to be synchronously displayed and the server is established, and the specific communication process is as follows:

a: the method comprises the steps that a synchronous display request instruction is sent to a server by a terminal to be synchronously displayed, the server receives the synchronous display request instruction, the terminal to be synchronously displayed receiving the synchronous display request instruction is marked as a terminal to be synchronously displayed, and the terminal to be synchronously displayed is marked as Ai, i is 1, … … and n;

b: the server sends a timing module to the display terminal to be synchronized; the timing module is used for counting and timing acquisition instructions of the server received by the synchronous display terminal, and the time of the timing module is the same as that of the server;

c: the server sends an acquisition instruction to the display terminal to be synchronized and records the sending time, wherein the sending time is recorded as T1Ai(ii) a When the synchronous display terminal receives the acquisition instruction, the timing module records the receiving time, and the receiving time is recorded as T2Ai(ii) a The timing module sends the receiving time to the server; meanwhile, the terminal to be synchronously displayed sends performance data into the server, wherein the performance data is the average value of the video decoding speed and the network speed of the terminal to be synchronously displayed;

preferably, the second step of collecting the performance data of the terminal to be synchronously displayed and analyzing the performance data includes the following specific analysis steps:

s1: acquiring performance data of a terminal to be synchronously displayed, and setting the video decoding speed of the terminal to be synchronously displayed as VAi(ii) a The mean value of the network speed is denoted as WSAi

S2: using formulas

Figure BDA0002292061940000031

Obtaining a display hardware value CAi(ii) a Wherein e1, e2 and e3 are preset fixed values of proportionality coefficients, and lambda is a correction factor and takes the value of 1.00032;

preferably, the processor corresponding to the display hardware value allocation in step three includes the following specific allocation steps:

w1: setting a processor as Cj, j is 1, … … and n; acquiring the power-on duration and frequency of the processor Cj;

w2: setting the power-on duration of the processor as DCjAnd the frequency of the processor is denoted as PCj

W3: to the power-on time length DCjScreening is carried out when DCjIf the time is less than the set threshold value, a preset time coefficient t1 is obtained; using formulas

Figure BDA0002292061940000041

Obtaining the performance matching value X of the processor CjCj(ii) a Wherein t2 and t3 are both preset time coefficient fixed values; rho is an interference factor and takes the value of 0.323421; fCjIs the total number of allocations; when D is presentCjIf the time is greater than or equal to the set threshold, obtaining a preset time coefficient t 4; using formulas

Figure BDA0002292061940000042

Obtaining the performance matching value X of the processor CjCj

W4: sorting the performance matching values and the display hardware values from large to small, matching the display terminal to be synchronized with the maximum display hardware value, selecting the processor Cj with the maximum performance matching value to correspond to the display terminal to be synchronized, and increasing the total number of times of allocation of the processor Cj by one; then matching the display terminal to be synchronized with the next display hardware value, and recalculating the performance matching value according to the processor Cj with the maximum performance matching value selected in the step W3; then, reordering the Cj, selecting the processor Cj with the maximum performance matching value to correspond to the display terminal to be synchronized, and increasing the total number of times of allocation of the processor Cj by one; and so on;

preferably, the specific steps of calculating the delay value of the terminal to be synchronously displayed and calculating the playing interval time according to the delay value in the fourth step are as follows:

z1: acquiring a display hardware value of a terminal to be synchronously displayed; selecting the maximum display hardware value as the reference value and recording as CmaxAi

Z2: using formula YAi=|CAi-CmaxAiObtaining delay value YAi

Z3: using the formula JGAi=YAiTz obtaining playing interval time JG of display terminal to be synchronizedAi(ii) a Wherein tz is a preset time conversion coefficient;

z4: displaying the playing interval time JG of the terminal to be synchronizedAiRespectively sent to the corresponding processors Cj.

The invention has the beneficial effects that:

(1) analyzing performance parameters of the terminals to be synchronously displayed, calculating display hardware values between the terminals to be synchronously displayed by using a formula, obtaining delay values and corresponding play interval time between the terminals to be synchronously displayed according to the display hardware values corresponding to the terminals to be synchronously displayed, and controlling the play interval time between the terminals to be synchronously displayed so as to achieve the synchronous display problem between the terminals to be synchronously displayed; the processor is matched with the display terminal to be synchronized through the performance matching value and the display hardware value, and the processor with better performance corresponds to the display terminal to be synchronized with poorer hardware, so that the processor and the display terminal to be synchronized are optimally combined, the difference between the processor and the display terminal to be synchronized is reduced, and the influence on the synchronism of synchronous display is avoided.

Drawings

The invention will be further described with reference to the accompanying drawings.

Fig. 1 is a schematic block diagram of a synchronous display method based on a distributed system according to the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.

Referring to fig. 1, the present invention is a synchronous display method based on a distributed system, including the following steps:

the method comprises the following steps: acquiring and storing synchronously displayed video content in a server, and establishing communication connection between a terminal to be synchronously displayed and the server; the specific communication process is as follows:

a: the method comprises the steps that a synchronous display request instruction is sent to a server by a terminal to be synchronously displayed, the server receives the synchronous display request instruction, the terminal to be synchronously displayed receiving the synchronous display request instruction is marked as a terminal to be synchronously displayed, and the terminal to be synchronously displayed is marked as Ai, i is 1, … … and n;

b: the server sends a timing module to the display terminal to be synchronized; the timing module is used for counting and timing acquisition instructions of the server received by the synchronous display terminal, and the time of the timing module is the same as that of the server;

c: the server sends an acquisition instruction to the display terminal to be synchronized and records the sending time, wherein the sending time is recorded as T1Ai(ii) a When the synchronous display terminal receives the acquisition instruction, the timing module records and receivesTime, the receiving time is recorded as T2Ai(ii) a The timing module sends the receiving time to the server; meanwhile, the terminal to be synchronously displayed sends performance data into the server, wherein the performance data is the average value of the video decoding speed and the network speed of the terminal to be synchronously displayed;

step two: acquiring performance data of a display terminal to be synchronized and analyzing the performance data to obtain a display hardware value of the display terminal to be synchronized; the specific analysis steps are as follows:

s1: acquiring performance data of a terminal to be synchronously displayed, and setting the video decoding speed of the terminal to be synchronously displayed as VAi(ii) a The mean value of the network speed is denoted as WSAi

S2: using formulas

Figure BDA0002292061940000061

Obtaining a display hardware value CAi(ii) a Wherein e1, e2 and e3 are preset fixed values of proportionality coefficients, and lambda is a correction factor and takes the value of 1.00032; the method comprises the steps that the longer the time difference of the to-be-synchronized display terminal for receiving the acquisition instruction is, the larger the display hardware value is, the worse the hardware performance of the to-be-synchronized display terminal is, and the longer the synchronous display delay is; the smaller the video decoding speed is, the slower the video content decoding speed of the terminal to be synchronously displayed is, and the longer the synchronous display delay is; the smaller the network speed average value corresponding to the network connected with the terminal to be synchronously displayed is, the slower the network speed is, and the longer the synchronous display delay is;

step three: the server allocates a corresponding processor according to the display hardware value of the terminal to be synchronously displayed; sending video content to the processor; the specific distribution steps are as follows:

w1: setting a processor as Cj, j is 1, … … and n; acquiring the power-on duration and frequency of the processor Cj;

w2: setting the power-on duration of the processor as DCjAnd the frequency of the processor is denoted as PCj

W3: to the power-on time length DCjScreening is carried out when DCjIf the time is less than the set threshold value, a preset time coefficient t1 is obtained; using formulas

Figure BDA0002292061940000071

Obtaining the performance matching value X of the processor CjCj(ii) a Wherein t2 and t3 are both preset time coefficient fixed values; rho is an interference factor and takes the value of 0.323421; fCjIs the total number of allocations; when D is presentCjIf the time is greater than or equal to the set threshold, obtaining a preset time coefficient t 4; using formulas

Figure BDA0002292061940000072

Obtaining the performance matching value X of the processor CjCj(ii) a The method has the advantages that the smaller the power-on duration of the processor is, the larger the performance matching value is, and the better the performance of the processor is; the larger the frequency of the processor Cj is, the higher the running speed of the processor is, and the larger the performance matching value is; the larger the total number of times of distribution, the more the indication

W4: sorting the performance matching values and the display hardware values from large to small, matching the display terminal to be synchronized with the maximum display hardware value, selecting the processor Cj with the maximum performance matching value to correspond to the display terminal to be synchronized, and increasing the total number of times of allocation of the processor Cj by one; then matching the display terminal to be synchronized with the next display hardware value, and recalculating the performance matching value according to the processor Cj with the maximum performance matching value selected in the step W3; then, reordering the Cj, selecting the processor Cj with the maximum performance matching value to correspond to the display terminal to be synchronized, and increasing the total number of times of allocation of the processor Cj by one; and so on;

step four: the server calculates the delay value of the terminal to be synchronously displayed according to the parameter of the terminal to be synchronously displayed and calculates the playing interval time according to the delay value; the specific calculation steps are as follows:

z1: acquiring a display hardware value of a terminal to be synchronously displayed; selecting the maximum display hardware value as the reference value and recording as CmaxAi

Z2: using formula YAi=|CAi-CmaxAiObtaining delay value YAi

Z3: using the formula JGAi=YAiTz getPlay interval time JG of terminal to be synchronously displayedAi(ii) a Wherein tz is a preset time conversion coefficient;

z4: displaying the playing interval time JG of the terminal to be synchronizedAiRespectively sending the data to corresponding processors Cj;

step five: the server sends playing instructions to the processors at the same time, the processors calculate time through the timing module after receiving the service instructions, when the time calculated by the timing module is the same as the playing interval time, the processors send video content signals to the terminal to be synchronously displayed, and the terminal to be synchronously displayed receives the video content signals, decodes and then displays the video content signals;

the working principle of the invention is as follows: the method comprises the steps that a communication connection is established between a terminal to be synchronously displayed and a server, and the server sends a timing module to the terminal to be synchronously displayed; the timing module counts and times the acquisition instruction of the server received by the display terminal to be synchronized, and the time of the timing module is the same as that of the server; the server and the display terminal to be synchronized are subjected to time synchronization through the timing module, so that the determination of the receiving time is ensured, and the delay is calculated more accurately; the server sends an acquisition instruction to the display terminal to be synchronized and records sending time, the display terminal to be synchronized receives the acquisition instruction, the timing module records receiving time, and the timing module sends the receiving time to the server; meanwhile, the terminal to be synchronously displayed sends the performance data to the server, collects the performance data of the terminal to be synchronously displayed and analyzes the performance data to obtain a display hardware value of the terminal to be synchronously displayed; the server allocates a corresponding processor according to the display hardware value of the terminal to be synchronously displayed; sending video content to the processor; the server calculates the delay value of the terminal to be synchronously displayed according to the parameter of the terminal to be synchronously displayed and calculates the playing interval time according to the delay value; the server sends playing instructions to the processors at the same time, the processors calculate time through the timing module after receiving the service instructions, when the time calculated by the timing module is the same as the playing interval time, the processors send video content signals to the terminal to be synchronously displayed, and the terminal to be synchronously displayed receives the video content signals, decodes and then displays the video content signals; by treating synchronous display terminalAnalysis of terminal performance parameters using formulasCalculating a display hardware value between terminals to be synchronously displayed, wherein the longer the time difference of the terminals to be synchronously displayed for receiving the acquisition instruction is, the larger the display hardware value is, the worse the hardware performance of the terminals to be synchronously displayed is, and the longer the synchronous display delay is; the smaller the video decoding speed is, the slower the video content decoding speed of the terminal to be synchronously displayed is, and the longer the synchronous display delay is; the smaller the network speed average value corresponding to the network connected with the terminal to be synchronously displayed is, the slower the network speed is, and the longer the synchronous display delay is; the method comprises the steps that a delay value and corresponding play interval time between display terminals to be synchronized are obtained according to display hardware values corresponding to the display terminals to be synchronized, and the play interval time between the display terminals to be synchronized is controlled, so that the problem of synchronous display between the display terminals to be synchronized is solved; the processor is matched with the display terminal to be synchronized through the performance matching value and the display hardware value, and the processor with better performance corresponds to the display terminal to be synchronized with poorer hardware, so that the processor and the display terminal to be synchronized are optimally combined, the difference between the processor and the display terminal to be synchronized is reduced, and the influence on the synchronism of synchronous display is avoided.

The foregoing is merely exemplary and illustrative of the present invention and various modifications, additions and substitutions may be made by those skilled in the art to the specific embodiments described without departing from the scope of the invention as defined in the following claims.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:媒体回放系统中的播放列表更新

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类