CN108650541A - Realize that the method and system of video is played simultaneously in distinct device - Google Patents
Realize that the method and system of video is played simultaneously in distinct device Download PDFInfo
- Publication number
- CN108650541A CN108650541A CN201810438382.4A CN201810438382A CN108650541A CN 108650541 A CN108650541 A CN 108650541A CN 201810438382 A CN201810438382 A CN 201810438382A CN 108650541 A CN108650541 A CN 108650541A
- Authority
- CN
- China
- Prior art keywords
- equipment
- video
- video flowing
- reproduction time
- main equipment
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Abstract
The present invention provides a kind of method and systems realized distinct device and video is played simultaneously, the system comprises main equipment, from equipment and server, main equipment calculates itself and at least one communication delay information from equipment, and the reproduction time stamp of the first reproduction time of the mark of the video flowing got from server, the communication delay information being calculated, currently playing video flowing stamp or n-th frame video flowing is occurred to corresponding from equipment.Each stabs according to the first reproduction time of corresponding communication delay information and currently playing video flowing from equipment and generates the second reproduction time stamp, or it is stabbed according to the reproduction time of communication delay information and n-th frame video flowing and generates the second reproduction time stamp, and the second video flowing is played since stabbing the second reproduction time, to realize the simultaneously operating to main equipment and from device plays video flowing, user's synchronous demand for watching video flowing on different devices is met, the user experience is improved.
Description
Technical field
The present invention relates to video broadcasting fields, more particularly to a kind of to realize that distinct device is played simultaneously the method for video and is
System.
Background technology
Video stream data generally includes audio data and video data.Video flowing often encounters same in playing process
The nonsynchronous problem of audio data and video data of one video flowing, in order to ensure the progress of audio data and video data broadcasting
Unanimously, it needs to synchronize processing to audio data and video data.It refers to by selecting a unification that audio, video data, which synchronizes,
Reference clock (such as audio PTS, video PTS or external system clock) synchronize, general audio-visual synchronization mode have with
Under it is several:(1) synchronization video is to audio;(2) isochronous audio is to video;(3) isochronous audio and video are to external clock.However,
It is the nonsynchronous situation of individual equipment audio and video that above-mentioned several methods of synchronization, which are directed to, asynchronous for multiple equipment video stream data
The case where currently without a good solution.Such as in practical application scene, a certain user wishes and another user
It synchronizes and watches a certain step film online, communication can be carried out online at any time in time, however by factors such as network delays
It influences, it is difficult to accomplish that the film progress of both sides' viewing can be consistent, affects the sensory experience of user.
Invention content
For this reason, it may be necessary to a kind of technical solution realized distinct device and video is played simultaneously be provided, to solve distinct device
Video stream data can not precisely be played simultaneously, lead to the problem of user's sensory experience difference.
To achieve the above object, a kind of method realized distinct device and video is played simultaneously, the side are inventor provided
Method includes the following steps:
Main equipment obtains the first video flowing from server, and the corresponding video traffic identifier of the first video flowing is sent to one
A above slave equipment;Each video flowing corresponds to a video traffic identifier;
Respectively the second video flowing is obtained from server from equipment according to the corresponding video traffic identifier of the first video flowing;
Calculate separately main equipment and more than one from the communication delay information between equipment;
The first video flowing of main equipment pair is decoded;
S1:Main equipment obtains the first reproduction time stamp of currently playing video flowing, and by the of currently playing video flowing
One reproduction time stamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S2:It is respectively stabbed and is generated according to the first reproduction time of corresponding communication delay information and currently playing video flowing from equipment
Second reproduction time stabs, and the second video flowing is played since stabbing the second reproduction time.
Inventor additionally provides another method realized distinct device and video is played simultaneously, and the method includes following steps
Suddenly:
Calculate separately main equipment and the more than one communication delay information between equipment;
Main equipment obtains the first video flowing from server, and is decoded to the first video flowing of acquisition, obtains decoding
Suspend after preceding n frames video flowing afterwards and play, obtains the reproduction time stamp of n-th frame video flowing;Each video flowing corresponds to a video flowing
Mark, the n are positive integer;
Main equipment by the reproduction time of n-th frame video flowing stamp, with respectively from the communication delay information of equipment and currently playing
The corresponding video traffic identifier of the first video flowing be sent to it is corresponding from equipment;
The second video flowing respectively is obtained from server from equipment according to the video traffic identifier received, and according to corresponding communication
The reproduction time of delayed data and n-th frame video flowing stamp generates the second reproduction time stamp, and is broadcast since stabbing the second reproduction time
Put the second video flowing;And it sends and plays restarting information to main equipment;
Main equipment receives play restarting information after, broadcasting the is restarted according to the reproduction time of n-th frame video flowing stamp
One video data.
Further, described to calculate separately main equipment and more than one includes from the communication delay information between equipment:
Main equipment and respectively from carrying out m network data communication between equipment, and obtain the total duration of m network data communication
T, the m are positive integer;
According to following formula calculate separately main equipment and more than one from the communication delay information Δ T1 between equipment:ΔT1
=T/ (2m).
Further, the quantity of the server is multiple, includes at least first server and second server, main equipment
It connect with first server, is connect from equipment with second server;The method includes:
Main equipment obtains the first video flowing from first server, or obtains the second video from second server from equipment
Data, the first video flowing and the corresponding video traffic identifier of the second video flowing are identical.
Further, the method includes:
During first video render, according to preset main equipment with from equipment audio video synchronization operating frequency, weigh successively
The audio video synchronization operation of multiple S1 and S2.
Further, the method includes:
During first video render, according to preset main equipment with from equipment audio video synchronization operating frequency, weigh successively
The audio video synchronization operation of multiple following S3 and S4:
S3:Main equipment obtains the first reproduction time stamp of currently playing video flowing, and by the of currently playing video flowing
One reproduction time stamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S4:Respectively the is generated from equipment according to the first reproduction time of corresponding communication delay information and currently playing video flowing stamp
Three reproduction times stab, and the second video flowing is played since stabbing third reproduction time.
Inventor additionally provides a kind of system realized distinct device and video is played simultaneously, the system comprises server,
Main equipment and more than one from equipment;The main equipment is connect with server, the main equipment with respectively connect from equipment, it is described
Respectively it is connect respectively with server from equipment;
The main equipment from server for obtaining the first video flowing, and by the corresponding video traffic identifier of the first video flowing
It is sent to respectively from equipment;Each video flowing corresponds to a video traffic identifier;
It is described respectively to be used to obtain the second video flowing from server according to the corresponding video traffic identifier of the first video flowing from equipment;
The main equipment be additionally operable to calculate separately main equipment and more than one from the communication delay information between equipment, and it is right
First video flowing is decoded;
S1:Main equipment obtains the first reproduction time stamp of currently playing video flowing, and by the of currently playing video flowing
One reproduction time stamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S2:It is respectively stabbed and is generated according to the first reproduction time of corresponding communication delay information and currently playing video flowing from equipment
Second reproduction time stabs, and the second video flowing is played since stabbing the second reproduction time.
It calculates separately main equipment and more than one additionally provides a kind of reality from the communication delay information inventor between equipment
The system that video is played simultaneously in existing distinct device, the system comprises server, main equipments and more than one from equipment;It is described
Main equipment is connect with server, the main equipment with respectively connect from equipment, it is described respectively to be connect respectively with server from equipment;
The main equipment for calculate separately main equipment and more than one from the communication delay information between equipment;
The main equipment is decoded the first video flowing of acquisition for obtaining the first video flowing from server,
Suspend broadcasting after obtaining decoded preceding n frames video flowing, obtains the reproduction time stamp of n-th frame video flowing;And by n-th frame video
The reproduction time stamp of stream, with respectively from the communication delay information of equipment and the corresponding video flowing of the first currently playing video flowing
Mark is sent to corresponding from equipment;Each video flowing corresponds to a video traffic identifier;
It is described respectively to be used to obtain the second video flowing from server according to the video traffic identifier received from equipment, and according to right
It answers the reproduction time of communication delay information and n-th frame video flowing stamp to generate the second reproduction time stamp, and is stabbed from the second reproduction time
Start to play the second video flowing;And it sends and plays restarting information to main equipment;
The main equipment, which is additionally operable to receive, plays restarting information, is restarted according to the reproduction time of n-th frame video flowing stamp
Play the first video data.
Further, main equipment for calculate separately main equipment and more than one from the communication delay packet between equipment
It includes:
Main equipment is used for and respectively carries out m network data communication from equipment, and obtains the total duration of m network data communication
T, and according to following formula calculate separately main equipment and more than one from the communication delay information Δ T1 between equipment:Δ T1=T/
(2m)。
Further, the quantity of the server is multiple, includes at least first server and second server, main equipment
It connect with first server, is connect from equipment with second server;
The main equipment is described to be used for from equipment from second server for obtaining the first video flowing from first server
The second video data of middle acquisition, the first video flowing and the corresponding video traffic identifier of the second video flowing are identical.
Further, during the first video render, frequency is operated with from equipment audio video synchronization according to preset main equipment
Rate is repeated in the audio video synchronization operation of S1 and S2.
Further, during the first video render, frequency is operated with from equipment audio video synchronization according to preset main equipment
Rate is repeated in the audio video synchronization operation of following S3 and S4:
S3:Main equipment is used to obtain the first reproduction time stamp of currently playing video flowing, and by currently playing video flowing
The first reproduction time stamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S4:Respectively it is used to be stabbed according to the first reproduction time of corresponding communication delay information and currently playing video flowing from equipment
Third reproduction time stamp is generated, and plays the second video flowing since stabbing third reproduction time.
It is different from the prior art, the realization distinct device described in above-mentioned technical proposal is played simultaneously the method for video and is
System, the system comprises main equipment, from equipment and server, main equipment calculates separately it and prolongs from the communication of equipment with more than one
When information, and by the mark of the video flowing got from server, the communication delay information being calculated, currently playing video flowing
The first reproduction time stamp or n-th frame video flowing reproduction time stamp occur to corresponding from equipment.Respectively from equipment according to reception
Communication delay information and the first reproduction time stamp of currently playing video flowing generate the second reproduction time stamp, or prolonged according to communication
When information and n-th frame video flowing reproduction time stamp generate the second reproduction time stamp, and since the second reproduction time stab play
Second video flowing meets user in distinct device to realize the simultaneously operating to main equipment and from device plays video flowing
Upper synchronous viewing video flowing demand, the user experience is improved.
Description of the drawings
Fig. 1 is the flow chart for the method that video is played simultaneously in the realization distinct device that one embodiment of the invention is related to;
Fig. 2 is the flow chart for the method that video is played simultaneously in the realization distinct device that another embodiment of the present invention is related to;
Fig. 3 is the structural schematic diagram for the system that video is played simultaneously in the realization distinct device that one embodiment of the invention is related to;
Reference sign:
101, main equipment;
102, from equipment;
103, server;113, first server;123, second server.
Specific implementation mode
For the technology contents of technical solution, construction feature, the objects and the effects are described in detail, below in conjunction with specific reality
It applies example and attached drawing is coordinated to be explained in detail.
Referring to Fig. 1, the flow of the method for video is played simultaneously for the realization distinct device that one embodiment of the invention is related to
Figure.It the described method comprises the following steps:
It initially enters step S101 main equipments and obtains the first video flowing from server, and regard the first video flowing is corresponding
Frequency traffic identifier is sent to more than one from equipment.
The main equipment and respectively from equipment be the electronic equipment with data-transformation facility and video playback capability, such as hand
Machine, tablet computer, personal computer, top box of digital machine etc..The video flowing is identified as the currently playing video flowing of characterization and is different from
The physical quantity of other video flowings, each video flowing correspond to a video traffic identifier.In the present embodiment, the video flowing is identified as
The corresponding MD5 values of video stream data.In further embodiments, video traffic identifier can also be carry out according to actual needs it is specific
Number, character or the character string of coding, such as the character string of same specific format beginning may be used, so that main equipment carries in time
Take out the video traffic identifier of currently playing video stream data.
It then enters step S102 and respectively obtains the from server from equipment according to the corresponding video traffic identifier of the first video flowing
Two video flowings.
First video flowing and the second video flowing are the video stream data with same video traffic identifier, the first video flowing and the
Two video flowings both can be the same or different, i.e., main equipment and both can obtain some from identical server from equipment
The identical video stream data of video traffic identifier can also obtain the identical video flowing of video traffic identifier from different server respectively
Data.The contents such as the video pictures that the first video flowing and the second video flowing are related to are identical, for example, being the video of same song
MV。
In the present embodiment, the quantity of the server is multiple, includes at least first server and second server,
Main equipment is connect with first server, is connect from equipment with second server;The method includes:Main equipment is from first server
The first video flowing of middle acquisition, or the second video data is obtained from second server from equipment.In this way, can effectively prevent to certain
The equipment of one server acquisition request video flowing is excessive, mitigates the pressure of server, prevents that interim card occurs in video display process,
Influence user experience.When having multiple from equipment, each a server can be correspondingly connected with from equipment.
Then enter step S103 calculate separately main equipment and more than one from the communication delay information between equipment.
In the present embodiment, step S103 includes:Main equipment and from carrying out m network data communication between equipment, and
Obtain the total duration T of m network data communication;According to following formula calculate separately main equipment and more than one between equipment
Communication delay information Δ T1:Δ T1=T/ (2m).The a certain message data of main equipment transmission extremely from equipment and is received from equipment hair
The response message to the message data sent is considered as main equipment and is communicated from carrying out 1 time between equipment.
It is described from the quantity of equipment be one or more, in the present embodiment, it is described from the quantity of equipment be it is multiple, often
One corresponds to a device identification from equipment.Main equipment is by the way of broadcast to all connected to it from equipment transmission message number
According to, and the different message response information fed back to from equipment are received respectively, it is contained from equipment pair in the message response information
The identification information answered.After main equipment receives message response information, extracted from message response information each corresponding from equipment
Device identification, and main equipment and each communication delay information between equipment are calculated, then according to the device identification from equipment
The communication delay information being calculated is sent to each from equipment.
The first video flowing of S104 main equipments pair is then entered step to be decoded.In general, for the occupancy of compressed video data
Space, the video flowing for being stored in server all pass through certain coded treatment, and main equipment needs to obtain the correlation of the first video flowing
Data (such as reproduction time stamp) then need first to be decoded processing to the first video flowing after the coding of acquisition.
The first reproduction time stamp that S1 main equipments obtain currently playing video flowing is then entered step, and will be currently playing
The first reproduction time stamp of video flowing, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
Then enter step S2:Respectively broadcast from equipment according to the first of corresponding communication delay information and currently playing video flowing
It puts timestamp and generates the second reproduction time stamp, and play the second video flowing since stabbing the second reproduction time.Preferably, it second broadcasts
It is the sum of the first reproduction time stamp and communication delay information to put timestamp.In this way, be achieved that main equipment with it is respectively synchronous from equipment
The function of playing video flowing, effectively improves user experience.
Either side in order to avoid main equipment and from the device leads to the two video flowing occur because of video render interim card
Nonsynchronous situation is played, the method includes:During first video render, regarded with from equipment according to preset main equipment
Frequency simultaneously operating frequency is repeated in the audio video synchronization operation of S1 and S2.Audio video synchronization operating frequency can be according to actual needs
It is set, for example, it can be set to execute primary or being executed every 5 minutes primary every 1 minute.In this way, in video render
In the process, using the reproduction time of main equipment as with reference to be, by constantly adjusting the reproduction time from equipment, to ensure regarding
Main equipment and the picture from equipment are always consistent during frequency stream broadcasting.
The audio video synchronization that the present embodiment can be applied to the multiple boxes in digital audio-video place plays application.In digital audio-video field
Institute, such as KTV, are typically provided with multiple boxes, and each box is interior equipped with the set-top box for being loaded with requesting song software and at least one
Display screen, a set-top box are connect with all display screens.When needing the display picture in a certain box sharing other boxes
Display screen when, only the set-top box of the box need to be chosen to be main equipment, it would be desirable to the machine for other boxes that synchronizing picture is shown
Top box is chosen to be from equipment, and it can be one that other, which need the box of synchronizing picture, can also be it is multiple, it is described can be with from equipment
It is one, can also be multiple.Synchronous video is needed since each box set-top box can play, so it can arbitrarily be selected
In a box set-top box as main equipment, played into row major and need synchronous video, other need synchronizing picture to show
Box set-top box be from equipment.Main equipment is carried out using the above method and more than one from equipment communication, realizes display
Picture (for example, requesting songs MV) is played simultaneously, and user can be facilitated to carry out the interaction such as chorus, greatly improve user experience.
As shown in Fig. 2, the method for video is played simultaneously for the realization distinct device that another embodiment of the present invention is related to
Flow chart.It the described method comprises the following steps:
Initially enter step S201 calculate separately main equipment and more than one from the communication delay information between equipment.Specifically
Including:Main equipment and respectively from carrying out m network data communication between equipment, and obtain the total duration T of m network data communication;
According to following formula calculate separately main equipment and more than one from the communication delay information Δ T1 between equipment:Δ T1=T/
(2m).Main equipment sends a certain message data to the response letter to the message data sent from equipment and receiving from equipment
Breath is considered as main equipment and should be communicated from being carried out between equipment 1 time.
It then enters step S202 main equipments and obtains the first video flowing from server, and the first video of acquisition is flowed into
Row decoding suspends broadcasting after obtaining decoded preceding n frames video flowing, obtains the reproduction time stamp of n-th frame video flowing.In view of from
The video traffic identifier that equipment is sent according to main equipment obtains corresponding video flowing from server and still needs to the regular hour, thus needs
The broadcasting for first suspending main equipment video flowing before getting video flowing from equipment is regarded with ensureing main equipment and being played since equipment
The time of frequency stream is synchronous.In the present embodiment, each video flowing corresponds to a video traffic identifier.
S203 main equipments are then entered step by the reproduction time stamp of n-th frame video flowing and respectively from the communication delay of equipment
Information and the corresponding video traffic identifier of the first currently playing video flowing are sent to corresponding from equipment.The n is positive integer, n
Numberical range be preferably 1 to 10.More preferably, the value of n is 1, i.e., after the 1st frame of the first video flowing of main equipment decoding temporarily
Break and put, and the corresponding reproduction time stamp of the 1st frame video flowing is sent to respectively from equipment.
It then enters step S204 and respectively obtains the second video flowing from server from equipment according to the video traffic identifier received,
And stabbed according to the reproduction time of corresponding communication delay information and n-th frame video flowing and generate the second reproduction time stamp, and from second
Reproduction time stamp starts to play the second video flowing;And it sends and plays restarting information to main equipment.Preferably, the second reproduction time
Stamp is the sum of the reproduction time stamp of communication delay information and n-th frame video flowing.
Then enter step S205 main equipments receive play restarting information after, according to the reproduction time of n-th frame video flowing
Stamp restarts to play the first video data.In principle, it can each be sent from equipment and play restarting information to main equipment, master sets
The standby broadcasting restarting information that receives for the first time starts to play.In this way, being achieved that main equipment and video being played simultaneously from equipment
Stream.
In order to avoid main equipment and each either side from the device because video render interim card leads to the two video occur
The nonsynchronous situation of stream broadcasting, the method includes:In the present embodiment, the method includes:
During first video render, according to preset main equipment with from equipment audio video synchronization operating frequency, weigh successively
The audio video synchronization operation of multiple following S3 and S4:
S3:Main equipment obtains the first reproduction time stamp of currently playing video flowing, and by the of currently playing video flowing
One reproduction time stamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S4:It is respectively stabbed and is generated according to the first reproduction time of corresponding communication delay information and currently playing video flowing from equipment
Third reproduction time stabs, and the second video flowing is played since stabbing third reproduction time.
Audio video synchronization operating frequency can be set according to actual needs, by main equipment and respectively from the synchronizing frequency of equipment
Be set as same numerical value, so as to main equipment with it is all carry out from equipment it is unified synchronous.For example, it can be set to be executed every 1 minute
It is primary or primary every execution in 5 minutes.In this way, during video render, it is using the reproduction time of main equipment as reference,
By constantly adjusting the reproduction time from equipment, to ensure that main equipment begins with from the picture of equipment during video render
It is consistent eventually.
As shown in figure 3, the structure of the system of video is played simultaneously for the realization distinct device that one embodiment of the invention is related to
Schematic diagram.The system comprises server 103, main equipments 101 and at least one from equipment 102;The main equipment 101 and service
Device 103 connect, the main equipment 101 with respectively connect from equipment 102, respectively connect respectively with server from equipment;
The main equipment from server for obtaining the first video flowing, and by the corresponding video traffic identifier of the first video flowing
It is sent to from equipment;Each video flowing corresponds to a video traffic identifier;
It is described respectively to be used to obtain the second video flowing from server according to the corresponding video traffic identifier of the first video flowing from equipment;
The main equipment be additionally operable to calculate separately main equipment and more than one from the communication delay information between equipment, and it is right
First video flowing is decoded;
S1:Main equipment is used to obtain the first reproduction time stamp of currently playing video flowing, and by currently playing video flowing
The first reproduction time stamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S2:Respectively it is used to be stabbed according to the first reproduction time of corresponding communication delay information and currently playing video flowing from equipment
The second reproduction time stamp is generated, and plays the second video flowing since stabbing the second reproduction time.
In this embodiment, main equipment for calculate separately main equipment and more than one from the communication delay between equipment
Information includes:Main equipment is used for and respectively carries out m network data communication from equipment, and obtain m network data communication it is total when
Long T, and according to following formula calculate separately main equipment and more than one from the communication delay information Δ T1 between equipment:Δ T1=
T/(2m).Main equipment sends a certain message data to the response letter to the message data sent from equipment and receiving from equipment
Breath is considered as main equipment and is communicated from carrying out 1 time between equipment.
In this embodiment, during the first video render, according to preset main equipment with from equipment audio video synchronization
Operating frequency is repeated in the audio video synchronization operation of S1 and S2.Identical audio video synchronization behaviour is arranged from equipment with all in main equipment
Working frequency.Audio video synchronization operating frequency can be set according to actual needs, for example, it can be set to execute one every 1 minute
It is secondary or primary every execution in 5 minutes.In this way, during video render, using the reproduction time of main equipment as with reference to system, lead to
Constantly adjustment is crossed from the reproduction time of equipment, to ensure during video render main equipment with the picture from equipment always
It is consistent.
In this embodiment, in the present embodiment, the quantity of the server 103 is multiple, includes at least the first clothes
Business device 113 and second server 123, main equipment 101 are connect with first server 113, from equipment 102 and second server 123
Connection.The main equipment is described to be used for from second server from equipment for obtaining the first video flowing from first server
The second video data is obtained, the first video flowing and the corresponding video traffic identifier of the second video flowing are identical.In this way, can effectively prevent
Equipment to a certain server acquisition request video flowing is excessive, mitigates the pressure of server, prevents from occurring in video display process
Interim card influences user experience.
In another embodiment, the system comprises server, main equipments and more than one from equipment;The main equipment
Connect with server, the main equipment with respectively connect from equipment, it is described respectively to be connect from equipment with server;
The main equipment for calculate separately main equipment and more than one from the communication delay information between equipment;
The main equipment is decoded the first video flowing of acquisition for obtaining the first video flowing from server,
Suspend broadcasting after obtaining decoded preceding n frames video flowing, obtains the reproduction time stamp of n-th frame video flowing;And by n-th frame video
The reproduction time stamp of stream, with respectively from the communication delay information of equipment and the corresponding video flowing of the first currently playing video flowing
Mark is sent to corresponding from equipment;Each video flowing corresponds to a video traffic identifier;
It is described respectively to be used to obtain the second video flowing from server according to the video traffic identifier received from equipment, and according to right
The reproduction time stamp of the communication delay information and n-th frame video flowing answered generates the second reproduction time stamp, and from the second reproduction time
Stamp starts to play the second video flowing;And it sends and plays restarting information to main equipment;
The main equipment is additionally operable to after receiving broadcasting restarting information, and weight is stabbed according to the reproduction time of n-th frame video flowing
It is new to start to play the first video data.The n is positive integer, and numberical range can be 1 to 10, and preferably value is 1.
In this embodiment, during the first video render, according to preset main equipment with from equipment audio video synchronization
Operating frequency is repeated in the audio video synchronization operation of following S3 and S4:
S3:Main equipment is used to obtain the first reproduction time stamp of currently playing video flowing, and by currently playing video flowing
The first reproduction time stamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S4:Respectively it is used to be stabbed according to the first reproduction time of corresponding communication delay information and currently playing video flowing from equipment
Third reproduction time stamp is generated, and plays the second video flowing since stabbing third reproduction time.
In this way, during video render, using the reproduction time of main equipment as with reference to being, by constantly adjusting from setting
Standby reproduction time, to ensure that main equipment and the picture respectively from equipment are always consistent during video render.
The present invention provides a kind of method and system realized distinct device and video is played simultaneously, the realization difference is set
The standby method and system that video is played simultaneously, the system comprises main equipments, more than one from equipment and server, main equipment
Calculate separately its communication delay information with more than one from equipment, and by the mark of the video flowing got from server, meter
The first reproduction time stamp of obtained communication delay information, currently playing video flowing or the reproduction time stamp of n-th frame video flowing
Occur to corresponding from equipment.Respectively from when first broadcasting of the equipment according to corresponding communication delay information and currently playing video flowing
Between stamp generate the second reproduction time stamp, or generated and second broadcast according to the reproduction time of communication delay information and n-th frame video flowing stamp
Timestamp is put, and plays the second video flowing since stabbing the second reproduction time, to realize to main equipment and be regarded from device plays
The simultaneously operating of frequency stream meets user's synchronous demand for watching video flowing on different devices, and the user experience is improved.
It should be noted that although the various embodiments described above have been described herein, it is not intended to limit
The scope of patent protection of the present invention.Therefore, based on the present invention innovative idea, to embodiment described herein carry out change and repair
Change, or using equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it directly or indirectly will be with
Upper technical solution is used in other related technical areas, is included within the scope of patent protection of the present invention.
Claims (12)
1. a kind of method realized distinct device and video is played simultaneously, which is characterized in that the described method comprises the following steps:
Main equipment obtains the first video flowing from server, and by the corresponding video traffic identifier of the first video flowing be sent to one with
On slave equipment;Each video flowing corresponds to a video traffic identifier;
Respectively the second video flowing is obtained from server from equipment according to the corresponding video traffic identifier of the first video flowing;
Calculate separately main equipment and more than one from the communication delay information between equipment;
The first video flowing of main equipment pair is decoded;
S1:Main equipment obtains the first reproduction time stamp of currently playing video flowing, and the first of currently playing video flowing is broadcast
Put timestamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S2:Respectively second is generated from equipment according to the first reproduction time of corresponding communication delay information and currently playing video flowing stamp
Reproduction time stabs, and the second video flowing is played since stabbing the second reproduction time.
2. a kind of method realized distinct device and video is played simultaneously, which is characterized in that the described method comprises the following steps:
Calculate separately main equipment and more than one from the communication delay information between equipment;
Main equipment obtains the first video flowing from server, and is decoded to the first video flowing of acquisition, obtains decoded
Suspend after preceding n frames video flowing and play, obtains the reproduction time stamp of n-th frame video flowing;Each video flowing corresponds to a video traffic identifier,
The n is positive integer;
Main equipment by the reproduction time of n-th frame video flowing stamp, with respectively from the communication delay information of equipment and currently playing the
The corresponding video traffic identifier of one video flowing is sent to corresponding from equipment;
The second video flowing respectively is obtained from server from equipment according to the video traffic identifier received, and according to corresponding communication delay
The reproduction time of information and n-th frame video flowing stamp generates the second reproduction time stamp, and the broadcasting the since stabbing the second reproduction time
Two video flowings;And it sends and plays restarting information to main equipment;
After main equipment receives broadcasting restarting information, broadcasting first is restarted according to the reproduction time of n-th frame video flowing stamp and is regarded
Frequency evidence.
3. realizing the method that video is played simultaneously in distinct device as claimed in claim 1 or 2, which is characterized in that the difference
It calculates main equipment and more than one includes from the communication delay information between equipment:
Main equipment and respectively from carrying out m network data communication between equipment, and obtain the total duration T of m network data communication, institute
It is positive integer to state m;
According to following formula calculate separately main equipment and more than one from the communication delay information Δ T1 between equipment:Δ T1=T/
(2m)。
4. realizing the method that video is played simultaneously in distinct device as claimed in claim 1 or 2, which is characterized in that the service
The quantity of device is multiple, includes at least first server and second server, and main equipment connect with first server, from equipment and
Second server connects;The method includes:
Main equipment obtains the first video flowing from first server, or obtains the second video counts from second server from equipment
According to the first video flowing and the corresponding video traffic identifier of the second video flowing are identical.
5. realizing the method that video is played simultaneously in distinct device as described in claim 1, which is characterized in that the method packet
It includes:
During first video render, according to preset main equipment with from equipment audio video synchronization operating frequency, it is repeated in S1
It is operated with the audio video synchronization of S2.
6. realizing the method that video is played simultaneously in distinct device as claimed in claim 2, which is characterized in that the method packet
It includes:
During first video render, according to preset main equipment with from equipment audio video synchronization operating frequency, be repeated in
The audio video synchronization of lower S3 and S4 operates:
S3:Main equipment obtains the first reproduction time stamp of currently playing video flowing, and the first of currently playing video flowing is broadcast
Put timestamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S4:Respectively third is generated according to the first reproduction time of corresponding communication delay information and currently playing video flowing stamp from equipment to broadcast
Timestamp is put, and plays the second video flowing since stabbing third reproduction time.
7. a kind of system realized distinct device and video is played simultaneously, which is characterized in that the system comprises server, main equipments
With more than one from equipment;The main equipment is connect with server, the main equipment with respectively connect from equipment, it is described respectively from setting
Back-up is not connect with server;
The main equipment is sent for obtaining the first video flowing from server, and by the corresponding video traffic identifier of the first video flowing
To respectively from equipment;Each video flowing corresponds to a video traffic identifier;
It is described respectively to be used to obtain the second video flowing from server according to the corresponding video traffic identifier of the first video flowing from equipment;
The main equipment be additionally operable to calculate separately main equipment and more than one from the communication delay information between equipment, and to first
Video flowing is decoded;
S1:Main equipment obtains the first reproduction time stamp of currently playing video flowing, and the first of currently playing video flowing is broadcast
Put timestamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S2:Respectively second is generated from equipment according to the first reproduction time of corresponding communication delay information and currently playing video flowing stamp
Reproduction time stabs, and the second video flowing is played since stabbing the second reproduction time.
8. a kind of system realized distinct device and video is played simultaneously, which is characterized in that the system comprises server, main equipments
With more than one from equipment;The main equipment is connect with server, the main equipment with respectively connect from equipment, it is described respectively from setting
Back-up is not connect with server;
The main equipment for calculate separately main equipment and more than one from the communication delay information between equipment;
The main equipment is decoded the first video flowing of acquisition for obtaining the first video flowing from server, obtains
Suspend after decoded preceding n frames video flowing and play, obtains the reproduction time stamp of n-th frame video flowing;And by n-th frame video flowing
Reproduction time stamp, with respectively from the communication delay information of equipment and the corresponding video traffic identifier of the first currently playing video flowing
It is sent to corresponding from equipment;Each video flowing corresponds to a video traffic identifier;
It is described respectively to be used to obtain the second video flowing from server according to the video traffic identifier received from equipment, and according to corresponding logical
Believe that the reproduction time stamp of delayed data and n-th frame video flowing generates the second reproduction time stamp, and since stabbing the second reproduction time
Play the second video flowing;And it sends and plays restarting information to main equipment;
The main equipment, which is additionally operable to receive, plays restarting information, restarts to play according to the reproduction time of n-th frame video flowing stamp
First video data.
9. realizing the system that video is played simultaneously in distinct device as claimed in claim 7 or 8, which is characterized in that main equipment is used
In calculating separately main equipment and more than one includes from the communication delay information between equipment:
Main equipment is used for and respectively carries out m network data communication from equipment, and obtains the total duration T of m network data communication, and
According to following formula calculate separately main equipment and more than one from the communication delay information Δ T1 between equipment:Δ T1=T/
(2m)。
10. realizing the system that video is played simultaneously in distinct device as claimed in claim 7 or 8, which is characterized in that the service
The quantity of device is multiple, includes at least first server and second server, and main equipment connect with first server, from equipment and
Second server connects;
The main equipment is described to be used to obtain from second server from equipment for obtaining the first video flowing from first server
Take the second video data, the first video flowing and the corresponding video traffic identifier of the second video flowing identical.
11. realizing the system that video is played simultaneously in distinct device as claimed in claim 7, which is characterized in that the first video flowing
In playing process, according to preset main equipment with from equipment audio video synchronization operating frequency, it is repeated in the audio video synchronization of S1 and S2
Operation.
12. realizing the system that video is played simultaneously in distinct device as claimed in claim 8, which is characterized in that
During first video render, according to preset main equipment with from equipment audio video synchronization operating frequency, be repeated in
The audio video synchronization of lower S3 and S4 operates:
S3:Main equipment is used to obtain the first reproduction time stamp of currently playing video flowing, and by the of currently playing video flowing
One reproduction time stamp, be sent to from the communication delay information of equipment with respectively it is corresponding from equipment;
S4:Respectively it is used to generate the according to the first reproduction time of corresponding communication delay information and currently playing video flowing stamp from equipment
Three reproduction times stab, and the second video flowing is played since stabbing third reproduction time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810438382.4A CN108650541B (en) | 2018-05-09 | 2018-05-09 | Method and system for realizing synchronous video playing of different devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810438382.4A CN108650541B (en) | 2018-05-09 | 2018-05-09 | Method and system for realizing synchronous video playing of different devices |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108650541A true CN108650541A (en) | 2018-10-12 |
CN108650541B CN108650541B (en) | 2020-12-18 |
Family
ID=63754125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810438382.4A Active CN108650541B (en) | 2018-05-09 | 2018-05-09 | Method and system for realizing synchronous video playing of different devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108650541B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110430457A (en) * | 2019-07-25 | 2019-11-08 | 北京奇艺世纪科技有限公司 | Heterodoxy audio and video playing method, apparatus and audio-video frequency playing system |
CN112511887A (en) * | 2020-11-30 | 2021-03-16 | 京东方科技集团股份有限公司 | Video playing control method and corresponding device, equipment, system and storage medium |
CN113055728A (en) * | 2021-03-31 | 2021-06-29 | 海信电子科技(武汉)有限公司 | Multi-device synchronous playing method and display device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103198848A (en) * | 2013-01-31 | 2013-07-10 | 广东欧珀移动通信有限公司 | Method and system for synchronized broadcast |
CN103209360A (en) * | 2013-03-04 | 2013-07-17 | 北京小米科技有限责任公司 | Multi-party video sharing method and device |
CN103634621A (en) * | 2012-08-27 | 2014-03-12 | 中兴通讯股份有限公司 | Method, apparatuses and system for playing synchronization controlling in video recommendation service |
CN103718528A (en) * | 2013-08-30 | 2014-04-09 | 华为技术有限公司 | Method of cooperatively playing multimedia files by means of multiple terminals, related equipment and related system |
CN104469413A (en) * | 2014-12-30 | 2015-03-25 | 中山大学花都产业科技研究院 | Local area network multi-terminal synchronous playing time deviation calculation improving method |
CN104469258A (en) * | 2014-12-04 | 2015-03-25 | 重庆晋才富熙科技有限公司 | Intelligent remote teaching video interaction mode adjusting method |
WO2017089183A1 (en) * | 2015-11-27 | 2017-06-01 | British Telecommunications Public Limited Company | Media content synchronisation |
-
2018
- 2018-05-09 CN CN201810438382.4A patent/CN108650541B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103634621A (en) * | 2012-08-27 | 2014-03-12 | 中兴通讯股份有限公司 | Method, apparatuses and system for playing synchronization controlling in video recommendation service |
CN103198848A (en) * | 2013-01-31 | 2013-07-10 | 广东欧珀移动通信有限公司 | Method and system for synchronized broadcast |
CN103209360A (en) * | 2013-03-04 | 2013-07-17 | 北京小米科技有限责任公司 | Multi-party video sharing method and device |
CN103718528A (en) * | 2013-08-30 | 2014-04-09 | 华为技术有限公司 | Method of cooperatively playing multimedia files by means of multiple terminals, related equipment and related system |
CN104469258A (en) * | 2014-12-04 | 2015-03-25 | 重庆晋才富熙科技有限公司 | Intelligent remote teaching video interaction mode adjusting method |
CN104469413A (en) * | 2014-12-30 | 2015-03-25 | 中山大学花都产业科技研究院 | Local area network multi-terminal synchronous playing time deviation calculation improving method |
WO2017089183A1 (en) * | 2015-11-27 | 2017-06-01 | British Telecommunications Public Limited Company | Media content synchronisation |
Non-Patent Citations (1)
Title |
---|
赵国涛: "无线多媒体传感器网络中流媒体同步问题研究", 《中国博士学位论文全文数据库(电子期刊)》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110430457A (en) * | 2019-07-25 | 2019-11-08 | 北京奇艺世纪科技有限公司 | Heterodoxy audio and video playing method, apparatus and audio-video frequency playing system |
CN110430457B (en) * | 2019-07-25 | 2021-09-10 | 北京奇艺世纪科技有限公司 | Method and device for playing different-end audio and video and audio playing system |
CN112511887A (en) * | 2020-11-30 | 2021-03-16 | 京东方科技集团股份有限公司 | Video playing control method and corresponding device, equipment, system and storage medium |
CN112511887B (en) * | 2020-11-30 | 2023-10-13 | 京东方科技集团股份有限公司 | Video playing control method, corresponding device, equipment, system and storage medium |
CN113055728A (en) * | 2021-03-31 | 2021-06-29 | 海信电子科技(武汉)有限公司 | Multi-device synchronous playing method and display device |
Also Published As
Publication number | Publication date |
---|---|
CN108650541B (en) | 2020-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN205545723U (en) | Multimedia system | |
KR100972792B1 (en) | Synchronizer and synchronizing method for stereoscopic image, apparatus and method for providing stereoscopic image | |
CN101969460B (en) | Multi-screen synchronized video playing method and system | |
CN105245976B (en) | Voice & Video synchronizes the method and system play | |
CN109089130A (en) | A kind of method and apparatus for the timestamp adjusting live video | |
KR101841313B1 (en) | Methods for processing multimedia flows and corresponding devices | |
CN108495152A (en) | A kind of net cast method, apparatus, electronic equipment and medium | |
TWI495331B (en) | Set-top-box, flash glasses and method of a plurality of users watching a plurality of tv programs at the same time | |
CN108650541A (en) | Realize that the method and system of video is played simultaneously in distinct device | |
CN104012101A (en) | Video playback system | |
CN105979289A (en) | Video generation and play method and device | |
JP4758506B2 (en) | Clock synchronization method | |
TW201424347A (en) | Synchronous displaying system for displaying multi-view frame and method for synchronously displaying muti-view frame | |
CN108769824A (en) | A kind of video mixed flow method, apparatus, system, equipment and medium | |
CN108833809A (en) | A kind of video mixed flow control method, device, system, equipment and medium | |
CN114079813A (en) | Picture synchronization method, coding method, video playing device and video coding device | |
JP2013162205A (en) | Signal processor and program | |
CN106060580A (en) | Synchronous image display method and device | |
JPWO2010046965A1 (en) | Digital broadcasting method, data receiving apparatus and data transmitting apparatus | |
CN107135407B (en) | Synchronous method and system in a kind of piano video teaching | |
CN110177293A (en) | A kind of synchronization multicast and video retransmission method, system | |
CN102176317B (en) | Method and system for realizing multi-screen playing frame level synchronization of passenger guidance system | |
JP5771098B2 (en) | COMMUNICATION CONTENT GENERATION DEVICE AND COMMUNICATION CONTENT GENERATION PROGRAM | |
JP2013042361A (en) | Transmission device, clock corresponding information distribution apparatus, content providing system, and program | |
JP5552993B2 (en) | MXF processing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |