CN101640698B - Distributed image synchronous display method - Google Patents
Distributed image synchronous display method Download PDFInfo
- Publication number
- CN101640698B CN101640698B CN2009100420651A CN200910042065A CN101640698B CN 101640698 B CN101640698 B CN 101640698B CN 2009100420651 A CN2009100420651 A CN 2009100420651A CN 200910042065 A CN200910042065 A CN 200910042065A CN 101640698 B CN101640698 B CN 101640698B
- Authority
- CN
- China
- Prior art keywords
- node
- server
- image
- time
- timestamp
- 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.)
- Active
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Digital Computer Display Output (AREA)
Abstract
The invention discloses a distributed image synchronous display method, including the following steps: (1) clocks of all nodes are synchronized by a server; (2) each node reports state information to the server; (3) after receiving the state information of each node, the server generates an optimal display time stamp through analysis and sends the optimal display time stamp to each node; (4) after receiving the optimal display time stamp, each node calculates image display time according to the optimal display time stamp, and current time of the node is compared with the image display time, if the current time of the node is less than the image display time, the node continues waiting, otherwise the image is immediately displayed. The invention is easy to be realized when being applied to the existing distributed image display system; and the clocks of all nodes are synchronous, thus favourable effect that each node displays the image synchronously can be achieved; besides, applicability is good, the server can find optimal display time according to the concrete state condition of each node, so that the image can be completely and synchronously displayed.
Description
Technical field
The present invention relates to distributed image display technology, particularly relate to a kind of distributed image synchronous display method.
Background technology
Distributed image display system, as shown in Figure 1, server via Ethernet is connected with a plurality of nodes respectively, and each node shows the part of complete image.Because clock, cpu busy degree and the task scheduling step of each node all there are differences, guarantee that therefore it is a relatively problem of difficulty that each node shows synchronously.
Existing solution is to show that for every width of cloth image is additional timestamp information keeps the steps include: synchronously
(1) clock of each node of server sync;
(2) server is that every width of cloth image adds the demonstration timestamp; With the Mpeg-1 compression standard is example; The 27MHz program clock obtains the clock of 90kHz through frequency division (the frequency division multiplying power is 300); Come actuation counter to obtain a sampling value by this 90kHz clock again---showing timestamp, this demonstration timestamp mark is a numeral with 33 bits;
(3) node is understood the extraction system current time after receiving above-mentioned information, is calculated the image demonstration time, compares these two times then, if the current time equals the demonstration time then display image; If showing the time then continue less than image, waits for the current time;
(4) clock of each node is identical, and is identical according to the demonstration time that timestamp calculates, so can reach the effect of the synchronous display image of a plurality of nodes basically.
This method can reach more accurate display synchronization; But also there is certain problem: in distributed network environment; Often there is node slower than other nodes because of temporary transient cpu busy or busy this node that causes of network; Then image shows and nonsynchronous situation can occur, and promptly not overtime node shows in order synchronously, and other overtime nodes display image synchronously.
Summary of the invention
The objective of the invention is to overcome the shortcoming and defect of prior art, a kind of distributed image synchronous display method is provided, simple, be easy to realize that distributed image precise synchronization shows.
The present invention seeks to realize that through following technical proposals a kind of distributed image synchronous display method may further comprise the steps:
(1) clock of each node of server sync;
(2) each node is to the state information of server report oneself;
(3) server is received the state information of each node and is analyzed, and generates the best image timestamp and sends to each node;
(4) after each node is received the best image timestamp; Calculate image according to this best image timestamp and show the time, relatively current time of this node and image show the time, if the current time of this node shows the time less than image; Then continue to wait for, otherwise display image immediately.
In order better to realize the present invention, the clock of said each node of server sync specifically is meant server unlatching NTP (Network Time Procotol) Time Service, makes whole server and each node in full accord in time.
Said step (2) may further comprise the steps:
(2.1) each node obtains view data and decode image data from server or network;
(2.2) each node generates the local timestamp that shows according to local zone time; The said local timestamp that shows is meant the temporal information of this node display image data;
(2.3) each node is to the state information of server report oneself; Said state information comprises image information, decoded picture deadline, the local timestamp that shows.
The view data that said each node obtains is the part of complete image.
Said local demonstration timestamp is meant the sampled value that node is got based on the clock actuation counter of certain frequency.
The said local timestamp that shows can also be meant the earliest concrete time of node according to the local display image of current system time generation.
Said step (3) specifically may further comprise the steps:
(3.1) after server was received the state information of each node, through analyzing, server took out the current time that shows time and server the latest of image respectively;
After the current time of said server is meant that server is received the state information of each node, the current system time of the server that is taken out; The said time of demonstration the latest was meant in a plurality of local times of demonstration the latest that show image in the timestamp;
(3.2) server is judged and to be shown that the latest the time whether less than the current time of server, if then get into step (3.3), otherwise directly jumps to step (3.4);
(3.3) server generation best image timestamp is the current time+N of server; Said N is used to shield the difference that each meshed network sent, received data and os-task scheduling;
(3.4) server judges that whether current time+N is greater than showing the time the latest, if then generate current time+N that the best image timestamp is a server; Otherwise generate the best image timestamp for showing the time the latest.
Said N can be 200 milliseconds.
Said server is received the state information of each node and is analyzed; Be meant that specifically server can collect the state information of all nodes in preset time; If the state information that server fails in the predefined time, to have collected all nodes; Represent that then some node serious problems occur and causes seriously overtimely, can analyze server at this moment the state information of its received existing node, and no longer wait for serious overtime node status information.
The present invention is through being provided with a station server in distributed network; Each node all generated this locality demonstration timestamp separately according to the situation of oneself before display image, and reported the state information (comprising image information, decoded picture deadline, the local timestamp that shows) of this node system to server.Server is confirmed the best image time of this view picture complete image and notifies each node through sending the best image timestamp that each node comes display image according to this best image timestamp according to the state of each node.Even temporarily heavy or network is busy because of task claps than other nodes slow half for some node like this, image is demonstration synchronously accurately also.
Compared with prior art, the present invention has following beneficial effect:
The present invention is applied in the tothe existing distributed image display system, realizes easily; And because each nodal clock is synchronous, identical according to the demonstration time that the best image timestamp is calculated, can reach the good result of the synchronous display image of each node; Applicability is good, and server can be found out the best image time according to the concrete state status of each node, makes the synchronous demonstration that image can be complete, and simultaneously, if go wrong temporarily can not display image for certain node, server can in time be found and deal with.
Description of drawings
Fig. 1 is the distributed image display system of prior art;
The system flow chart of a kind of distributed image synchronous display method of Fig. 2 the present invention;
Fig. 3 is the workflow diagram of node among the present invention;
Fig. 4 is the flow chart that server of the present invention generates the best image timestamp.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is done to specify further, but execution mode of the present invention is not limited thereto.
A kind of distributed image synchronous display method of the present invention is applied in the existing distributed image display system, and as shown in Figure 1, server via Ethernet is connected with a plurality of nodes respectively, and each node shows the part of complete image.
As shown in Figure 2, a kind of distributed image synchronous display method of the present invention may further comprise the steps:
(1) clock of each node of server sync: server is opened the NTP Time Service, makes whole server and each node in full accord in time;
(2) each node is to the state information of server report oneself;
(3) server is received the state information of each node and is analyzed, and generates the best image timestamp and sends to each node;
(4) after each node is received the best image timestamp; Calculate image according to this best image timestamp and show the time, relatively current time of this node and image show the time, if the current time of this node shows the time less than image; Then continue to wait for, otherwise display image immediately.
Said each node is to the state information of server report oneself, and is as shown in Figure 3, said may further comprise the steps:
(2.1) each node obtains view data and decode image data from server or network; The view data that said each node obtains is the part of complete image;
(2.2) each node generates the local timestamp that shows according to local zone time; The said local timestamp that shows is meant the temporal information of this node display image data; Said local demonstration timestamp can be meant the sampled value that node is got based on the clock actuation counter of certain frequency; With the Mpeg-1 compression standard is example; The 27MHz program clock obtains the clock of 90kHz through frequency division (the frequency division multiplying power is 300); Come actuation counter to obtain a sampled value by this 90kHz clock again---local the timestamp that shows, this this locality shows that the timestamp mark is a numeral with 33 bits;
Same, the said local timestamp that shows can also be meant the earliest concrete time of node according to the local display image of current system time generation;
(2.3) each node is to the state information of server report oneself; Said state information comprises image information, decoded picture deadline, the local timestamp that shows.
Server generates the best image timestamp among the present invention, and is as shown in Figure 4, may further comprise the steps:
(3.1) server is received the state information of each node and is analyzed, and server takes out the current time that shows time and server the latest of image respectively;
After the current time of said server is meant that server is received the state information of each node, the current system time of the server that is taken out; The said time of demonstration the latest was meant in a plurality of local times of demonstration the latest that show image in the timestamp;
If this locality of node shows that timestamp is based on the sampled value that the said clock actuation counter of step (2.2) is got; Then server can calculate the concrete time of node display image according to this sampled value and step (2.3) described decoded picture deadline; Be the concrete time=sampled value+decoded picture deadline (coefficient need convert before the addition) of node display image, can obtain the time of demonstration the latest of image again with the concrete time ratio of other node display image;
If this locality of node shows the concrete time the earliest of the timestamp local display image that to be node generate according to current system time, then server directly relatively this locality of each node show that timestamp can obtain the time of demonstration the latest of image;
(3.2) server is judged and to be shown that the latest the time whether less than the current time of server, if then get into step (3.3), otherwise directly jumps to step (3.4);
(3.3) server generation best image timestamp is the current time+N of server; Said N is used to shield the difference that each meshed network sent, received data and os-task scheduling, and said N is 200 milliseconds;
(3.4) server judges that whether current time+N is greater than showing the time the latest, if then generate current time+N that the best image timestamp is a server; Otherwise generate the best image timestamp for showing the time the latest.
Preferably; Said server is received the state information of each node and is analyzed; Be meant that specifically server can collect the state information of all nodes in preset time, if the state information that server fails in the predefined time, to have collected all nodes representes that then some node serious problems occur and causes seriously overtime; Server can be analyzed the state information of its received existing node this moment, and no longer waits for serious overtime node status information.
The foregoing description is a preferred implementation of the present invention; But execution mode of the present invention is not limited by the examples; Other any do not deviate from change, the modification done under spirit of the present invention and the principle, substitutes, combination, simplify; All should be the substitute mode of equivalence, be included within protection scope of the present invention.
Claims (8)
1. a distributed image synchronous display method is characterized in that, may further comprise the steps:
(1) clock of each node of server sync;
(2) each node is to the state information of server report oneself, and said state information comprises image information, decoded picture deadline and the local timestamp that shows, the said local timestamp that shows is meant the temporal information of this node display image data;
(3) server is received the state information of each node and is analyzed, and generates the best image timestamp and sends to each node, specifically comprises the steps:
(3.1) after server was received the state information of each node, through analyzing, server took out the current time that shows time and server the latest of image respectively;
After the current time of said server is meant that server is received the state information of each node, the current system time of the server that is taken out; The said time of demonstration the latest was meant in a plurality of local times of demonstration the latest that show image in the timestamp;
(3.2) server is judged and to be shown that the latest the time whether less than the current time of server, if then get into step (3.3), otherwise directly jumps to step (3.4);
(3.3) server generation best image timestamp is the current time+N of server; Said N is used to shield the difference that each meshed network sent, received data and os-task scheduling;
(3.4) server judges that whether current time+N is greater than showing the time the latest, if then generate current time+N that the best image timestamp is a server; Otherwise generate the best image timestamp for showing the time the latest;
(4) after each node is received the best image timestamp; Calculate image according to this best image timestamp and show the time, relatively current time of this node and image show the time, if the current time of this node shows the time less than image; Then continue to wait for, otherwise display image immediately.
2. a kind of distributed image synchronous display method according to claim 1 is characterized in that, the clock of said each node of server sync specifically is meant server unlatching NTP Time Service, makes whole server and each node in full accord in time.
3. a kind of distributed image synchronous display method according to claim 1 is characterized in that, said step (2) may further comprise the steps:
(2.1) each node obtains view data and decode image data from server or network;
(2.2) each node generates the local timestamp that shows according to local zone time; The said local timestamp that shows is meant the temporal information of this node display image data;
(2.3) each node is to the state information of server report oneself; Said state information comprises image information, decoded picture deadline and the local timestamp that shows.
4. a kind of distributed image synchronous display method according to claim 3 is characterized in that, the view data that said each node obtains is the part of complete image.
5. a kind of distributed image synchronous display method according to claim 3 is characterized in that, said local demonstration timestamp is meant the sampled value that node is got based on the clock actuation counter of certain frequency.
6. a kind of distributed image synchronous display method according to claim 3 is characterized in that, the said local timestamp that shows is meant the earliest concrete time of node according to the local display image of current system time generation.
7. a kind of distributed image synchronous display method according to claim 1 is characterized in that, said N is 200 milliseconds.
8. a kind of distributed image synchronous display method according to claim 1; It is characterized in that; Said server is received the state information of each node and is analyzed; Be meant that specifically server can collect the state information of all nodes in preset time, if the state information that server fails in the predefined time, to have collected all nodes representes that then some node serious problems occur and causes seriously overtime; Server can be analyzed the state information of its received existing node this moment, and no longer waits for serious overtime node status information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100420651A CN101640698B (en) | 2009-08-21 | 2009-08-21 | Distributed image synchronous display method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100420651A CN101640698B (en) | 2009-08-21 | 2009-08-21 | Distributed image synchronous display method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101640698A CN101640698A (en) | 2010-02-03 |
CN101640698B true CN101640698B (en) | 2012-06-06 |
Family
ID=41615487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100420651A Active CN101640698B (en) | 2009-08-21 | 2009-08-21 | Distributed image synchronous display method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101640698B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572611B (en) * | 2010-12-07 | 2015-05-13 | 中国电信股份有限公司 | Method for watching network live stream synchronously with different users and system thereof |
CN104954630B (en) * | 2014-03-28 | 2018-01-12 | 深圳市海派尔科技开发有限公司 | Video time stamp acquisition methods, video processing equipment and video system |
CN106412633A (en) * | 2016-10-12 | 2017-02-15 | 北京蓝拓扑电子技术有限公司 | Screen mapping method and display clock synchronization control method and system of distributed multi-screen splicing controller |
CN108881955A (en) * | 2017-05-08 | 2018-11-23 | Tcl新技术(惠州)有限公司 | A kind of method and system for realizing the output of distributed node equipment audio video synchronization |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064768A (en) * | 2006-04-29 | 2007-10-31 | 李明 | System and method for playing synchronously dynamic image |
-
2009
- 2009-08-21 CN CN2009100420651A patent/CN101640698B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064768A (en) * | 2006-04-29 | 2007-10-31 | 李明 | System and method for playing synchronously dynamic image |
Non-Patent Citations (1)
Title |
---|
JP特开2005-244314A 2005.09.08 |
Also Published As
Publication number | Publication date |
---|---|
CN101640698A (en) | 2010-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101640698B (en) | Distributed image synchronous display method | |
CN105656590B (en) | Realize the methods, devices and systems of time synchronization | |
CN101453316B (en) | Time information synchronization system, method and related apparatus | |
CN101043315B (en) | Network clock synchronous device, system and method | |
CN102983926B (en) | A kind of method for designing of blade system clock synchronous | |
CN102315985A (en) | Time synchronization precision test method for intelligent device adopting IEEE1588 protocols | |
WO2012075881A1 (en) | Ieee1588-based sampled value multi-interface synchronization system for multiple slave clocks | |
CN103546662A (en) | Audio and video synchronizing method in network monitoring system | |
WO2017107519A1 (en) | Clock synchronization method and device | |
CN103546267A (en) | Time synchronization monitoring method and system | |
CN102714607A (en) | Connectivity fault management timeout period control | |
CN106156318A (en) | A kind of system and method realizing multinode data base's High Availabitity | |
CN103259640A (en) | Method and device for synchronizing time | |
CN102227110B (en) | Measurement one way delay method and equipment thereof, and communication system | |
CN109495203A (en) | A kind of recovery system of PTP from clock | |
CN102098121A (en) | Method and device for monitoring time synchronization | |
CN105450491B (en) | A kind of time synchronization hardware structure and method for synchronizing time based on 1588 agreements | |
CN107528655A (en) | Method for synchronizing time and clock synchronization system | |
CN102833027B (en) | A kind of synchronous regime monitoring method based on time migration | |
CN113032379A (en) | Distribution network operation and inspection-oriented multi-source data acquisition method | |
CN106060580B (en) | Image synchronous display method and device | |
WO2018076651A1 (en) | Time synchronization method, device and computer storage medium | |
CN113225152B (en) | Method and device for synchronizing cameras and computer readable medium | |
CN105763310A (en) | Monitoring method and apparatus of power grid time frequency signals | |
JP2007306497A (en) | Clock synchronization method and circuit in packet transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Kezhu road high tech Industrial Development Zone, Guangzhou city of Guangdong Province, No. 233 510670 Patentee after: Wei Chong group Limited by Share Ltd Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No. Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd. |