Summary of the invention
A kind of fancy is the object of the present invention is to provide to splice player method, processing of signal sources display is carried out by controller to solve prior art, owing to needing the special control terminal of configuration to process signal source, the problem that the cost that fancy splicing is play is higher.
First aspect, embodiments provide a kind of fancy splicing player method, playback terminal comprises from synchronous terminal and main synchronous terminal, and described method comprises:
Receive the synchronous played data information of main synchronous terminal transmission from synchronous terminal, described synchronous played data information comprises play content ID;
Playback terminal resolves described synchronous played data information, obtains the local resource data of corresponding needs broadcasting according to described play content ID;
Playback terminal, according to the topology data of the display frame pre-set, is synchronously play described local resource data.
In conjunction with first aspect, may in implementation in the first of first aspect, describedly receive from synchronous terminal the synchronous played data information Step that main synchronous terminal sends and comprise:
Set up multiple from the connection between synchronous terminal and main synchronous terminal;
According to position and the corresponding relation from the mark of synchronous terminal, receive the play content ID of main synchronous terminal transmission from synchronous terminal.
In conjunction with the first possibility implementation of first aspect, in the second possibility implementation of first aspect, describedly multiplely be positioned at same local area network (LAN) from synchronous terminal and main synchronous terminal, described foundation is multiplely specially from the Connection Step between synchronous terminal and main synchronous terminal:
Set up multiple from the connection between synchronous terminal and main synchronous terminal by socket, wherein said socket comprises the multicast address from synchronous terminal or main synchronous terminal.
In conjunction with the first possibility implementation of first aspect, in the third possibility implementation of first aspect, described playback terminal, according to the topology data of the display frame pre-set, is synchronously play step to described local resource data and is comprised:
According to described scalability information, convergent-divergent is carried out to the picture of the described local resource data play;
By the offset coordinates side-play amount round about of the picture after described convergent-divergent, and picture after skew is rotated the anglec of rotation to described display screen.
In conjunction with first aspect, in the 4th kind of possibility implementation of first aspect, at the topology data of described playback terminal according to the display frame pre-set, before synchronously playing step to described local resource data, described method comprises:
Playback terminal resolves described synchronous played data information, judges whether the content of current needs broadcasting comprises and synchronously plays identification information;
If need the content play not comprise current and synchronously play identification information, then corresponding to described play content ID local resource data are normally play;
If need the content play to comprise current and synchronously play identification information, then playback terminal is according to the topology data of the display frame pre-set, and synchronously plays described local resource data.
Second aspect, embodiments provide a kind of fancy splicing playing device, playback terminal comprises from synchronous terminal and main synchronous terminal, and described device comprises:
Playlist acquisition unit, for receiving the synchronous played data information that main synchronous terminal sends from synchronous terminal, described synchronous played data information comprises play content ID;
Resolution unit, resolves described synchronous played data information for playback terminal, obtains the local resource data of corresponding needs broadcasting according to described play content ID;
Broadcast unit, for the topology data of playback terminal according to the display frame pre-set, synchronously plays described local resource data.
In conjunction with second aspect, in the first possibility implementation of second aspect, described playlist acquisition unit comprises:
Connection establishment subelement, multiple from the connection between synchronous terminal and main synchronous terminal for setting up;
Data send subelement, for according to position and the corresponding relation from the mark of synchronous terminal, receive the play content ID of main synchronous terminal transmission from synchronous terminal.
May implementation in conjunction with the first of second aspect, may in implementation at the second of second aspect, be describedly multiplely positioned at same local area network (LAN) from synchronous terminal and main synchronous terminal, described connection establishment subelement specifically for:
Set up multiple from the connection between synchronous terminal and main synchronous terminal by socket, wherein said socket comprises the multicast address from synchronous terminal or main synchronous terminal.
In conjunction with the first possibility implementation of second aspect, in the third possibility implementation of second aspect, described broadcast unit comprises:
Convergent-divergent subelement, for according to described scalability information, carries out convergent-divergent to the picture of the described local resource data play;
Display data determination unit, for by the offset coordinates side-play amount round about of the picture after described convergent-divergent, and will rotate the anglec of rotation to described display screen by picture after skew.
The third aspect, embodiments provides a kind of fancy splicing Play System, described fancy splicing Play System comprise that main synchronous terminal is connected with multiple and main synchronous terminal from synchronous terminal, wherein:
Described main synchronous terminal is used for synchronous played data information to be sent to multiple from synchronous terminal, and playback terminal resolves described synchronous played data information, the local resource data of corresponding needs broadcasting are obtained according to the play content ID in synchronous played data information, according to the topology data of the display frame in synchronous played data information, described local resource data are synchronously play;
The described synchronous played data information sent for receiving master-slave synchronisation terminal from synchronous terminal, and playback terminal resolves described synchronous played data information, the local resource data of corresponding needs broadcasting are obtained according to the play content ID in synchronous played data information, according to the topology data of the display frame in synchronous played data information, described local resource data are synchronously play.
In the present invention, by the main synchronous terminal in playback terminal to sending synchronous played data information from synchronous terminal, playback terminal searches the local resource needing to play according to the play content ID in described synchronous played data information, according to the topology data of the display frame in synchronous played data information, local resource data are synchronously play, thus make the present invention in playback terminal, fancy splicing broadcasting can be completed by synchronous played data information, do not need extra controller, be conducive to saving and play cost.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The object of the embodiment of the present invention is to provide a kind of fancy to splice player method, during to solve fancy of the prior art splicing broadcasting, and the problem that cost is larger.In existing fancy splicing play-back technology, need to use special controller to process signal source, the effect of being spliced as required by controller, after signal source is processed, the view data after process is sent on corresponding display screen.Owing to needing special controller to process image, therefore play cost higher.Below in conjunction with accompanying drawing, the present invention is specifically described.
Fig. 1 shows the realization flow of the fancy splicing player method that the embodiment of the present invention provides, and in embodiments of the present invention, described playback terminal comprises from synchronous terminal and main synchronous terminal, and details are as follows for described method:
In step S101, receive the synchronous played data information of main synchronous terminal transmission from synchronous terminal, described synchronous played data information comprises play content ID.
Concrete, playback terminal described in the embodiment of the present invention, namely for playing the display screen of fancy splicing effect.Described playback terminal can be intelligent television, also can have the display screen of intelligent processing capacity for other, the independent mosaic screen etc. such as often used when splicing and playing.
In embodiments of the present invention, described main synchronous terminal with from synchronous terminal, store identical video data, and the id information of video data is identical.Certainly, in wherein part playback terminal not this video data time, the data that other playback terminal transmits can be received by synchronous mode.
In embodiments of the present invention, described main synchronous terminal can in display terminal any one, described from synchronous terminal can be one or more display terminal, needs play according to splicing and setting flexibly.Described main synchronous terminal and the name from synchronous terminal, be send mode according to synchronous played data information and fixed, namely sets synchronous played data information and be sent to from synchronous terminal by main synchronous terminal.
In embodiments of the present invention, described main synchronous terminal with establish a communications link from synchronous terminal, thus make winner's synchronous terminal that synchronous played data information is sent to each from synchronous playback terminal.
Wherein, the mode connected can complete connection by wired mode, wireless mode.Preferred a kind of mode is, as shown in Figure 2, when being provided with WIFI communication module in playback terminal, described main synchronous terminal be connected to same local area network (LAN) from synchronous terminal by router or switch, thus realize exchanges data fast and effectively.Such as by local area network (LAN), video resource can be distributed to each playback terminal fast, and when Play Control, described synchronous played data information be distributed to each from synchronous terminal from main synchronous terminal.
In embodiments of the present invention, described main synchronous terminal and from the communication between synchronous terminal, can be realized by the mode of socket, namely main synchronous terminal or the multicast address from synchronous terminal is comprised at socket, complete main synchronous terminal by the mode arranging socket and from the communication between synchronous terminal, and can fast and effectively by synchronous played data distribution of information to each playback terminal.
Described synchronous played data information, for the play content ID of recording played terminal, as in the optional execution mode of one, can in described main synchronous terminal and the communication protocol of arranging jointly to observe from synchronous terminal, for realizing the mutual of synchronous played data information, such as can pass through the broadcast of UDP procotol, or multicast mode, send in local area network (LAN) all from synchronous terminal.
Be understandable that, in each playback terminal, topology data is stored in the embodiment of the present invention, described topology data also can according to construction requirement, be stored in advance in each playback terminal, or each playback terminal can be sent to by server, certainly, also can be sent to each from synchronous playback terminal by main playback terminal.
Such as, as the citing for synchronous played data embodiment a kind of in the embodiment of the present invention, Ke Yiwei: SE, status=1, unit=167_1, vi=567, pi1=586, pi2=583, ti=10
Wherein: SE is protocol header, the beginning of agreement is represented;
Status represents synchronous regime, and 1 opens synchronously, and 0 is asynchronous;
Unit can be unit number ID corresponding in playlist, can arrange multiple unit number, can arrange multiple playing resource information, the unit number ID that 167_1 is namely corresponding in different unit numbers in playback terminal by the playlist stored;
Vi is the meaning of videotask, and 567 is corresponding db_id, i.e. play content ID, for the resource of unique identification playback terminal; Ti is the time that current video is play, and unit is ms.
For making playback terminal according to the play content ID received, can find fast and need the synchronous resource play, in playback terminal, be provided with playlist, store the multiple resource content of playback terminal in described playlist, comprise as contents such as video, image, background music, captions.Described playlist can be stored in each playback terminal, also by main synchronous terminal, playlist can be updated to each from synchronous terminal.
Wherein, described topology data, refers to the position data corresponding to position of the construction setting of playback terminal, can comprise the coordinate offset amount of the display screen of playback terminal, the anglec of rotation and scalability information.
Described topology data, according to the construction requirement of playback terminal, can make the topology data that each playback terminal is corresponding different.Be illustrated in figure 3 the schematic layout pattern of wherein a kind of fancy tiled display.Rectangle frame A represents the size of source picture after convergent-divergent that needs are synchronously play, wherein, the ratio of rectangle frame A convergent-divergent can adjust accordingly according to the pattern of fancy splicing, in such as fancy splicing pattern, be positioned at the summit of upper and lower, left and right four direction more outward, such as upper end more up, or lower end is more toward inferior, then needing increases corresponding for the picture synchronously play scaling.The size of each local in the source picture after convergent-divergent, namely corresponds to the size of the display frame of playback terminal.
Rectangle frame B, C, D, E, F as shown in Figure 3, for realizing the playback terminal of fancy splicing, can select wherein that any one playback terminal is as main synchronous terminal, other remaining playback terminal as from synchronous playback terminal, additionally can certainly arrange an independent main synchronous terminal.
By the source picture synchronously play after convergent-divergent adjustment, the view data that needs are play all can be comprised in the playback terminal of fancy splicing, for uniquely determining the image data information play in playback terminal, need to calculate position data in playback terminal, be specifically as follows coordinate offset amount and the anglec of rotation of playback terminal.
In a kind of optional execution mode as shown in Figure 3, the coordinate that the coordinate offset amount of playback terminal is separated according to the upper left of playback terminal (can also select other point in practical operation, the such as coordinate etc. in central point, the upper right corner) determine, the lower left corner such as setting the source picture after convergent-divergent is the origin of coordinates, so can according to construction data, calculate the coordinate that the upper left corner of each playback terminal is corresponding, i.e. the coordinate offset amount of each playback terminal.
The described anglec of rotation, for playback terminal is after construction setting, its angle rotated changes relative to the angle of horizontal level.
Because the topology data of different playback terminal is different, therefore need corresponding with terminal for different topology datas.In embodiments of the present invention, can set topology data corresponding with the mark of playback terminal, the mark of described playback terminal, can be device id, also can be that port numbers is corresponding with the socket that multicast address is formed.
In step s 102, playback terminal resolves described synchronous played data information, obtains the local resource data of corresponding needs broadcasting according to described play content ID.
Concrete, playback terminal resolves described synchronous played data information, comprise main synchronous terminal and from synchronous terminal, synchronous played data information resolved, namely need to obtain play content ID according to synchronous played data information analysis, or the topology data of playback terminal display frame can also be comprised.
After obtaining play content ID, the play content ID needing the playlist in conjunction with playback terminal to store and the corresponding relation of playing resource, find corresponding playing resource.
As the sample of the embodiment of the present invention wherein a kind of playlist, list the resource information that playback terminal comprises video, picture, sound, word, and store with XML file form.Using these resource consolidations as a unit.This signal only citing comprises a unit, certainly can also comprise multiple unit.And the contents such as synchronous regime, topology data and reproduction time can also be comprised in the cells, which.Certainly, described synchronous regime can also can be arranged in synchronous regime data message.
When in playlist or when synchronous regime data comprise synchronous regime, then need to resolve described synchronous played data information, judge whether the content of current needs broadcasting comprises and synchronously play identification information;
If need the content play not comprise current and synchronously play identification information, then corresponding to described play content ID local resource data are normally play;
If need the content play to comprise current and synchronously play identification information, then playback terminal is according to the topology data of the display frame pre-set, and synchronously plays described local resource data.
In step s 103, playback terminal, according to the topology data of the display frame pre-set, is synchronously play described local resource data.
The topology data of described playback terminal display frame, can be sent to from synchronous terminal by main synchronous terminal, also can be stored in playback terminal by topology data by USB flash disk or other data batchmove mode.Be not limited to main synchronous terminal by synchronous played data information, described topology data is updated to from synchronous terminal.
Playback terminal, according to the topology data of the display frame pre-set, comprises scaling, coordinate offset amount, the anglec of rotation, can obtain the broadcasting pictures content that each playback terminal is corresponding.Specifically can comprise the steps:
S1, according to described scalability information, carries out convergent-divergent to the picture of the described local resource data play;
S2, by the offset coordinates side-play amount round about of the picture after described convergent-divergent, and rotates the anglec of rotation to described display screen by picture after skew.
Wherein, according to described scalability information, the size of the picture of source picture when realizing fancy splicing and playing can be obtained, comprise the length of source picture and wide yardstick.The length of described source picture and wide, can carry out convergent-divergent according to the ratio of source picture, also can adjust the ratio of picture as required.Such as five mosaic screens as shown in Figure 3 carry out fancy splicing when playing, and need that source picture is amplified 10 times and play, so, also amplify ten times to the picture of the local resource data in playback terminal.
Described coordinate offset amount, can set after the source picture after convergent-divergent sets up coordinate, the origin of coordinates is traditionally arranged to be the vertex position of the picture after convergent-divergent, such as the upper left corner etc.Generally, the position of the described origin of coordinates is fixed value relative to the position of screen display screen, can certainly adjust flexibly as required.According to any coordinate figure of certain in the display screen of the playback terminal preset, as the coordinate offset amount of playback terminal.Coordinate offset amount as shown in Figure 3 using the upper left corner of playback terminal as playback terminal.Thus determine the position of playback terminal.
The coordinate offset amount determined, just can offset picture according to described coordinate offset amount, such as with initial point (0,0) be reference point, the coordinate of display screen A is (a, b), so carries out coordinate offset for display screen A, (-a ,-b) position of coordinate is offset to by the picture after convergent-divergent.
According to the anglec of rotation of described display screen, the picture after skew or convergent-divergent is carried out to the rotation of respective angles, then play postrotational image content.
Understandable, can carry out according to random order for convergent-divergent, rotation, skew in the embodiment of the present invention, such as can select and carry out picture rotation, then carry out the skew of picture, finally complete picture convergent-divergent.It should be noted that the side-play amount of picture before and after convergent-divergent is also respective change.
Fig. 4 shows the structural representation of the fancy splicing playing device that the embodiment of the present invention provides, and details are as follows:
Fancy splicing playing device described in the embodiment of the present invention, playback terminal comprises from synchronous terminal and main synchronous terminal, and described device comprises:
Playlist acquisition unit 401, for receiving the synchronous played data information that main synchronous terminal sends from synchronous terminal, described synchronous played data information comprises play content ID;
Resolution unit 402, for resolving described synchronous played data information, obtains the local resource data of corresponding needs broadcasting according to described play content ID;
Broadcast unit 403, for the topology data according to the display frame pre-set, synchronously plays described local resource data.
Preferably, described playlist acquisition unit comprises:
Connection establishment subelement, multiple from the connection between synchronous terminal and main synchronous terminal for setting up;
Data send subelement, for according to position and the corresponding relation from the mark of synchronous terminal, receive the play content ID of main synchronous terminal transmission from synchronous terminal.
Preferably, be describedly multiplely positioned at same local area network (LAN) from synchronous terminal and main synchronous terminal, described connection establishment subelement specifically for:
Set up multiple from the connection between synchronous terminal and main synchronous terminal by socket, wherein said socket comprises the multicast address from synchronous terminal or main synchronous terminal.
Preferably, described broadcast unit comprises:
Convergent-divergent subelement, for according to described scalability information, carries out convergent-divergent to the picture of the described local resource data play;
Display data determination unit, for by the offset coordinates side-play amount round about of the picture after described convergent-divergent, and will rotate the anglec of rotation to described display screen by picture after skew.
As shown in Figure 2, a kind of fancy splicing Play System that the embodiment of the present invention provides, comprise that main synchronous terminal is connected with multiple and main synchronous terminal from synchronous terminal, wherein:
Described main synchronous terminal is used for synchronous played data information to be sent to multiple from synchronous terminal, and playback terminal resolves described synchronous played data information, the local resource data of corresponding needs broadcasting are obtained according to the play content ID in synchronous played data information, according to the topology data of the display frame in synchronous played data information, described local resource data are synchronously play;
The described synchronous played data information sent for receiving master-slave synchronisation terminal from synchronous terminal, and playback terminal resolves described synchronous played data information, the local resource data of corresponding needs broadcasting are obtained according to the play content ID in synchronous played data information, according to the topology data of the display frame in synchronous played data information, described local resource data are synchronously play.
Fancy splicing playing device and system described in the embodiment of the present invention, to splice player method corresponding with the fancy described in Fig. 1-3, do not repeat at this.
In several embodiment provided by the present invention, should be understood that, disclosed apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.