CN106454391A - Method, apparatus and terminal of converting live to on-demand - Google Patents

Method, apparatus and terminal of converting live to on-demand Download PDF

Info

Publication number
CN106454391A
CN106454391A CN201610928577.8A CN201610928577A CN106454391A CN 106454391 A CN106454391 A CN 106454391A CN 201610928577 A CN201610928577 A CN 201610928577A CN 106454391 A CN106454391 A CN 106454391A
Authority
CN
China
Prior art keywords
program request
request file
file
segmentation
complete
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
CN201610928577.8A
Other languages
Chinese (zh)
Other versions
CN106454391B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610928577.8A priority Critical patent/CN106454391B/en
Publication of CN106454391A publication Critical patent/CN106454391A/en
Application granted granted Critical
Publication of CN106454391B publication Critical patent/CN106454391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440236Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text

Abstract

The present invention discloses a method, system and terminal of converting live to on-demand. On-demand files are generated through segmentation, and then post synthesis is performed, so that when a complete on-demand file is not generated, some on-demand videos converted from live videos are released firstly by releasing segmented on-demand files, so that the release speed of one-demand videos converted from live videos is improved. When the user watches the first released on-demand videos converted from live videos, the background keeps splicing the segmented video files, and completes release of the complete on-demand file. The user can take the lead in watching some on-demand videos, and can easily switch to watch the complete video, so that the user experience is improved.

Description

A kind of live turning point broadcasting method, device and terminal
Technical field
The present invention relates to video technique field, more particularly to a kind of live turning point broadcasting method, device and terminal.
Background technology
The broadcast mode of Internet video is divided into live and two kinds of broadcast modes of program request.Net cast refers to sending out with event Raw, development process, synchronous making and broadcast video, the making of video and broadcast are while occur;And video request program refer to according to The demand at family plays the video for having completed, the making of video and broadcast non-concurrent generation.
In order to meet the demand that user broadcasts for live turning point, generally will be live by using nonlinear video editor software Content switchs to order video and is reviewed for user.But, there are following problems in prior art:
The live turning point of video is broadcast time-consuming longer, by taking the live video of 90 minutes as an example, generally switchs to program request file needs Time-consuming 7-10 minute, then user at least to be possible to it can be seen that the live video pair afterwards at the 7 of live end minutes The order video answered, the delayed impact Consumer's Experience that order video is generated and issued.
Content of the invention
In order to solve above-mentioned technical problem, the present invention proposes a kind of live turning point broadcasting method, device and terminal.The present invention Specifically realized with following technical scheme:
A kind of live turning point broadcasting method, methods described includes:
Instruction is broadcast in response to live turning point, obtain N number of (N > 1) video segmentation time point;
Obtain live data streams in real time and record the live time;
If the live time reaches the video segmentation time point, according to corresponding live with the video segmentation time point Content generates segmentation program request file bag;The segmentation program request file bag includes to record one or more points of identical live content Section program request file;
Time sequencing according to the live content of segmentation program request file record splices the segmentation program request file, is recorded There is the complete program request file of complete live content.
Further, n-th video segmentation time point is live end time point, when the basis is with the video segmentation Between put corresponding live content generate segmentation program request file bag include:
If the live time reaches first video segmentation time point, started to first video segmentation according to live Live content between time point generates first segmentation program request file bag;
If the live time reaches the individual video segmentation time point of i-th (i > 1), according to the i-th -1 video segmentation time point extremely Live content between i-th video segmentation time point generates i-th segmentation program request file bag.
Further, in the segmentation program request file bag, the transcoding parameter of different segmentation program request files is different, accordingly , the definition of the live content of different segmentation program request file record is also different.
Further, the time sequencing of the live content according to segmentation program request file record splices the segmentation program request File, the complete program request file for obtaining recording complete live content includes:
Obtain recording the segmentation program request file bag of the live content of different time sections;
A segmentation program request file is selected as file to be spliced from segmentation program request file bag each described;Described to be spliced File is respectively provided with identical transcoding parameter;
Time sequencing according to the live content of file record to be spliced is merged to the file to be spliced, and it is right to obtain The record of transcoding parameter described in Ying Yu has the complete program request file of complete live content;
Judge whether also there is the segmentation program request file for having neither part nor lot in splicing;
If so, then repeat the above steps continue to generate next complete program request file.
Further, also include:
Fluidization treatment is carried out to the complete program request file;
Complete program request file of the storage after fluidization treatment;
Delete the segmentation program request file for generating the complete program request file.
Further, also include:
After the segmentation program request file in the segmentation program request file bag is all deleted, the segmentation program request file is deleted Bag.
Further, each described segmentation program request file all includes one or more file fragments;
If the segmentation program request file includes multiple file fragments, the file fragment is in the segmentation program request file Sequencing of the storage order with the live content that the file fragment is recorded in the live data streams consistent.
Further, the time sequencing of the live content according to segmentation program request file record splices the segmentation program request File, the complete program request file for obtaining recording complete live content includes:
Obtain recording the segmentation program request file bag of the live content of different time sections;
A segmentation program request file is selected as file to be spliced from segmentation program request file bag each described;Described to be spliced File is respectively provided with identical transcoding parameter;
According to file record to be spliced live content time sequencing to the file ordering to be spliced;
With the file to be spliced that makes number one as specified file, by follow-up file to be spliced successively in the way of adding The afterbody of the specified file is inserted, obtains the complete program request text for having complete live content corresponding to the record of the transcoding parameter Part;
Judge whether also there is the segmentation program request file for having neither part nor lot in splicing;
If so, then repeat the above steps continue to generate next complete program request file.
Further, also include:
Fluidization treatment is carried out to the complete program request file;
Complete program request file of the storage after fluidization treatment;
Delete the segmentation program request file for generating the complete program request file.
Further, also include:
After the segmentation program request file in the segmentation program request file bag is all deleted, the segmentation program request file is deleted Bag.
Further, in the case of not yet obtaining recording the complete program request file of complete live content, by first Segmentation program request file in segmentation program request file bag is issued to user;
After the complete program request file for obtaining recording complete live content, the segmentation program request file of issue before deletion, And issue the complete program request file again.
Further, after obtaining recording the complete program request file of complete live content, the complete program request is directly issued File.
A kind of live turning point broadcasting device, also includes:
Live turning point broadcasts instruction respond module, instructs and obtain N number of (N > 1) video segmentation for obtaining live turning point and broadcasting Time point;
Data flow acquisition module, for obtaining live data streams in real time;
Live time logging modle, for recording the live time;
Segmentation program request file bag generation module, for generating segmentation according to live content corresponding with video segmentation time point Program request file bag;The segmentation program request file bag includes the one or more segmentation program request files for recording identical live content;
Concatenation module, splices the segmentation program request for the time sequencing of the live content according to segmentation program request file record File, obtains recording the complete program request file of complete live content.
Further, the concatenation module includes:
First segmentation program request file bag obtains unit, for obtaining the segmentation program request of the live content for recording different time sections File bag;
Unit chosen by first file to be spliced, for selecting a segmentation program request text from segmentation program request file bag each described Part is used as file to be spliced;The file to be spliced is respectively provided with identical transcoding parameter;
First complete program request file generating unit, for the time sequencing pair of the live content according to file record to be spliced The file to be spliced is merged, and obtains the complete program request text for having complete live content corresponding to the record of the transcoding parameter Part;
First splicing control unit, has neither part nor lot in the segmentation program request file of splicing and according to judgement for judging whether also to exist Output control generates next complete program request file.
Further, the concatenation module also includes:
First class processing unit, for carrying out fluidization treatment to the complete program request file;
First memory element, for complete program request file of the storage after fluidization treatment;
First deletes unit, for deleting the segmentation program request file for generating the complete program request file.
Further, the concatenation module includes:
Second segmentation program request file bag obtains unit, for obtaining the segmentation program request of the live content for recording different time sections File bag;
Unit chosen by second file to be spliced, for selecting a segmentation program request text from segmentation program request file bag each described Part is used as file to be spliced;The file to be spliced is respectively provided with identical transcoding parameter;
Sequencing unit, arranges to the file to be spliced for the time sequencing of the live content according to file record to be spliced Sequence;
Second complete program request file generating unit, for the file to be spliced that makes number one as specified file, will after Continuous file to be spliced inserts the afterbody of the specified file successively in the way of adding, and obtains corresponding to the transcoding parameter Record has the complete program request file of complete live content;
Second splicing control unit, has neither part nor lot in the segmentation program request file of splicing and according to judgement for judging whether also to exist Output control generates next complete program request file.
Further, the concatenation module also includes:
Second fluidisation processing unit, for carrying out fluidization treatment to the complete program request file;
Second memory element, for complete program request file of the storage after fluidization treatment;
Second deletes unit, for deleting the segmentation program request file for generating the complete program request file.
Further, also include:
First release module, in the case of not yet obtaining recording the complete program request file of complete live content, Segmentation program request file in first segmentation program request file bag is issued to user;
Second release module, for, after the complete program request file for recording complete live content is obtained, sending out before deletion The segmentation program request file of cloth, and issue again the complete program request file.
Further, also include:
3rd release module, for obtaining recording after the complete program request file of complete live content, directly issues described Complete program request file.
One kind is live to turn terminal, and the terminal includes above-mentioned live turning point broadcasting device.
The invention provides a kind of live turning point broadcasting method, system and terminal, have the advantages that:
(1) program request file is generated by segmentation, and carries out the mode of follow-up synthesis again so that do not give birth in complete program request file Cheng Shi, the live turning point of the issue part that can be taken the lead in the form of issuing segmentation program request file broadcasts result, straight so as to lift video Broadcast the issue speed that turning point broadcasts result;
(2) while user watches part live content, backstage proceeds the splicing of segmented video files, and completes The issue of complete complete program request file;Thus, user can not only take the lead in watching part order video but also switching viewing easily Complete video, so as to be obviously improved Consumer's Experience.
(3) if mistake occurs in complete program request file generated process, loss can be made up by issuing segmentation program request file, carries High fault tolerance.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for technology description is had to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is live turning point broadcasting method flow chart provided in an embodiment of the present invention;
Fig. 2 is the flow chart of segmentation program request file joining method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of segmentation program request file joining method provided in an embodiment of the present invention;
Fig. 4 is the block diagram of live turning point broadcasting device provided in an embodiment of the present invention;
Fig. 5 is the block diagram of concatenation module provided in an embodiment of the present invention;
Fig. 6 is the block diagram of another kind concatenation module provided in an embodiment of the present invention;
Fig. 7 is the structured flowchart of terminal provided in an embodiment of the present invention.
Fig. 8 is the structured flowchart of server provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made all its His embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of live turning point broadcasting method, methods described as shown in figure 1, including:
S101. instruction being broadcast in response to live turning point, obtains N number of (N > 1) video segmentation time point.
Specifically, in the present embodiment, n-th video segmentation time point is live end time point, the video segmentation time Point can be obtained according to default rule, it is also possible to obtained by way of triggering, in addition it is also possible to be carried out according to practical situation Targetedly arrange.
(1) obtained according to default rule
Video segmentation time point can be obtained according to default rule and live broadcast time.If the default rule Be according to live broadcast time with 5:1 mode arranges the video segmentation time, then live for 60 minutes, the video divides Section point is the 50th minute and the 60th minute.
(2) obtained by way of triggering
Can also the trigger that sends of other processes of real-time reception or equipment, with receive the trigger when Carve as video segmentation time point, video end signal also serves as trigger, and therefore, video end time point is also video segmentation Time point.
(3) targetedly arranged
Can certainly targetedly be arranged according to practical situation.If intentionally getting more complete program request file, Then by taking 90 minutes live as an example, video segmentation time point can be arranged on the 85th minute and the 90th minute.
S102. live data streams are obtained in real time and records the live time.
If S103. the live time reaches the video segmentation time point, according to corresponding with the video segmentation time point Live content generate segmentation program request file bag;The segmentation program request file bag include record identical live content one or Multiple segmentation program request files.
Before S104, non-linear editing behaviour can also be carried out according to real needs to the segmentation program request file in S103 Make, the non-linear editing operation is included but is not limited to:
(1) shear
According to practical situation, the partial video content in segmentation program request file is sheared, be generally applicable to shearing Fall live during the advertisement that inserts or the partial video content for no reviewing value, lift Consumer's Experience.
(2) insert
According to practical situation to inserting one or more snippets other content in the video content of record in segmentation program request file, lead to Often the content of insertion is video or audio frequency, can be used for carrying out advertisement promotion or plays suggesting effect to user.
(3) add picture
According to inserting one or more picture, Ke Yiyong in the video content that practical situation is recorded in segmentation program request file In carrying out advertisement promotion or play suggesting effect to user;
(4) obscure
Fuzzy processing is carried out according to some pixels in video content of the practical situation to segmentation program request file record, can For avoiding dispute over copyright or protection privacy.
S104. splice the segmentation program request file according to the time sequencing of the live content of segmentation program request file record, obtain There is the complete program request file of complete live content to record.
Present embodiments provide a kind of live turning point broadcasting method, can not only segmentation live content is converted into program request, also Multiple non-linear editings can be carried out to the on-demand content after conversion.
The embodiment of the present invention additionally provides another kind of live turning point broadcasting method, including:
S201. instruction being broadcast in response to live turning point, obtains N number of (N > 1) video segmentation time point.
Specifically, n-th video segmentation time point is live end time point.
S202. live data streams are obtained in real time and records the live time.
If S203. the live time reaches the video segmentation time point, according to corresponding with the video segmentation time point Live content generate segmentation program request file bag;The segmentation program request file bag include record identical live content one or Multiple segmentation program request files.
S204. splice the segmentation program request file according to the time sequencing of the live content of segmentation program request file record, obtain There is the complete program request file of complete live content to record.
Specifically, S203 includes:
If the live time reaches first video segmentation time point, started to first video segmentation according to live Live content between time point generates first segmentation program request file bag.
If the live time reaches the individual video segmentation time point of i-th (i > 1), according to the i-th -1 video segmentation time point extremely Live content between i-th video segmentation time point generates i-th segmentation program request file bag.
In the present embodiment, so that broadcast time is 90 minutes live as an example, if video segmentation time point be Clock and 90 minutes, then:
When live proceed to the 30th minute when, then generate first according to 0 point of live content between 0 second 0 second to the 30th point Individual segmentation program request file bag;
When live proceed to the 60th minute when, then generate second according to 30 points of live content between 0 second 0 second to the 60th point Individual segmentation program request file bag;
At the end of live, then the 3rd segmentation program request is generated according to 60 points of live content between 0 second 0 second to the 90th point File bag.
Specifically, in the segmentation program request file bag, the transcoding parameter of different segmentation program request files is different, accordingly, The definition of the live content of different segmentation program request file records is also different such that it is able to for generating the complete of different definitions Integral point broadcasts file to meet the different demands of user.
In the present embodiment, as a example by the program request file of smoothness, SD, high definition and super clear four kinds of definitions to be provided, each point All comprising four segmentation program request files in section program request file bag, four segmentation program requests file all records identical content, but It is to be obtained by different transcoding parameter;Accordingly, the segmentation program request file in step S204 to identical transcoding parameter is spelled Connect, ultimately generate four complete program request files, described four complete program request files corresponding smoothness, SD, high definition and super clear respectively Definition in four.
Each segmentation program request file is constituted by file header and file body, and file header is used for log file information, file Body is used for recording live content.
Specifically, file header record has transcoding parameter, the time started of video, end time and duration, the video Refer to the live content for recording in file body.In step S204, can be according to the information in file header to segmentation program request file Spliced, obtain recording the complete program request file of complete live content.
The embodiment of the present invention additionally provides a kind of live turning point broadcasting method, including:
S301. instruction being broadcast in response to live turning point, obtains N number of (N > 1) video segmentation time point.
Specifically, n-th video segmentation time point is live end time point.
S302. live data streams are obtained in real time and records the live time.
If S303. the live time reaches the video segmentation time point, according to corresponding with the video segmentation time point Live content generate segmentation program request file bag;The segmentation program request file bag include record identical live content one or Multiple segmentation program request files.
S304. splice the segmentation program request file according to the time sequencing of the live content of segmentation program request file record, obtain There is the complete program request file of complete live content to record.
Specifically, S303 includes:
If the live time reaches first video segmentation time point, started to first video segmentation according to live Live content between time point generates first segmentation program request file bag.
If the live time reaches the individual video segmentation time point of i-th (i > 1), according to the i-th -1 video segmentation time point extremely Live content between i-th video segmentation time point generates i-th segmentation program request file bag.
In the present embodiment, so that broadcast time is 90 minutes live as an example, if video segmentation time point is 85 minutes and the 90 minutes, then:
When live proceed to the 85th minute when, then generate first according to 0 point of live content between 0 second 0 second to the 85th point Individual segmentation program request file bag, is named as vid1;
At the end of live, then second segmentation program request is generated according to 85 points of live content between 0 second 0 second to the 90th point File bag, is named as vid2.
In the present embodiment, as a example by the program request file of smoothness, SD, high definition and super clear four kinds of definitions to be provided, each point All comprising four segmentation program request files in section program request file bag, four segmentation program requests file all records identical content, but It is to be obtained by different transcoding parameter;Accordingly, the segmentation program request file in step S304 to identical transcoding parameter is spelled Connect, ultimately generate four complete program request files, described four complete program request files corresponding smoothness, SD, high definition and super clear respectively Definition in four.
Specifically, S304 as shown in Fig. 2 including:
S3041. obtain recording the segmentation program request file bag of the live content of different time sections.
In the present embodiment, can obtain by way of different recording the segmentation program request text of the live content of different time sections Part bag, such as copies or downloads.First segmentation program request file bag vid1 and second segmentation program request is obtained in the present embodiment File bag vid2.Each segmentation program request file Bao Jun has four files.
S3042. a segmentation program request file is selected as file to be spliced from segmentation program request file bag each described;Described File to be spliced is respectively provided with identical transcoding parameter.
By taking smoothness as an example, it is that smooth segmentation program request file is made to select the corresponding definition of vid1 and vid2 transit code parameter For file to be spliced.
S3043. according to the time sequencing of the live content of file record to be spliced, the file to be spliced is merged, Obtain the complete program request file for having complete live content corresponding to the record of the transcoding parameter.
By taking smoothness as an example, by the file to be spliced for obtaining in vid1 and the file to be spliced for obtaining in vid2 using compiling The instrument of collecting is merged.
Further, also fluidization treatment is carried out to the complete program request file for obtaining after merging, and stores through fluidization treatment Complete program request file afterwards;
Additionally, after the complete program request file after fluidization treatment is obtained, deleting for generating the complete program request text Segmentation program request file in the segmentation program request file bag of part.
In the present embodiment, after generating the complete program request file after fluidization treatment that definition is smoothness, delete clear Clear degree is two smooth segmentation program request files, equal only remaining three segmentation program request files in vid1 and in vid2.
S3044. judge whether also there is the segmentation program request file for having neither part nor lot in splicing.
S3045. if so, then repeat the above steps continue to generate next complete program request file.
Need in the present embodiment to repeat by three times the step of S3041-S3043 with generate definition as SD, high definition and super Clear complete program request file;Accordingly, definition is SD, high definition and super clear segmentation program request file be deleted.Only when treating Space-time is in vid1 and vid2, deletes segmentation program request file bag vid1 and vid2, S304 terminate.
Specifically, can be taken the lead in the present embodiment in step S303 issuing segmentation program request file, after vid1 is generated, i.e., Vid1 can be issued to user.
Although record is not complete live content in vid1, most live content is described, has been Meet the needs for reviewing live content as early as possible of user, vid1 can be issued in advance.After vid1 is issued, user may be viewed by note Record has the order video of live content, and during user's viewing, S304 carries out the spelling of segmentation program request file with synchronizing Connect.
Segmentation program request file in the first segmentation program request file bag that issues before deletion, and issue again described complete Program request file.The method for realizing in the present embodiment issuing again is:
After segmentation program request file bag vid1 and vid2 is deleted, definition is respectively smoothness, SD, high definition and super clear four Individual complete program request file has been generated and has been finished.The file bag of entitled vid1 is regenerated, the file bag includes aforementioned four Complete program request file, and vid1 is issued to user.
The file bag that is issued in the present embodiment twice is vid1, is the reason for title is consistent, if user is currently in use Take the lead in the viewing video of the vid1 file bag comprising segmentation program request file that issues, and is issuing the text of the vid1 comprising complete program request file After part bag, user need to only carry out refresh operation, and server can be user using the vid1 file bag comprising complete program request file Complete Video service is provided, does not affect the broadcasting of user to experience, being issued for foreground user twice for vid1 is unaware.
Live turning point broadcasting method, and the dissemination method there is provided program request file is present embodiments provided, the present embodiment is caused User can not only take the lead in watching part order video but also switching viewing complete video easily, so as to be obviously improved Consumer's Experience.
The embodiment of the present invention additionally provides a kind of live turning point broadcasting method, including:
S401. instruction being broadcast in response to live turning point, obtains N number of (N > 1) video segmentation time point.
Specifically, n-th video segmentation time point is live end time point.
S402. live data streams are obtained in real time and records the live time.
If S403. the live time reaches the video segmentation time point, according to corresponding with the video segmentation time point Live content generate segmentation program request file bag;The segmentation program request file bag include record identical live content one or Multiple segmentation program request files.
In the present embodiment, so that broadcast time is 90 minutes live as an example, if video segmentation time point be the 80th minute and 90th minute, then:
When live proceed to the 80th minute when, then generate first according to 0 point of live content between 0 second 0 second to the 80th point Individual segmentation program request file bag, is named as vid1.
At the end of live, then second segmentation program request is generated according to 80 points of live content between 0 second 0 second to the 90th point File bag, is named as vid2.With video duration positive correlation the time required to being generated due to segmentation program request file bag, the therefore life of vid2 Become to take far smaller than vid1.
In the present embodiment, as a example by the program request file of smoothness, SD, high definition and super clear four kinds of definitions to be provided, each point All comprising four segmentation program request files in section program request file bag, four segmentation program requests file all records identical content, but It is to be obtained by different transcoding parameter.
Each described segmentation program request file all includes one or more file fragments;If the segmentation program request file includes Multiple file fragments, then storage order of the file fragment in the segmentation program request file and the file fragment are recorded Sequencing of the live content in the live data streams is consistent.
Each segmentation program request text in the present embodiment, if video content of each file fragment comprising 5 minutes, in vid1 Part is all comprising 16 file fragments, and each the segmentation program request file in vid2 is all comprising 2 file fragments.
Further, if the video duration in segmentation program request file can not be divided exactly by the video duration of file fragment, remaining The video length for going out is comprised in last file fragment of composition segmentation program request file, it is assumed that in segmentation program request file A length of 92 minutes during video, then the segmentation program request file is by the file fragment of 15 video contents comprising 5 minutes with finally The file fragment of one video content comprising 7 minutes is constituted.
S404. splice the segmentation program request file according to the time sequencing of the live content of segmentation program request file record, obtain There is the complete program request file of complete live content to record.
In the present embodiment, the segmentation program request file in step S404 to identical transcoding parameter splices, and ultimately generates four Individual complete program request file, described four complete program request files corresponding smoothness, SD, definition in high definition and super clear four respectively.
Specifically, S404 as shown in figure 3, including:
S4041. obtain recording the segmentation program request file bag of the live content of different time sections.
First segmentation program request file bag vid1 and second segmentation program request file bag vid2 is obtained in the present embodiment.Each Segmentation program request file Bao Jun has four files.
S4042. a segmentation program request file is selected as file to be spliced from segmentation program request file bag each described;Described File to be spliced is respectively provided with identical transcoding parameter.
By taking smoothness as an example, it is that smooth segmentation program request file is made to select the corresponding definition of vid1 and vid2 transit code parameter For file to be spliced.
S4043. according to file record to be spliced live content time sequencing to the file ordering to be spliced.
File to be spliced in the present embodiment in vid1 is front, and the file to be spliced in vid2 is rear.
S4044. with the file to be spliced that makes number one as specified file, by follow-up file to be spliced successively to add Mode insert the afterbody of the specified file, obtain having the complete of complete live content corresponding to the record of the transcoding parameter Program request file.
By taking smoothness as an example, the file to be spliced for being obtained with vid1 as specified file, the file to be spliced that obtains in vid2 The afterbody of the specified file is inserted in the way of adding, and obtains the complete program request file comprising 18 file fragments.
Further, the complete program request file also to obtaining carries out fluidization treatment, and stores complete after fluidization treatment Integral point broadcasts file;
Additionally, after the complete program request file after fluidization treatment is obtained, deleting for generating the complete program request text Segmentation program request file in the segmentation program request file bag of part.
In the present embodiment, after generating the complete program request file after fluidization treatment that definition is smoothness, delete clear Clear degree is two smooth segmentation program request files, equal only remaining three segmentation program request files in vid1 and in vid2.
S4045. judge whether also there is the segmentation program request file for having neither part nor lot in splicing.
S4046. if so, then repeat the above steps continue to generate next complete program request file.
Need in the present embodiment to repeat by three times the step of S4041-S4044 with generate definition as SD, high definition and super Clear complete program request file;Accordingly, definition is SD, high definition and super clear segmentation program request file be deleted.Only when treating Space-time is in vid1 and vid2, deletes segmentation program request file bag vid1 and vid2, S404 terminate.
Specifically, can be taken the lead in the present embodiment in step S403 issuing segmentation program request file, after vid1 is generated, i.e., Vid1 can be issued to user.
Although record is not complete live content in vid1, most live content is described, has been Meet the needs for reviewing live content as early as possible of user, vid1 can be issued in advance.After vid1 is issued, user may be viewed by note Record has the order video of live content, during user's viewing, the splicing of the segmentation program request file that S404 is synchronized.
Segmentation program request file in the first segmentation program request file bag that issues before deletion, and issue again described complete Program request file.The method for realizing in the present embodiment issuing again is:
After segmentation program request file bag vid1 and vid2 is deleted, definition is respectively smoothness, SD, high definition and super clear four Individual complete program request file has been generated and has been finished.The file bag of entitled vid1 is regenerated, the file bag includes aforementioned four Complete program request file, and vid1 is issued to user.
It is of course also possible to use other program request file publishing methods, such as obtaining recording complete live content After complete program request file, the complete program request file is directly issued.
Another kind of live turning point broadcasting method is present embodiments provided, the present embodiment causes user both take the lead in viewing part Order video can switch viewing complete video again easily, so as to be obviously improved Consumer's Experience, if additionally, complete program request file generated There is mistake in process, can also make up loss by issuing segmentation program request file, improve fault-tolerance.
The embodiment of the present invention provides a kind of live turning point broadcasting device, as shown in figure 4, including:
Live turning point broadcasts instruction respond module 501, instructs and obtain N number of (N > 1) video and divide for obtaining live turning point and broadcasting Section time point;
Data flow acquisition module 502, for obtaining live data streams in real time;
Live time logging modle 503, for recording the live time;
Segmentation program request file bag generation module 504, for generating according to live content corresponding with video segmentation time point Segmentation program request file bag;The segmentation program request file bag includes the one or more segmentation program requests text for recording identical live content Part;
Concatenation module 505, splices the segmentation for the time sequencing of the live content according to segmentation program request file record Program request file, obtains recording the complete program request file of complete live content.
The concatenation module 505 as shown in figure 5, including:
First segmentation program request file bag obtains unit 5051, for obtaining the segmentation of the live content for recording different time sections Program request file bag.
Unit 5052 chosen by first file to be spliced, for selecting a waypoint from segmentation program request file bag each described File is broadcast as file to be spliced;The file to be spliced is respectively provided with identical transcoding parameter.
First complete program request file generating unit 5053, suitable for the time of the live content according to file record to be spliced Described in ordered pair, file to be spliced is merged, and obtains the complete point for having complete live content corresponding to the record of the transcoding parameter Broadcast file;
First class processing unit 5054, for carrying out fluidization treatment to the complete program request file;
First memory element 5055, for complete program request file of the storage after fluidization treatment;
First deletes unit 5056, for deleting the segmentation program request file for generating the complete program request file.
After the first complete program request file generating unit 5053 generates complete program request file, first class processing unit 5054 Fluidization treatment is carried out to the complete program request file, and the complete program request file after fluidization treatment is transferred to the first memory element 5056 storages.After the 5056 pairs of complete program request file storages of the first memory element, the first deletion unit 5056 is deleted for giving birth to Become the segmentation program request file of the complete program request file.
First splicing control unit 5057, for judging whether also to there is the segmentation program request file the basis that have neither part nor lot in splicing Judged result control generates next complete program request file.Still need during generating next complete program request file and use First segmentation program request file bag obtains unit 5051, the first file to be spliced and chooses unit 5052, the first complete program request file life Unit 5053, first class processing unit 5054, the first memory element 5055 and first is become to delete unit 5056.
Further, in the present embodiment, described device also includes:
First release module 506, for not yet obtaining the situation of the complete program request file for recording complete live content Under, the segmentation program request file in first segmentation program request file bag is issued to user;
Second release module 507, for after the complete program request file for recording complete live content is obtained, before deletion Segmentation program request file in the first segmentation program request file bag that issues, and issue again the complete program request file.
Further, in other embodiments, can also include:
3rd release module 508, for obtaining recording after the complete program request file of complete live content, directly issues institute State complete program request file.
The embodiment of the present invention provides a kind of live turning point broadcasting device, including:
Live turning point broadcasts instruction respond module 601, instructs and obtain N number of (N > 1) video and divide for obtaining live turning point and broadcasting Section time point;
Data flow acquisition module 602, for obtaining live data streams in real time;
Live time logging modle 603, for recording the live time;
Segmentation program request file bag generation module 604, for generating according to live content corresponding with video segmentation time point Segmentation program request file bag;The segmentation program request file bag includes the one or more segmentation program requests text for recording identical live content Part;
Concatenation module 605, splices the segmentation for the time sequencing of the live content according to segmentation program request file record Program request file, obtains recording the complete program request file of complete live content.
The concatenation module 605 as shown in fig. 6, including:
Second segmentation program request file bag obtains unit 6051, for obtaining the segmentation of the live content for recording different time sections Program request file bag.
Unit 6052 chosen by second file to be spliced, for selecting a waypoint from segmentation program request file bag each described File is broadcast as file to be spliced;The file to be spliced is respectively provided with identical transcoding parameter.
Sequencing unit 6053, for the live content according to file record to be spliced time sequencing to the text to be spliced Part sorts.
Second complete program request file generating unit 6054, for the file to be spliced that makes number one as specified file, Follow-up file to be spliced is inserted in the way of adding the afterbody of the specified file successively, obtains joining corresponding to the transcoding The record of number has the complete program request file of complete live content;
Second fluidisation processing unit 6055, for carrying out fluidization treatment to the complete program request file;
Second memory element 6056, for complete program request file of the storage after fluidization treatment;
Second deletes unit 6057, for deleting the segmentation program request file for generating the complete program request file.
After the second complete program request file generating unit 6054 generates complete program request file, the second fluidisation processing unit 6055 Fluidization treatment is carried out to the complete program request file, and the complete program request file after fluidization treatment is transferred to the second memory element 6056 storages.After the 6056 pairs of complete program request file storages of the second memory element, the second deletion unit 6057 is deleted for giving birth to Become the segmentation program request file in the segmentation program request file bag of the complete program request file.
Second splicing control unit 6058, for judging whether also to there is the segmentation program request file the basis that have neither part nor lot in splicing Judged result control generates next complete program request file.Still need during generating next complete program request file and use Second segmentation program request file bag obtains unit 6051, the second file to be spliced, and to choose unit 6052, sequencing unit 6053, second complete Integral point is broadcast file generating unit 6054, second and fluidizes processing unit 6055, the second memory element 6056 and the second deletion unit 6057.
Further, in the present embodiment, described device also includes:
First release module 606, for not yet obtaining the situation of the complete program request file for recording complete live content Under, the segmentation program request file in first segmentation program request file bag is issued to user;
Second release module 607, for after the complete program request file for recording complete live content is obtained, before deletion Segmentation program request file in the first segmentation program request file bag that issues, and issue again the complete program request file.
Further, in other embodiments, can also include:
3rd release module 608, for obtaining recording after the complete program request file of complete live content, directly issues institute State complete program request file.
Assembly of the invention embodiment be based on embodiment of the method in the same manner as inventive concept, there is provided a kind of live turning point The side's of broadcasting device, the present embodiment is implemented for the live turning point broadcasting method that provide in above-described embodiment.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can It is used for realizing the program code performed by live turning point broadcasting method for preserving above-described embodiment.
Alternatively, in the present embodiment, above-mentioned storage medium is may be located in multiple network equipments of computer network At least one network equipment.
Alternatively, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
The first step, broadcasts instruction in response to live turning point, obtains N number of (N > 1) video segmentation time point;
Second step, obtains live data streams in real time and records the live time;
3rd step, if arrival of the live time video segmentation time point, basis and the video segmentation time point pair The live content that answers generates segmentation program request file bag;The segmentation program request file bag includes to record of identical live content Or multiple segmentation program request files.
4th step, splices the segmentation program request file according to the time sequencing of the live content of segmentation program request file record, Obtain recording the complete program request file of complete live content.
Alternatively, storage medium is also configured to store the program code for executing following steps:
N-th video segmentation time point is live end time point, and the basis is corresponding with the video segmentation time point Live content generate segmentation program request file bag include:
If the live time reaches first video segmentation time point, started to first video segmentation according to live Live content between time point generates first segmentation program request file bag;
If the live time reaches the individual video segmentation time point of i-th (i > 1), according to the i-th -1 video segmentation time point extremely Live content between i-th video segmentation time point generates i-th segmentation program request file bag.
Alternatively, storage medium is also configured to store the program code for executing following steps:
In the segmentation program request file bag, the transcoding parameter of different segmentation program request files is different, and accordingly, different divides The definition of the live content of section program request file record is also different.
Alternatively, storage medium is also configured to store the program code for executing following steps:
The time sequencing of the live content according to segmentation program request file record splices the segmentation program request file, obtains The complete program request file that record has complete live content includes:
The first step, obtains recording the segmentation program request file bag of the live content of different time sections;
Second step, selects a segmentation program request file as file to be spliced from segmentation program request file bag each described;Institute State file to be spliced and be respectively provided with identical transcoding parameter;
3rd step, closes to the file to be spliced according to the time sequencing of the live content of file record to be spliced And, obtain the complete program request file for having complete live content corresponding to the record of the transcoding parameter;
4th step, judges whether also there is the segmentation program request file for having neither part nor lot in splicing;
5th step, if so, then repeat the above steps continue to generate next complete program request file.
Alternatively, storage medium is also configured to store the program code for executing following steps:
The first step, carries out fluidization treatment to the complete program request file part;
Second step, stores the complete program request file after fluidization treatment;
3rd step, deletes the segmentation program request file for generating the complete program request file.
Alternatively, storage medium is also configured to store the program code for executing following steps:
After the segmentation program request file in the segmentation program request file bag is all deleted, the segmentation program request file is deleted Bag.
Alternatively, storage medium is also configured to store the program code for executing following steps:
Each described segmentation program request file all includes one or more file fragments;
If the segmentation program request file includes multiple file fragments, the file fragment is in the segmentation program request file Sequencing of the storage order with the live content that the file fragment is recorded in the live data streams consistent.
Alternatively, storage medium is also configured to store the program code for executing following steps:
The time sequencing of the live content according to segmentation program request file record splices the segmentation program request file, obtains The complete program request file that record has complete live content includes:
The first step, obtains recording the segmentation program request file bag of the live content of different time sections;
Second step, selects a segmentation program request file as file to be spliced from segmentation program request file bag each described;Institute State file to be spliced and be respectively provided with identical transcoding parameter;
3rd step, according to file record to be spliced live content time sequencing to the file ordering to be spliced;
4th step, with the file to be spliced that makes number one as specified file, by follow-up file to be spliced successively to chase after Plus mode insert the afterbody of the specified file, obtain having the complete of complete live content corresponding to the record of the transcoding parameter Integral point broadcasts file;
5th step, judges whether also there is the segmentation program request file for having neither part nor lot in splicing;
6th step, if so, then repeat the above steps continue to generate next complete program request file.
Alternatively, storage medium is also configured to store the program code for executing following steps:
The first step, carries out fluidization treatment to the complete program request file;
Second step, stores the complete program request file after fluidization treatment;
3rd step, deletes the segmentation program request file for generating the complete program request file.
Alternatively, storage medium is also configured to store the program code for executing following steps:
After the segmentation program request file in the segmentation program request file bag is all deleted, the segmentation program request file is deleted Bag.
Alternatively, storage medium is also configured to store the program code for executing following steps:
In the case of not yet obtaining recording the complete program request file of complete live content, by first segmentation program request text Segmentation program request file in part bag is issued to user;
After the complete program request file for obtaining recording complete live content, first segmentation program request of issue before deletion Segmentation program request file in file bag, and issue again the complete program request file.
Alternatively, storage medium is also configured to store the program code for executing following steps:
After obtaining recording the complete program request file of complete live content, the complete program request file is directly issued.
Alternatively, in the present embodiment, above-mentioned storage medium can be included but is not limited to:USB flash disk, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. is various can be with the medium of store program codes.
Referring to Fig. 7, a kind of terminal is embodiments provided, the terminal can be used for implementing to provide in above-described embodiment For realizing the method that live turning point is broadcast.Specifically:
The terminal can include RF (Radio Frequency, radio frequency) circuit 110, include one or more The memorizer 120 of computer-readable recording medium, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the process of or more than one processing core The part such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure for illustrating in Fig. 7 do not constitute right The restriction of terminal, can be included than illustrating more or less of part, or some parts of combination, or different part cloth Put.Wherein:
RF circuit 110 can be used to receiving and sending messages or communication process in, the reception of signal and transmission, especially, by base station After downlink information is received, transfer to one or more than one processor 180 is processed;In addition, will be related to up data is activation to Base station.Generally, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more agitators, use Family identity module (SIM) card, transceiver, bonder, LNA (LowNoiseAmplifier, low-noise amplifier), duplexer Deng.Additionally, RF circuit 110 can also be communicated with network and other equipment by radio communication.The radio communication can be used Arbitrary communication standard or agreement, including but not limited to GSM (Global System ofMobile communication, the whole world Mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division MultipleAccess, CDMA), WCDMA (Wideband Code Division MultipleAccess, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memorizer 120 can be used to store software program and module, and processor 180 is stored in memorizer 120 by operation Software program and module, so as to execute various function application and data processing.Memorizer 120 mainly can include to store journey Sequence area and storage data field, wherein, storing program area can storage program area, application program needed for function etc.;Data storage Area can store and use created data etc. according to the terminal.Additionally, memorizer 120 can be deposited including high random access Reservoir, can also include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatibility Solid-state memory.Correspondingly, memorizer 120 can also include Memory Controller, to provide processor 180 and input block The access of 130 pairs of memorizeies 120.
Input block 130 can be used for the numeral of receives input or character information, and produce and user setup and function The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect use Family thereon or neighbouring touch operation (such as user is using any suitable object such as finger, stylus or adnexa in touch-sensitive table Operation on face 131 or near the Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.Optional , Touch sensitive surface 131 may include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch Touch information being received in detection means, and is converted into contact coordinate, then gives processor 180, and can receiving processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using the polytype such as resistance-type, condenser type, infrared ray and surface acoustic wave Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used to showing by the information of user input or be supplied to the information of user and the terminal Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any. Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to be configuring display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 is detected thereon or neighbouring is touched After touching operation, processor 180 is sent to determine the type of touch event, with preprocessor 180 according to the type of touch event Corresponding visual output is provided on display floater 141.Although in Figure 5, Touch sensitive surface 131 is conduct with display floater 141 Two independent parts realizing input and input function, but in some embodiments it is possible to by Touch sensitive surface 131 with show Panel 141 is integrated and realization is input into and output function.
The terminal may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to environment The light and shade of light is adjusting the brightness of display floater 141, and proximity transducer can cut out and show when the terminal is moved in one's ear Panel 141 and/or backlight.Used as one kind of motion sensor, Gravity accelerometer can be detected in all directions (generally Three axles) acceleration size, can detect that size and the direction of gravity when static, can be used for identification terminal attitude application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Extremely The other sensors such as the gyroscope that can also configure in the terminal, barometer, drimeter, thermometer, infrared ray sensor, here Repeat no more.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide the audio interface between user and the terminal.Sound The signal of telecommunication after the voice data for receiving conversion can be transferred to speaker 161, is converted to by speaker 161 by frequency circuit 160 Acoustical signal is exported;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 162, is received by voicefrequency circuit 160 After be converted to voice data, then after voice data output processor 180 is processed, such as another to be sent to through RF circuit 110 Terminal, or voice data is exported to memorizer 120 to process further.Voicefrequency circuit 160 is also possible that earplug is inserted Hole, to provide the communication of peripheral hardware earphone and the terminal.
WiFi belongs to short range wireless transmission technology, and the terminal can help user's transmitting-receiving electricity by WiFi module 170 Sub- mail, browse webpage and streaming video etc. is accessed, it has provided the user wireless broadband internet and has accessed.Although Fig. 7 shows Go out WiFi module 170, but it is understood that, which is simultaneously not belonging to must be configured into for the terminal, completely can be according to need To omit in the scope of essence for not changing invention.
Processor 180 is the control centre of the terminal, using various interfaces and each portion of the whole terminal of connection Point, software program and/or module in memorizer 120 being stored in by running or executing, and calls and be stored in memorizer 120 Interior data, execute various functions and the processing data of the terminal, so as to carry out integral monitoring to terminal.Optionally, process Device 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modulation /demodulation process Device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is mainly located Reason radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
The terminal also includes the power supply 190 (such as battery) that powers to all parts, it is preferred that power supply can be by electricity Management system is logically contiguous with processor 180, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or alternating current power supply, recharging system, power supply event Barrier detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, the terminal can also include photographic head, bluetooth module etc., will not be described here.Specifically at this In embodiment, the display unit of terminal is touch-screen display, and terminal also includes memorizer, and one or more than one Program, one of them or more than one program storage in memorizer, and be configured to by one or more than one Reason device execution states one or more than one program bag contains the instruction for carrying out following operation:
The first step, broadcasts instruction in response to live turning point, obtains N number of (N > 1) video segmentation time point;
Second step, obtains live data streams in real time and records the live time;
3rd step, if arrival of the live time video segmentation time point, basis and the video segmentation time point pair The live content that answers generates segmentation program request file bag;The segmentation program request file bag includes to record of identical live content Or multiple segmentation program request files.
4th step, splices the segmentation program request file according to the time sequencing of the live content of segmentation program request file record, Obtain recording the complete program request file of complete live content.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
N-th video segmentation time point is live end time point, and the basis is corresponding with the video segmentation time point Live content generate segmentation program request file bag include:
If the live time reaches first video segmentation time point, started to first video segmentation according to live Live content between time point generates first segmentation program request file bag;
If the live time reaches the individual video segmentation time point of i-th (i > 1), according to the i-th -1 video segmentation time point extremely Live content between i-th video segmentation time point generates i-th segmentation program request file bag.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
In the segmentation program request file bag, the transcoding parameter of different segmentation program request files is different, and accordingly, different divides The definition of the live content of section program request file record is also different.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
The time sequencing of the live content according to segmentation program request file record splices the segmentation program request file, obtains The complete program request file that record has complete live content includes:
The first step, obtains recording the segmentation program request file bag of the live content of different time sections;
Second step, selects a segmentation program request file as file to be spliced from segmentation program request file bag each described;Institute State file to be spliced and be respectively provided with identical transcoding parameter;
3rd step, closes to the file to be spliced according to the time sequencing of the live content of file record to be spliced And, obtain the complete program request file for having complete live content corresponding to the record of the transcoding parameter;
4th step, judges whether also there is the segmentation program request file for having neither part nor lot in splicing;
5th step, if so, then repeat the above steps continue to generate next complete program request file.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
The first step, carries out fluidization treatment to the complete program request file part;
Second step, stores the complete program request file after fluidization treatment;
3rd step, deletes the segmentation program request file for generating the complete program request file.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
After the segmentation program request file in the segmentation program request file bag is all deleted, the segmentation program request file is deleted Bag.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
Each described segmentation program request file all includes one or more file fragments;
If the segmentation program request file includes multiple file fragments, the file fragment is in the segmentation program request file Sequencing of the storage order with the live content that the file fragment is recorded in the live data streams consistent.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
The time sequencing of the live content according to segmentation program request file record splices the segmentation program request file, obtains The complete program request file that record has complete live content includes:
The first step, obtains recording the segmentation program request file bag of the live content of different time sections;
Second step, selects a segmentation program request file as file to be spliced from segmentation program request file bag each described;Institute State file to be spliced and be respectively provided with identical transcoding parameter;
3rd step, according to file record to be spliced live content time sequencing to the file ordering to be spliced;
4th step, with the file to be spliced that makes number one as specified file, by follow-up file to be spliced successively to chase after Plus mode insert the afterbody of the specified file, obtain having the complete of complete live content corresponding to the record of the transcoding parameter Integral point broadcasts file;
5th step, judges whether also there is the segmentation program request file for having neither part nor lot in splicing;
6th step, if so, then repeat the above steps continue to generate next complete program request file.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
The first step, carries out fluidization treatment to the complete program request file;
Second step, stores the complete program request file after fluidization treatment;
3rd step, deletes the segmentation program request file for generating the complete program request file.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
After the segmentation program request file in the segmentation program request file bag is all deleted, the segmentation program request file is deleted Bag.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
In the case of not yet obtaining recording the complete program request file of complete live content, by first segmentation program request text Segmentation program request file in part bag is issued to user;
After the complete program request file for obtaining recording complete live content, first segmentation program request of issue before deletion Segmentation program request file in file bag, and issue again the complete program request file.
Further, in the memorizer of terminal, also include the instruction for executing following operation:
After obtaining recording the complete program request file of complete live content, the complete program request file is directly issued.
To sum up, terminal provided in an embodiment of the present invention, can not only cause user can both take the lead in watch part program request regard Frequency can switch viewing complete video again easily, so as to be obviously improved Consumer's Experience, if additionally, complete program request file generated process goes out Existing mistake, can also make up loss by issuing segmentation program request file, improve fault-tolerance.
It is a kind of server architecture schematic diagram provided in an embodiment of the present invention referring to Fig. 8, Fig. 8.The server 800 can be because joining Put or performance is different and the larger difference of producing ratio, one or more central processing units (central can be included Processing units, CPU) 822 (for example, one or more processors) and memorizer 832, one or more Storage application program 842 or the storage medium 830 (such as one or more mass memory units) of data 844.Wherein, deposit Reservoir 832 and storage medium 830 can be of short duration storage or persistently store.The program for being stored in storage medium 830 can include One or more modules (diagram is not shown), each module can be included to the series of instructions operation in server.More Further, central processing unit 822 could be arranged to communicate with storage medium 830, execute storage medium on server 800 Series of instructions operation in 830.Server 800 can also include one or more power supplys 826, one or more Wired or wireless network interface 850, one or more input/output interfaces 858, and/or, one or more operations System 841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..Said method Step performed by embodiment can be based on the server architecture shown in the Fig. 8.
It should be noted that:The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment can pass through hardware To complete, it is also possible to which the hardware for being instructed correlation by program is completed, and described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement that is made etc., should be included within the scope of the present invention.

Claims (20)

1. a kind of live turning point broadcasting method, it is characterised in that methods described includes:
Instruction is broadcast in response to live turning point, obtain N number of (N > 1) video segmentation time point;
Obtain live data streams in real time and record the live time;
If the live time reaches the video segmentation time point, according to live content corresponding with the video segmentation time point Generate segmentation program request file bag;The segmentation program request file bag includes to record one or more waypoints of identical live content Broadcast file;
Time sequencing according to the live content of segmentation program request file record splices the segmentation program request file, and obtaining record has had The complete program request file of whole live content.
2. method according to claim 1, it is characterised in that n-th video segmentation time point is live end time point, Basis live content corresponding with the video segmentation time point generates segmentation program request file bag to be included:
If the live time reaches first video segmentation time point, started to the first video segmentation time according to live Live content between point generates first segmentation program request file bag;
If the live time reaches the individual video segmentation time point of i-th (i > 1), according to the i-th -1 video segmentation time point to i-th Live content between individual video segmentation time point generates i-th segmentation program request file bag.
3. method according to claim 1, it is characterised in that:
In the segmentation program request file bag, the transcoding parameter difference of different segmentation program request file, accordingly, different waypoint The definition for broadcasting the live content of file record is also different.
4. method according to claim 3, it is characterised in that the live content according to segmentation program request file record Time sequencing splices the segmentation program request file, and the complete program request file for obtaining recording complete live content includes:
Obtain recording the segmentation program request file bag of the live content of different time sections;
A segmentation program request file is selected as file to be spliced from segmentation program request file bag each described;The file to be spliced It is respectively provided with identical transcoding parameter;
Time sequencing according to the live content of file record to be spliced is merged to the file to be spliced, obtain corresponding to The record of the transcoding parameter has the complete program request file of complete live content;
Judge whether also there is the segmentation program request file for having neither part nor lot in splicing;
If so, then repeat the above steps continue to generate next complete program request file.
5. method according to claim 4, it is characterised in that also include:
Fluidization treatment is carried out to the complete program request file part;
Complete program request file of the storage after fluidization treatment;
Delete the segmentation program request file for generating the complete program request file.
6. method according to claim 5, it is characterised in that also include:
After the segmentation program request file in the segmentation program request file bag is all deleted, the segmentation program request file bag is deleted.
7. method according to claim 3, it is characterised in that:
Each described segmentation program request file all includes one or more file fragments;
If the segmentation program request file includes multiple file fragments, the file fragment depositing in the segmentation program request file Sequencing of the storage order with the live content of file fragment record in the live data streams is consistent.
8. method according to claim 7, it is characterised in that the live content according to segmentation program request file record Time sequencing splices the segmentation program request file, and the complete program request file for obtaining recording complete live content includes:
Obtain recording the segmentation program request file bag of the live content of different time sections;
A segmentation program request file is selected as file to be spliced from segmentation program request file bag each described;The file to be spliced It is respectively provided with identical transcoding parameter;
According to file record to be spliced live content time sequencing to the file ordering to be spliced;
With the file to be spliced that makes number one as specified file, follow-up file to be spliced is inserted successively in the way of adding The afterbody of the specified file, obtains the complete program request file for having complete live content corresponding to the record of the transcoding parameter;
Judge whether also there is the segmentation program request file for having neither part nor lot in splicing;
If so, then repeat the above steps continue to generate next complete program request file.
9. method according to claim 8, it is characterised in that also include:
Fluidization treatment is carried out to the complete program request file;
Complete program request file of the storage after fluidization treatment;
Delete the segmentation program request file for generating the complete program request file.
10. method according to claim 9, it is characterised in that also include:
After the segmentation program request file in the segmentation program request file bag is all deleted, the segmentation program request file bag is deleted.
11. methods according to claim 1, it is characterised in that:
In the case of not yet obtaining recording the complete program request file of complete live content, by first segmentation program request file bag In segmentation program request file to user issue;
After the complete program request file for obtaining recording complete live content, before deletion, the segmentation program request file of issue, lays equal stress on The complete program request file is newly issued.
12. methods according to claim 1, it is characterised in that:
After obtaining recording the complete program request file of complete live content, the complete program request file is directly issued.
13. a kind of live turning point broadcasting devices, it is characterised in that also include:
Live turning point broadcasts instruction respond module, instructs and obtain N number of (N > 1) video segmentation time for obtaining live turning point and broadcasting Point;
Data flow acquisition module, for obtaining live data streams in real time;
Live time logging modle, for recording the live time;
Segmentation program request file bag generation module, for generating segmentation program request according to live content corresponding with video segmentation time point File bag;The segmentation program request file bag includes the one or more segmentation program request files for recording identical live content;
Concatenation module, splices the segmentation program request text for the time sequencing of the live content according to segmentation program request file record Part, obtains recording the complete program request file of complete live content.
14. devices according to claim 13, it is characterised in that the concatenation module includes:
First segmentation program request file bag obtains unit, for obtaining the segmentation program request file of the live content for recording different time sections Bag;
Unit chosen by first file to be spliced, for selecting a segmentation program request file to make from segmentation program request file bag each described For file to be spliced;The file to be spliced is respectively provided with identical transcoding parameter;
First complete program request file generating unit, for the live content according to file record to be spliced time sequencing to described File to be spliced is merged, and obtains the complete program request file for having complete live content corresponding to the record of the transcoding parameter;
First splicing control unit, has neither part nor lot in the segmentation program request file of splicing and according to judged result for judging whether also to exist Control generates next complete program request file.
15. devices according to claim 14, it is characterised in that the concatenation module also includes:
First class processing unit, for carrying out fluidization treatment to the complete program request file;
First memory element, for complete program request file of the storage after fluidization treatment;
First deletes unit, for deleting the segmentation program request file for generating the complete program request file.
16. devices according to claim 13, it is characterised in that the concatenation module includes:
Second segmentation program request file bag obtains unit, for obtaining the segmentation program request file of the live content for recording different time sections Bag;
Unit chosen by second file to be spliced, for selecting a segmentation program request file to make from segmentation program request file bag each described For file to be spliced;The file to be spliced is respectively provided with identical transcoding parameter;
Sequencing unit, for the live content according to file record to be spliced time sequencing to the file ordering to be spliced;
Second complete program request file generating unit, for the file to be spliced that makes number one as specified file, will be follow-up File to be spliced inserts the afterbody of the specified file successively in the way of adding, and obtains the record corresponding to the transcoding parameter There is the complete program request file of complete live content;
Second splicing control unit, has neither part nor lot in the segmentation program request file of splicing and according to judged result for judging whether also to exist Control generates next complete program request file.
17. devices according to claim 16, it is characterised in that the concatenation module also includes:
Second fluidisation processing unit, for carrying out fluidization treatment to the complete program request file;
Second memory element, for complete program request file of the storage after fluidization treatment;
Second deletes unit, for deleting the segmentation program request file for generating the complete program request file.
18. devices according to claim 13, it is characterised in that also include:
First release module, in the case of not yet obtaining recording the complete program request file of complete live content, by Segmentation program request file in one segmentation program request file bag is issued to user;
Second release module, for, after the complete program request file for recording complete live content is obtained, issuing before deletion Segmentation program request file, and issue again the complete program request file.
19. devices according to claim 13, it is characterised in that also include:
3rd release module, for obtaining recording after the complete program request file of complete live content, directly issues described complete Program request file.
20. one kind are live to turn terminal, it is characterised in that the terminal is included in claim 13-19 described in any one Live turning point broadcasting device.
CN201610928577.8A 2016-10-31 2016-10-31 Live broadcast-to-on-demand broadcast method, device and terminal Active CN106454391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610928577.8A CN106454391B (en) 2016-10-31 2016-10-31 Live broadcast-to-on-demand broadcast method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610928577.8A CN106454391B (en) 2016-10-31 2016-10-31 Live broadcast-to-on-demand broadcast method, device and terminal

Publications (2)

Publication Number Publication Date
CN106454391A true CN106454391A (en) 2017-02-22
CN106454391B CN106454391B (en) 2020-04-28

Family

ID=58177262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610928577.8A Active CN106454391B (en) 2016-10-31 2016-10-31 Live broadcast-to-on-demand broadcast method, device and terminal

Country Status (1)

Country Link
CN (1) CN106454391B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791925A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN107172481A (en) * 2017-05-09 2017-09-15 深圳市炜光科技有限公司 Video segment splices method of combination and system
CN108024124A (en) * 2017-12-15 2018-05-11 中广热点云科技有限公司 A kind of advertisement filter method of video frequency program
CN108174226A (en) * 2017-12-19 2018-06-15 平安科技(深圳)有限公司 Transcoding device, method and the computer readable storage medium of live video
CN108235141A (en) * 2018-03-01 2018-06-29 北京网博视界科技股份有限公司 Live video turns method, apparatus, server and the storage medium of fragmentation program request
WO2018205141A1 (en) * 2017-05-09 2018-11-15 深圳市炜光科技有限公司 Method and system for stitching and arranging video clips
CN109040770A (en) * 2018-08-27 2018-12-18 佛山龙眼传媒科技有限公司 A kind of method, the system of online editing
CN109831676A (en) * 2019-03-18 2019-05-31 北京奇艺世纪科技有限公司 A kind of video data handling procedure and device
CN109874061A (en) * 2019-03-22 2019-06-11 北京奇艺世纪科技有限公司 A kind of processing method of live video, device and electronic equipment
CN110460873A (en) * 2018-05-08 2019-11-15 优酷网络技术(北京)有限公司 The generation method and device of order video
CN111954005A (en) * 2019-05-17 2020-11-17 腾讯科技(深圳)有限公司 Multimedia resource transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710966A (en) * 2012-06-13 2012-10-03 百视通网络电视技术发展有限责任公司 Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol)
CN102917277A (en) * 2012-10-29 2013-02-06 清华大学深圳研究生院 Content fragment distribution method realizing on-demand casting through broadcasting
CN103731678A (en) * 2013-12-30 2014-04-16 世纪龙信息网络有限责任公司 Video file parallel transcoding method and system
CN104683884A (en) * 2015-02-09 2015-06-03 网宿科技股份有限公司 Live method and system for stream medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710966A (en) * 2012-06-13 2012-10-03 百视通网络电视技术发展有限责任公司 Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol)
CN102917277A (en) * 2012-10-29 2013-02-06 清华大学深圳研究生院 Content fragment distribution method realizing on-demand casting through broadcasting
CN103731678A (en) * 2013-12-30 2014-04-16 世纪龙信息网络有限责任公司 Video file parallel transcoding method and system
CN104683884A (en) * 2015-02-09 2015-06-03 网宿科技股份有限公司 Live method and system for stream medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN106791925A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
WO2018205141A1 (en) * 2017-05-09 2018-11-15 深圳市炜光科技有限公司 Method and system for stitching and arranging video clips
CN107172481A (en) * 2017-05-09 2017-09-15 深圳市炜光科技有限公司 Video segment splices method of combination and system
CN108024124A (en) * 2017-12-15 2018-05-11 中广热点云科技有限公司 A kind of advertisement filter method of video frequency program
CN108024124B (en) * 2017-12-15 2019-08-30 中广热点云科技有限公司 A kind of advertisement filter method of video program
CN108174226A (en) * 2017-12-19 2018-06-15 平安科技(深圳)有限公司 Transcoding device, method and the computer readable storage medium of live video
CN108174226B (en) * 2017-12-19 2020-11-10 平安科技(深圳)有限公司 Transcoding device and method for live video and computer readable storage medium
CN108235141A (en) * 2018-03-01 2018-06-29 北京网博视界科技股份有限公司 Live video turns method, apparatus, server and the storage medium of fragmentation program request
CN108235141B (en) * 2018-03-01 2020-11-20 北京网博视界科技股份有限公司 Method, device, server and storage medium for converting live video into fragmented video on demand
CN110460873A (en) * 2018-05-08 2019-11-15 优酷网络技术(北京)有限公司 The generation method and device of order video
CN109040770A (en) * 2018-08-27 2018-12-18 佛山龙眼传媒科技有限公司 A kind of method, the system of online editing
CN109831676A (en) * 2019-03-18 2019-05-31 北京奇艺世纪科技有限公司 A kind of video data handling procedure and device
CN109874061A (en) * 2019-03-22 2019-06-11 北京奇艺世纪科技有限公司 A kind of processing method of live video, device and electronic equipment
CN111954005A (en) * 2019-05-17 2020-11-17 腾讯科技(深圳)有限公司 Multimedia resource transmission method and device

