CN108062409A - Generation method, device and the electronic equipment of live video summary - Google Patents

Generation method, device and the electronic equipment of live video summary Download PDF

Info

Publication number
CN108062409A
CN108062409A CN201711470643.2A CN201711470643A CN108062409A CN 108062409 A CN108062409 A CN 108062409A CN 201711470643 A CN201711470643 A CN 201711470643A CN 108062409 A CN108062409 A CN 108062409A
Authority
CN
China
Prior art keywords
live streaming
segment
duration
live
streaming segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711470643.2A
Other languages
Chinese (zh)
Other versions
CN108062409B (en
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201711470643.2A priority Critical patent/CN108062409B/en
Publication of CN108062409A publication Critical patent/CN108062409A/en
Application granted granted Critical
Publication of CN108062409B publication Critical patent/CN108062409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/738Presentation of query results
    • G06F16/739Presentation of query results in form of a video summary, e.g. the video summary being a video sequence, a composite still image or having synthesized frames

Abstract

An embodiment of the present invention provides generation method, device and the electronic equipments of live video summary, pass through the live streaming segment obtained since live streaming, and the message number that number of users corresponding with live streaming segment and user send, calculate the excellent degree of each live streaming segment, so as to obtain excellent live streaming segment according to the excellent degree of the live streaming segment, and excellent live streaming segment is synthesized into summary, a live video summary can be automatically generated to each main broadcaster, understand the style and characteristic of main broadcaster with alloing user's more convenient and quicker.

Description

Generation method, device and the electronic equipment of live video summary
Technical field
The present invention relates to video frequency abstract generation technique field, generation method more particularly to a kind of live video summary and Device.
Background technology
Current live streaming platform only has live video recorded broadcast function, and user can only be broadcast live or watch recorded broadcast time by watching It puts, just will appreciate that the style and characteristic of a certain main broadcaster, and since splendid contents representative in live streaming have not timing, User generally requires the style and characteristic that longer viewing time is spent just to will appreciate that main broadcaster.Therefore, user how is allow more Conveniently and efficiently understand the style and characteristic of main broadcaster, be very necessary for platform is broadcast live.
The content of the invention
The embodiment of the present invention is designed to provide a kind of generation method and device of live video summary, to automatically generate The live video summary of each main broadcaster.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of live video summary generation method, including:
Since live streaming, every the period of the first duration, the live streaming segment of the first duration of acquisition;
The number of users for the live streaming segment for watching each first duration and the message number of user's transmission are obtained, by acquisition Number of users and message number input default excellent degree calculation formula, calculate each first duration live streaming segment it is excellent Degree;
According to the excellent degree of the live streaming segment of each first duration, from the live streaming segment of each first duration In, the first excellent highest live streaming segment of degree of default quantity is chosen, obtains excellent live streaming segment;
The excellent live streaming segment is synthesized into live video summary, and is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
Optionally, it is described since live streaming, every the period of the first duration, the step of the live streaming segment of the first duration of acquisition Suddenly, including:
The live streaming segment of the first duration is obtained by continuous sampling;The continuous sampling is, first duration when Between when two adjacent live streaming segments is obtained in section, time interval 0;
Give up the final stage live streaming segment obtained when live streaming stops every time.
Optionally, the message count that the number of users for obtaining the live streaming segment for watching each first duration and user send The number of users of acquisition and message number are inputted default excellent degree calculation formula, calculate the straight of each first duration by amount The step of broadcasting the excellent degree of segment, including:
At the end of the live streaming segment for obtaining each first duration, the live streaming segment of each first duration is watched Number of users;
It obtains in first duration, the message count corresponding with the live streaming segment of each first duration that user sends Amount;
According to the number of users and the message number, using default excellent degree calculation formula, each the is calculated The excellent degree of the live streaming segment of one duration;
The default excellent degree calculation formula is:
Wherein, t is first duration, and p is the number of users, and m is the message number, and w is first duration Live streaming segment excellent degree.
Optionally, it is described from the live streaming segment of each first duration, choose the first excellent degree of default quantity Highest live streaming segment obtains excellent the step of segment is broadcast live, including:
From the live streaming segment of each first duration, the first excellent highest live streaming of degree of default quantity is selected Segment, as pending live streaming segment;
Each supplement segment for increasing by the second duration at each pending live streaming segment head and the tail, a length of 3rd duration when obtaining Excellent live streaming segment;
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with Live streaming segment without time interval between each pending live streaming segment head and the tail.
Optionally, it is described from the live streaming segment of each first duration, choose the first excellent degree of default quantity Highest live streaming segment obtains excellent the step of segment is broadcast live, can also include:
From the live streaming segment of each first duration, choose the highest live streaming segment of excellent degree and wait to locate as first Reason live streaming segment;Each supplement segment for increasing by the second duration at the first pending live streaming segment head and the tail, a length of 3rd when obtaining First excellent live streaming segment of duration;
According to the described first excellent live streaming segment, the next pending live streaming segment for meeting selection rule is chosen;Institute Each supplement segment for increasing by the second duration at next pending live streaming segment head and the tail is stated, a length of 3rd duration is excellent when obtaining Segment is broadcast live;
The excellent live streaming segment being currently generated is excellent straight as choose next pending live streaming segment first always Segment is broadcast, and the live streaming segment of each first duration is traveled through by the selection rule, until selecting the second default quantity A pending live streaming segment;
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with Live streaming segment without time interval between each pending live streaming segment head and the tail;
The selection rule is:From the live streaming segment of each first duration, the first excellent live streaming piece is excluded Section and it is described first it is excellent live streaming segment before and after it is the 4th duration and with described first it is excellent live streaming segment it Between after the live streaming segment without time interval, excellent degree is highest straight in the live streaming segment of remaining each first duration Segment is broadcast, to meet next pending live streaming segment of selection rule.
Optionally, each supplement segment for increasing by the second duration at pending live streaming segment head and the tail, as excellent straight The step of broadcasting segment further includes:
At pending live streaming segment head and the tail during the supplement segment of the second duration of each increase, if the duration of the supplement segment Less than the second duration, then the pending live streaming segment is cast out.
Optionally, it is described that the excellent live streaming segment is synthesized into live video summary, and it is illustrated in the straight of corresponding main broadcaster The step in an interface is broadcast, including:
By the excellent live streaming segment, according to the excellent degree descending sort of its corresponding live streaming segment, synthesize current Live video is made a summary;
The current live video frequency abstract is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
Optionally, in the step being illustrated in the current live video frequency abstract in the direct broadcasting room interface of corresponding main broadcaster Afterwards, further include:
According to by the excellent live streaming segment with the order that presents from high to low of excellent degree of its corresponding live streaming segment, Play the current live video frequency abstract.
Optionally, the excellent live streaming segment is synthesized into live video summary described, and is illustrated in corresponding main broadcaster's After step in direct broadcasting room interface, further include:
Since new live streaming every time, every the period of the first duration, the live streaming that corresponding first duration is newly broadcast live is obtained The message number that segment, the number of users for watching the live streaming segment and user send, using default excellent degree calculation formula, Calculate the excellent degree that segment is broadcast live in the new live streaming;
Compare each excellent in the live video summary of the excellent degree that segment is broadcast live in the new live streaming and current presentation The minimum excellent degree of the corresponding live streaming segment of segment is broadcast live, if the excellent degree that segment is broadcast live in the new live streaming is more than The excellent degree of minimum then generates the excellent live streaming segment that segment is broadcast live in the new live streaming;
The corresponding excellent live streaming fragment update of the excellent degree of minimum described in live video summary by current presentation is institute State the excellent live streaming segment that segment is broadcast live in new live streaming.
Second aspect, an embodiment of the present invention provides a kind of live video summary generating means, including:
Segment acquisition module is broadcast live, for since live streaming, every the period of the first duration, obtaining the straight of the first duration Broadcast segment;
Excellent degree computing module, for obtaining the number of users for the live streaming segment for watching each first duration and user's hair The number of users of acquisition and message number are inputted default excellent degree calculation formula by the message number sent, and calculate each the The excellent degree of the live streaming segment of one duration;
Excellent live streaming segment acquisition module, for the excellent degree of the live streaming segment according to each first duration, from In the live streaming segment of each first duration, the first excellent highest live streaming segment of degree of default quantity is chosen, obtains essence Coloured silk live streaming segment;
Live video summarization generation module for the excellent live streaming segment to be synthesized live video summary, and is shown In the direct broadcasting room interface of corresponding main broadcaster.
Optionally, the live streaming segment acquisition module, is specifically used for:
The live streaming segment of the first duration is obtained by continuous sampling;The continuous sampling is, first duration when Between when two adjacent live streaming segments is obtained in section, time interval 0;
Give up the final stage live streaming segment obtained when live streaming stops every time.
Optionally, the excellent degree computing module, is specifically used for:
At the end of the live streaming segment for obtaining each first duration, the live streaming segment of each first duration is watched Number of users;
It obtains in first duration, the message count corresponding with the live streaming segment of each first duration that user sends Amount;
According to the number of users and the message number, using default excellent degree calculation formula, each the is calculated The excellent degree of the live streaming segment of one duration;
The default excellent degree calculation formula is:
Wherein, t is first duration, and p is the number of users, and m is the message number, and w is first duration Live streaming segment excellent degree.
Optionally, the excellent live streaming segment acquisition module, is specifically used for:
From the live streaming segment of each first duration, the first excellent highest live streaming of degree of default quantity is selected Segment, as pending live streaming segment;
Each supplement segment for increasing by the second duration at each pending live streaming segment head and the tail, a length of 3rd duration when obtaining Excellent live streaming segment;
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with Live streaming segment without time interval between each pending live streaming segment head and the tail.
Optionally, the excellent live streaming segment acquisition module, including:
First acquisition submodule, for from the live streaming segment of each first duration, it is highest to choose excellent degree Segment is broadcast live as the first pending live streaming segment;Each supplement for increasing by the second duration at the first pending live streaming segment head and the tail Segment, the first excellent live streaming segment of a length of 3rd duration when obtaining;
Second acquisition submodule, for according to the described first excellent live streaming segment, selection to meet the next of selection rule Pending live streaming segment;Each supplement segment for increasing by the second duration at next pending live streaming segment head and the tail, obtains The excellent live streaming segment of the 3rd durations of Shi Changwei;
The excellent live streaming segment being currently generated is excellent straight as choose next pending live streaming segment first always Segment is broadcast, and the live streaming segment of each first duration is traveled through by the selection rule, until selecting the second default quantity A pending live streaming segment;
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with Live streaming segment without time interval between each pending live streaming segment head and the tail;
The selection rule is:From the live streaming segment of each first duration, the first excellent live streaming piece is excluded Section and it is described first it is excellent live streaming segment before and after it is the 4th duration and with described first it is excellent live streaming segment it Between after the live streaming segment without time interval, excellent degree is highest straight in the live streaming segment of remaining each first duration Segment is broadcast, to meet next pending live streaming segment of selection rule.
Optionally, the excellent live streaming segment acquisition module, is specifically used for:
At pending live streaming segment head and the tail during the supplement segment of the second duration of each increase, if the duration of the supplement segment Less than the second duration, then the pending live streaming segment is cast out.
Optionally, the live video summarization generation module, is specifically used for:
By the excellent live streaming segment, according to the excellent degree descending sort of its corresponding live streaming segment, synthesize current Live video is made a summary;
The current live video frequency abstract is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
Optionally, the live video summarization generation module, is specifically used for:
According to by the excellent live streaming segment with the order that presents from high to low of excellent degree of its corresponding live streaming segment, Play the current live video frequency abstract.
Optionally, described device further includes excellent live streaming fragment update module, is specifically used for:
Since new live streaming every time, every the period of the first duration, the live streaming that corresponding first duration is newly broadcast live is obtained The message number that segment, the number of users for watching the live streaming segment and user send, using default excellent degree calculation formula, Calculate the excellent degree that segment is broadcast live in the new live streaming;
Compare each excellent in the live video summary of the excellent degree that segment is broadcast live in the new live streaming and current presentation The minimum excellent degree of the corresponding live streaming segment of segment is broadcast live, if the excellent degree that segment is broadcast live in the new live streaming is more than The excellent degree of minimum then generates the excellent live streaming segment that segment is broadcast live in the new live streaming;
The corresponding excellent live streaming fragment update of the excellent degree of minimum described in live video summary by current presentation is institute State the excellent live streaming segment that segment is broadcast live in new live streaming.
The third aspect, an embodiment of the present invention provides a kind of electronic equipment, which is characterized in that is connect including processor, communication Mouthful, memory and communication bus, wherein, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any method steps of claim 1-9 Suddenly.
Generation method, device and the electronic equipment of live video summary provided in an embodiment of the present invention, by being opened from live streaming The message number that the live streaming segment obtained that begins and number of users corresponding with live streaming segment and user send, calculates each straight The excellent degree of segment is broadcast, so as to obtain excellent live streaming segment according to the excellent degree of the live streaming segment, and by excellent live streaming Segment synthesizes summary, a live video summary can be automatically generated to each main broadcaster, with alloing user's more convenient and quicker Understand the style and characteristic of main broadcaster.Certainly, implement any of the products of the present invention or more than method must be not necessarily required to reach simultaneously All advantages.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of flow chart of the generation method of live video provided in an embodiment of the present invention summary;
Fig. 2 is another flow chart of the generation method of live video provided in an embodiment of the present invention summary;
Fig. 3 is a kind of structure chart of the generating means of live video provided in an embodiment of the present invention summary;
Fig. 4 is another structure chart of the generating means of live video provided in an embodiment of the present invention summary;
Fig. 5 is the schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Specific embodiment
In order to which those skilled in the art is made to more fully understand the technical solution in the present invention, implement below in conjunction with the present invention Attached drawing in example, is clearly and completely described the technical solution in the embodiment of the present invention.
A kind of generation method of live video summary provided in an embodiment of the present invention is introduced first below.
It should be noted that the generation method of live video summary provided in an embodiment of the present invention, can be applied to can The electronic equipment of direct broadcast service is provided, which includes desktop computer, portable computer, internet television, intelligent mobile Terminal, wearable intelligent terminal, server etc., are not limited thereto, and any electronics that can realize the embodiment of the present invention is set It is standby, belong to the protection domain of the embodiment of the present invention.
As shown in Figure 1, a kind of flow of the generation method of live video summary provided in an embodiment of the present invention, can wrap It includes:
S101, since live streaming, every the period of the first duration, the live streaming segment of the first duration of acquisition.
It is broadcast live, just live streaming is sampled every the period of the first duration, collect a sampling since main broadcaster Segment is the live streaming segment of the first duration, which can be pre-set time span.It thereby realizes pair The segmentation of main broadcaster's live streaming, convenient for subsequently extracting the live content for best embodying main broadcaster's style and characteristic.
S102 obtains the number of users for the live streaming segment for watching each first duration and the message number of user's transmission, will The number of users and message number of acquisition input default excellent degree calculation formula, calculate the live streaming segment of each first duration Excellent degree.
In general, the live content for best embodying main broadcaster's style and characteristic is exactly the splendid contents being broadcast live, when being broadcast live out During existing splendid contents, watch the message number that the spectators of this section of splendid contents send that can increase.When therefore, for each first Long live streaming segment can obtain the message number of the number of users for watching the live streaming segment and user's transmission, by the use of acquisition Amount amount and message number input default excellent degree calculation formula, calculate the excellent journey of the live streaming segment of each first duration Degree.The excellent degree enables the different splendid contents of different live streaming segments to be compared with unified standard, convenient for follow-up Extraction best embodies the live content of main broadcaster's style and characteristic from the live streaming segment of each first duration.Wherein, excellent degree Calculation formula i.e. excellent degree and number of users and the mathematical operation relation of message number.
S103, according to the excellent degree of the live streaming segment of each first duration, from the straight of each first duration It broadcasts in segment, chooses the first excellent highest live streaming segment of degree of default quantity, obtain excellent live streaming segment.
The excellent live streaming segment is synthesized live video summary, and is illustrated in the live streaming boundary of corresponding main broadcaster by S104 In face.
Live streaming segment contents are more excellent, and the excellent degree of the segment is higher.Therefore from the live streaming of each first duration In segment, the first excellent highest live streaming segment of degree of default quantity is chosen, these live streaming segments can be used as excellent live streaming piece Section synthesizes live video summary.Such as:From 60 live streaming segments of 1 minute of acquisition, 5 excellent degree highests are chosen Live streaming segment, this 5 live streaming segments excellent degree be followed successively by 10,9,8,7,6, be above it is remaining 55 live streaming segment, This 5 live streaming segments are then synthesized into live video summary, and are illustrated in the live streaming interface of corresponding main broadcaster.
The method of above-described embodiment, while multiple excellent live contents are extracted, by these excellent live streaming segments certainly Dynamic circuit connector is made a summary as live video, and is illustrated in the direct broadcasting room interface of corresponding main broadcaster.When user wants to know about a certain main broadcaster, As long as watch the live video summary in main broadcaster's direct broadcasting room interface, it is possible to watch the main broadcaster in a short time and repeatedly be broadcast live In essential part, avoiding user in conventional method needs to take a significant amount of time the whole field live streaming of repeatedly viewing main broadcaster or go through The problem of history plays back understands the style and characteristic of main broadcaster with making user's more convenient and quicker.
Optionally, the step S101 of embodiment illustrated in fig. 1, can specifically include:
The live streaming segment of the first duration is obtained by continuous sampling;The continuous sampling is, first duration when Between when two adjacent live streaming segments is obtained in section, time interval 0.
Such as:First duration is arranged to 1 minute, the live streaming time started is 14:When 00, first is obtained by continuous sampling The process of the live streaming segment of duration is:14:01 acquisition 14:00-14:01 live streaming segment A, 14:02 acquisition 14:01-14:02 Segment B is broadcast live, 14:01 to 14:In 1 minute of 02, the time interval between adjacent two live streaming segments A, B is 0.Pass through The mode of continuous sampling can ensure that the live streaming segment of the first duration obtained is to contain the live streaming piece of all splendid contents Section, avoids omitting any splendid contents.
Give up the final stage live streaming segment obtained when live streaming stops every time.
In general, be broadcast live stop when obtaining final stage sampling segment duration be less than before sample segment when It is long, and main broadcaster in the period before stopping is broadcast live and does not have brilliant show, therefore can will be obtained most when live streaming stops every time Latter section of live streaming segment is cast out.Which reduces poor redundancies to be broadcast live segment, is conducive to improve live video summary life Into efficiency, and the method for sampling of the identical duration for the present embodiment, it is ensured that the isometric property of live streaming segment.
Optionally, the step S102 of embodiment illustrated in fig. 1, can specifically include:
At the end of the live streaming segment for obtaining each first duration, the live streaming segment of each first duration is watched Number of users.
Due to during each live streaming, there is a situation where that certain customers' not timing enters or leaves direct broadcasting room, together Shi Ruguo live contents are excellent enough, and user will be attracted to stay in direct broadcasting room and continue to watch, therefore for each first duration Segment is broadcast live, unification is using the number of users of direct broadcasting room at the end of the live streaming segment as the number of users for watching the live streaming segment.
Such as:A length of 1 minute when first, the live streaming of certain main broadcaster is from 14:00 starts, and a live streaming segment A of acquisition is 14: 00 to 14:During 01 live content, at the end of obtaining live streaming segment A, that is, 14:The number of users of main broadcaster's direct broadcasting room when 01 Amount, it is to be appreciated that the user of direct broadcasting room is exactly the user of viewing live streaming.It is seen in period with directly acquiring the first duration See that the number of users of the live streaming segment of each first duration is compared, this method eliminates inactive users quantity, after being conducive to The continuous excellent degree for obtaining the more accurately live streaming segment of each first duration.
It obtains in first duration, the message count corresponding with the live streaming segment of each first duration that user sends Amount.
It is understood that user has sent message and just represents to live content " cheer " in live streaming, that is to say, that one As in the case of have sent the user of message and will not leave live streaming, can be direct therefore when obtaining the message number that user sends Obtain the message number corresponding to the live streaming segment that user sends in first time period.Such as:A length of 1 minute when first, The live streaming of certain main broadcaster is from 14:00 starts, and a live streaming segment A of acquisition is 14:00 to 14:During 01 live content, 14 are obtained:00 To 14:The message number that user sends in 01 period.
After obtaining number of users and message number using above-mentioned optional mode, the default excellent degree calculates public Formula can be:
Wherein, t is first duration, and p is the number of users, and m is the message number, and w is first duration Live streaming segment excellent degree.
It is understood that the accuracy for the excellent degree that the setting of t need to can guarantee, t, which crosses conference, causes what is obtained Be broadcast live segment it is long and comprising more redundancy, the excellent degree of the segment for making acquisition is not accurate enough, and t is too small to increase calculating It measures and reduces efficiency, and since the too small contingency that excellent degree can be caused to calculate of live video segmentation is higher.Therefore, Ke Yigen T is set according to historical experience, alternatively, setting t according to the current transmission rate of live video when obtaining live streaming segment.Such as:The value of t It could be provided as 10 seconds, alternatively, more than 10 seconds.
T is set according to historical experience.Can be that a large amount of live videos are sampled with different t by analyzing to compare in advance When, whether obtained excellent degree is corresponding with the excellent situation of reality of each live streaming segment contents, so that it is determined that going out one properly Value.Such as:When t is 10 seconds, the excellent degree value of obtained each live streaming segment, the reality with each live streaming segment contents Excellent situation is corresponding, then can be arranged to t 10 seconds.
Alternatively, t is set according to the transmission rate of live video when obtaining live streaming segment.Since live streaming is that one kind regards in real time Frequency spreads transferring technology, and transmission rate changes due to the transmission environment in transmission process influences, the transmission rate when transmission environment is good Soon, the live video stream transmitted within a certain period of time is more, and transmission rate is slow when transmission environment is poor, transmits within a certain period of time Live video stream it is few.Such as:When transmission rate is fast, the live content transmitted in 10 seconds has been finished in short for main broadcaster, and is passed When defeated rate is slow, the live content transmitted in 10 seconds does not finish the words also for main broadcaster.Therefore, can be set according to historical experience T on the basis of, according to the current transmission rate of live video, adaptability sets t.Can specifically it include:Live streaming is obtained every time Before segment, the current transmission rate of live video is first obtained, compares current transmission rate and default rate-valve value.It is if current Transmission rate is more than or equal to default rate-valve value, then every the period of the first duration, the live streaming segment of the first duration of acquisition; If current transmission rate is less than default rate-valve value, every the period of the 5th duration, the live streaming of the 5th duration is obtained Segment;Wherein, the 5th duration is more than first duration.Such as:Before the live streaming segment for obtaining t durations, live streaming is first obtained The current transmission rate v of video compares v and default rate-valve value v0Size, wherein default rate-valve value v0According to go through The live video average transmission rate that history experience is set.If v >=v0, then t is arranged to historical experience value 10 seconds, if v<v0, So t may be configured as 12 seconds.It is appreciated that in v<v0In the case of, appropriate the first duration t for increasing sampling can be to avoid The delay of the live streaming segment contents obtained caused by live video transmission rate is relatively slow, can make acquisition the first duration it is straight The excellent degree for broadcasting segment is more accurate.Specific setting for the first duration t can also be other any modes, every energy Enough make the set-up mode of the sufficiently exact t of excellent degree of the live streaming segment of the first duration of acquisition, may be incorporated for the present invention, The present embodiment is not restricted this.
Since the excellent degree acquisition methods are to characterize first with the message number of unit user transmission in the unit interval The excellent degree of the live streaming segment of duration, therefore, either piece is broadcast live according to acquisition in the t whether set according to historical experience The t that the current transmission rate adaptability of live video is set during section, that is, any mode to live video segmentation, can lead to Cross the excellent degree of the quantization of the live streaming segment of a length of t when this method obtains.
Optionally, the step S103 of embodiment illustrated in fig. 1, can specifically include:
From the live streaming segment of each first duration, the first excellent highest live streaming of degree of default quantity is selected Segment, as pending live streaming segment;Each supplement segment for increasing by the second duration at each pending live streaming segment head and the tail, obtains The then excellent live streaming segment of a length of 3rd duration;When the described 3rd a length of first duration and second duration and; It is described supplement segment be in live streaming it is each it is pending live streaming segment head and the tail between the live streaming segment without time interval.
Such as:From the live streaming segment of each first duration, select 5 excellent highest live streaming segments of degree and make For pending live streaming segment, then at this 5 pending live streaming segment head and the tail each increase by 25 seconds supplement segments, when obtaining 5 The excellent live streaming segment of a length of 1 minute.It is described supplement segment be in live streaming it is each it is pending live streaming segment head and the tail between nothing The live streaming segment of time interval.Such as a certain live streaming segment is the 60th second in live video to the in 5 pending live streaming segments Segment between 70 seconds, then the supplement segment of the live streaming segment is just the piece in live video between the 35th second to the 60th second Section and the segment between the 70th second to the 95th second.Since user is often watching the brilliant show of main broadcaster in live streaming Afterwards, just start to send message, that is, there are certain time delays for the increase of message number.Simultaneously because live video is real-time Property, and live content transmission can be influenced be subject to transmission environment, the transmission of live content also there is certain time delay.Cause This, compared with the method for excellent live streaming segment is chosen from the live streaming segment obtained directly according to excellent degree, the present embodiment Method supplements the supplement segment of the 3rd duration in the first place of pending live streaming segment, both ensure that message number and excellent live streaming piece The correspondence of section, that is, make the excellent live streaming segment of acquisition excellent enough, and the whole story of wonderful is covered, see user The content for the excellent live streaming segment seen completely links up as far as possible.
The generation method of live video summary provided in an embodiment of the present invention, passes through the live streaming piece obtained since live streaming The message number that section and number of users corresponding with live streaming segment and user send calculates the excellent journey of each live streaming segment So as to the excellent degree according to the live streaming segment, supplement process is done to obtain excellent live streaming segment to the live streaming segment for degree, And by it is excellent live streaming segment synthesize summary, can give each main broadcaster automatically generate one as far as possible comprising completely link up it is excellent The live video summary of segment is broadcast live, understand the style and characteristic of main broadcaster with alloing user's more convenient and quicker.
As shown in Fig. 2, another flow of the generation method of live video summary provided in an embodiment of the present invention, can wrap It includes:
Step S201, S202, it is corresponding respectively with step S101, S102 of embodiment illustrated in fig. 1, no longer illustrate herein, in detail See the foregoing explanation to Fig. 1 embodiments.
S203 from the live streaming segment of each first duration, chooses the highest live streaming segment of excellent degree as the One pending live streaming segment;Each supplement segment for increasing by the second duration at the first pending live streaming segment head and the tail, obtains duration For the first excellent live streaming segment of the 3rd duration.
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with Live streaming segment without time interval between each pending live streaming segment head and the tail.
S204 according to the described first excellent live streaming segment, chooses the next pending live streaming segment for meeting selection rule; Each supplement segment for increasing by the second duration at next pending live streaming segment head and the tail, a length of 3rd duration when obtaining Excellent live streaming segment.
The selection rule is:From the live streaming segment of each first duration, the first excellent live streaming piece is excluded Section and it is described first it is excellent live streaming segment before and after it is the 4th duration and with described first it is excellent live streaming segment it Between after the live streaming segment without time interval, excellent degree is highest straight in the live streaming segment of remaining each first duration Segment is broadcast, to meet next pending live streaming segment of selection rule.4th duration can according to historical experience it is pre- The time span first set.
S205, using the excellent live streaming segment being currently generated always as the first essence for choosing next pending live streaming segment Coloured silk live streaming segment, and by the live streaming segment of selection rule traversal each first duration, it is default until selecting second The pending live streaming segment of quantity.
Such as:A length of 10 seconds when first, a length of 25 seconds when second, a length of 1 minute when the 3rd, the 4th when it is a length of 29 points 30 seconds When, from the live streaming segment of 18000 10 seconds durations, choose the highest pending live streaming segment A of excellent degree and treated as first Processing live streaming segment, live streaming segment A are the 180th point to the 180th point segment between 10 seconds in live video, will be in live video The 179th point of segment of 35 seconds to the 180th/and the 180th point of segment between 10 seconds to 35 seconds the 180th minute, increase respectively It adds at the head and the tail of live streaming segment A, live streaming segment A of the 179th point obtained between 35 seconds to 35 seconds the 180th minutej, it is the One excellent live streaming segment.
After obtaining the first excellent live streaming segment, from the live streaming segment of each first duration, the 179th point is excluded 35 seconds Live streaming segment A between to 35 seconds the 180th minutejAnd the 150th point of live streaming segment between 35 seconds 05 second to the 179th point and Live streaming segment between 35 seconds 180th minute to 05 second the 210th minute, from the live streaming segment of remaining 17640 10 seconds durations It is middle to choose the excellent highest live streaming segment B of degree, as next pending live streaming segment.Live streaming segment B is carried out and first The processing of the identical increase supplement segment of pending live streaming segment, obtains the excellent live streaming segment B of live streaming segment Bj
At this point, the excellent live streaming segment B that will be currently generatedjIt is excellent as choose next pending live streaming segment first Segment is broadcast live, it is similar with choosing live streaming segment B, excellent live streaming segment is excluded from the live streaming segment of 17640 10 seconds durations BjAnd BjBefore and after 29 parts of 30 seconds durations and and BjBetween after the live streaming segment without time interval, from remainder 17280 10 seconds durations live streaming segment in choose the highest live streaming segment C of excellent degree, as next pending live streaming Segment.
The excellent live streaming segment being currently generated is excellent straight as choose next pending live streaming segment first always Segment is broadcast, and the live streaming segment of each first duration is traveled through by the selection rule, until selecting 4 pending live streamings Segment.It is understood that when live videos of the synthesis comprising 5 excellent live streaming segments is needed to make a summary, the second default quantity For 4, that is to say, that next pending in addition to first pending live streaming segment need not be chosen according to the selection rule Live streaming segment needs to travel through the live streaming segment of each first duration by the selection rule always to choose.
With foregoing directly from the live streaming segment of each first duration, the first excellent degree of default quantity is selected Highest live streaming segment is as pending live streaming segment, then these pending live streaming segments are handled with the excellent live streaming piece to obtain The method of section is compared, and embodiment shown in Fig. 2 both ensure that the excellent live streaming segment of acquisition by the technological means for supplementing segment It is excellent enough, and the content for the wonderful that user watches is made completely to link up as far as possible, also pass through the skill of the selection rule Art means enable the excellent live streaming segment of selection to include while ensure that all excellent live streaming segment non-overlapping copies of selection Multifarious content, to show the excellent live streaming segment of main broadcaster's difference characteristic or style.
In practical applications, it before step S203, can first judge whether the total duration of main broadcaster's live streaming can guarantee use When above-mentioned selection rule chooses pending live streaming segment, pending live streaming segment can be selected always.If can ensure, Live video summary is generated for the main broadcaster.Such as:A length of 1 minute when the 3rd, in the selection rule the 4th when a length of 29 Divide 30 seconds, when the summary of generation includes 5 excellent live streaming segments, first judge whether the live streaming total duration of main broadcaster is small more than or equal to 5 When.If the live streaming total duration of main broadcaster is small more than or equal to 5, S204 and subsequent step are performed;If the live streaming of main broadcaster is total When long small less than 5, then the data that step S201 is obtained into S202 are preserved, and step is continued to execute to the new live streaming of the main broadcaster S201 to S202, until the live streaming total duration of the main broadcaster reach 5 it is small when, then perform S204 and subsequent step.Certainly, for this hair The specific of each duration sets the present embodiment not to be restricted in bright, any setting that can be used to implement above-mentioned technique effect For the present invention.
Optionally, for the benefit of the second duration of each increase at pending live streaming segment head and the tail described in above-described embodiment Segment is filled, as excellent the step of segment is broadcast live, can also be included:
At pending live streaming segment head and the tail during the supplement segment of the second duration of each increase, if the duration of the supplement segment Less than the second duration, then the pending live streaming segment is cast out.For example, pending segment for live video the 10th second to 20 seconds it Between segment, the live video before the segment section start only has 10 seconds, and less than 25 seconds, that is, it supplemented segment and there was only 10 seconds, The supplement segment of a length of 25 seconds when therefore can not be supplemented for it, therefore the pending live streaming segment is cast out.
Step S206, it is corresponding with the step S104 of embodiment illustrated in fig. 1, no longer illustrate herein, refer to foregoing to Fig. 1 implementations The explanation of example.
Optionally, it is foregoing that the excellent live streaming segment is synthesized into live video summary, and it is illustrated in the straight of corresponding main broadcaster The step S104 or step S206 in an interface are broadcast, can specifically be included:
By the excellent live streaming segment, according to the excellent degree descending sort of its corresponding live streaming segment, synthesize current Live video is made a summary;The current live video frequency abstract is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
According to by the excellent live streaming segment with the order that presents from high to low of excellent degree of its corresponding live streaming segment, Play the current live video frequency abstract.
For example, 5 excellent live streaming segments of certain main broadcaster, the excellent degree descending by its corresponding live streaming segment is Aj、Bj、 Cj、Dj、Ej, current live video frequency abstract after synthesis is one section of video of 5 minutes, is illustrated between the main broadcaster in interface, should When current live video frequency abstract plays, user sees the highest excellent live streaming segment A of excellent degree firstj, then successively For Bj、Cj、Dj、Ej.It is understood that this method makes user watch the most excellent live streaming segment of main broadcaster first, that is, most The live content of main broadcaster's characteristic and style can be embodied, further improves the efficiency that user understands main broadcaster's characteristic and style.
Optionally, the excellent live streaming segment is synthesized into live video summary foregoing, and is illustrated in corresponding main broadcaster's After step S104 or step S206 in direct broadcasting room interface, it can also comprise the following steps:
Since new live streaming every time, every the period of the first duration, the live streaming that corresponding first duration is newly broadcast live is obtained The message number that segment, the number of users for watching the live streaming segment and user send, using default excellent degree calculation formula, Calculate the excellent degree that segment is broadcast live in the new live streaming.
Compare each excellent in the live video summary of the excellent degree that segment is broadcast live in the new live streaming and current presentation The minimum excellent degree of the corresponding live streaming segment of segment is broadcast live, if the excellent degree that segment is broadcast live in the new live streaming is more than The excellent degree of minimum then generates the excellent live streaming segment that segment is broadcast live in the new live streaming.
The corresponding excellent live streaming fragment update of the excellent degree of minimum described in live video summary by current presentation is institute State the excellent live streaming segment that segment is broadcast live in new live streaming.
New live streaming namely each to main broadcaster as soon as often obtaining the live streaming segment of time the first duration, first calculates the live streaming The excellent degree of segment, then relatively newly the live streaming of current presentation of the excellent degree of live streaming segment with being illustrated in main broadcaster interface regards Each excellent minimum excellent degree that the corresponding live streaming segment of segment is broadcast live in frequency summary, if the new live streaming segment Excellent degree is more than the excellent degree of minimum, regenerates the excellent live streaming segment of the new live streaming segment, and straight with newly excellent It broadcasts segment and replaces the corresponding excellent live streaming segment of the excellent degree of minimum described in the live video summary of current presentation.With directly holding Row step S101-S102 either step S101-S103 either after step S201-S202 or S201-S204, then more smart To determine whether that newer method is compared, the update method for the first more excellent degree that the present embodiment is taken avoids color degree It is less than the corresponding excellent live streaming piece of live streaming segment of excellent degree minimum in the live video summary of current presentation for excellent degree The excellent live streaming segments of Duan Shengcheng, had both improved update efficiency, and had in turn avoided the wasting of resources.
The generation method of live video summary provided in an embodiment of the present invention, passes through the live streaming piece obtained since live streaming The message number that section and number of users corresponding with live streaming segment and user send calculates the excellent journey of each live streaming segment Degree so as to the excellent degree and selection rule according to the live streaming segment, does supplement process to obtain to the live streaming segment Excellent live streaming segment, and excellent live streaming segment is synthesized into summary, one can be automatically generated to each main broadcaster and included as far as possible The live video summary of the complete unduplicated excellent live streaming segment of coherent and content, understands master with alloing user's more convenient and quicker The style and characteristic broadcast.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of generation dress of live video summary It puts.
As shown in figure 3, a kind of structure of the generating means of live video summary provided in an embodiment of the present invention, can wrap It includes:
Segment acquisition module 301 is broadcast live, for since live streaming, every the period of the first duration, obtaining the first duration Live streaming segment.
Excellent degree computing module 302, for obtaining the number of users and use of the live streaming segment for watching each first duration The message number that family is sent, using default excellent degree calculation formula, calculate each first duration live streaming segment it is excellent Degree.
Excellent live streaming segment acquisition module 303, for the excellent degree of the live streaming segment according to each first duration, From the live streaming segment of each first duration, the first excellent highest live streaming segment of degree of default quantity is chosen, is obtained Excellent live streaming segment.
Live video summarization generation module 304 for the excellent live streaming segment to be synthesized live video summary, and is opened up Show in the direct broadcasting room interface of corresponding main broadcaster.
Optionally, the live streaming segment acquisition module, is specifically used for:
The live streaming segment of the first duration is obtained by continuous sampling;The continuous sampling is, first duration when Between when two adjacent live streaming segments is obtained in section, time interval 0;
Give up the final stage live streaming segment obtained when live streaming stops every time.
Optionally, the excellent degree computing module, is specifically used for:
At the end of the live streaming segment for obtaining each first duration, the live streaming segment of each first duration is watched Number of users.
It obtains in first duration, the message count corresponding with the live streaming segment of each first duration that user sends Amount.
According to the number of users and the message number, using default excellent degree calculation formula, each the is calculated The excellent degree of the live streaming segment of one duration;
The default excellent degree calculation formula is:
Wherein, t is first duration, and p is the number of users, and m is the message number, and w is first duration Live streaming segment excellent degree.
Optionally, the excellent live streaming segment acquisition module, is specifically used for:
From the live streaming segment of each first duration, the first excellent highest live streaming of degree of default quantity is selected Segment, as pending live streaming segment.
Each supplement segment for increasing by the second duration at each pending live streaming segment head and the tail, a length of 3rd duration when obtaining Excellent live streaming segment.
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with Live streaming segment without time interval between each pending live streaming segment head and the tail.
The generating means for the live video summary that the above embodiment of the present invention provides, pass through the live streaming obtained since live streaming The message number that segment and number of users corresponding with live streaming segment and user send, calculates the excellent of each live streaming segment Degree so as to the excellent degree according to the live streaming segment, obtains excellent live streaming segment and generates the excellent live streaming segment collection of choice specimens, can Each main broadcaster to be given to automatically generate the excellent collection of choice specimens of live streaming, style and the spy of main broadcaster are understood with alloing user's more convenient and quicker Color.
As shown in figure 4, another structure of the generating means of live video summary provided in an embodiment of the present invention, can wrap It includes:
Module 401,402, it is corresponding respectively with the module 301,302 of embodiment illustrated in fig. 3, no longer illustrate herein, before referring to State the explanation to Fig. 3 embodiments.
Excellent live streaming segment acquisition module 403, can include:
First acquisition submodule 4031, for from the live streaming segment of each first duration, choosing excellent degree most High live streaming segment is as the first pending live streaming segment;The second duration of each increase at the first pending live streaming segment head and the tail Supplement segment, the first excellent live streaming segment of a length of 3rd duration when obtaining.
Second acquisition submodule 4032, for according to the described first excellent live streaming segment, selection to meet under selection rule One pending live streaming segment;Each supplement segment for increasing by the second duration at next pending live streaming segment head and the tail, The excellent live streaming segment of a length of 3rd duration when obtaining.
The excellent live streaming segment being currently generated is excellent straight as choose next pending live streaming segment first always Segment is broadcast, and the live streaming segment of each first duration is traveled through by the selection rule, until selecting the second default quantity A pending live streaming segment.
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with Live streaming segment without time interval between each pending live streaming segment head and the tail.
The selection rule is:From the live streaming segment of each first duration, the first excellent live streaming piece is excluded Section and it is described first it is excellent live streaming segment before and after it is the 4th duration and with described first it is excellent live streaming segment it Between after the live streaming segment without time interval, excellent degree is highest straight in the live streaming segment of remaining each first duration Segment is broadcast, to meet next pending live streaming segment of selection rule.
Module 404, it is corresponding with the module 304 of embodiment illustrated in fig. 3, no longer illustrate herein, refer to foregoing to Fig. 3 embodiments Explanation.
Optionally, the excellent live streaming segment acquisition module, is specifically used for:
At pending live streaming segment head and the tail during the supplement segment of the second duration of each increase, if the duration of the supplement segment Less than the second duration, then the pending live streaming segment is cast out.
Optionally, the live video summarization generation module, is specifically used for:
By the excellent live streaming segment, according to the excellent degree descending sort of its corresponding live streaming segment, synthesize current Live video is made a summary.
The current live video frequency abstract is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
According to by the excellent live streaming segment with the order that presents from high to low of excellent degree of its corresponding live streaming segment, Play the current live video frequency abstract.
Optionally, described device can also include excellent live streaming fragment update module in another embodiment, be specifically used for:
Since new live streaming every time, every the period of the first duration, the live streaming that corresponding first duration is newly broadcast live is obtained The message number that segment, the number of users for watching the live streaming segment and user send, using default excellent degree calculation formula, Calculate the excellent degree that segment is broadcast live in the new live streaming;
Compare each excellent in the live video summary of the excellent degree that segment is broadcast live in the new live streaming and current presentation The minimum excellent degree of the corresponding live streaming segment of segment is broadcast live, if the excellent degree that segment is broadcast live in the new live streaming is more than The excellent degree of minimum then generates the excellent live streaming segment that segment is broadcast live in the new live streaming;
The corresponding excellent live streaming fragment update of the excellent degree of minimum described in live video summary by current presentation is institute State the excellent live streaming segment that segment is broadcast live in new live streaming.
For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.For convenience of description, describe with function to be divided into during apparatus above various Module describes respectively.It certainly, can be the function of each module in same or multiple softwares and/or hardware when implementing the present invention Middle realization.
The generating means for the live video summary that the above embodiment of the present invention provides, pass through the live streaming obtained since live streaming The message number that segment and number of users corresponding with live streaming segment and user send, calculates the excellent of each live streaming segment Degree so as to the excellent degree according to the live streaming segment, obtains excellent live streaming segment and generates the summary of excellent live streaming segment, A live video summary can be automatically generated to each main broadcaster, at the same it is straight higher than current with the excellent degree in new live streaming every time The live video summary that the live streaming segment continuous renewal of excellent degree minimum in video frequency abstract is currently generated is broadcast, ensures live video Summary is the live video summary for best embodying the excellent performance of main broadcaster always, understands main broadcaster's with alloing user's more convenient and quicker Style and characteristic.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 5, including processor 501, communication interface 502, Memory 503 and communication bus 504, wherein, processor 501, communication interface 502, it is complete that memory leads to 503 communication bus 504 excessively Into mutual communication;
The memory 503, for storing computer program;
The processor 501 during for performing the computer program stored on the memory 503, realizes following step Suddenly:
Since live streaming, every the period of the first duration, the live streaming segment of the first duration of acquisition;
The number of users for the live streaming segment for watching each first duration is obtained and message number that user sends, using presetting Excellent degree calculation formula, calculate the excellent degree of the live streaming segment of each first duration;
According to the excellent degree of the live streaming segment of each first duration, from the live streaming segment of each first duration In, the first excellent highest live streaming segment of degree of default quantity is chosen, obtains excellent live streaming segment;
The excellent live streaming segment is synthesized into live video summary, and is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
The above embodiment of the present invention provide electronic equipment, by since live streaming obtain live streaming segment and with it is straight The message number of the corresponding number of users of segment and user's transmission is broadcast, the excellent degree of each live streaming segment is calculated, so as to basis The excellent degree of the live streaming segment obtains excellent live streaming segment and generates the summary of excellent live streaming segment, can give each main It broadcasts and automatically generates a live video summary, understand the style and characteristic of main broadcaster with alloing user's more convenient and quicker.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of representing, only represented in figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, abbreviation RAM), can also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real It is existing.When implemented in software, can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and performing the computer program instructions, all or It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium In or from a computer readable storage medium to another computer readable storage medium transmit, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is the data storage devices such as server, the data center integrated comprising one or more usable mediums.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device and For electronic equipment embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part referring to The part explanation of embodiment of the method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modifications, equivalent replacements and improvements are made within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (19)

