CN105939492A - Method and device for playing video based on multi-path program streams - Google Patents

Method and device for playing video based on multi-path program streams Download PDF

Info

Publication number
CN105939492A
CN105939492A CN201610425233.5A CN201610425233A CN105939492A CN 105939492 A CN105939492 A CN 105939492A CN 201610425233 A CN201610425233 A CN 201610425233A CN 105939492 A CN105939492 A CN 105939492A
Authority
CN
China
Prior art keywords
player
broadcasting
play
program stream
broadcasting group
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.)
Pending
Application number
CN201610425233.5A
Other languages
Chinese (zh)
Inventor
郑吉剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Leshi Zhixin Electronic Technology Tianjin Co Ltd, LeTV Holding Beijing Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201610425233.5A priority Critical patent/CN105939492A/en
Publication of CN105939492A publication Critical patent/CN105939492A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a method and a device for playing a video based on a multi-path program streams. The method comprises the steps of: setting a playing group, wherein the playing group manages multiple players, and the multiple players are in one-to-one correspondence with the multi-path program streams; starting the multiple players to play the program streams by the playing group; and in the playing process, carrying out time synchronization calibration on the program streams played by each of the players. According to the method provided by the embodiment of the invention, through playing the multi-path program streams via the multiple players in the playing group, and carrying out the time synchronization calibration on the program streams played by each of the players in the playing process, a live program is watched simultaneously from different shooting angles.

Description