Also Published As

Publication number Publication date
CN106454391B (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN106454391A (en) Method, apparatus and terminal of converting live to on-demand
CN104113787B (en) Based on the comment method of program, terminal, server and system
CN104967910A (en) Multimedia play progress control method and apparatus
CN103593333B (en) A kind of processing method, terminal and the electronic equipment of e-book document
CN103596017B (en) Video downloading method and system
CN105554522A (en) Method for playing audio in group, server and terminal
CN103699409B (en) Awakening state switching-in method, device and system for electronic device
CN103400592A (en) Recording method, playing method, device, terminal and system
CN103605656A (en) Music recommendation method and device and mobile terminal
CN104519404A (en) Graphics interchange format file playing method and device
CN106155818A (en) A kind of terminal pulls the processing method of information and terminal and server
CN103873883B (en) Video playing method and device and terminal equipment
CN105363201A (en) Prompt information display method and prompt information display device
CN103699309B (en) A kind of method for recording of synchronization video, device and mobile terminal
CN105606117A (en) Navigation prompting method and navigation prompting apparatus
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN105187733A (en) Video processing method, device and terminal
CN104869465A (en) Video playing control method and device
CN106411448A (en) Play control method and device, and terminal
CN106254903A (en) The synchronous broadcast method of a kind of multi-medium data, Apparatus and system
CN108156508A (en) Method, apparatus, mobile terminal, server and the system of barrage information processing
CN105516784A (en) Virtual good display method and device
CN109756767A (en) Preview data playback method, device and storage medium
CN105224556A (en) Waterfall stream interface display packing and device
CN105049959A (en) Multimedia file playing method and device

Legal Events

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