1. a kind of generation method of live video summary, which is characterized in that the described method includes:
Since live streaming, every the period of the first duration, the live streaming segment of the first duration of acquisition;
The number of users for the live streaming segment for watching each first duration and the message number of user's transmission are obtained, by the user of acquisition Quantity and message number input default excellent degree calculation formula, calculate the excellent journey of the live streaming segment of each first duration Degree;
According to the excellent degree of the live streaming segment of each first duration, from the live streaming segment of each first duration, The first excellent highest live streaming segment of degree of default quantity is chosen, obtains excellent live streaming segment;
The excellent live streaming segment is synthesized into live video summary, and is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
2. according to the method described in claim 1, it is characterized in that, described since live streaming, every the period of the first duration, The step of obtaining the live streaming segment of the first duration, including:
The live streaming segment of the first duration is obtained by continuous sampling;The continuous sampling is, in the period of first duration During interior two adjacent live streaming segment of acquisition, time interval 0;
Give up the final stage live streaming segment obtained when live streaming stops every time.
3. according to the method described in claim 1, it is characterized in that, the live streaming segment of each first duration is watched in the acquisition The message number that number of users and user send calculates the number of users of acquisition and the default excellent degree of message number input The step of formula, the excellent degree for the live streaming segment for calculating each first duration, including:
At the end of the live streaming segment for obtaining each first duration, the user of the live streaming segment of each first duration is watched Quantity;
It obtains in first duration, the message number corresponding with the live streaming segment of each first duration that user sends;
According to the number of users and the message number, using default excellent degree calculation formula, when calculating each first The excellent degree of long live streaming segment;
The default excellent degree calculation formula is:
Wherein, t is first duration, and p is the number of users, and m is the message number, and w is the straight of first duration Broadcast the excellent degree of segment.
4. according to the method described in claim 1, it is characterized in that, described from the live streaming segment of each first duration, The step of choosing the first excellent highest live streaming segment of degree of default quantity, obtaining excellent live streaming segment, including:
From the live streaming segment of each first duration, the first excellent highest live streaming piece of degree of default quantity is selected Section, as pending live streaming segment;
Each supplement segment for increasing by the second duration at each pending live streaming segment head and the tail, the essence of a length of 3rd duration when obtaining Coloured silk live streaming segment;
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with it is each Live streaming segment without time interval between pending live streaming segment head and the tail.
5. according to the method described in claim 1, it is characterized in that, described from the live streaming segment of each first duration, The step of choosing the first excellent highest live streaming segment of degree of default quantity, obtaining excellent live streaming segment, can also include:
From the live streaming segment of each first duration, it is pending straight as first to choose the highest live streaming segment of excellent degree Broadcast segment;Each supplement segment for increasing by the second duration at the first pending live streaming segment head and the tail, a length of 3rd duration when obtaining The first excellent live streaming segment;
According to the described first excellent live streaming segment, the next pending live streaming segment for meeting selection rule is chosen;Under described Each supplement segment for increasing by the second duration at one pending live streaming segment head and the tail, the excellent live streaming of a length of 3rd duration when obtaining Segment;
Using the excellent live streaming segment being currently generated always as the first excellent live streaming piece for choosing next pending live streaming segment Section, and by the live streaming segment of selection rule traversal each first duration, treated until selecting the second default quantity Processing live streaming segment;
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with it is each Live streaming segment without time interval between pending live streaming segment head and the tail;
The selection rule is:From the live streaming segment of each first duration, the first excellent live streaming segment is excluded, with And it is described first it is excellent live streaming segment before and after it is the 4th duration and described first it is excellent live streaming segment between without when Between after the live streaming segment that is spaced, the excellent highest live streaming piece of degree in the live streaming segment of remaining each first duration Section, to meet next pending live streaming segment of selection rule.
6. method according to claim 4 or 5, which is characterized in that each increase at pending live streaming segment head and the tail The supplement segment of second duration as excellent the step of segment is broadcast live, further includes:
At pending live streaming segment head and the tail during the supplement segment of the second duration of each increase, if the duration of the supplement segment is less than Second duration then casts out the pending live streaming segment.
7. according to the method described in claim 1, it is characterized in that, described synthesize live video by the excellent live streaming segment Summary, and the step being illustrated in the direct broadcasting room interface of corresponding main broadcaster, including:
By the excellent live streaming segment, according to the excellent degree descending sort of its corresponding live streaming segment, current live is synthesized Video frequency abstract;
The current live video frequency abstract is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
8. the method according to the description of claim 7 is characterized in that the current live video frequency abstract is illustrated in pair described After answering the step in the direct broadcasting room interface of main broadcaster, further include:
According to the order for being presented the excellent live streaming segment from high to low with the excellent degree of its corresponding live streaming segment, play The current live video frequency abstract.
9. according to the method described in claim 1, it is characterized in that, the excellent live streaming segment is synthesized live streaming and regarded described Frequency is made a summary, and after the step being illustrated in the direct broadcasting room interface of corresponding main broadcaster, is further included:
Since new live streaming every time, every the period of the first duration, obtain newly be broadcast live corresponding first duration live streaming segment, The number of users of the live streaming segment and the message number of user's transmission are watched, default excellent degree calculation formula is utilized, calculates The excellent degree of segment is broadcast live in the new live streaming;
Compare each excellent live streaming in the live video summary of the excellent degree that segment is broadcast live in the new live streaming and current presentation The minimum excellent degree of the corresponding live streaming segment of segment, if the excellent degree of segment is broadcast live in the new live streaming more than described Minimum excellent degree then generates the excellent live streaming segment that segment is broadcast live in the new live streaming;
The corresponding excellent live streaming fragment update of the excellent degree of minimum described in live video summary by current presentation is described new The excellent live streaming segment of segment is broadcast live in live streaming.
10. a kind of generating means of live video summary, which is characterized in that described device includes:
Segment acquisition module is broadcast live, for since live streaming, every the period of the first duration, obtains the live streaming piece of the first duration Section;
Excellent degree computing module sends for the number of users of the live streaming segment of each first duration of acquisition viewing and user The number of users of acquisition and message number are inputted default excellent degree calculation formula, when calculating each first by message number The excellent degree of long live streaming segment;
Excellent live streaming segment acquisition module, for the excellent degree of the live streaming segment according to each first duration, from described In the live streaming segment of each first duration, the first excellent highest live streaming segment of degree of default quantity is chosen, is obtained excellent straight Broadcast segment;
Live video summarization generation module for the excellent live streaming segment to be synthesized live video summary, and is illustrated in pair In the direct broadcasting room interface for answering main broadcaster.
11. device according to claim 10, which is characterized in that the live streaming segment acquisition module is specifically used for:
The live streaming segment of the first duration is obtained by continuous sampling;The continuous sampling is, in the period of first duration During interior two adjacent live streaming segment of acquisition, time interval 0;
Give up the final stage live streaming segment obtained when live streaming stops every time.
12. device according to claim 10, which is characterized in that the excellent degree computing module is specifically used for:
At the end of the live streaming segment for obtaining each first duration, the user of the live streaming segment of each first duration is watched Quantity;
It obtains in first duration, the message number corresponding with the live streaming segment of each first duration that user sends;
According to the number of users and the message number, using default excellent degree calculation formula, when calculating each first The excellent degree of long live streaming segment;
The default excellent degree calculation formula is:
Wherein, t is first duration, and p is the number of users, and m is the message number, and w is the straight of first duration Broadcast the excellent degree of segment.
13. device according to claim 10, which is characterized in that the excellent live streaming segment acquisition module is specifically used for:
From the live streaming segment of each first duration, the first excellent highest live streaming piece of degree of default quantity is selected Section, as pending live streaming segment;
Each supplement segment for increasing by the second duration at each pending live streaming segment head and the tail, the essence of a length of 3rd duration when obtaining Coloured silk live streaming segment;
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with it is each Live streaming segment without time interval between pending live streaming segment head and the tail.
14. device according to claim 10, which is characterized in that the excellent live streaming segment acquisition module, including:
First acquisition submodule, for from the live streaming segment of each first duration, choosing the highest live streaming of excellent degree Segment is as the first pending live streaming segment;Each supplement piece for increasing by the second duration at the first pending live streaming segment head and the tail Section, the first excellent live streaming segment of a length of 3rd duration when obtaining;
Second acquisition submodule, for according to the described first excellent live streaming segment, selection to meet the next of selection rule and waits to locate Reason live streaming segment;Each supplement segment for increasing by the second duration at next pending live streaming segment head and the tail, obtains duration For the excellent live streaming segment of the 3rd duration;
Using the excellent live streaming segment being currently generated always as the first excellent live streaming piece for choosing next pending live streaming segment Section, and by the live streaming segment of selection rule traversal each first duration, treated until selecting the second default quantity Processing live streaming segment;
When the described 3rd a length of first duration and second duration and;It is described supplement segment be in live streaming with it is each Live streaming segment without time interval between pending live streaming segment head and the tail;
The selection rule is:From the live streaming segment of each first duration, the first excellent live streaming segment is excluded, with And it is described first it is excellent live streaming segment before and after it is the 4th duration and described first it is excellent live streaming segment between without when Between after the live streaming segment that is spaced, the excellent highest live streaming piece of degree in the live streaming segment of remaining each first duration Section, to meet next pending live streaming segment of selection rule.
15. the device according to claim 13 or 14, which is characterized in that the excellent live streaming segment acquisition module, It is specifically used for:
At pending live streaming segment head and the tail during the supplement segment of the second duration of each increase, if the duration of the supplement segment is less than Second duration then casts out the pending live streaming segment.
16. device according to claim 10, which is characterized in that the live video summarization generation module is specifically used for:
By the excellent live streaming segment, according to the excellent degree descending sort of its corresponding live streaming segment, current live is synthesized Video frequency abstract;
The current live video frequency abstract is illustrated in the direct broadcasting room interface of corresponding main broadcaster.
17. device according to claim 16, which is characterized in that the live video summarization generation module is specifically used for:
According to the order for being presented the excellent live streaming segment from high to low with the excellent degree of its corresponding live streaming segment, play The current live video frequency abstract.
18. device according to claim 10, which is characterized in that described device further includes excellent live streaming fragment update mould Block is specifically used for:
Since new live streaming every time, every the period of the first duration, obtain newly be broadcast live corresponding first duration live streaming segment, The number of users of the live streaming segment and the message number of user's transmission are watched, default excellent degree calculation formula is utilized, calculates The excellent degree of segment is broadcast live in the new live streaming;
Compare each excellent live streaming in the live video summary of the excellent degree that segment is broadcast live in the new live streaming and current presentation The minimum excellent degree of the corresponding live streaming segment of segment, if the excellent degree of segment is broadcast live in the new live streaming more than described Minimum excellent degree then generates the excellent live streaming segment that segment is broadcast live in the new live streaming;
The corresponding excellent live streaming fragment update of the excellent degree of minimum described in live video summary by current presentation is described new The excellent live streaming segment of segment is broadcast live in live streaming.
19. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein, processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any method steps of the claims 1-9 Suddenly.
CN201711470643.2A 2017-12-29 2017-12-29 Live video abstract generation method and device and electronic equipment Active CN108062409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711470643.2A CN108062409B (en) 2017-12-29 2017-12-29 Live video abstract generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711470643.2A CN108062409B (en) 2017-12-29 2017-12-29 Live video abstract generation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108062409A true CN108062409A (en) 2018-05-22
CN108062409B CN108062409B (en) 2021-06-22

Family

ID=62140839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711470643.2A Active CN108062409B (en) 2017-12-29 2017-12-29 Live video abstract generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108062409B (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810641A (en) * 2018-06-04 2018-11-13 北京潘达互娱科技有限公司 A kind of video broadcasting method, device and electronic equipment
CN109068150A (en) * 2018-08-07 2018-12-21 深圳市创梦天地科技有限公司 A kind of excellent picture extracting method, terminal and the computer-readable medium of video
CN109120954A (en) * 2018-09-30 2019-01-01 武汉斗鱼网络科技有限公司 Video messaging method for pushing, device, computer equipment and storage medium
CN109685144A (en) * 2018-12-26 2019-04-26 上海众源网络有限公司 The method, apparatus and electronic equipment that a kind of pair of Video Model does to assess
CN109982109A (en) * 2019-04-03 2019-07-05 睿魔智能科技(深圳)有限公司 The generation method and device of short-sighted frequency, server and storage medium
CN110401873A (en) * 2019-06-17 2019-11-01 北京奇艺世纪科技有限公司 Video clipping method, device, electronic equipment and computer-readable medium
CN110797013A (en) * 2019-09-11 2020-02-14 腾讯科技(深圳)有限公司 Live broadcast entrance display method of voice live broadcast room, related equipment and storage medium
CN111182358A (en) * 2019-12-30 2020-05-19 腾讯科技(深圳)有限公司 Video processing method, video playing method, device, equipment and storage medium
CN111343391A (en) * 2018-12-18 2020-06-26 宏碁股份有限公司 Video capture method and electronic device using same
CN111400511A (en) * 2020-03-12 2020-07-10 北京奇艺世纪科技有限公司 Multimedia resource interception method and device
CN111447489A (en) * 2020-04-02 2020-07-24 北京字节跳动网络技术有限公司 Video processing method and device, readable medium and electronic equipment
CN111479168A (en) * 2020-04-14 2020-07-31 腾讯科技(深圳)有限公司 Method, device, server and medium for marking multimedia content hot spot
CN111698575A (en) * 2020-06-19 2020-09-22 广州华多网络科技有限公司 Live highlight video editing method, device, equipment and storage medium
CN111698554A (en) * 2020-06-19 2020-09-22 广州华多网络科技有限公司 Live video album generating method, device, equipment and storage medium
CN111836119A (en) * 2020-07-22 2020-10-27 广州华多网络科技有限公司 Live broadcast wonderful video tracking method, device, equipment and storage medium
CN111918146A (en) * 2020-07-28 2020-11-10 广州筷子信息科技有限公司 Video synthesis method and system
CN112637618A (en) * 2020-12-08 2021-04-09 广州博冠信息科技有限公司 Live playback video generation method and device, electronic equipment and computer medium
CN112822504A (en) * 2020-12-30 2021-05-18 北京达佳互联信息技术有限公司 Live broadcast room cover updating method and device, electronic equipment and storage medium
CN113542801A (en) * 2021-06-29 2021-10-22 北京百度网讯科技有限公司 Method, device, equipment, storage medium and program product for generating anchor identification
CN115004713A (en) * 2020-03-30 2022-09-02 多玩国株式会社 Video distribution device, video distribution method, and video distribution program
WO2023082569A1 (en) * 2021-11-11 2023-05-19 北京达佳互联信息技术有限公司 Video information extraction method and apparatus
CN116962796A (en) * 2023-09-19 2023-10-27 星河视效科技(北京)有限公司 Cross-screen interaction method, device, equipment and medium applied to live broadcast scene

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070266001A1 (en) * 2006-05-09 2007-11-15 Microsoft Corporation Presentation of duplicate and near duplicate search results
CN105787049A (en) * 2016-02-26 2016-07-20 浙江大学 Network video hotspot event finding method based on multi-source information fusion analysis
CN106231379A (en) * 2016-07-29 2016-12-14 广州酷狗计算机科技有限公司 A kind of methods, devices and systems playing live video
CN106792085A (en) * 2016-12-09 2017-05-31 广州华多网络科技有限公司 A kind of method and apparatus for generating video cover image
CN107426583A (en) * 2017-06-16 2017-12-01 广州视源电子科技股份有限公司 Video editing method, server and audio/video player system based on focus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070266001A1 (en) * 2006-05-09 2007-11-15 Microsoft Corporation Presentation of duplicate and near duplicate search results
CN105787049A (en) * 2016-02-26 2016-07-20 浙江大学 Network video hotspot event finding method based on multi-source information fusion analysis
CN106231379A (en) * 2016-07-29 2016-12-14 广州酷狗计算机科技有限公司 A kind of methods, devices and systems playing live video
CN106792085A (en) * 2016-12-09 2017-05-31 广州华多网络科技有限公司 A kind of method and apparatus for generating video cover image
CN107426583A (en) * 2017-06-16 2017-12-01 广州视源电子科技股份有限公司 Video editing method, server and audio/video player system based on focus

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810641A (en) * 2018-06-04 2018-11-13 北京潘达互娱科技有限公司 A kind of video broadcasting method, device and electronic equipment
CN109068150A (en) * 2018-08-07 2018-12-21 深圳市创梦天地科技有限公司 A kind of excellent picture extracting method, terminal and the computer-readable medium of video
CN109120954A (en) * 2018-09-30 2019-01-01 武汉斗鱼网络科技有限公司 Video messaging method for pushing, device, computer equipment and storage medium
CN111343391A (en) * 2018-12-18 2020-06-26 宏碁股份有限公司 Video capture method and electronic device using same
CN109685144A (en) * 2018-12-26 2019-04-26 上海众源网络有限公司 The method, apparatus and electronic equipment that a kind of pair of Video Model does to assess
CN109982109A (en) * 2019-04-03 2019-07-05 睿魔智能科技(深圳)有限公司 The generation method and device of short-sighted frequency, server and storage medium
CN109982109B (en) * 2019-04-03 2021-08-03 睿魔智能科技(深圳)有限公司 Short video generation method and device, server and storage medium
CN110401873A (en) * 2019-06-17 2019-11-01 北京奇艺世纪科技有限公司 Video clipping method, device, electronic equipment and computer-readable medium
CN110797013A (en) * 2019-09-11 2020-02-14 腾讯科技(深圳)有限公司 Live broadcast entrance display method of voice live broadcast room, related equipment and storage medium
CN111182358A (en) * 2019-12-30 2020-05-19 腾讯科技(深圳)有限公司 Video processing method, video playing method, device, equipment and storage medium
CN111182358B (en) * 2019-12-30 2021-09-28 腾讯科技(深圳)有限公司 Video processing method, video playing method, device, equipment and storage medium
CN111400511A (en) * 2020-03-12 2020-07-10 北京奇艺世纪科技有限公司 Multimedia resource interception method and device
CN115004713A (en) * 2020-03-30 2022-09-02 多玩国株式会社 Video distribution device, video distribution method, and video distribution program
CN111447489A (en) * 2020-04-02 2020-07-24 北京字节跳动网络技术有限公司 Video processing method and device, readable medium and electronic equipment
WO2021196903A1 (en) * 2020-04-02 2021-10-07 北京字节跳动网络技术有限公司 Video processing method and device, readable medium and electronic device
CN111479168B (en) * 2020-04-14 2021-12-28 腾讯科技(深圳)有限公司 Method, device, server and medium for marking multimedia content hot spot
CN111479168A (en) * 2020-04-14 2020-07-31 腾讯科技(深圳)有限公司 Method, device, server and medium for marking multimedia content hot spot
CN111698554A (en) * 2020-06-19 2020-09-22 广州华多网络科技有限公司 Live video album generating method, device, equipment and storage medium
CN111698575A (en) * 2020-06-19 2020-09-22 广州华多网络科技有限公司 Live highlight video editing method, device, equipment and storage medium
CN111698575B (en) * 2020-06-19 2022-06-07 广州方硅信息技术有限公司 Live highlight video editing method, device, equipment and storage medium
CN111698554B (en) * 2020-06-19 2022-06-07 广州方硅信息技术有限公司 Live video album generating method, device, equipment and storage medium
CN111836119A (en) * 2020-07-22 2020-10-27 广州华多网络科技有限公司 Live broadcast wonderful video tracking method, device, equipment and storage medium
CN111918146A (en) * 2020-07-28 2020-11-10 广州筷子信息科技有限公司 Video synthesis method and system
CN112637618A (en) * 2020-12-08 2021-04-09 广州博冠信息科技有限公司 Live playback video generation method and device, electronic equipment and computer medium
CN112637618B (en) * 2020-12-08 2023-09-08 广州博冠信息科技有限公司 Live broadcast playback video generation method and device, electronic equipment and computer medium
CN112822504A (en) * 2020-12-30 2021-05-18 北京达佳互联信息技术有限公司 Live broadcast room cover updating method and device, electronic equipment and storage medium
CN112822504B (en) * 2020-12-30 2023-07-25 北京达佳互联信息技术有限公司 Live broadcast room cover updating method and device, electronic equipment and storage medium
CN113542801A (en) * 2021-06-29 2021-10-22 北京百度网讯科技有限公司 Method, device, equipment, storage medium and program product for generating anchor identification
WO2023082569A1 (en) * 2021-11-11 2023-05-19 北京达佳互联信息技术有限公司 Video information extraction method and apparatus
CN116962796A (en) * 2023-09-19 2023-10-27 星河视效科技(北京)有限公司 Cross-screen interaction method, device, equipment and medium applied to live broadcast scene

Also Published As

Publication number Publication date
CN108062409B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN108062409A (en) Generation method, device and the electronic equipment of live video summary
US11095954B2 (en) Video-providing method and video-providing system
CN104980773B (en) streaming media processing method and device, terminal and server
CN109348251A (en) For the method, apparatus of video playing, computer-readable medium and electronic equipment
CN107277594A (en) A kind of video and audio and barrage synchronous method and device
CN109862100B (en) Method and device for pushing information
CN107770624A (en) It is a kind of it is live during multimedia file player method, device and storage medium
CN110381326A (en) Video system and processing method, equipment and computer-readable medium
EP3908005A1 (en) Distribution of network traffic for streaming content
CN114154012A (en) Video recommendation method and device, electronic equipment and storage medium
US9558718B2 (en) Streaming video data in the graphics domain
CN107623833B (en) Control method, device and system for video conference
CN108174242A (en) Live data multiplexing method, device, storage medium and equipment
CN108259998A (en) Player and control method for playing back, device, electronic equipment and play system
CN114025202A (en) Video processing method, device and storage medium
WO2015177799A2 (en) A system and method to generate a video on the fly
US11960703B2 (en) Template selection method, electronic device and non-transitory computer-readable storage medium
CN113824689B (en) Edge computing network, data transmission method, device, equipment and storage medium
CN112911390B (en) Video data playing method and terminal equipment
CN109842498A (en) A kind of client terminal configuring method, server, client and electronic equipment
CN106658153B (en) A kind of data processing method and equipment
CN104935647B (en) A kind of sharing files method and device
CN110401841B (en) Method, device, equipment and storage medium for analyzing messages in live broadcast room
CN104185042B (en) A kind of TV guide method of calibration and system
CN113079386A (en) Video online playing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant