Content of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of video wall splicing method and system,
Aim to solve the problem that existing video wall splicing technology needs the problem of the control of main frame and signal controller.
Technical scheme is as follows:
A kind of video wall splicing method, wherein, including step:
A, multiple stage display is formed combination, and each display is connected on same router;
B, the ID based on the multimedia resource to be played and described multimedia resource positional information in combination makes to be broadcast
Put unit and be issued in every display;
C, display parsing broadcast unit, the ID according to described multimedia resource obtains corresponding multimedia resource, and according to aobvious
Show device from the position in combination provides to described multimedia in the position in combination and acquired multimedia resource
Source carries out cutting;
D, each display synchronously play the multimedia resource after respective cutting.
Described video wall splicing method, wherein, described step A also includes:
A1, each display set up socket;
A2, socket is connected with multicast address;
A3, startup listening port are monitored.
Described video wall splicing method, wherein, in described step B, also includes described combination in described broadcast unit
Width and height, and specify synchronous display ID.
Described video wall splicing method, wherein, described step C specifically includes:
C1, display parse described broadcast unit, obtain width and the height of described combination, and the display ID according to itself, obtain
Take position in combination for the described display;
C2, according to described display in the position in combination and corresponding position in combination for the multimedia resource, calculate
Going out corresponding multimedia resource needs the area size of cutting;
C3, according to the area size calculating, cutting is carried out to corresponding multimedia resource.
Described video wall splicing method, wherein, described step D specifically includes:
D1, when to judge the ID of present displays be to specify synchronous display ID, if when generate synch command and send to spelling
Connect remaining display in wall;
D2, the listening port of remaining display described listen to synch command and parse described synch command, obtain multimedia money
The ID in source, timestamp and corresponding playing duration information;
D3, each display obtain the multimedia resource after corresponding cutting according to the ID of described multimedia resource, according to the described time
Stamp and playing duration show the multimedia resource after cutting.
A kind of video wall splicing system, wherein, including:
Concatenation module, for multiple stage display is formed combination, and each display is connected on same router;
Issue module, for the ID based on the multimedia resource to be played and described multimedia resource position in combination
Information makes broadcast unit and is issued in every display;
Cutting module, for parsing broadcast unit, the ID according to described multimedia resource obtains corresponding multimedia resource, and root
According to display from position in combination of the position in combination and acquired multimedia resource to described many matchmakers
Body resource carries out cutting;
Synchronization module, for the synchronous multimedia resource play after respective cutting.
Described video wall splicing system, wherein, described concatenation module also includes:
Socket sets up unit, is used for setting up socket;
Multicast unit, for being connected socket with multicast address;
Monitoring unit, is monitored for starting listening port.
Described video wall splicing system, wherein, also includes width and the height of described combination in described broadcast unit, and
Specify synchronous display ID.
Described video wall splicing system, wherein, described cutting module specifically includes:
Position acquisition unit, for parsing described broadcast unit, obtains width and the height of described combination, and the display according to itself
Device ID, obtains position in combination for the described display;
Computing unit, in the position in combination and corresponding to multimedia resource according to described display in combination
Position, calculating corresponding multimedia resource needs the area size of cutting;
Cutting unit, for carrying out cutting according to the area size calculating to corresponding multimedia resource.
Described video wall splicing system, wherein, described synchronization module specifically includes:
Transmitting element, when the ID for judging present displays is to specify synchronous display ID, if when generate synch command
And remaining display sending to combination;
Resolution unit, is used for listening to synch command and parsing described synch command, obtain the ID of multimedia resource, timestamp with
And corresponding playing duration information;
Display unit, for obtaining the multimedia resource after corresponding cutting according to the ID of described multimedia resource, according to described when
Between stamp and playing duration show cutting after multimedia resource.
Beneficial effect:Multiple stage display is formed combination by the present invention, and is connected to one net of composition on same router
Network, every display calculates multimedia resource each to be shown and positional information according to broadcast unit, then multimedia
Resource carry out cutting etc. operation, then simultaneous display out, thus forming the effect of overall combination.The method of the present invention is than biography
That unites is simpler by connecting the signal controller connecting methods such as HDMI wire, VGA line, is more convenient, and greatlys save economy
Cost, and safeguard simpler.
Specific embodiment
The present invention provides a kind of video wall splicing method and system, for making the purpose of the present invention, technical scheme and effect more
Plus clear, clear and definite, the present invention is described in more detail below.It should be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is a kind of flow chart of present invention video wall splicing method preferred embodiment, as illustrated, its
Including step:
S1, multiple stage display is formed combination, and each display is connected on same router;
S2, the ID based on the multimedia resource to be played and described multimedia resource positional information in combination makes to be broadcast
Put unit and be issued in every display;
S3, display parsing broadcast unit, the ID according to described multimedia resource obtains corresponding multimedia resource, and according to aobvious
Show device from the position in combination provides to described multimedia in the position in combination and acquired multimedia resource
Source carries out cutting;
S4, each display synchronously play the multimedia resource after respective cutting.
The present invention without main frame and signal controller control it is only necessary to each display is connected on a router,
Combination can be formed, when playing multimedia resource, cutting is carried out to multimedia resource by each display, then synchronous broadcasting
Each multimedia resource of cutting, thus realize the effect of combination.
Specifically, as shown in Fig. 2 described step S1 also includes:
S11, each display set up socket;
S12, socket is connected with multicast address;
S13, startup listening port are monitored.
The program of display mainly completes two tasks, that is, have two threads:Thread one and thread two, thread therein
One mainly sets up network service.
As detailed above, set up socket DatagramSoket in step s 11 first, this is in android system
Set up a method of network service, it is relevant with the network address of display, and in different system, method is different, but substantially
Principle is consistent.
Then in step s 12 socket is connected with multicast address, multicast address is a concept of network service, phase
When in the set of a class network address, after adding same multicast, a network address messaging, other addresses in multicast
Message can be received, simultaneously also can be to other address messaging.
In step s 13, start listening port, this port is the port monitoring multicast address, also can customize, its work
With being to wait for receiving multicast message(Mainly synch command), the address in multicast has to listen to port and just can receive other ground
The message that location sends.
Certainly the method setting up network service is not only a kind of above-mentioned method, can also be additive method, can be according to reality
Border situation adjustment.For thread one, if do not need synchronous, you can close thread one, that is, close network service,
Network service is opened when needing.
The effect to the effect that completing display content formation combination of thread two.
Below this is described in detail.
First in step s 2, broadcast unit, the specifically ID based on multimedia resource to be played and described are made
Positional information in combination for the multimedia resource makes broadcast unit, and it can be to be handed down to display by network, also may be used
To be to make local, it is then store on the storage card of every display.In addition, the display of the present invention can be numeral mark
Board display, but it is also not necessarily limited to digital signage display.In addition the information of broadcast unit also includes:The width of described combination and
Height, and specify synchronous display ID(Main synchronous ID).If certain display ID is identical with specifying synchronous display ID,
The corresponding display of this display ID is described, and it needs to send synch command to remaining display in combination, makes all displays
Device synchronizes display.The ID of display is defaulted as from synchronous ID, if certain does not receive synchronous life from the display of synchronous ID
Order, then only need to play content in itself storage card.If certain display ID is to specify synchronous display ID, need
Send synch command, so aforesaid thread one can listen to synch command, thus realizing synchronous broadcasting, subsequently to this process
It is described in detail.
Further, as shown in figure 3, described step S3 specifically includes:
S31, display parse described broadcast unit, obtain width and the height of described combination, and the display ID according to itself, obtain
Take position in combination for the described display;
S32, according to described display in the position in combination and corresponding position in combination for the multimedia resource, calculate
Going out corresponding multimedia resource needs the area size of cutting;
S33, according to the area size calculating, cutting is carried out to corresponding multimedia resource.
Display parses the information in described broadcast unit, obtains width and the height of combination therein, according to itself display
Distribution in combination for the device ID, thus obtaining positional information in combination for the described display, subsequently can contrast described many
Positional information in combination for the media resource, thus the region of the multimedia resource of display is big required for calculating each display
Little, and carry out cutting accordingly.
Further, as shown in figure 4, described step S4 specifically includes:
S41, when to judge the ID of present displays be to specify synchronous display ID, if when generate synch command and send to spelling
Connect remaining display in wall;
S42, the listening port of remaining display described listen to synch command and parse described synch command, obtain multimedia money
The ID in source, timestamp and corresponding playing duration information;
S43, each display obtain the multimedia resource after corresponding cutting according to the ID of described multimedia resource, according to the described time
Stamp and playing duration show the multimedia resource after cutting.
Wherein, remaining display described be removing in combination be designated outside the display of synchronization indicator ID its
His display.Above-mentioned steps are first to judge whether to generate and send synch command by thread two, if certain display ID is
When specifying synchronous display ID, then this display generates synch command(Contain in synch command multimedia resource ID, when
Between stamp and playing duration information, but not limited to this), according to timestamp(It is not limited only to the mode of timestamp)Timing sends synchronous life
Order(Such as TCP/UDP Network Synchronization order)To remaining display in described combination, so remaining display can pass through
The listening port before establishing listens to synch command, and synch command is parsed, and obtains multimedia resource therein
ID, timestamp and playing duration information, because each display has all cut multimedia resource in step s3, so
Only the multimedia resource after cutting need to be shown according to timestamp and playing duration, after specifically can showing cutting by way of scaling
Multimedia resource that is to say, that in combination, remaining display all can enter according to the timestamp of specified synchronous display
Row is synchronous to be play, thus realizing Complete Synchronization.
Based on said method, the present invention also provides a kind of video wall splicing system preferred embodiment, as figure institute 5 shows, its bag
Include:
Concatenation module 100, for multiple stage display is formed combination, and each display is connected to same router
On;
Issue module 200, for the ID based on multimedia resource to be played and described multimedia resource in combination
Positional information makes broadcast unit and is issued in every display;
Cutting module 300, for parsing broadcast unit, the ID according to described multimedia resource obtains corresponding multimedia resource,
And according to display from position in combination of the position in combination and acquired multimedia resource to described
Multimedia resource carries out cutting;
Synchronization module, for the synchronous multimedia resource play after respective cutting.
Further, as shown in fig. 6, described concatenation module 100 also includes:
Socket sets up unit 110, is used for setting up socket;
Multicast unit 120, for being connected socket with multicast address;
Monitoring unit 130, is monitored for starting listening port.
Further, also include width and the height of described combination in described broadcast unit, and specify synchronous display ID.
Further, as shown in fig. 7, described cutting module 300 specifically includes:
Position acquisition unit 310, for parsing described broadcast unit, obtains width and the height of described combination, and according to itself
Display ID, obtains position in combination for the described display;
Computing unit 320, for according to position in combination for the described display and corresponding multimedia resource in combination
In position, calculating corresponding multimedia resource needs the area size of cutting;
Cutting unit 330, for carrying out cutting according to the area size calculating to corresponding multimedia resource.
Further, as shown in figure 8, described synchronization module 400 specifically includes:
Transmitting element 410, when the ID for judging present displays is to specify synchronous display ID, if when generate synchronous life
Make and send remaining display to combination;
Resolution unit 420, is used for listening to synch command and parsing described synch command, obtains ID, the time of multimedia resource
Stamp and corresponding playing duration information;
Display unit 430, obtains the multimedia resource after corresponding cutting for the ID according to described multimedia resource, according to described
Timestamp and playing duration show the multimedia resource after cutting.
Ins and outs with regard to above-mentioned modular unit are described in detail in method above, therefore repeat no more.
In sum, multiple stage display is formed combination by the present invention, and is connected to one net of composition on same router
Network, every display calculates multimedia resource each to be shown and positional information according to broadcast unit, then multimedia
Resource carry out cutting etc. operation, then simultaneous display out, thus forming the effect of overall combination.The method of the present invention is than biography
That unites is simpler by connecting the signal controller connecting methods such as HDMI wire, VGA line, is more convenient, and greatlys save economy
Cost, and safeguard simpler.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention
Shield scope.