Recommend the generation method and system of programme
Technical field
The present invention relates to video information process technical field, more particularly to a kind of recommend the generation method of programme and be
System.
Background technology
At present, mobile intelligent terminal is increasingly popularized, and function is also more and more, is broadcast except that can provide the user local video
Put, picture browsing, outside the entertainment service such as game, moreover it is possible to the browse network resource in the case of networking.But in most cases,
Mobile intelligent terminal is all operated in the environment of can not using WiFi, and now user can only buy flow Bao Laishi to telecom operators
Existing network access, but flow bag is limited after all, and the added flow outside flow bag is costly.
In browse network resource, video playback is to expend the most service of flow.Therefore, in some service intelligence
In terminal, meeting video that include local cache in some videos of local cache, the recommendation programme provided the user.Such as
This, user is merely able to watch some contents of local cache, and it is live can not to watch some ageing strong news, race information etc.
Program, although having saved viewing enjoyment and experience that flow significantly impacts user.
The content of the invention
To solve the problems, such as that local buffered video is only recommended in the service of the video-see of service intelligent terminal in the prior art,
The present invention provides a kind of generation method and system for recommending programme.
The embodiment of the present invention provides a kind of generation method for recommending programme, comprises the following steps:
Online programme is obtained, online video information is recorded in the online programme;
Local program list is obtained, local buffered video information is recorded in the local program list;
Determine whether Online Video is live video according to the Online Video information;
Programme is recommended in generation, and the recommendation programme includes the local buffered video information and live video letter
Breath.
Alternatively, in addition to step:
Determine locally available flow in the update cycle and update cycle of the recommendation programme;
According to the live video information in the recommendation programme, obtain watching the flow that live video needs;
If the flow of the needs is more than the utilizable flow, the live video information in the recommendation programme is carried out
Adjustment.
Alternatively, in addition to step:
Compare the online programme and the local program list;
The video information in the online programme and not appeared in the local program list is will appear in, added to this
Treat CACHE DIRECTORY in ground.
Alternatively, in addition to step:
Detect network environment;
When detecting available WiFi, video corresponding with the video information treated in CACHE DIRECTORY is downloaded.
Alternatively, in addition to step:
The memory space of foradownloaded video needs and the remaining space of local memory are obtained in real time;
When the remaining space is less than the memory space of the needs, pushed away by part local buffered video and its described
Recommend corresponding local buffered video information deletion in programme.
Alternatively, in addition to step:
Cache-time is exceeded into the local buffered video of setting time and its corresponding local in the recommendation programme
Buffered video information deletion.
Alternatively, in addition to step:
By local buffered video of the broadcasting time less than setting number and its corresponding local in the recommendation programme
Buffered video information deletion.
Based on same inventive concept, the embodiment of the present invention also provides a kind of generation system for recommending programme, including:
Online programme acquiring unit, online programme is obtained, online video information is recorded in the online programme;
Local program list acquiring unit, local program list is obtained, local buffered video letter is recorded in the local program list
Breath;
Identifying unit, determine whether Online Video is live video according to the Online Video information;
Recommend programme generation unit, programme is recommended in generation, and the recommendation programme includes the local cache and regarded
Frequency information and live video information.
Alternatively, in addition to:
Utilizable flow statistic unit, determine locally available stream in the update cycle and update cycle of the recommendation programme
Amount;
Required traffic statistics unit, according to the live video information in the recommendation programme, obtain watching live video
The flow needed;
Recommend programme adjustment unit, if the flow of the needs is more than the utilizable flow, to the recommendation programme
In live video information be adjusted.
Alternatively, in addition to:
Comparing unit, compare the online programme and the local program list;
Catalogue adjustment unit, it will appear in the video in the online programme and not appeared in the local program list
Information, CACHE DIRECTORY is treated added to local.
Alternatively, in addition to:
Network detection unit, detect network environment;
Video download unit, when detecting available WiFi, download corresponding with the video information treated in CACHE DIRECTORY
Video.
Alternatively, in addition to:
Space acquiring unit, the memory space of foradownloaded video needs and the remaining space of local memory are obtained in real time;
Video deletes unit, and when the remaining space is less than the memory space of the needs, part local cache is regarded
Frequency and its corresponding local buffered video information deletion in the recommendation programme.
Alternatively, in addition to:
The video deletes unit, and cache-time is exceeded into the local buffered video of setting time and its recommends to save described
Corresponding local buffered video information deletion in mesh list.
Alternatively, in addition to:
The video deletes unit, recommends to save by local buffered video of the broadcasting time less than setting number and its described
Corresponding local buffered video information deletion in mesh list.
Compared with prior art, above technical scheme provided in an embodiment of the present invention, at least has the advantages that:
The generation method and system of recommendation programme described in the embodiment of the present invention, by obtaining online programme and local
Programme, online programme and local program list are merged, ultimately generate recommendation programme.The recommendation programme generated
Include local buffered video information and live video information.I.e. by ageing strong programme televised live, recommendation programme is retained in
In, meet that user watches the hobby of race news etc., and for other online programs, using the video of local cache come
Substitute, to save local flow as far as possible.
Brief description of the drawings
Fig. 1 is the flow chart for the generation method for recommending programme described in the embodiment of the present invention 1.
Fig. 2 is the flow chart that programme is recommended in adjustment described in the embodiment of the present invention 2.
Fig. 3 is the flow chart that programme is recommended in adjustment described in the embodiment of the present invention 3.
Fig. 4 is the structural representation for the generation system for recommending programme described in the embodiment of the present invention 4.
Fig. 5 is the portion to recommending programme to be adjusted in the generation system for recommend described in the embodiment of the present invention 5 programme
Separation structure schematic diagram.
Fig. 6 is the portion to recommending programme to be adjusted in the generation system for recommend described in the embodiment of the present invention 6 programme
Separation structure schematic diagram.
Fig. 7 is the electronic equipment hardware configuration for being used to perform the generation method for recommending programme described in the embodiment of the present invention 8
Schematic diagram.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is further described.
Embodiment 1
As shown in figure 1, to recommend the flow chart of the generation method of programme described in the present embodiment, comprise the following steps:
S101, online programme is obtained, online video information is recorded in the online programme.The online programme can
Voluntarily to be generated according to video website program, can also ask to obtain to video website server.Online programme includes can be
The information of line order video, in addition to ongoing live video information.The Online Video information may include video name,
Featured performer, video profile, whether live, broadcast address and video distribution person etc. characterize the information of video content, with difference
For the purpose of other videos, it is ensured that the video with other guide is not obscured.
S102, local program list is obtained, local buffered video information is recorded in the local program list.Local program list is
Local buffered video information collects, and the local buffered video information may include video name, featured performer, video profile etc.
Characterize the information of video content.
S103, determine whether Online Video is live video according to the Online Video information.Specifically, it is described to regard online
Can directly include characterizing whether the video is live description in frequency information, such as live video, or in video name, broadcast
Put and description " just live " is added in the information such as time, the determination of classification column that can also be directly according to where video, such as
Video under existing " live " classification, can directly determine whether the video is live video according to each Online Video information.
Programme is recommended in S104, generation, and the recommendation programme includes the local buffered video information and live
Video information.
The generation method of recommendation programme described in above-described embodiment, by ageing strong programme televised live, is retained in recommendation
In programme, meet that user watches the hobby of race news etc., and for other online programs, using local cache
Video substitutes, to save local flow as far as possible.
Embodiment 2
The utilizable flow of service intelligent terminal is limited, and the viewing of live video needs to expend more flow,
, can for the live video for recommending to recommend in programme when flow needed for viewing programme televised live is smaller, and utilizable flow is more
Not limit, the live video recommended in programme otherwise need to be just adjusted, to ensure the flow needed for viewing live video not
More than utilizable flow, avoid producing extra campus network.Therefore, as shown in Fig. 2 the present embodiment is on the basis of embodiment 1
It is further comprising the steps of:
S201, determine locally available flow in the update cycle and update cycle of the recommendation programme.Wherein, service
Property intelligent terminal utilizable flow every month and update cycle are Given information.As a kind of mode, obtain in the update cycle originally
The step of ground utilizable flow, includes:Local residual flow, and this month residue number of days are obtained, calculates daily average available discharge,
Locally available flow in the update cycle is can obtain using the product of daily average available discharge and update cycle number of days.
S202, according to the live video information in the recommendation programme, obtain watching the flow that live video needs.Root
According to the image quality of live video and the time of live video, the substantially required flow of live video can be calculated.
S203, if the flow of the needs is more than the utilizable flow, the live video in the recommendation programme is believed
Breath is adjusted.
For example, so that generation in three days once recommends programme as an example, i.e. the update cycle is three days.It is determined that this recommends program
Dan Hou, it is about 2G to obtain local residual flow, and this month residue number of days is 10 days, then average daily utilizable flow is 200M, therefore
Utilizable flow is 600M within the update cycle.And 3 live videos are shared in programme is recommended, it is about according to flow needed for calculating
500M, not less than utilizable flow 600M, now, without adjusting the live video information recommended in programme;Live regarded when three
It is more than utilizable flow 600M in the update cycle, then each required according to three live videos when flow is about 700M needed for frequency
The information such as the size of flow and respective attention rate, some live video information are suitably deleted in programme is recommended, make to push away
The live video recommended also has higher attention rate on the premise of flow restriction condition is met.
Embodiment 3
As shown in figure 3, on the basis of embodiment 1 or embodiment 2, the generation side for the recommendation programme that the present embodiment provides
Method, also comprise the following steps:
S301, compare the online programme and the local program list.Compare one by one online in online programme
Local buffered video information in video information and local program list.
S302, the video information in the online programme and not appeared in the local program list is will appear in, is added
Add to and locally treat CACHE DIRECTORY.The purpose of this step is to be able to enter the video of local cache on the basis of online programme
Row renewal.As it was previously stated, may include broadcast address in the Online Video information, can be according to broadcasting when download condition is met
Address is downloaded, and is not take up local flow as far as possible.
S303, detect network environment.
S304, when detecting available WiFi, download video corresponding with the video information treated in CACHE DIRECTORY.When
When service intelligent terminal searches available WiFi, the video treated in CACHE DIRECTORY can be downloaded in order automatically.Can also be by people
For the selected local video treated in CACHE DIRECTORY, arrange by oneself download.
S305, the memory space of foradownloaded video needs and the remaining space of local memory are obtained in real time.
S306, when the remaining space be less than the needs memory space when, by part local buffered video and its
Local buffered video information deletion corresponding to the recommendation programme.
Specifically, it can select caching too long or the few local video of broadcasting time is deleted, with Free up Memory.
When local buffered video is stored in local memory, creation time can be recorded simultaneously, can be obtained according to creation time
To its cache-time.The setting time can be fixed 40 days, 2 months etc., also can obtaining according to Online Video programme
Frequency is taken to adjust, when the acquisition frequency of online programme is higher, corresponding setting time can also suitably shorten.In addition,
It can be directly ranked up according to cache-time, the most long video of cache-time is deleted, if remaining space is still insufficient,
Repeat and delete the most long video of cache-time, until remaining space meets download demand.
And the broadcasting time of local buffered video can be recorded according to actual conditions, if some video attention rate is high,
Its broadcasting time is naturally also higher, by local buffered video of the broadcasting time less than setting number and its in the recommendation program
Corresponding local buffered video information deletion in list.Alternatively, it is also possible to be directly ranked up according to broadcasting time, by broadcasting time
Minimum video is deleted, if remaining space is still insufficient, is repeated and is deleted the minimum video of broadcasting time, until remaining empty
Between meet download demand.When the broadcasting time minority of certain video, illustrate that its attention rate is not high, therefore no longer recommend to user.
Embodiment 4
Based on same inventive concept, the present embodiment provides a kind of generation system for recommending programme, as shown in figure 4, including:
Online programme acquiring unit 401, online programme is obtained, Online Video letter is recorded in the online programme
Breath.
Local program list acquiring unit 402, local program list is obtained, local buffered video is recorded in the local program list
Information.
Identifying unit 403, determine whether Online Video is live video according to the Online Video information.
Recommend programme generation unit 404, programme is recommended in generation, and the recommendation programme includes the local cache
Video information and it is confirmed as live video information.
The embodiment of the present invention, by obtaining online programme, ageing stronger live video is retained in recommendation program
Dan Zhong, make recommendation program content more abundant, meet the viewing demand of Most users.
Embodiment 5
To save flow, on the basis of above-described embodiment 4, as shown in figure 5, the recommendation programme that the present embodiment provides
Generation system also includes:
Utilizable flow statistic unit 501, determining locally can in the update cycle and update cycle of the recommendation programme
Use flow;
Required traffic statistics unit 502, according to the live video information in the recommendation programme, obtain watching live regard
The flow that frequency needs;
Recommend programme adjustment unit 503, if the flow of the needs is more than the utilizable flow, to the recommendation program
Live video information in list is adjusted.
Above-described embodiment is saves the utilizable flow of service intelligent terminal, when flow needed for programme televised live can more than locally
During with flow, then the live video information in programme is recommended in adjustment, ensures that the flow needed for live video can no more than locally
Flow, avoid producing extra campus network.
Embodiment 6
For the video of caching can be updated, on the basis of embodiment 4 or embodiment 5, as shown in fig. 6, the present embodiment provides
The generation system of recommendation programme also include:
Comparing unit 601, compare the online programme and the local program list;
Catalogue adjustment unit 602, it will appear in the online programme and do not appear in the local program list
Video information, CACHE DIRECTORY is treated added to local.
Network detection unit 603, detect network environment;
Video download unit 604, when detecting available WiFi, download and the video information pair treated in CACHE DIRECTORY
The video answered.
Space acquiring unit 605, the memory space of foradownloaded video needs and the remaining space of local memory are obtained in real time;
Video deletes unit 606, when the remaining space is less than the memory space of the needs, by part local cache
Video and its corresponding local buffered video information deletion in the recommendation programme.
Specifically, video delete unit 606 be used for by cache-time exceed setting time local buffered video and its
Corresponding local buffered video information deletion in the recommendation programme;Local cache of the broadcasting time less than setting number is regarded
Frequency and its corresponding local buffered video information deletion in the recommendation programme.
Above-described embodiment is downloaded the video treated in CACHE DIRECTORY, regarded with updating local cache in the case of available WiFi
Frequently, and flow has been saved.And in video downloading process, when low memory, delete some and be no longer suitable for what is recommended to user
Video, ensure that downloads is smoothed out, so as to be updated in time to the video of local cache.
Embodiment 7
The present embodiment provides a kind of nonvolatile computer storage media, and the computer-readable storage medium is stored with computer
Executable instruction, the computer executable instructions can perform the processing for recommending programme generation in above-mentioned any means embodiment
Method.
Embodiment 8
Fig. 7 is the hardware architecture diagram for the electronic equipment that programme generation method is recommended in the execution that the present embodiment provides,
As shown in fig. 7, the equipment includes:
One or more processors 701 and memory 702, in Fig. 7 by taking a processor 701 as an example.
Perform and recommend the equipment of programme generation method to include:Input unit 703 and output device 704.
Processor 701, memory 702, input unit 703 and output device 704 can pass through bus or other modes
Connect, in Fig. 7 exemplified by being connected by bus.
Memory 702 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storage non-volatile software journey
Sequence, non-volatile computer executable program and module, as programme generation method is recommended in the execution in the embodiment of the present application
Corresponding programmed instruction/module is (for example, online programme acquiring unit 401, local program list acquiring unit shown in accompanying drawing 4
402nd, identifying unit 403 and recommendation programme generation unit 404).Processor 701 is stored in memory 702 by operation
Non-volatile software program, instruction and module, various function application and data processing so as to execute server, that is, realize
Programme generation method is recommended in the execution of above method embodiment.
Memory 702 can include storing program area and storage data field, wherein, storing program area can store operation system
Application program required for system, at least one function;Storage data field can store the use of the processing unit according to video recommendations
Data created etc..In addition, memory 702 can include high-speed random access memory, non-volatile deposit can also be included
Reservoir, for example, at least a disk memory, flush memory device or other non-volatile solid state memory parts.In some implementations
In example, memory 702 is optional including that can pass through relative to the remotely located memory of processor 701, these remote memories
Network connection to video recommendations processing unit.The example of above-mentioned network includes but is not limited to internet, intranet, local
Net, mobile radio communication and combinations thereof.
Input unit 703 can receive the numeral or character information of input, and produce and the processing unit of video recommendations
The key signals input that user is set and function control is relevant.Output device 704 may include the display devices such as display screen.
One or more of modules are stored in the memory 702, when by one or more of processors
During 701 execution, programme generation method is recommended in the execution performed in above-mentioned any means embodiment.
The said goods can perform the method that the embodiment of the present application is provided, and possesses the corresponding functional module of execution method and has
Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, includes but is not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data
Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low
Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work(
Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, internal memory, system
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, therefore in processing energy
Power, stability, reliability, security, scalability, manageability etc. require higher.
(5) other electronic installations with data interaction function.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation
Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.