A kind of video broadcasting method based on multi-channel program stream and device
Technical field
The present embodiments relate to video technique field, particularly relate to a kind of video based on multi-channel program stream Player method and device.
Background technology
Along with the development of internet video technology, people have got used to by having video playback capability Electronic equipment, such as television set, PC and intelligent terminal etc., be connected to internet viewing Various videos enrich free life.
At present, in prior art, have after the electronic equipment of video playback capability is connected to the Internet, User is when watching various live video, and live video flowing is sent out by video server according to user's request Client is sent to play out.
But, when user is according to above-mentioned prior art viewing live video program, can only be along with currently The shooting angle that video flowing provides is watched, it is impossible to simultaneously from other angle view video Scene Content.
Summary of the invention
The embodiment of the present invention provides a kind of video broadcasting method based on multi-channel program stream and device, in order to solve Certainly in prior art, user can only watch the scene in video along with the shooting angle that current video stream provides, And cannot be simultaneously from the problem of other angle view video Scene.
The embodiment of the present invention provides a kind of video broadcasting method based on multi-channel program stream, including:
Broadcasting group is set;Described broadcasting group manages several players;Several players described are with described Multi-channel program stream one_to_one corresponding;Described broadcasting group starts several players described and carries out described program stream Play;
In playing process, the program stream being play each player described carries out time synchronized calibration.
According to another aspect of the present invention, it is provided that a kind of video play device based on multi-channel program stream, Including:
Broadcasting group administrative unit, is used for managing several players, including:
Module is set, for arranging several players in broadcasting group;Several players described and institute State multi-channel program stream one_to_one corresponding;
Start module, be used for starting several players described and described program stream is played out;
Synchronous calibration module, is used in playing process, the program being play each player described Stream carries out time synchronized calibration.
The embodiment of the present invention at least includes advantages below:
The embodiment of the present invention starts several players carry out multiple program streams simultaneously by arranging broadcasting group Play, and in playing process, it is same that the program stream being play each player described carries out the time Step calibration.The method provided based on the embodiment of the present invention, several players described can provide for same The programme televised live stream of one scene different shooting angles, and, described each player is protected in playing process Hold real-time synchronization, it is thereby achieved that in a terminal screen by multiple players to live content from The problem that different angles are watched in real time.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow process of a kind of based on multi-channel program stream the video broadcasting method embodiment one of the present invention Figure;
Fig. 2 is the flow process of a kind of based on multi-channel program stream the video broadcasting method embodiment two of the present invention Figure;
Fig. 3 is the flow process of a kind of based on multi-channel program stream the video broadcasting method Application Example of the present invention Figure;
Fig. 4 is the structural frames of a kind of based on multi-channel program stream the video play device embodiment one of the present invention Figure.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
The embodiment of the present invention is applicable to watch Internet video by client.Wherein, described client can Think that intelligent television, smart mobile phone, panel computer, TV box, personal computer etc. are various forms of Terminal unit.Such as, user can (Application, should by the APP on smart mobile phone or TV By program) or in computer browser viewing Internet video program.It is appreciated that the present invention implements Example is not any limitation as the concrete form of client.For ease of describing, the embodiment of the present invention is with intelligence eventually Illustrating as a example by end, other application scenarios is cross-referenced.
Embodiment of the method one
With reference to Fig. 1, it is shown that a kind of based on multi-channel program stream the video broadcasting method embodiment of the present invention The flow chart of steps of one, specifically may comprise steps of:
Step 101, broadcasting group is set;Described broadcasting group manages several players;
Wherein, several players described and described multi-channel program stream one_to_one corresponding.Preferably, the present invention Embodiment, be applicable to net cast scene, has content strong correlation, example between described multi-channel program stream As, for the scene that ball match is live, wherein a road program stream is in-situ match, and another road program stream is for solving Saying that room is on-the-spot, during live, the playing progress rate of two-way program stream should keep consistent.
Concrete, broadcasting group (Play Group, PG) data model can be pre-set, and broadcast at this Put the method creating, managing player defined in group data model, when needs use broadcasting group, pass through The example of this broadcasting group realizes the management to several players and operates.Such as, with object oriented programming model it is Example, first definition broadcasting group class, and initialization defined in this broadcasting group class, player adding method, The methods such as player plays.Certainly, those skilled in the art can also select additive method to realize some The management of individual player, broadcasting, the invention is not limited in this regard.
Step 102, described broadcasting group start several players described and play out described program stream;
Wherein, start multiple player by broadcasting group simultaneously can make each player broadcast program stream Initial time keep synchronize.
Step 103, in playing process, when the program stream being play each player described is carried out Between synchronous calibration.
Concrete, in playing process, this player institute can be caused when player buffering occurs, suspends Broadcast program stream and other player time irreversibility, cause user to see and cannot watch live joint from multiple angles Purpose problem.For this problem, the embodiment of the present invention can be by being play each player described Program stream carries out time synchronized calibration.Such as, described broadcasting group can arrange timer, when one of them is broadcast Putting device when there are the problems such as buffering, time-out, this timer suspends the most therewith and keeps Tong Bu with this player, Other player carries out time calibration according to this timer, ensures the time synchronized of each player with this.
To sum up, the embodiment of the present invention starts several players simultaneously to multiple programs by arranging broadcasting group Stream plays out, and in playing process, the program stream being play each player described is carried out Time synchronized is calibrated.The method provided based on the embodiment of the present invention, several players described can provide For the programme televised live stream of Same Scene different shooting angles, and, described each player was being play Journey keeps real-time synchronization, it is thereby achieved that by multiple players to live in a terminal screen Content is watched the most in real time.
In order to improve further in playing process, each player accuracy when time synchronized, at this In one preferred embodiment of invention, the player in described broadcasting group includes a main player and at least One from player;Described step 103 specifically can include following sub-step:
Sub-step s11, in playing process, described main player according to System Clock Reference to being play Program stream plays out time calibration;
Wherein, described main player, can be configured according to default value by broadcasting group, also from player Can be configured according to the instruction of user.For main player, it has higher than from player Playing service quality (Quality of Service, QOS), concrete, described QOS includes lower carrier band Width and/or player screen window area etc..
Wherein, each frame of video in program stream has the Presentation Time Stamp of its correspondence (Presentation Time Stamp, PTS), this frame of video determines its display time by PTS.
Described main player plays out time calibration according to System Clock Reference to the program stream play, Specifically, after first packet in main player reads program stream, to these first data Frame of video (the first frame of video) in bag shows, obtains institute according to current system reference clock simultaneously State the actual displayed time reproduction time benchmark as program stream of the first frame of video;Read in main player During second packet in program stream, according to frame of video (the second frame of video) in this second packet PTS determine and the time interval of the first frame of video PTS, then according to this time interval and described in broadcast Put time reference and determine the display time of the second frame of video;When System Clock Reference arrives this second frame of video The display time time, this second frame of video is played out display.
With an example above-mentioned calibration process described below:
Assuming that the PTS of the first frame of video is 0.1, the PTS of the second frame of video is 0.3, and main player is aobvious System Clock Reference when showing described first frame of video is 12:00:01, will 12:00:01 as working as prosthomere The reproduction time benchmark of mesh stream;When reading the second frame of video, due to the second frame of video and the first video The relative time-intervals of frame is 0.2, and the display time therefore obtaining the second frame of video is 12:00:03;When being When system reference clock arrives 12:00:03, described second frame of video is shown;Afterwards, determine successively The display time of each frame of video in actual program stream, and according to current system reference clock to each Frame of video shows.
Sub-step s12, described obtain current video described main player from player by described broadcasting group The Presentation Time Stamp of frame, plays out time calibration to the program stream play from player.
In general, during live, consistent in order to ensure the broadcast progress of different program streams, Program stream start playing out after the same period in, the video frame number that different program streams is broadcasted should phase With.Therefore, when main player is shown to video frame n, should also be as simultaneous display from player N frame of video, wherein, n is the integer more than 1.
Wherein, the program stream play from player is played out time calibration, specifically: from Player shows the first frame of video of program stream from player according to the reproduction time benchmark got;When Get main player after the PTS of the second frame of video from player, according to this second frame of video and main broadcaster Put the time interval of the first frame of video PTS in device, and reproduction time benchmark determines program from player Flow the display time of the second frame of video;Then, true according to the PTS of current m frame of video in main player Determine the display time of m frame of video from player.
Below, based on the example in above-mentioned sub-step s11 to the described program to being play from player Stream carries out the process of reproduction time calibration and is described:
Assume that reproduction time benchmark is 12:00:01, main player prepares the current video frame (the play Two frame of video) PTS be 0.3, in this main player second frame of video display the time be 12:00:03; Now, the main broadcaster side's device current video frame got by broadcasting group from player (prepares second play Video) PTS be 0.3, according to time interval 0.2 between frame of video in main player and reproduction time Benchmark 12:00:01 can determine that the display time of current video frame (the second frame of video) is from player 12:00:03;When System Clock Reference arrives 12:00:03, from player, the second frame of video is played out Display.
By example above it can be seen that pass through said method so that current video frame tool from player Have and have the identical display time with current video frame in main broadcaster side's device, it is thereby achieved that main player and Play from the synchronization of player.
In sum, the embodiment of the present invention starts several players simultaneously to multiple by arranging broadcasting group Program stream plays out, and in playing process, main player according to System Clock Reference to being play Program stream play out time calibration;Obtained described main player by described broadcasting group from player The Presentation Time Stamp of current video frame plays out time calibration to the program stream play from player, Current video frame from player is made to have the display time identical with current video frame in main broadcaster side's device. So, from achieving Tong Bu broadcasting between player with main player, multiple broadcasting has been effectively ensured Device is the concordance of the playing progress rate of each player when playing programme televised live.
Embodiment of the method two
With reference to Fig. 2, it is shown that a kind of based on multi-channel program stream the video broadcasting method embodiment of the present invention The flow chart of steps of two, specifically may comprise steps of:
Step 201, broadcasting group is set;
Concrete, described time broadcasting group is set can according to different operating system (e.g., Android, IOS, Windows) and development environment select be suitable for broadcasting group data model.Preferably, can pre-set and broadcast Put group class Playgroup, and in this broadcasting group, be provided for managing interface or the side of player simultaneously Interface is added/removed to method, such as initialization interface, player, player starts interface etc..
Preferably, the described step arranging broadcasting group specifically can include following sub-step:
Sub-step s21, establishment broadcasting group;
Concrete, creating the handle of broadcasting group data model, example is as follows:
Playgroup pg=new Playgroup ()
Sub-step s22, create several corresponding program queue according to the plurality of program stream;
When implementing, player data model Player can be pre-set, and by creating this broadcasting The handle of device data model is as the program queue of corresponding program stream, and example is as follows:
Player p1=new Player ();
Wherein, p1 represents the player handle created for program stream 1, when there is multiple program stream, The player handle composition program queue of correspondence can be created successively.
Sub-step s23, the player corresponding to each program queue described initialization;
Concrete, program queue is arranged data source, such as:
p1.setDataSource(http://camare.1);
Wherein, http://camare.1 represents the data source of program stream 1.
Sub-step s24, several players are added in described broadcasting group.
Concrete, the player handle after above-mentioned initialization is added to by the interface provided by broadcasting group to be broadcast Put in group, such as: pg.addPlayer (p1).Wherein, addPlayer () provides for described broadcasting group Player adds interface.It can be seen that broadcast by player corresponding for each program queue is added to Put group, thus realize the management to each player of the broadcasting group.
Step 202, according to user's request, several players in described broadcasting group to arrange broadcasting preferential Level;
When implementing, user can determine the priority of player also according to the content play in player Send priority to broadcasting group and request is set, concrete, this can be set by the method for the example below preferential Level:
pg.setPriority(p1,50);
pg.setPriority(p2,20)。
Wherein, parameter p1, the priority of player p1 is set to 50 by 50 expressions.
After the priority of player determines, the broadcasting service quality of player is set according to this priority QOS, such as, the download bandwidth of this player, player area etc..When implementing, broadcasting group Request can be set according to the priority that user sends and the broadcasting priority size of each player is set, Alternatively, it is also possible to arrange the broadcasting priority initial value of each player according to default value, the present invention is real Execute example this is not specifically limited.
Step 203, the result that arranges according to described broadcasting priority determine a main player and at least Individual from player;
Concrete, player the highest for priority is set to main player, other player is set to From player.Described master/slave player is true according to its QOS playing priority corresponding in playing process Determine download bandwidth, player area etc..Such as, main player has player area and the download of maximum Bandwidth, when there is fluctuation in network transmission, the preferential download bandwidth ensureing main player.
Step 204, when playing, described main player is according to the System Clock Reference program to being play Stream carries out reproduction time calibration;
Further, in another alternative embodiment of the present invention, when there is time-out or buffering situation, Described main player plays out the step of time calibration according to System Clock Reference to the program stream play Suddenly, including following sub-step:
When sub-step s31, the Presentation Time Stamp determining the current video frame of main player and current system reference The side-play amount of clock;
Sub-step s32, described side-play amount that the Presentation Time Stamp of next frame of video is increased, corresponding current system Reference clock shows.
Above-mentioned calibration process be exemplified below:
It is assumed that reproduction time benchmark is 12:00:01, in main player, the display time of the second frame of video is 12:00:03:
If main player has suspended 0.5 after having shown the second frame of video, and current system reference clock arrives 12:00:08, the then Presentation Time Stamp (0.3) of the current video frame (the second frame of video) of main player, And the side-play amount of current system reference clock is 0.5;
When main player is recovered to play, the Presentation Time Stamp PTS to next frame of video (the 3rd frame of video) (0.5) increasing described side-play amount 0.5 and obtain 1.0, therefore, display time corresponding to the 3rd frame of video is 12:00:10, display the 3rd frame of video when current system reference clock arrives 12:00:10.
Step 205, obtain current video frame described main player from player by described broadcasting group Presentation Time Stamp, plays out time calibration to the program stream play from player;
Further, in an alternate embodiment of the present invention where, above-mentioned steps 205 specifically can include Following sub-step:
Sub-step s41, described obtain current video main player from player in real time by described broadcasting group The Presentation Time Stamp of frame;
Concrete, in real time obtain main player current video from player by described broadcasting group described During Presentation Time Stamp (PTS) of frame, if the display of current video frame in main player cannot be got Between stab, or the Presentation Time Stamp got do not changes, then mean that main player there occurs time-out Or the situation of buffering, now, from player also into suspending or buffer status, until having got main broadcaster Put the Presentation Time Stamp to current video frame in device, or the Presentation Time Stamp got there occurs change.
Sub-step s42, based on the Presentation Time Stamp of current video frame in described main player, broadcast needed for determining Next frame of video put, and show.
According to the Presentation Time Stamp PTS of current video frame in main player at the joint play from player Mesh stream finds next frame of video that the frame of video with corresponding PTS is play as needs, and shows. So, whether the most master and slave player there occurs time-out or buffering, according to current in main player The PTS of frame of video determines from next frame of video that player is to be play, and can guarantee in master/slave player The real-time synchronization of play frame of video.
Embodiment of the method three
The present embodiment is broadcast arranging broadcasting group management in above-described embodiment by a concrete application example The process putting device is described, and sees Fig. 3, said method comprising the steps of:
Step 301, pre-defined broadcasting group data model, player data model;
Concrete, pre-defined broadcasting group class Playgroup, player class Player.
Further, at data-interface defined in described Playgroup, Player for externally providing behaviour Make.
Step 302, the handle of one Playgroup of establishment;
Playgroup pg=new Playgroup ();
Step 303, it is respectively created multiple broadcasting queue;
For 4 broadcasting queues of 4 program streams establishments in this example:
Player p1=new Player ();
Player p2=new Player ();
Player p3=new Player ();
Player p4=new Player ();
Step 304, initialize respective player respectively;
p1.setDataSource(http://camare.1);
P2.setDataSource(http://camare.2);
P3.setDataSource(http://camare.3);
P4.setDataSource(http://camare.4);
Wherein, http://camare.1 represents the data source address of program stream.
Step 305, each player is added in play group
pg.addPlayer(p1);
pg.addPlayer(p2);
pg.addPlayer(p3);
pg.addPlayer(p4);
Step 306, the priority of each player is set;
pg.setPriority(p1,50);
pg.setPriority(p2,20);
pg.setPriority(p3,15);
pg.setPriority(p4,15);
Wherein, the priority of player p1 is the highest, and using player p1 as main player, other is broadcast Put device as from player.
Step 306, startup are play.
Pg.play();
Wherein, broadcasting group pg starts described 4 players respectively by calling data-interface play () Play out from program stream.
Device embodiment:
With reference to Fig. 4, it is shown that a kind of based on multi-channel program stream the video play device embodiment of the present invention The structured flowchart of one, described device specifically may include that
Broadcasting group administrative unit 410, is used for managing several players, including:
Module 4101 is set, for arranging several players in broadcasting group;Several players described With described multi-channel program stream one_to_one corresponding;
Start module 4102, be used for starting several players described and described program stream is played out;
Synchronous calibration module 4103, in playing process, is play each player described Program stream carries out time synchronized calibration.
In sum, the embodiment of the present invention is started by the startup module 4102 of the setting in broadcasting group 410 Multiple program streams are played out by several players simultaneously, and in playing process, by synchronizing school The program stream that each player described is play by quasi-mode block 4103 carries out time synchronized calibration.Based on this The method that inventive embodiments is provided, several players described can provide and shoot for Same Scene difference The programme televised live stream of angle, and, described each player keeps real-time synchronization in playing process, because of This, it is achieved that in a terminal screen, by multiple players, live content carried out from different perspectives reality Time viewing problem.
Further, in a preferred embodiment of the invention, described broadcasting group administrative unit is managed Several players include a main player and at least one from player;
Described broadcasting group administrative unit also includes:
Timestamp acquisition module, for obtaining the Presentation Time Stamp of current video frame in described main player;
Described synchronous calibration module includes the first calibration module, in playing process, joins according to system Examine clock and the program stream play is played out time calibration;
Described synchronous calibration module also includes the second calibration module, for managing based on by described broadcasting group In the described main player that unit obtains, the Presentation Time Stamp of current video frame, is play from player Program stream play out time calibration.
To sum up, the device provided based on the above embodiment of the present invention is at the playing process to multi-channel program stream In, the first calibration module plays out time calibration according to System Clock Reference to the program stream play; Second calibration module obtains the Presentation Time Stamp of current video frame in described main player by described broadcasting group The program stream play from player is played out time calibration so that current video from player Frame has the display time identical with current video frame in main broadcaster side's device.So, from player and master Achieve synchronization between player to play, multiple player has been effectively ensured and has respectively broadcast when playing programme televised live Put the concordance of the playing progress rate of device.
Further, described first calibration module, the most also include:
Side-play amount determines submodule, for when there is time-out or buffering situation, determining main player The Presentation Time Stamp of current video frame and the side-play amount of current system reference clock;
Timestamp determines submodule, for the Presentation Time Stamp of next frame of video is increased described side-play amount, Corresponding current system reference clock shows.
Further, described second calibration module, specifically for based on current video in described main player The Presentation Time Stamp of frame, determines next frame of video of required broadcasting, and shows.
Further, described module is set, specifically includes:
Create submodule, be used for creating broadcasting group;
Queue submodule, for creating several corresponding program queue according to the plurality of program stream;
Initialization submodule, for initializing corresponding player to each program queue described;
Add submodule, for being added in described broadcasting group by several players.
Further, described broadcasting group administrative unit also includes:
Priority arranges module, for setting several players in described broadcasting group according to user's request Put broadcasting priority;The result that arranges according to described broadcasting priority determines a main player and at least Individual from player;
Service quality control module, is used for when several players described are played out by described broadcasting group, Broadcasting priority according to described each player arranges the broadcasting service quality of correspondence;Described broadcasting services Quality includes: download bandwidth and/or player screen window area;Wherein, the broadcasting of described player is excellent First level is the highest, and download bandwidth and/or the player screen window area of the most described player are the biggest.
The video play device based on multi-channel program stream of the embodiment of the present invention is used for realizing preceding method and implements Corresponding video broadcasting method based on multi-channel program stream in example, and have and corresponding with embodiment of the method have Benefit effect.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the ratio described Relatively simple, relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually ?.For system embodiment, due to itself and embodiment of the method basic simlarity, so the ratio described Relatively simple, relevant part sees the part of embodiment of the method and illustrates.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (12)

1. a video broadcasting method based on multi-channel program stream, it is characterised in that described method includes:
Broadcasting group is set;Described broadcasting group manages several players;Several players described are with described Multi-channel program stream one_to_one corresponding;
Described broadcasting group starts several players described and plays out described program stream;
In playing process, the program stream being play each player described carries out time synchronized calibration.
Method the most according to claim 1, it is characterised in that the player bag in described broadcasting group Include a main player and at least one is from player;
Described in playing process, the program stream being play each player described carries out time synchronized The step of calibration includes:
In playing process, described main player is carried out according to the System Clock Reference program stream to being play Reproduction time is calibrated;
Described when player obtains the display of current video frame described main player by described broadcasting group Between stab, the program stream play from player is played out time calibration.
Method the most according to claim 2, it is characterised in that when occurring to suspend or buffering situation Time, described main player plays out time calibration according to System Clock Reference to the program stream play Step, including:
Determine Presentation Time Stamp and the skew of current system reference clock of the current video frame of main player Amount;
The Presentation Time Stamp of next frame of video is increased described side-play amount, and corresponding current system reference clock enters Row display.
Method the most according to claim 2, it is characterised in that described from player pass through described in broadcast Put group and obtain the Presentation Time Stamp of current video frame in described main player, to play from player Program stream plays out time calibration, including:
Described when player obtains the display of current video frame main player in real time by described broadcasting group Between stab;
Based on the Presentation Time Stamp of current video frame in described main player, determine that next play required regards Frequently frame, and show.
Method the most according to claim 1, it is characterised in that the described step bag that broadcasting group is set Include:
Create broadcasting group;
Several corresponding program queue are created according to the plurality of program stream;
Each program queue described is initialized corresponding player;
Several players are added in described broadcasting group.
Method the most according to claim 2, it is characterised in that described method also includes:
According to user's request, several players in described broadcasting group are arranged broadcasting priority;
According to described broadcasting priority arrange result determine a main player and at least one from broadcasting Device;
When several players described are played out by described broadcasting group, according to broadcasting of described each player Put priority and the broadcasting service quality of correspondence is set;Described broadcasting service quality includes: download bandwidth and/or Player screen window area;
Wherein, the broadcasting priority of described player is the highest, the download bandwidth of the most described player and/or broadcast Put device screen window area the biggest.
7. a video play device based on multi-channel program stream, it is characterised in that described device includes:
Broadcasting group administrative unit, is used for managing several players, including:
Module is set, for arranging several players in broadcasting group;Several players described and institute State multi-channel program stream one_to_one corresponding;
Start module, be used for starting several players described and described program stream is played out;
Synchronous calibration module, is used in playing process, the program being play each player described Stream carries out time synchronized calibration.
Device the most according to claim 7, it is characterised in that described broadcasting group administrative unit is managed Several players of reason include a main player and at least one is from player;
Described broadcasting group administrative unit also includes:
Timestamp acquisition module, for obtaining the Presentation Time Stamp of current video frame in described main player;
Described synchronous calibration module includes the first calibration module, in playing process, joins according to system Examine clock and the program stream play is played out time calibration;
Described synchronous calibration module also includes the second calibration module, for managing based on by described broadcasting group In the described main player that unit obtains, the Presentation Time Stamp of current video frame, is play from player Program stream play out time calibration.
Device the most according to claim 8, it is characterised in that described first calibration module, specifically Also include:
Side-play amount determines submodule, for when there is time-out or buffering situation, determining main player The Presentation Time Stamp of current video frame and the side-play amount of current system reference clock;
Timestamp determines submodule, for the Presentation Time Stamp of next frame of video is increased described side-play amount, Corresponding current system reference clock shows.
Device the most according to claim 8, it is characterised in that described second calibration module, tool Body, for based on the Presentation Time Stamp of current video frame in described main player, determines next play required Frame of video, and show.
11. devices according to claim 7, it is characterised in that described arrange module, specifically wrap Include:
Create submodule, be used for creating broadcasting group;
Queue submodule, for creating several corresponding program queue according to the plurality of program stream;
Initialization submodule, for initializing corresponding player to each program queue described;
Add submodule, for being added in described broadcasting group by several players.
12. devices according to claim 8, it is characterised in that described broadcasting group administrative unit is also Including:
Priority arranges module, for setting several players in described broadcasting group according to user's request Put broadcasting priority;The result that arranges according to described broadcasting priority determines a main player and at least Individual from player;
Service quality control module, is used for when several players described are played out by described broadcasting group, Broadcasting priority according to described each player arranges the broadcasting service quality of correspondence;Described broadcasting services Quality includes: download bandwidth and/or player screen window area;Wherein, the broadcasting of described player is excellent First level is the highest, and download bandwidth and/or the player screen window area of the most described player are the biggest.
CN201610425233.5A 2016-06-15 2016-06-15 Method and device for playing video based on multi-path program streams Pending CN105939492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610425233.5A CN105939492A (en) 2016-06-15 2016-06-15 Method and device for playing video based on multi-path program streams

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610425233.5A CN105939492A (en) 2016-06-15 2016-06-15 Method and device for playing video based on multi-path program streams

Publications (1)

Publication Number Publication Date
CN105939492A true CN105939492A (en) 2016-09-14

Family

ID=56871881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610425233.5A Pending CN105939492A (en) 2016-06-15 2016-06-15 Method and device for playing video based on multi-path program streams

Country Status (1)

Country Link
CN (1) CN105939492A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454388A (en) * 2016-09-20 2017-02-22 北京百度网讯科技有限公司 Method and device for determining live broadcast setting information
CN107478202A (en) * 2017-09-04 2017-12-15 中测新图(北京)遥感技术有限责任公司 Take photo by plane data transmission method, apparatus and system
CN108055564A (en) * 2017-12-20 2018-05-18 广州小百合信息技术有限公司 Multiple playback terminal broadcasting content synchronous broadcast methods and system
CN111586461A (en) * 2020-04-08 2020-08-25 微梦创科网络科技(中国)有限公司 Live broadcasting method and system for synchronous playing of multiple paths of streams

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867825A (en) * 2010-06-25 2010-10-20 中国传媒大学 Device for circularly monitoring multi-channel video and method thereof
CN102186038A (en) * 2011-05-17 2011-09-14 浪潮(山东)电子信息有限公司 Method for synchronously playing multi-viewing-angle pictures on digital television screen
CN103853518A (en) * 2012-12-06 2014-06-11 财团法人资讯工业策进会 Synchronous display system and method for multi-view pictures
US20150172734A1 (en) * 2013-12-18 2015-06-18 Electronics And Telecommunications Research Institute Multi-angle view processing apparatus
CN105430451A (en) * 2015-12-24 2016-03-23 杭州当虹科技有限公司 Multi-cam HLS description method and multi-cam video direct broadcasting system based on HLS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867825A (en) * 2010-06-25 2010-10-20 中国传媒大学 Device for circularly monitoring multi-channel video and method thereof
CN102186038A (en) * 2011-05-17 2011-09-14 浪潮(山东)电子信息有限公司 Method for synchronously playing multi-viewing-angle pictures on digital television screen
CN103853518A (en) * 2012-12-06 2014-06-11 财团法人资讯工业策进会 Synchronous display system and method for multi-view pictures
US20150172734A1 (en) * 2013-12-18 2015-06-18 Electronics And Telecommunications Research Institute Multi-angle view processing apparatus
CN105430451A (en) * 2015-12-24 2016-03-23 杭州当虹科技有限公司 Multi-cam HLS description method and multi-cam video direct broadcasting system based on HLS

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454388A (en) * 2016-09-20 2017-02-22 北京百度网讯科技有限公司 Method and device for determining live broadcast setting information
CN106454388B (en) * 2016-09-20 2019-08-16 北京百度网讯科技有限公司 A kind of method and apparatus for determining live streaming setting information
CN107478202A (en) * 2017-09-04 2017-12-15 中测新图(北京)遥感技术有限责任公司 Take photo by plane data transmission method, apparatus and system
CN108055564A (en) * 2017-12-20 2018-05-18 广州小百合信息技术有限公司 Multiple playback terminal broadcasting content synchronous broadcast methods and system
CN111586461A (en) * 2020-04-08 2020-08-25 微梦创科网络科技(中国)有限公司 Live broadcasting method and system for synchronous playing of multiple paths of streams

Similar Documents

Publication Publication Date Title
TWI437877B (en) Information processing system, information processing apparatus, program product and computer-readable recording medium
KR101454136B1 (en) A system and method for synchronized playback of streaming digital content
CN108495152B (en) Video live broadcast method and device, electronic equipment and medium
WO2017071523A1 (en) Bullet screen processing method, system, and terminal
CN105939492A (en) Method and device for playing video based on multi-path program streams
US10341672B2 (en) Method and system for media synchronization
US10638180B1 (en) Media timeline management
EP2800365B1 (en) Video playback system
KR101934200B1 (en) Method and system for media synchronization
US9883244B2 (en) Multi-source video navigation
CN109089130A (en) A kind of method and apparatus for the timestamp adjusting live video
CN105245977A (en) Method for synchronous live broadcast through multiple cameras
CN101998116A (en) Method, system and equipment for realizing multi-view video service
CN106658030B (en) A kind of playback method and equipment of the composite video comprising SCVF single channel voice frequency multi-channel video
CN112752109B (en) Video playing control method and system
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
US20160241794A1 (en) Helmet for shooting multi-angle image and shooting method
CN110062268A (en) A kind of audio-video sends and receives processing method and processing device with what screen played
CN106039710B (en) Treating method and apparatus is recorded in game
CN104219571B (en) A kind of method and apparatus automatically providing watching focus
CN108810656A (en) A kind of the debounce processing method and processing system of real-time live broadcast TS streams
CN108650541A (en) Realize that the method and system of video is played simultaneously in distinct device
CN109862385B (en) Live broadcast method and device, computer readable storage medium and terminal equipment
CN105898435A (en) Data synchronizing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160914

WD01 Invention patent application deemed withdrawn after publication