CN103945240B - A kind of video broadcasting method and device based on video aggregation - Google Patents
A kind of video broadcasting method and device based on video aggregation Download PDFInfo
- Publication number
- CN103945240B CN103945240B CN201410157932.7A CN201410157932A CN103945240B CN 103945240 B CN103945240 B CN 103945240B CN 201410157932 A CN201410157932 A CN 201410157932A CN 103945240 B CN103945240 B CN 103945240B
- Authority
- CN
- China
- Prior art keywords
- player
- video
- video file
- resource
- video resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of video broadcasting method and device based on video aggregation, the video resource that many video business provide can not be obtained by broadcast address mode for solving third-party application, so that the problem of can not switching between the video resource of different video provider.This method is:When receiving play instruction, the aggregated metadata of video file is obtained from cloud server, and determines first object player;The first identification code that correspondence first object player is set is obtained, and first object player is started by the first identification code, the first video resource is played;When there is network condition change, the second video resource matched with current network conditions is selected, the player for playing the second video resource is regard as the second destination player;The second identification code that acquisition the second destination player of correspondence is set, and the second destination player is started by the second identification code, continued from the first video resource broadcasting finish time and play the second video resource.
Description
Technical field
The present invention relates to video display arts field, more particularly to a kind of video broadcasting method and dress based on video aggregation
Put.
Background technology
User is when playing video, in fact it could happen that the video cardton situation caused by network condition is not good, it usually needs root
The relatively low video resource of definition is selected to play according to network condition.
In the prior art according to the situation of network condition intelligent selection video definition, what is be facing generally towards is that a video is carried
The video resource of the different definition provided for business.When in face of a video provider, Switch Video definition is using each
From proprietary protocol realize that this method is only applicable to turning between the video resource that is provided towards video provider
Change, or video provider itself grasps the broadcast address of video resource so as to the conversion of the video definition of realization.
For a video, many video providers have the video resource of the video, in face of many video providers
When, third-party application is due to that can not grasp the broadcast address of video resource, it is impossible to played regard by the way of broadcast address again
Frequency resource, therefore, the different definition that third-party application can not be provided according to network condition intelligent selection different video provider
Video resource.
The content of the invention
The embodiment of the present invention provides a kind of video broadcasting method and device based on video aggregation, to solve prior art
During the video resource of many video providers of middle presence polymerization, third-party application can not play video money by broadcast address mode
Source, so as to lead to not the video resource according to network condition intelligent selection different video provider.
Concrete scheme provided in an embodiment of the present invention is as follows:
A kind of video broadcasting method based on video aggregation, this method includes:
When receiving the play instruction for indicating playing video file, the polymerization of video file is obtained from cloud server
Metadata, and first object player is determined according to default selection strategy;
The first identification code that correspondence first object player is set is obtained from the aggregated metadata of video file, and is passed through
First identification code starts first object player, and broadcasting is encapsulated in the aggregated metadata of video file and first object player
Corresponding first video resource;
When there is network condition change, selection is matched with current network conditions from the aggregated metadata of video file
Second video resource, will be used as the second destination player for the player for playing the second video resource;
The second identification code that the second destination player of correspondence is set is obtained from the aggregated metadata of video file, and is passed through
Second identification code starts the second destination player, is continued from the first video resource broadcasting finish time and plays the second video resource.
Scheme provided in an embodiment of the present invention, it is adaptable to which many video providers do not provide the situation of broadcast address externally
Under, the video resource of the different definition provided according to network condition intelligent selection different video provider can be according to user
Behavior and preference are set, when video request program occurs, intelligent selection player plays associated video files, when in playing process,
When network quality changes, within all aggregated metadatas, the highest resolution that the current network speed of intelligent selection can be supported
Playing resource play out, different video provider provide different definition video resource between switch over, and
And can accurately calculate the video definition switching during time point realization is played.Aforesaid operations do not need user independently to select, only
Need to combine user's history behavior, there is provided the most clear video resource suitable for present network conditions for intellectual analysis user preferences.
Preferably, when receiving the play instruction for indicating playing video file, video text is obtained from cloud server
The aggregated metadata of part, and first object player is determined according to default selection strategy, including:
When receiving the play instruction for indicating playing video file, the data of video file are sent to cloud server
Request;
The aggregated metadata for the video file that cloud server is returned is received, and user behavior system is sent to cloud server
Count request;
The user behavior statistics that cloud server is returned is received, and according to user behavior statistics with reference to default
Selection strategy determines the first object player of playing video file.
Preferably, the first object player of playing video file is determined according to default selection strategy, including:
Judge successively from high to low according to the priority of default selection strategy, when it is determined that meeting a selection strategy,
The player that one selection strategy is indicated is defined as first object player;
Wherein, the priority of default selection strategy is followed successively by from high in the end:The player that user is set is defined as
One destination player, the player that cloud server is recommended for video file is defined as first object player, by high in the clouds
The most player of playing video file number of times that server analysis is drawn is defined as first object player, by cloud server
Analyze the most player of the active user's access times drawn and be defined as first object player.
By this possible embodiment, user behavior is counted by default selection strategy combination cloud server
The Long-term analysis of data, can be set according to user behavior and preference etc., when video request program occurs, intelligent selection player
Play associated video files.
Preferably, starting first object player by the first identification code, the polymerization member number for being encapsulated in video file is played
The first video resource corresponding with first object player in, including:
The Starting mode data of first object player are obtained from the aggregated metadata of video file;
The startup method and first of first object player is determined according to the Starting mode data of first object player
Identification code;
Start first object player plays first by the startup method of first object player and the first identification code to regard
Frequency resource;
Second destination player is started by the second identification code, finish time is played from the first video resource and continues broadcasting the
Two video resources, including:
The Starting mode data of the second destination player are obtained from the aggregated metadata of video file;
The startup method and second of the second destination player is determined according to the Starting mode data of the second destination player
Identification code;
Second destination player is started by the startup method of the second destination player and the second identification code, from the first video
Resource broadcasting finish time, which continues, plays the second video resource.
By this possible embodiment, the broadcast address of video resource can not be provided in each video provider
When, method is started with the identification code of agreement and the player known and starts the corresponding video resource of destination player broadcasting, about
Fixed identification code can only open the corresponding video resource of corresponding player plays.
Preferably, being continued from the first video resource broadcasting finish time plays the second video resource, including:
Determine when a length of first duration of the first video resource, and determine the second video resource when a length of second when
It is long;
Judge whether the first duration is identical with the second duration;
If so, then directly being continued from the first video resource broadcasting finish time plays the second video resource;
Otherwise, it determines the slice header information of the first video resource is the first slice header information, and determine the second video resource
Slice header information is the second slice header information, and is cut according to the first slice header information with the calculating of the second slice header information by first object player
Shift to the duration difference compensation produced during the second destination player;Finish time and duration difference are played according to the first video resource
Compensation positioning continue play the second video resource switching time point, and from switching time point continue broadcasting the second video resource.
By this possible embodiment, the time point that the second video resource is commenced play out can be accurately positioned, it is real
The seamless continued broadcasting of the second destination player playing video file is now switched to by first object player.
A kind of video play device based on video aggregation, the device includes:
First determining unit, for when receiving the play instruction for indicating playing video file, being obtained from cloud server
The aggregated metadata of video file is taken, and first object player is determined according to default selection strategy;
First broadcast unit, is set for obtaining correspondence first object player from the aggregated metadata of video file
First identification code, and first object player is started by the first identification code, play the aggregated metadata for being encapsulated in video file
In the first video resource corresponding with first object player;
Second determining unit, for when there is network condition change, from the aggregated metadata of video file selection with
Second video resource of current network conditions matching, will be played for the player for playing the second video resource as the second target
Device;
Second broadcast unit, is set for obtaining the second destination player of correspondence from the aggregated metadata of video file
Second identification code, and the second destination player is started by the second identification code, play finish time from the first video resource and continue
Play the second video resource.
Scheme provided in an embodiment of the present invention, it is adaptable to which many video providers do not provide the situation of broadcast address externally
Under, the video resource of the different definition provided according to network condition intelligent selection different video provider can be according to user
Behavior and preference are set, when video request program occurs, intelligent selection player plays associated video files, when in playing process,
When network quality changes, within all aggregated metadatas, the highest resolution that the current network speed of intelligent selection can be supported
Playing resource play out, different video provider provide different definition video resource between switch over, and
And can accurately calculate the video definition switching during time point realization is played.Aforesaid operations do not need user independently to select, only
Need to combine user's history behavior, there is provided the most clear video resource suitable for present network conditions for intellectual analysis user preferences.
Preferably, the first determining unit specifically for:
When receiving the play instruction for indicating playing video file, the data of video file are sent to cloud server
Request;
The aggregated metadata for the video file that cloud server is returned is received, and user behavior system is sent to cloud server
Count request;
The user behavior statistics that cloud server is returned is received, and according to user behavior statistics with reference to default
Selection strategy determines the first object player of playing video file.
Preferably, the first determining unit specifically for:
Judge successively from high to low according to the priority of default selection strategy, when it is determined that meeting a selection strategy,
The player that one selection strategy is indicated is defined as first object player;
Wherein, the priority of default selection strategy is followed successively by from high in the end:The player that user is set is defined as
One destination player, the player that cloud server is recommended for video file is defined as first object player, by high in the clouds
The most player of playing video file number of times that server analysis is drawn is defined as first object player, by cloud server
Analyze the most player of the active user's access times drawn and be defined as first object player.
By this possible embodiment, user behavior is counted by default selection strategy combination cloud server
The Long-term analysis of data, can be set according to user behavior and preference etc., when video request program occurs, intelligent selection player
Play associated video files.
Preferably, the first broadcast unit specifically for:
The Starting mode data of first object player are obtained from the aggregated metadata of video file;
The startup method and first of first object player is determined according to the Starting mode data of first object player
Identification code;
Start first object player plays first by the startup method of first object player and the first identification code to regard
Frequency resource;
Second broadcast unit specifically for:
The Starting mode data of the second destination player are obtained from the aggregated metadata of video file;
The startup method and second of the second destination player is determined according to the Starting mode data of the second destination player
Identification code;
Second destination player is started by the startup method of the second destination player and the second identification code, from the first video
Resource broadcasting finish time, which continues, plays the second video resource.
By this possible embodiment, the broadcast address of video resource can not be provided in each video provider
When, method is started with the identification code of agreement and the player known and starts the corresponding video resource of destination player broadcasting, about
Fixed identification code can only open the corresponding video resource of corresponding player plays.
Preferably, the second broadcast unit specifically for:
Determine when a length of first duration of the first video resource, and determine the second video resource when a length of second when
It is long;
Judge whether the first duration is identical with the second duration;
If so, then directly being continued from the first video resource broadcasting finish time plays the second video resource;
Otherwise, it determines the slice header information of the first video resource is the first slice header information, and determine the second video resource
Slice header information is the second slice header information, and is cut according to the first slice header information with the calculating of the second slice header information by first object player
Shift to the duration difference compensation produced during the second destination player;Finish time and duration difference are played according to the first video resource
Compensation positioning continue play the second video resource switching time point, and from switching time point continue broadcasting the second video resource.
By this possible embodiment, the time point that the second video resource is commenced play out can be accurately positioned, it is real
The seamless continued broadcasting of the second destination player playing video file is now switched to by first object player.
Brief description of the drawings
Fig. 1 is the flow chart of the video broadcasting method based on video aggregation in the embodiment of the present invention;
Fig. 2 is the flow chart of startup first object the first video resource of player plays in the embodiment of the present invention;
Fig. 3 is to realize the flow chart of accurate Switch Video resource in the embodiment of the present invention;
Fig. 4 is the detailed step schematic diagram of the video playback based on video aggregation in the embodiment of the present invention;
Fig. 5 is the structure chart of the video play device based on video aggregation in the embodiment of the present invention.
Embodiment
In order to provide be applied to many video providers not externally provide broadcast address in the case of, according to network condition intelligence
The implementation of the video resource of the different definition of different video provider offer can be selected, the embodiments of the invention provide one
Video broadcasting method and device based on video aggregation are planted, the video for the different definition that can be provided in different video provider
Switch between resource, and can accurately calculate the video definition switching during time point realization is played, below in conjunction with specification
Accompanying drawing is illustrated to the preferred embodiments of the present invention.
As shown in fig.1, in the embodiment of the present invention, the idiographic flow of the video broadcasting method based on video aggregation is as follows:
Step 100:When terminal receives the play instruction for indicating playing video file, being obtained from cloud server should
The aggregated metadata of video file, and first object player is determined according to default selection strategy.
Specifically, the data source of aggregated metadata comes from video provider, by third party's aggregated application by each video
The video metadata of provider is sent to cloud server, is polymerize by cloud server, and aggregated metadata includes video element
Point of video file in parameter and all aggregated metadatas required for data, each different player plays video file
Resolution information, wherein, video metadata includes the essential information of the video file, such as title, description, actor information and poster
Picture, video metadata is mainly used in video file and video information is shown in terminal;Each different player plays video
Parameter required for file include starting the Starting mode of player with corresponding to each different player plays video file
Multiple identification codes.
The crawl of third party's aggregated application uses the aggregated metadata of the video file of different player plays, by video text
The aggregated metadata of part is sent to cloud server storage, when terminal receives the play instruction for indicating playing video file
When, the request of data of video file is sent to cloud server, when cloud server receives the request of data of the video file,
The aggregated metadata of the video file is sent to terminal.Terminal receives the polymerization member number for the video file that cloud server is returned
According to, and the request of user behavior statistics is sent to cloud server, cloud server receives user's statistics of terminal transmission
During request of data, the user behavior statistics that terminal in user's use is constantly uploaded is sent in terminal, terminal receives high in the clouds
The user behavior statistics that server is returned, and the determination broadcasting of default selection strategy is combined according to user behavior statistics
The first object player of video file.
Intelligence chooses statistical analysis of the selection strategy of first object player from cloud server to user behavior, system
The result of meter analysis includes the more player plays videos using which video provider of currently used user, and user
At most select the player plays of which video provider video file.Terminal according to default selection strategy priority from
High to Low to judge successively, when it is determined that meeting a selection strategy, the player that a selection strategy is indicated is defined as first
Destination player.
The priority of default selection strategy is followed successively by from high in the end:
The player that user is set is defined as first object player;
The player that cloud server is recommended for video file is defined as first object player;
Cloud server is analyzed to the most player of the playing video file number of times drawn and is defined as first object broadcasting
Device;
Cloud server is analyzed to the most player of the active user's access times drawn and is defined as first object broadcasting
Device.
Step 110:Terminal obtains first that correspondence first object player is set from the aggregated metadata of video file
Identification code, and by the first identification code start first object player, broadcasting be encapsulated in the aggregated metadata of video file with
Corresponding first video resource of first object player.
Specifically, after first object player is determined, terminal is obtained pair from the aggregated metadata of the video file
The first identification code for answering first object player to set, and obtain the Starting mode data of first object player, the first mesh
The Starting mode data for marking player come from cloud server, and any feasible Starting mode can all be supported, for example extensively
Broadcast mode, activity modes or intent modes, basic Starting mode data should include:The player to be started name
Title, the startup method of player and the identification code for starting the video file;Terminal is got first plays the video file
First object player, then starts first object player by the startup method of first object player, and by first
The incoming first object player of identification code, so as to start first object player, plays the video file and is encapsulated in video
The first video resource corresponding with first object player in the aggregated metadata of file.Video file correspondence first object is played
First video resource of device is provided with unique first identification code, and first identification code is sent to first object player, you can
Using the first video resource of first object player plays video file.
Wherein, as shown in fig.2, starting comprising the following steps that for first object the first video resource of player plays:Step
Rapid 200:The Starting mode data of first object player are obtained from the aggregated metadata of video file;Step 210:According to
The Starting mode data of one destination player determine the startup method and the first identification code of first object player;Step 220:
First object the first video resource of player plays is started by the startup method of first object player and the first identification code.
Step 120:When there is network condition change, terminal is selected and current net from the aggregated metadata of video file
Second video resource of network situation matching, will be used as the second destination player for the player for playing the second video resource.
Specifically, following the basic of the video resource that definition highest video file is played under conditions of network permission
Principle, when occurring network condition change in playing process, for example, occurring multiple interim card in playing process has influence on playing body
When testing, from the aggregated metadata of video file by calculate get the definition that is matched with current network conditions it is relatively low the
Two video resources, the second destination player of switching is determined by the second video resource.Likewise, when network condition is preferable,
The second higher video resource of the definition matched with current network conditions can also be got by calculating to play, to obtain more
Experience is played well.
Step 130:Terminal obtains second that the second destination player of correspondence is set from the aggregated metadata of video file
Identification code, and the second destination player is started by the second identification code, play finish time from the first video resource and continue broadcasting
Second video resource.
Specifically, identical with the method for starting first object player, basic Starting mode data should include:Open
Dynamic player title, the startup method of player and the identification code for starting the video file;If switching to the second target to broadcast
Put device, Starting mode data should also include continuing time point of broadcasting, inform the second destination player from when commencing play out
Second video resource.Terminal obtains the Starting mode data of the second destination player from the aggregated metadata of video file;Root
The startup method and the second identification code of the second destination player are determined according to the Starting mode data of the second destination player;Pass through
The startup method of second destination player and the second identification code start the second destination player, play and terminate from the first video resource
Moment, which continues, plays the second video resource.
The length of the video resource provided in view of different video providers may have difference, but the difference is usual
It is the length difference of head, each video provider can provide the slice header information of video file, accordingly, it would be desirable to calculate by the first mesh
Mark player switches to switching time point during the second destination player, and switching method is as shown in fig.3, comprise the following steps that:
Step 300:Determine when a length of first duration of the first video resource, and determine the second video resource when it is a length of
Second duration;
Step 310:Judge whether the first duration is identical with the second duration;If so, then performing step 320;Otherwise, step is performed
Rapid 330;
Step 320:Directly continued from the first video resource broadcasting finish time and play the second video resource;
Step 330:The slice header information for determining the first video resource is the first slice header information, and determines the second video resource
Slice header information be the second slice header information, and according to the first slice header information and the second slice header information calculating by first object player
Switch to the duration difference compensation produced during the second destination player;Finish time is played according to the first video resource poor with duration
Value complement repay positioning continue play the second video resource switching time point, and from switching time point continue broadcasting the second video money
Source.
For example, a length of 1 hour when first, a length of 04 minutes 1 hour when second, being provided by each video provider
The slice header information of video file, learns, the head that the first video resource is indicated in the first slice header information are 3 minutes, the second head
The head that the second video resource is indicated in information are 7 minutes, are calculated according to the first slice header information and the second slice header information by first
It is 4 minutes that destination player, which switches to the duration difference compensation produced during the second destination player, is broadcast according to the first video resource
Finish time is put, the switching time point for positioning the second video resource of broadcasting that continues for 4 minutes with the compensation of duration difference in such as 30 minutes should
Should be 34 minutes, and from switching time point continue within 34 minutes broadcasting the second video resource.
Above-mentioned is the flow of intelligent Switch Video definition, wherein, the collection of user behavior statistics is to ensure that cloud
Hold server to provide more accurate user behavior statistics, first object player is determined more accurately, is broadcast in user
During putting, the player information of user's actual play can be recorded and backstage statistics, user behavior statistical information includes
User is set to the preference of player, and user is counted using the number of times of the player viewing video of each video provider, each
Video file is by number of times statistics of the player plays of each video provider etc., and these data are all counted by cloud server
Record, the data basis of player is selected as terminal intelligent, so as to reach more accurate recommendation player.
As shown in fig.4, the detailed step of the video broadcasting method based on video aggregation is as follows:
Step 400:Third party's aggregated application sends the video metadata of crawl to cloud server, will by cloud server
Each video metadata is polymerized to aggregated metadata;
Step 410:Terminal sends the request of data of video file to cloud server;
Step 420:Cloud server sends the aggregated metadata of video file to terminal;
Step 430:Terminal sends user behavior statistics and asked to cloud server;
Step 440:Cloud server sends user behavior statistics to terminal;
Step 450:Terminal determines playing video file according to user behavior statistics with reference to default selection strategy
First object player;
Step 460:Terminal starts the first video resource of first object player plays video file;
Step 470:Terminal judges that network condition changes;
Step 480:The second video resource that terminal selection is matched with current network conditions, starts for playing the second video
The player of resource, plays the second video resource;
Step 490:The cloud server routinely user behavior statistics reported daily to terminal is collected and counted
Calculate.
Citing is illustrated below, when terminal receives the play instruction of user's broadcasting film, is obtained from cloud server
The aggregated metadata of the film, and first object player is determined according to default selection strategy, if user sets usual use
Player A is played, then it is first object player to select player A, not above-mentioned on such as player A if being unsatisfactory for the strategy
Film, then according to the slightly lower policy selection of priority, i.e., be defined as the by the player B that cloud server is recommended for the film
One destination player, however, it is determined that first object player is player B, obtains player B's from the aggregated metadata of film
Starting mode data and determination are encapsulated in the first video resource corresponding with player B in the aggregated metadata of film;Terminal
With player B video provider make an appointment play film the first video resource the first identification code, start player B
When playing the first video resource of film, player B is called, to after incoming first identification codes of player B, you can start player
B plays the first video resource, and first identification code only can open the first video resource of film when inputting player B,
It can not be opened when inputting other players.
When there is network condition change, if network condition is not good, matched with current network conditions second is selected to regard
Frequency resource, i.e., select the second video resource of the film matched with network condition by resolution ratio, corresponding, will broadcasting this
The player C of two video resources is defined as the second destination player;Terminal and player C video provider are made an appointment broadcasting
Second identification code of the second video resource of film, when starting the second video resource of player C broadcasting films, calls broadcasting
Device C, to after incoming second identification codes of player C, you can start player C and play the second video resource, second identification code is only
The second video resource of film can be opened when inputting player C, can not be opened when inputting other players.
If network condition takes a turn for the better, likewise, matched by selection with current network conditions, definition it is higher second
Video resource, determines the second destination player, calculates the played duration of the first video resource, closes and play the first video resource
Player, start the second destination player continue broadcasting the second video resource, carry out fine definition video resource play.
Based on same inventive concept, the video playback side based on video aggregation provided according to the above embodiment of the present invention
Method, correspondingly, another embodiment of the present invention additionally provide a kind of video play device based on video aggregation, apparatus structure signal
Figure is as shown in figure 5, specifically include:
First determining unit 500, for when receiving the play instruction for indicating playing video file, from cloud server
The aggregated metadata of video file is obtained, and first object player is determined according to default selection strategy;
First broadcast unit 510, sets for obtaining correspondence first object player from the aggregated metadata of video file
The first identification code put, and first object player is started by the first identification code, play the polymerization member for being encapsulated in video file
The first video resource corresponding with first object player in data;
Second determining unit 520, for when there is network condition change, being selected from the aggregated metadata of video file
The second video resource matched with current network conditions, will broadcast for the player for playing the second video resource as the second target
Put device;
Second broadcast unit 530, sets for obtaining the second destination player of correspondence from the aggregated metadata of video file
The second identification code put, and the second destination player is started by the second identification code, play finish time from the first video resource
Continue the second video resource of broadcasting.
First determining unit 500 specifically for:
When receiving the play instruction for indicating playing video file, the data of video file are sent to cloud server
Request;
The aggregated metadata for the video file that cloud server is returned is received, and user behavior system is sent to cloud server
Count request;
The user behavior statistics that cloud server is returned is received, and according to user behavior statistics with reference to default
Selection strategy determines the first object player of playing video file.
First determining unit 500 specifically for:
Judge successively from high to low according to the priority of default selection strategy, when it is determined that meeting a selection strategy,
The player that one selection strategy is indicated is defined as first object player;
Wherein, the priority of default selection strategy is followed successively by from high in the end:The player that user is set is defined as
One destination player, the player that cloud server is recommended for video file is defined as first object player, by high in the clouds
The most player of playing video file number of times that server analysis is drawn is defined as first object player, by cloud server
Analyze the most player of the active user's access times drawn and be defined as first object player.
First broadcast unit 510 specifically for:
The Starting mode data of first object player are obtained from the aggregated metadata of video file;
The startup method and first of first object player is determined according to the Starting mode data of first object player
Identification code;
Start first object player plays first by the startup method of first object player and the first identification code to regard
Frequency resource;
Second broadcast unit 520 specifically for:
The Starting mode data of the second destination player are obtained from the aggregated metadata of video file;
The startup method and second of the second destination player is determined according to the Starting mode data of the second destination player
Identification code;
Second destination player is started by the startup method of the second destination player and the second identification code, from the first video
Resource broadcasting finish time, which continues, plays the second video resource.
Second broadcast unit 530 specifically for:
Determine when a length of first duration of the first video resource, and determine the second video resource when a length of second when
It is long;
Judge whether the first duration is identical with the second duration;
If so, then directly being continued from the first video resource broadcasting finish time plays the second video resource;
Otherwise, it determines the slice header information of the first video resource is the first slice header information, and determine the second video resource
Slice header information is the second slice header information, and is cut according to the first slice header information with the calculating of the second slice header information by first object player
Shift to the duration difference compensation produced during the second destination player;Finish time and duration difference are played according to the first video resource
Compensation positioning continue play the second video resource switching time point, and from switching time point continue broadcasting the second video resource.
In summary, scheme provided in an embodiment of the present invention, it is adaptable to which many video providers do not provide externally and play ground
In the case of location, the video resource of the different definition provided according to network condition intelligent selection different video provider can be with
Set according to user behavior and preference, when video request program occurs, intelligent selection player plays associated video files work as broadcasting
During, when network quality changes, within all aggregated metadatas, the highest that the current network speed of intelligent selection can be supported
The playing resource of resolution ratio is played out, and is cut between the video resource for the different definition that different video provider provides
Change, and can accurately calculate the video definition switching during time point realization is played.Aforesaid operations do not need user independently to select
Select, it is only necessary to reference to user's history behavior, there is provided the most clear video suitable for present network conditions for intellectual analysis user preferences
Resource.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (8)
1. a kind of video broadcasting method based on video aggregation, it is characterised in that methods described includes:
When receiving the play instruction for indicating playing video file, the polymerization of the video file is obtained from cloud server
Metadata, and first object player is determined according to default selection strategy;
The first identification code that correspondence first object player is set is obtained from the aggregated metadata of the video file, and is passed through
First identification code starts the first object player, and broadcasting is encapsulated in the aggregated metadata of the video file and institute
State corresponding first video resource of first object player;
When there is network condition change, selection is matched with current network conditions from the aggregated metadata of the video file
Second video resource, will be used as the second destination player for the player for playing second video resource;
The second identification code that correspondence second destination player is set is obtained from the aggregated metadata of the video file, and
Second destination player is started by second identification code, and determine first video resource when a length of first
Duration, determines when a length of second duration of second video resource;Judge whether are first duration and second duration
It is identical;If so, then directly being continued from first video resource broadcasting finish time plays second video resource;Otherwise,
The slice header information for determining first video resource is the first slice header information, and determines the head letter of second video resource
Cease for the second slice header information, and calculated and broadcast by the first object with second slice header information according to first slice header information
Put device and switch to the duration difference compensation produced during second destination player;Played and terminated according to first video resource
Moment continues with duration difference compensation positioning and plays the switching time point of second video resource, and from during the switching
Between point continue broadcasting second video resource.
2. the method as described in claim 1, it is characterised in that receive the play instruction for indicating playing video file
When, the aggregated metadata of the video file is obtained from cloud server, and first object is determined according to default selection strategy
Player, including:
When receiving the play instruction for indicating playing video file, the video file is sent to the cloud server
Request of data;
The aggregated metadata for the video file that the cloud server is returned is received, and use is sent to the cloud server
Family behavioral statisticses request of data;
The user behavior statistics that the cloud server is returned is received, and according to the user behavior statistics knot
Default selection strategy is closed to determine to play the first object player of the video file.
3. method as claimed in claim 2, it is characterised in that determined to play the video file according to default selection strategy
First object player, including:
Judge successively from high to low according to the priority of the default selection strategy, when it is determined that meeting a selection strategy,
The player that one selection strategy is indicated is defined as first object player;
Wherein, the priority of the default selection strategy is followed successively by from high in the end:The player that user is set is defined as institute
First object player is stated, the player that cloud server is recommended for the video file is defined as the first object and broadcast
Put device, the most player of the video file number of times of playing that cloud server analysis is drawn is defined as the first object
The most player of player, the active user's access times for drawing cloud server analysis is defined as the first object and broadcast
Put device.
4. the method as described in claim 1,2 or 3, it is characterised in that first mesh is started by first identification code
Player is marked, broadcasting is encapsulated in the aggregated metadata of the video file corresponding with the first object player first and regarded
Frequency resource, including:
The Starting mode data of first object player are obtained from the aggregated metadata of the video file;
According to the Starting mode data of the first object player determine the first object player startup method and
First identification code;
Start the first object player by the startup method of the first object player and first identification code to broadcast
Put first video resource;
Second destination player is started by second identification code, connect from first video resource broadcasting finish time
Second video resource is put in continued broadcasting, including:
The Starting mode data of the second destination player are obtained from the aggregated metadata of the video file;
According to the Starting mode data of second destination player determine second destination player startup method and
Second identification code;
Second destination player is started by the startup method of second destination player and second identification code, from
The first video resource broadcasting finish time, which continues, plays second video resource.
5. a kind of video play device based on video aggregation, it is characterised in that described device includes:
First determining unit, for when receiving the play instruction for indicating playing video file, institute to be obtained from cloud server
The aggregated metadata of video file is stated, and first object player is determined according to default selection strategy;
First broadcast unit, is set for obtaining correspondence first object player from the aggregated metadata of the video file
First identification code, and the first object player is started by first identification code, broadcasting is encapsulated in the video file
Aggregated metadata in the first video resource corresponding with the first object player;
Second determining unit, for when there is network condition change, from the aggregated metadata of the video file selection with
Second video resource of current network conditions matching, will be used as the second target for the player for playing second video resource
Player;
Second broadcast unit, sets for obtaining correspondence second destination player from the aggregated metadata of the video file
The second identification code put, and second destination player is started by second identification code, and determine that described first regards
When a length of first duration of frequency resource, determines when a length of second duration of second video resource;Judge first duration
It is whether identical with second duration;Continued if so, then directly playing finish time from first video resource described in broadcasting
Second video resource;Otherwise, it determines the slice header information of first video resource is the first slice header information, and determine described the
The slice header information of two video resources is the second slice header information, and according to first slice header information and the second slice header information meter
Calculate the duration difference compensation produced when switching to second destination player by the first object player;According to described
One video resource plays finish time and duration difference compensation is positioned when continuing the switching for playing second video resource
Between point, and continued broadcasting second video resource from the switching time point.
6. device as claimed in claim 5, it is characterised in that first determining unit specifically for:
When receiving the play instruction for indicating playing video file, the video file is sent to the cloud server
Request of data;
The aggregated metadata for the video file that the cloud server is returned is received, and use is sent to the cloud server
Family behavioral statisticses request of data;
The user behavior statistics that the cloud server is returned is received, and according to the user behavior statistics knot
Default selection strategy is closed to determine to play the first object player of the video file.
7. device as claimed in claim 6, it is characterised in that first determining unit specifically for:
Judge successively from high to low according to the priority of the default selection strategy, when it is determined that meeting a selection strategy,
The player that one selection strategy is indicated is defined as first object player;
Wherein, the priority of the default selection strategy is followed successively by from high in the end:The player that user is set is defined as institute
First object player is stated, the player that cloud server is recommended for the video file is defined as the first object and broadcast
Put device, the most player of the video file number of times of playing that cloud server analysis is drawn is defined as the first object
The most player of player, the active user's access times for drawing cloud server analysis is defined as the first object and broadcast
Put device.
8. the device as described in claim 5,6 or 7, it is characterised in that first broadcast unit specifically for:
The Starting mode data of first object player are obtained from the aggregated metadata of the video file;
According to the Starting mode data of the first object player determine the first object player startup method and
First identification code;
Start the first object player by the startup method of the first object player and first identification code to broadcast
Put first video resource;
Second broadcast unit specifically for:
The Starting mode data of the second destination player are obtained from the aggregated metadata of the video file;
According to the Starting mode data of second destination player determine second destination player startup method and
Second identification code;
Second destination player is started by the startup method of second destination player and second identification code, from
The first video resource broadcasting finish time, which continues, plays second video resource.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410157932.7A CN103945240B (en) | 2014-04-17 | 2014-04-17 | A kind of video broadcasting method and device based on video aggregation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410157932.7A CN103945240B (en) | 2014-04-17 | 2014-04-17 | A kind of video broadcasting method and device based on video aggregation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103945240A CN103945240A (en) | 2014-07-23 |
CN103945240B true CN103945240B (en) | 2017-07-25 |
Family
ID=51192683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410157932.7A Active CN103945240B (en) | 2014-04-17 | 2014-04-17 | A kind of video broadcasting method and device based on video aggregation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103945240B (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105376610B (en) * | 2014-08-27 | 2019-03-19 | Tcl集团股份有限公司 | A kind of video switching method and system based on picture recognition |
CN104217021B (en) * | 2014-09-25 | 2018-10-23 | 北京奇虎科技有限公司 | Reading server, terminal device and its method for showing reading content |
CN104661092B (en) * | 2015-03-09 | 2019-02-22 | 深圳市茁壮网络股份有限公司 | A kind of video playing control method, system and set-top box |
GB2536887B (en) * | 2015-03-27 | 2021-05-05 | Sony Europe Bv | Video content replay |
US10257575B2 (en) * | 2015-08-05 | 2019-04-09 | Nagrastar, Llc | Hybrid electronic program guide |
CN105872798A (en) * | 2015-12-07 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Implementation method and system for quickly playing video |
CN107231465B (en) * | 2016-03-24 | 2020-10-20 | 阿里巴巴集团控股有限公司 | File playing method and device |
CN106231433B (en) * | 2016-07-29 | 2019-05-21 | 广州酷狗计算机科技有限公司 | A kind of methods, devices and systems playing network video |
CN106331755B (en) * | 2016-08-17 | 2019-10-08 | 广州酷狗计算机科技有限公司 | The method and apparatus for handling Media Stream Caton |
CN108011861B (en) * | 2016-10-28 | 2019-05-17 | 视联动力信息技术股份有限公司 | A kind of method and system of the cloud resource display control based on view networking |
WO2018112784A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳市泰普森科技有限公司 | Video playing method based on set-top box and set-top box |
CN106506561B (en) * | 2016-12-29 | 2019-10-29 | 广州华多网络科技有限公司 | A kind of flow-medium transmission method and device |
CN106973318B (en) * | 2017-03-20 | 2020-01-14 | 聚好看科技股份有限公司 | Aggregated video operation method and device |
CN107222778A (en) * | 2017-06-01 | 2017-09-29 | 梁小红 | A kind of live switching method of intelligent television and device |
CN108184138A (en) * | 2017-11-20 | 2018-06-19 | 腾讯科技(深圳)有限公司 | Video broadcasting method, server, client, storage medium and electronic device |
CN108810582A (en) * | 2018-05-25 | 2018-11-13 | 联想(北京)有限公司 | A kind of information processing method, electronic equipment and computer readable storage medium |
CN109688465B (en) | 2018-11-27 | 2020-12-29 | Oppo广东移动通信有限公司 | Video enhancement control method and device and electronic equipment |
CN109948377B (en) * | 2019-03-28 | 2021-12-24 | 联想(北京)有限公司 | Display control method and device and electronic equipment |
CN113867822A (en) * | 2021-09-30 | 2021-12-31 | 深圳市酷开网络科技股份有限公司 | Equipment control method and device, electronic equipment and storage medium |
CN114546216A (en) * | 2022-02-25 | 2022-05-27 | 深圳康佳电子科技有限公司 | Aggregation-based global searching method, device, equipment and medium for video resources |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917391A (en) * | 2009-12-17 | 2010-12-15 | 新奥特(北京)视频技术有限公司 | Method for playing network video and system for playing network video |
CN102149005A (en) * | 2011-04-29 | 2011-08-10 | 四川长虹电器股份有限公司 | Self-adaptive method for controlling network video quality |
CN102695081A (en) * | 2012-06-13 | 2012-09-26 | 百视通网络电视技术发展有限责任公司 | Video resource scheduling method based on Internet television and television terminal |
CN103024536A (en) * | 2012-12-25 | 2013-04-03 | 北京奇虎科技有限公司 | Video playing method and browser |
CN103338401A (en) * | 2013-06-03 | 2013-10-02 | 贝壳网际(北京)安全技术有限公司 | Video playing control method, device and system for mobile terminal browser |
CN103517098A (en) * | 2013-08-29 | 2014-01-15 | 小米科技有限责任公司 | Video playing method, device and terminal equipment based on video aggregation service |
-
2014
- 2014-04-17 CN CN201410157932.7A patent/CN103945240B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917391A (en) * | 2009-12-17 | 2010-12-15 | 新奥特(北京)视频技术有限公司 | Method for playing network video and system for playing network video |
CN102149005A (en) * | 2011-04-29 | 2011-08-10 | 四川长虹电器股份有限公司 | Self-adaptive method for controlling network video quality |
CN102695081A (en) * | 2012-06-13 | 2012-09-26 | 百视通网络电视技术发展有限责任公司 | Video resource scheduling method based on Internet television and television terminal |
CN103024536A (en) * | 2012-12-25 | 2013-04-03 | 北京奇虎科技有限公司 | Video playing method and browser |
CN103338401A (en) * | 2013-06-03 | 2013-10-02 | 贝壳网际(北京)安全技术有限公司 | Video playing control method, device and system for mobile terminal browser |
CN103517098A (en) * | 2013-08-29 | 2014-01-15 | 小米科技有限责任公司 | Video playing method, device and terminal equipment based on video aggregation service |
Non-Patent Citations (1)
Title |
---|
《网络视频元数据提取与自适应播放方法研究》;王雷钧;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130831;1-50 * |
Also Published As
Publication number | Publication date |
---|---|
CN103945240A (en) | 2014-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103945240B (en) | A kind of video broadcasting method and device based on video aggregation | |
US10841358B2 (en) | System and method for determining quality of a media stream | |
CN105872580B (en) | The recording method and device of live video | |
CN104768082B (en) | A kind of audio and video playing information processing method and server | |
WO2016054916A1 (en) | Video content recommending and evaluating methods and devices | |
EP2479684A1 (en) | Method and evaluation server for evaluating a plurality of videos | |
CN108235149B (en) | Method and device for optimizing video playing fluency | |
CN105376176B (en) | Ensure the methods, devices and systems of mobile Internet video traffic service quality | |
CN106506391B (en) | Network traffic distribution method and router | |
CN109302623A (en) | A kind of transmission method based on QoE model dynamic self-adapting video | |
CN101217638A (en) | A downloading method, system and device of video file fragmentation | |
CN104427284B (en) | Process the method and apparatus of sport video | |
US12069122B2 (en) | System and method for managing video streaming quality of experience | |
CN106911927B (en) | Method and device for evaluating experience quality of network video user and DPI equipment | |
CN111327966A (en) | Video double-speed playing method, system and storage medium | |
CN109511011A (en) | A kind of finger print data base construction method towards YouTube DASH encrypted video | |
CN106162357A (en) | Obtain the method and device of video content | |
Ickin et al. | VLQoE: Video QoE instrumentation on the smartphone | |
CN110062254A (en) | A kind of method and apparatus of barrage publication | |
CN108259207A (en) | Flow statistical method, client, server and system | |
CN106688240A (en) | Method and device for remotely recording video programs | |
Wehner et al. | Beauty is in the eye of the smartphone holder a data driven analysis of youtube mobile qoe | |
CN106293391A (en) | Freezing or defreezing method, device and mobile terminal of application | |
CN109166165A (en) | A kind of playback method of dynamic picture, terminal and can storage medium | |
JP2015104075A (en) | Medium reproduction control device, medium reproduction control method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |